(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{"+6xv":function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"d",(function(){return m})),n.d(e,"e",(function(){return a})),n.d(e,"f",(function(){return f})),n.d(e,"g",(function(){return c})),n.d(e,"h",(function(){return d})),n.d(e,"i",(function(){return b})),n.d(e,"j",(function(){return l})),n.d(e,"k",(function(){return h})),n.d(e,"l",(function(){return u})),n.d(e,"m",(function(){return p})),n.d(e,"n",(function(){return o})),n.d(e,"o",(function(){return v})),n.d(e,"p",(function(){return _}));class i{}class r{}const s="*";function o(t,e){return{type:7,name:t,definitions:e,options:{}}}function a(t,e=null){return{type:4,styles:e,timings:t}}function c(t,e=null){return{type:3,steps:t,options:e}}function l(t,e=null){return{type:2,steps:t,options:e}}function u(t){return{type:6,styles:t,offset:null}}function h(t,e,n){return{type:0,name:t,styles:e,options:n}}function d(t){return{type:5,steps:t}}function p(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function f(t=null){return{type:9,options:t}}function b(t,e,n=null){return{type:11,selector:t,animation:e,options:n}}function g(t){Promise.resolve(null).then(t)}class m{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){g(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){}setPosition(t){}getPosition(){return 0}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class v{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,n=0,i=0;const r=this.players.length;0==r?g(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==r&&this._onFinish()}),t.onDestroy(()=>{++n==r&&this._onDestroy()}),t.onStart(()=>{++i==r&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})}getPosition(){let t=0;return this.players.forEach(e=>{const n=e.getPosition();t=Math.min(n,t)}),t}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const _="!"},"+Aie":function(t,e,n){var i;!function(r,s,o){if(r){for(var a,c={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},l={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},u={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},h={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},d=1;d<20;++d)c[111+d]="f"+d;for(d=0;d<=9;++d)c[d+96]=d.toString();v.prototype.bind=function(t,e,n){return this._bindMultiple.call(this,t=t instanceof Array?t:[t],e,n),this},v.prototype.unbind=function(t,e){return this.bind.call(this,t,(function(){}),e)},v.prototype.trigger=function(t,e){return this._directMap[t+":"+e]&&this._directMap[t+":"+e]({},t),this},v.prototype.reset=function(){return this._callbacks={},this._directMap={},this},v.prototype.stopCallback=function(t,e){if((" "+e.className+" ").indexOf(" mousetrap ")>-1)return!1;if(function t(e,n){return null!==e&&e!==s&&(e===n||t(e.parentNode,n))}(e,this.target))return!1;if("composedPath"in t&&"function"==typeof t.composedPath){var n=t.composedPath()[0];n!==t.target&&(e=n)}return"INPUT"==e.tagName||"SELECT"==e.tagName||"TEXTAREA"==e.tagName||e.isContentEditable},v.prototype.handleKey=function(){var t=this;return t._handleKey.apply(t,arguments)},v.addKeycodes=function(t){for(var e in t)t.hasOwnProperty(e)&&(c[e]=t[e]);a=null},v.init=function(){var t=v(s);for(var e in t)"_"!==e.charAt(0)&&(v[e]=function(e){return function(){return t[e].apply(t,arguments)}}(e))},v.init(),r.Mousetrap=v,t.exports&&(t.exports=v),void 0===(i=(function(){return v}).call(e,n,e,t))||(t.exports=i)}function p(t,e,n){t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent("on"+e,n)}function f(t){if("keypress"==t.type){var e=String.fromCharCode(t.which);return t.shiftKey||(e=e.toLowerCase()),e}return c[t.which]?c[t.which]:l[t.which]?l[t.which]:String.fromCharCode(t.which).toLowerCase()}function b(t){return"shift"==t||"ctrl"==t||"alt"==t||"meta"==t}function g(t,e,n){return n||(n=function(){if(!a)for(var t in a={},c)t>95&&t<112||c.hasOwnProperty(t)&&(a[c[t]]=t);return a}()[t]?"keydown":"keypress"),"keypress"==n&&e.length&&(n="keydown"),n}function m(t,e){var n,i,r,s=[];for(n=function(t){return"+"===t?["+"]:(t=t.replace(/\+{2}/g,"+plus")).split("+")}(t),r=0;r1?function(t,e,s,o){function l(e){return function(){a=e,++i[t],clearTimeout(n),n=setTimeout(c,1e3)}}function h(e){u(s,e,t),"keyup"!==o&&(r=f(e)),setTimeout(c,10)}i[t]=0;for(var p=0;p{class t{constructor(){this.showZeros=!0}get ghostly(){if(!this.content)return["","",""];const t=this.content.toString();if(t){if(o.test(t)){const[,e,n]=t.match(o);return["",e,n]}if(a.test(t)){const[,e,n,i]=t.match(a);return[e,n,i]}}const e=t.split(" ");return 2===e.length?[e[0],"",e[1]]:[t,"",""]}get allZero(){return 0===this.ghostly[0].length&&this.ghostly[1].length>0}get num(){const t=this.ghostly[0];return t.endsWith(".")?this.ghostly[0].slice(0,t.length-1):this.ghostly[0]}get zeros(){return this.ghostly[0].endsWith(".")?"."+this.ghostly[1]:this.ghostly[1]}get unit(){return this.ghostly[2]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["ghost-trail"]],inputs:{content:"content",showZeros:"showZeros"},decls:7,vars:6,consts:[[1,"num"],["class","zeros global__text--ghost",4,"ngIf"],[1,"unit"],[1,"zeros","global__text--ghost"]],template:function(t,e){1&t&&(i.Ub(0,"span"),i.Ub(1,"span",0),i.Qc(2),i.Tb(),i.Oc(3,s,2,1,"span",1),i.Qc(4),i.Ub(5,"span",2),i.Qc(6),i.Tb(),i.Tb()),2&t&&(i.Gb("global__text--ghost",e.allZero),i.Cb(2),i.Rc(e.num),i.Cb(1),i.mc("ngIf",e.showZeros),i.Cb(1),i.Sc(" "," "," "),i.Cb(2),i.Rc(e.unit))},directives:[r.n],encapsulation:2,changeDetection:0}),t})()},"+Px6":function(t,e,n){"use strict";n.d(e,"b",(function(){return p})),n.d(e,"r",(function(){return b})),n.d(e,"d",(function(){return g})),n.d(e,"f",(function(){return m})),n.d(e,"e",(function(){return v})),n.d(e,"g",(function(){return _})),n.d(e,"k",(function(){return y})),n.d(e,"t",(function(){return O})),n.d(e,"s",(function(){return C})),n.d(e,"u",(function(){return w})),n.d(e,"j",(function(){return T})),n.d(e,"p",(function(){return S})),n.d(e,"i",(function(){return k})),n.d(e,"c",(function(){return E})),n.d(e,"n",(function(){return x})),n.d(e,"l",(function(){return P})),n.d(e,"h",(function(){return A})),n.d(e,"a",(function(){return I})),n.d(e,"o",(function(){return M})),n.d(e,"q",(function(){return D})),n.d(e,"m",(function(){return R}));var i=n("zqNl"),r=n("og7C"),s=n("VmIW"),o=n("TYVA"),a=n("p5wL"),c=n("orIj"),l=n("lx5p"),u=n("wMit");const h={selected:"PF_XBTUSD",quote:"USD",assets:Object(r.b)(),futures:Object(r.b)(),indices:Object(r.b)(),feeSchedules:Object(r.b)(),leveragePrefs:Object(r.b)(),pnlPrefs:Object(r.b)()},d=Object(i.i)(h,Object(i.k)(u.q,(t,{symbol:e})=>Object(a.b)(e.toUpperCase(),t,"selected")),Object(i.k)(u.p,(t,{symbol:e})=>Object(a.b)(e.toUpperCase(),t,"quote")),Object(i.k)(u.k,(t,{assets:e})=>Object(a.b)(Object(a.c)(e,"name"),t,"assets")),Object(i.k)(u.m,(t,{markets:e})=>Object(a.b)(Object(a.c)(e,"symbol"),t,"futures")),Object(i.k)(u.l,(t,{feeSchedules:e})=>Object(a.b)(Object(a.c)(e,"uid"),t,"feeSchedules")),Object(i.k)(u.n,(t,{leveragePreferences:e})=>Object(a.b)(Object(a.c)(e,"symbol"),t,"leveragePrefs")),Object(i.k)(u.o,(t,{pnlCurrency:e})=>Object(a.b)(Object(a.c)(e,"symbol"),t,"pnlPrefs")));function p(t,e){return d(t,e)}const f=Object(i.h)("market"),b=Object(i.j)(f,Object(l.F)("selected")),g=Object(i.j)(f,Object(l.F)("assets")),m=Object(i.j)(f,Object(l.F)("futures")),v=Object(i.j)(f,Object(l.F)("feeSchedules")),_=Object(i.j)(f,Object(l.F)("leveragePrefs")),y=Object(i.j)(f,Object(l.F)("pnlPrefs")),O=Object(i.j)(b,o.u),C=Object(i.j)(O,o.d),w=Object(i.j)(O,o.v),T=Object(i.j)(m,t=>t),S=Object(i.j)(b,t=>Object(o.o)(t)),k=Object(i.j)(T,(t,e)=>t.get(e.symbol)),E=Object(i.j)(g,t=>{function e(t,e){return(new Intl.Collator).compare(t.name,e.name)}const n=[],i=[],r=[];return t.forEach(t=>{const e=t.name.toUpperCase();e in c.b?n.push(t):e in c.c?i.push(t):r.push(t)}),{fiat:n.sort(e),stablecoin:i.sort(e),crypto:r.sort((function(t,e){const n=o.e;return n.indexOf(t.name)-n.indexOf(e.name)}))}}),x=Object(i.j)(m,b,(t,e)=>t.get(e)),P=Object(i.j)(m,t=>[...t.filter(t=>!t.symbol.split("_")[2]&&"flexible_futures"!==t.type).map(t=>"F"+t.symbol.slice(1).toUpperCase()).values()]),A=Object(i.j)(m,t=>[...t.filter(t=>"flexible_futures"===t.type).map(t=>t.symbol).values()]),I=Object(i.j)(x,t=>"flexible_futures"===(null==t?void 0:t.type)),M=Object(i.j)(b,_,(t,e)=>e.get(t)||{symbol:t,cross:!0}),D=Object(i.j)(b,y,(t,e)=>e.get(t)||{symbol:t,pnlCurrency:"USD"}),R=Object(i.j)(v,x,(t,e)=>"flexible_futures"===(null==e?void 0:e.type)||"futures_inverse"===(null==e?void 0:e.type)||"futures_vanilla"===(null==e?void 0:e.type)?s.Maybe.fromNull(t.get(e.feeScheduleUid)):s.Maybe.None())},"+Tmv":function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("kZht"),r=n("An66");const s=function(t,e){return{"strength-meter--valid":t,"strength-meter--invalid":e}},o=function(t){return{"strength-meter__indicator--active":t}};let a=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["strength-meter"]],inputs:{strength:"strength"},decls:5,vars:16,consts:[[1,"strength-meter",3,"ngClass"],[1,"strength-meter__indicator",3,"ngClass"]],template:function(t,e){1&t&&(i.Ub(0,"section",0),i.Pb(1,"div",1),i.Pb(2,"div",1),i.Pb(3,"div",1),i.Pb(4,"div",1),i.Tb()),2&t&&(i.mc("ngClass",i.sc(5,s,e.strength>=3,e.strength<=2)),i.Cb(1),i.mc("ngClass",i.rc(8,o,e.strength>=1)),i.Cb(1),i.mc("ngClass",i.rc(10,o,e.strength>=2)),i.Cb(1),i.mc("ngClass",i.rc(12,o,e.strength>=3)),i.Cb(1),i.mc("ngClass",i.rc(14,o,e.strength>=4)))},directives:[r.l],styles:["[_nghost-%COMP%]{display:block;position:relative;top:calc(var(--spacing) * -1)}.strength-meter[_ngcontent-%COMP%]{display:flex;height:5px;justify-content:space-between;width:100%}.strength-meter--valid[_ngcontent-%COMP%] .strength-meter__indicator--active[_ngcontent-%COMP%]{background:var(--accent-colour)!important}.strength-meter--invalid[_ngcontent-%COMP%] .strength-meter__indicator--active[_ngcontent-%COMP%]{background:var(--warn-colour)!important}.strength-meter__indicator[_ngcontent-%COMP%]{background:var(--form-input-colour);flex:1;margin:0 3px}.strength-meter__indicator[_ngcontent-%COMP%]:first-of-type{margin-left:0}.strength-meter__indicator[_ngcontent-%COMP%]:nth-of-type(4){margin-right:0}"],changeDetection:0}),t})()},"+axt":function(t,e,n){"use strict";n.d(e,"b",(function(){return l})),n.d(e,"a",(function(){return h}));var i=n("zqNl"),r=n("og7C"),s=n("dWHr"),o=n("p5wL");const a={prices:Object(r.b)()},c=Object(i.i)(a,Object(i.k)(s.b,(t,{prices:e})=>Object(o.a)(e,t,"prices")));function l(t,e){return c(t,e)}const u=Object(i.h)("prices"),h=Object(i.j)(u,t=>t.prices)},"+e22":function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("kZht"),r=n("LbKT"),s=n("NxuZ"),o=n("An66");let a=(()=>{class t{get hasChanged(){return 0!==this.value}get negative(){return this.value<0}get change(){return Math.abs(this.value)}get icon(){return this.hasChanged?this.negative?"caret-down":"caret-up":"blank"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["change"]],inputs:{value:"value"},decls:4,vars:6,consts:[["pnlZero","",3,"pnl"],["size","1x","transform","grow-8 down-3.75 right-0.2",3,"icon"]],template:function(t,e){1&t&&(i.Ub(0,"span",0),i.Pb(1,"fa-icon",1),i.Qc(2),i.gc(3,"number"),i.Tb()),2&t&&(i.mc("pnl",e.value),i.Cb(1),i.mc("icon",e.icon),i.Cb(1),i.Sc(" ",i.ic(3,3,e.change||0,"1.1-1"),"%\n"))},directives:[r.a,s.b],pipes:[o.f],styles:["[_nghost-%COMP%]{white-space:nowrap}fa-icon[_ngcontent-%COMP%]{pointer-events:none}"],changeDetection:0}),t})()},"+luX":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("ssKD"),r=n("Nxx2"),s=n("1XZd"),o=n("oznm"),a=function(){function t(e,n){void 0===e?(this.size=0,this.bits=new Int32Array(1)):(this.size=e,this.bits=null==n?t.makeArray(e):n)}return t.prototype.getSize=function(){return this.size},t.prototype.getSizeInBytes=function(){return Math.floor((this.size+7)/8)},t.prototype.ensureCapacity=function(e){if(e>32*this.bits.length){var n=t.makeArray(e);i.default.arraycopy(this.bits,0,n,0,this.bits.length),this.bits=n}},t.prototype.get=function(t){return 0!=(this.bits[Math.floor(t/32)]&1<<(31&t))},t.prototype.set=function(t){this.bits[Math.floor(t/32)]|=1<<(31&t)},t.prototype.flip=function(t){this.bits[Math.floor(t/32)]^=1<<(31&t)},t.prototype.getNextSet=function(t){var e=this.size;if(t>=e)return e;var n=this.bits,i=Math.floor(t/32),s=n[i];s&=~((1<<(31&t))-1);for(var o=n.length;0===s;){if(++i===o)return e;s=n[i]}var a=32*i+r.default.numberOfTrailingZeros(s);return a>e?e:a},t.prototype.getNextUnset=function(t){var e=this.size;if(t>=e)return e;var n=this.bits,i=Math.floor(t/32),s=~n[i];s&=~((1<<(31&t))-1);for(var o=n.length;0===s;){if(++i===o)return e;s=~n[i]}var a=32*i+r.default.numberOfTrailingZeros(s);return a>e?e:a},t.prototype.setBulk=function(t,e){this.bits[Math.floor(t/32)]=e},t.prototype.setRange=function(t,e){if(ethis.size)throw new o.default;if(e!==t){e--;for(var n=Math.floor(t/32),i=Math.floor(e/32),r=this.bits,s=n;s<=i;s++)r[s]|=(2<<(sn?0:31&t))}},t.prototype.clear=function(){for(var t=this.bits.length,e=this.bits,n=0;nthis.size)throw new o.default;if(e===t)return!0;e--;for(var i=Math.floor(t/32),r=Math.floor(e/32),s=this.bits,a=i;a<=r;a++){var c=(2<<(ai?0:31&t))&4294967295;if((s[a]&c)!==(n?c:0))return!1}return!0},t.prototype.appendBit=function(t){this.ensureCapacity(this.size+1),t&&(this.bits[Math.floor(this.size/32)]|=1<<(31&this.size)),this.size++},t.prototype.appendBits=function(t,e){if(e<0||e>32)throw new o.default("Num bits must be between 0 and 32");this.ensureCapacity(this.size+e);for(var n=e;n>0;n--)this.appendBit(1==(t>>n-1&1))},t.prototype.appendBitArray=function(t){var e=t.size;this.ensureCapacity(this.size+e);for(var n=0;n>1&1431655765|(1431655765&s)<<1)>>2&858993459|(858993459&s)<<2)>>4&252645135|(252645135&s)<<4)>>8&16711935|(16711935&s)<<8)>>16&65535|(65535&s)<<16}if(this.size!==32*n){var o=32*n-this.size,a=t[0]>>>o;for(r=1;r>>o}t[n-1]=a}this.bits=t},t.makeArray=function(t){return new Int32Array(Math.floor((t+31)/32))},t.prototype.equals=function(e){return e instanceof t&&this.size===e.size&&s.default.equals(this.bits,e.bits)},t.prototype.hashCode=function(){return 31*this.size+s.default.hashCode(this.bits)},t.prototype.toString=function(){for(var t="",e=0,n=this.size;e{class t{constructor(t,e,n,i){this.translate=t,this.walletNamePipe=e,this.dialog=n,this.inputs=i,this.snapshotDate=Date.now()}ngOnInit(){if(this.dialog){const t=this.walletNamePipe.transform(this.wallet.name);this.dialog.heading="HEADING.FUTURES_WALLET_DETAILS",this.dialog.interpolate={pair:t}}}get needsHeading(){return!this.dialog}}return t.\u0275fac=function(e){return new(e||t)(o.Ob(a.e),o.Ob(s.a),o.Ob(r.a,8),o.Ob(i.a,8))},t.\u0275cmp=o.Ib({type:t,selectors:[["margin-details-list"]],inputs:{displayTooltips:"displayTooltips",wallet:"wallet",details:"details"},decls:41,vars:52,consts:[["class","title","subheading","",4,"ngIf"],[1,"grid-tri-left","gap-xs-m","collateral"],[3,"base"],["body","","bold","","uppercase",""],["subheading",""],["translate","","tooltip","","sbTooltip","TOOLTIP.WALLET_AVAILABLE",3,"sbDisabled","sbDelay"],["mono",""],[3,"content"],["translate","","tooltip","","sbTooltip","TOOLTIP.WALLET_INITIAL",3,"sbDisabled","sbDelay"],["translate","","tooltip","","sbTooltip","TOOLTIP.WALLET_MAINTENANCE",3,"sbDisabled","sbDelay"],["translate","","tooltip","","sbTooltip","TOOLTIP.WALLET_P&L",3,"sbDisabled","sbDelay"],["mono","","pnlZero","",3,"pnl"],["translate","","tooltip","","sbTooltip","TOOLTIP.WALLET_PORTFOLIO_VALUE",3,"sbDisabled","sbDelay"],[4,"ngIf"],["subheading","",1,"title"],["translate","","tooltip","","sbTooltip","TOOLTIP.WALLET_LONG_POSITIONS",3,"sbDisabled","sbDelay"],["translate","","tooltip","","sbTooltip","TOOLTIP.WALLET_SHORT_POSITIONS",3,"sbDisabled","sbDelay"],["translate","","tooltip","","sbTooltip","TOOLTIP.WALLET_LONG_ORDERS",3,"sbDisabled","sbDelay"],["translate","","tooltip","","sbTooltip","TOOLTIP.WALLET_SHORT_ORDERS",3,"sbDisabled","sbDelay"],["body","",1,"snapshot"]],template:function(t,e){1&t&&(o.Oc(0,k,4,8,"h3",0),o.Ub(1,"section",1),o.Pb(2,"market-icon",2),o.Ub(3,"p",3),o.Qc(4),o.gc(5,"translate"),o.Tb(),o.Ub(6,"p",4),o.Qc(7),o.gc(8,"cryptoName"),o.Tb(),o.Tb(),o.Ub(9,"section"),o.Ub(10,"nutritional-info"),o.Ub(11,"label",5),o.Qc(12," LABEL.AVAILABLE "),o.Tb(),o.Ub(13,"strong",6),o.Pb(14,"ghost-trail",7),o.gc(15,"sato"),o.Tb(),o.Tb(),o.Ub(16,"nutritional-info"),o.Ub(17,"label",8),o.Qc(18," LABEL.INITIAL "),o.Tb(),o.Ub(19,"strong",6),o.Pb(20,"ghost-trail",7),o.gc(21,"sato"),o.Tb(),o.Tb(),o.Ub(22,"nutritional-info"),o.Ub(23,"label",9),o.Qc(24," LABEL.MAINTENANCE "),o.Tb(),o.Ub(25,"strong",6),o.Pb(26,"ghost-trail",7),o.gc(27,"sato"),o.Tb(),o.Tb(),o.Ub(28,"nutritional-info"),o.Ub(29,"label",10),o.Qc(30," LABEL.PROFIT_AND_LOSS "),o.Tb(),o.Ub(31,"strong",11),o.Pb(32,"ghost-trail",7),o.gc(33,"sato"),o.Tb(),o.Tb(),o.Ub(34,"nutritional-info"),o.Ub(35,"label",12),o.Qc(36," LABEL.PORTFOLIO_VALUE "),o.Tb(),o.Ub(37,"strong",6),o.Pb(38,"ghost-trail",7),o.gc(39,"sato"),o.Tb(),o.Tb(),o.Oc(40,P,30,43,"ng-container",13),o.Tb()),2&t&&(o.mc("ngIf",e.needsHeading),o.Cb(2),o.Lc("font-size",28,"px"),o.mc("base",e.wallet.currency),o.Cb(2),o.Rc(o.hc(5,23,"LABEL.COLLATERAL")),o.Cb(3),o.Rc(o.hc(8,25,e.wallet.currency)),o.Cb(4),o.mc("sbDisabled",!e.displayTooltips)("sbDelay",o.qc(47,E)),o.Cb(3),o.mc("content",o.jc(15,27,e.wallet.am,e.wallet.asset,"full")),o.Cb(3),o.mc("sbDisabled",!e.displayTooltips)("sbDelay",o.qc(48,E)),o.Cb(3),o.mc("content",o.jc(21,31,e.wallet.im,e.wallet.asset,"full")),o.Cb(3),o.mc("sbDisabled",!e.displayTooltips)("sbDelay",o.qc(49,E)),o.Cb(3),o.mc("content",o.jc(27,35,e.wallet.mm,e.wallet.asset,"full")),o.Cb(3),o.mc("sbDisabled",!e.displayTooltips)("sbDelay",o.qc(50,E)),o.Cb(2),o.mc("pnl",e.wallet.pnl),o.Cb(1),o.mc("content",o.jc(33,39,e.wallet.pnl,e.wallet.asset,"full")),o.Cb(3),o.mc("sbDisabled",!e.displayTooltips)("sbDelay",o.qc(51,E)),o.Cb(3),o.mc("content",o.jc(39,43,e.wallet.pv,e.wallet.asset,"full")),o.Cb(2),o.mc("ngIf",e.details))},directives:[c.n,l.a,u.a,h.a,d.a,p.a,f.a,a.a,b.a,g.a,m.a,v.a,_.a,y.a,O.a,C.a],pipes:[a.d,w.b,T.c,s.a,c.e],styles:[".title[_ngcontent-%COMP%]{margin-bottom:var(--spacing-l)}.collateral[_ngcontent-%COMP%]{margin-bottom:var(--spacing)}.snapshot[_ngcontent-%COMP%]{font-size:1.1em}"],changeDetection:0}),t})()},"/rTw":function(t,e,n){"use strict";n.r(e),n.d(e,"FiatWithdrawalDetailsComponent",(function(){return M}));var i=n("3kIJ"),r=n("zqNl"),s=n("lE9u"),o=n("J/3c"),a=n("uJYd"),c=n("9Ccw"),l=n("bjK4"),u=n("kZht"),h=n("mcff"),d=n("rfPA"),p=n("bBQR"),f=n("An66"),b=n("anSm"),g=n("1etq"),m=n("scAs"),v=n("EmXI"),_=n("Tcl6"),y=n("hCLc"),O=n("DTJn"),C=n("NxuZ"),w=n("B6Vo"),T=n("7J2L"),S=n("aDqW");function k(t,e){if(1&t){const t=u.Vb();u.Ub(0,"sb-table-row"),u.Ub(1,"sb-table-cell",27),u.Qc(2),u.Tb(),u.Ub(3,"sb-table-cell",28),u.Qc(4),u.Tb(),u.Ub(5,"sb-table-cell",28),u.Ub(6,"fa-icon",29),u.bc("click",(function(){u.Ec(t);const n=e.$implicit;return u.fc(4).deleteDetails(n)})),u.Tb(),u.Tb(),u.Tb()}if(2&t){const t=e.$implicit,n=u.fc(4);u.Cb(2),u.Rc(t.beneficiaryName),u.Cb(2),u.Sc(" *** ",n.privateAccountNumber(t.accountNumber)," "),u.Cb(2),u.Lc("color","var(--warn-colour)")}}function E(t,e){if(1&t&&(u.Ub(0,"sb-table"),u.Ub(1,"sb-table-row",23),u.Ub(2,"sb-table-cell"),u.Qc(3),u.gc(4,"translate"),u.Tb(),u.Ub(5,"sb-table-cell",24),u.Qc(6),u.gc(7,"translate"),u.Tb(),u.Pb(8,"sb-table-cell",25),u.Tb(),u.Oc(9,k,7,4,"sb-table-row",26),u.Tb()),2&t){const t=u.fc().ngIf;u.Cb(1),u.mc("header",!0),u.Cb(2),u.Sc(" ",u.hc(4,4,"LABEL.NAME")," "),u.Cb(3),u.Sc(" ",u.hc(7,6,"LABEL.ACCOUNT_NUMBER")," "),u.Cb(3),u.mc("ngForOf",t)}}function x(t,e){if(1&t&&(u.Ub(0,"section",21),u.Oc(1,E,10,8,"sb-table",22),u.Tb()),2&t){const t=e.ngIf;u.Gb("has-margin",t.length),u.Cb(1),u.mc("ngIf",t.length)}}function P(t,e){if(1&t){const t=u.Vb();u.Sb(0),u.Oc(1,x,2,3,"section",4),u.gc(2,"async"),u.Ub(3,"form",5),u.bc("ngSubmit",(function(){return u.Ec(t),u.fc().addDetails()})),u.Ub(4,"h2",6),u.Qc(5),u.gc(6,"translate"),u.Tb(),u.Ub(7,"section",7),u.Ub(8,"section",8),u.Ub(9,"mat-form-field",9),u.Ub(10,"mat-label"),u.Qc(11),u.gc(12,"translate"),u.Tb(),u.Pb(13,"input",10),u.Tb(),u.Ub(14,"mat-form-field",9),u.Ub(15,"mat-label"),u.Qc(16),u.gc(17,"translate"),u.Tb(),u.Pb(18,"input",11),u.Tb(),u.Ub(19,"mat-form-field",9),u.Ub(20,"mat-label"),u.Qc(21),u.gc(22,"translate"),u.Tb(),u.Pb(23,"input",12),u.Tb(),u.Tb(),u.Ub(24,"section",8),u.Ub(25,"mat-form-field",9),u.Ub(26,"mat-label"),u.Qc(27),u.gc(28,"translate"),u.Tb(),u.Pb(29,"input",13),u.Tb(),u.Ub(30,"mat-form-field",9),u.Ub(31,"mat-label"),u.Qc(32),u.gc(33,"translate"),u.Tb(),u.Pb(34,"input",14),u.Tb(),u.Ub(35,"mat-form-field",9),u.Ub(36,"mat-label"),u.Qc(37),u.gc(38,"translate"),u.Tb(),u.Pb(39,"input",15),u.Tb(),u.Tb(),u.Tb(),u.Ub(40,"section",7),u.Ub(41,"mat-form-field",16),u.Ub(42,"mat-label"),u.Qc(43),u.gc(44,"translate"),u.Tb(),u.Pb(45,"input",17),u.Tb(),u.Tb(),u.Ub(46,"div",18),u.Ub(47,"button",19),u.bc("click",(function(){return u.Ec(t),u.fc().closeDialog()})),u.Qc(48),u.gc(49,"translate"),u.Tb(),u.Ub(50,"button",20),u.gc(51,"async"),u.Qc(52),u.gc(53,"translate"),u.Tb(),u.Tb(),u.Tb(),u.Rb()}if(2&t){const t=u.fc(),e=u.Ac(5);u.Cb(1),u.mc("ngIf",u.hc(2,14,t.withdrawalAddresses$))("ngIfElse",e),u.Cb(2),u.mc("formGroup",t.form),u.Cb(2),u.Sc(" ",u.hc(6,16,"HEADING.ADD_WITHDRAWAL_ADDRESS")," "),u.Cb(6),u.Rc(u.hc(12,18,"LABEL.BENEFICIARY_NAME")),u.Cb(5),u.Rc(u.hc(17,20,"LABEL.ACCOUNT_NUMBER")),u.Cb(5),u.Rc(u.hc(22,22,"LABEL.ADDRESS")),u.Cb(6),u.Rc(u.hc(28,24,"LABEL.IBAN")),u.Cb(5),u.Rc(u.hc(33,26,"LABEL.BIC_SWIFT")),u.Cb(5),u.Rc(u.hc(38,28,"LABEL.SORT_CODE")),u.Cb(6),u.Rc(u.hc(44,30,"LABEL.NOTES")),u.Cb(5),u.Sc(" ",u.hc(49,32,"BUTTON.BACK")," "),u.Cb(2),u.mc("disabled",t.form.invalid||u.hc(51,34,t.loading$)),u.Cb(2),u.Sc(" ",u.hc(53,36,"BUTTON.SUBMIT")," ")}}function A(t,e){1&t&&u.Pb(0,"kraken-loading")}function I(t,e){1&t&&(u.Ub(0,"p",30),u.Qc(1,"DIALOG.FIAT_WITHDRAWAL_DETAILS.MFA_REQUIRED"),u.Tb())}let M=(()=>{class t{constructor(t,e,n){this.store=t,this.formBuilder=e,this.dialogRef=n,this.form=this.buildForm(),this.withdrawalAddresses$=this.store.pipe(Object(r.m)(o.d)),this.mfaActive$=this.store.pipe(Object(r.m)(c.a)),this.loading$=this.store.pipe(Object(r.m)(l.m,{filter:[s.b.type,s.p.type,s.l.type]}))}ngOnInit(){this.store.dispatch(Object(s.l)())}closeDialog(){this.dialogRef.close()}buildForm(){return this.formBuilder.group({beneficiaryName:["",[i.x.required]],accountNumber:["",[i.x.required]],sortCode:["",[i.x.required]],iban:["",[i.x.required]],bicSwift:["",[i.x.required]],address:["",[i.x.required]],notes:[""]})}addDetails(){const t=Object(s.b)(Object.assign(Object.assign({},this.form.value),{currencyUnit:"eur"}));this.store.dispatch(Object(a.g)({name:"mfa-confirm",inputs:{action:t}})),this.form.reset(),Object.keys(this.form.controls).forEach(t=>this.form.get(t).setErrors(null))}privateAccountNumber(t){return t.substr(t.length-4)}deleteDetails(t){if(t.uid){const e=Object(s.p)({addressUid:t.uid});this.store.dispatch(Object(a.g)({name:"mfa-confirm",inputs:{action:e}}))}else this.store.dispatch(Object(a.j)({message:"SNACKBAR.MISSING_WITHDRAWAL_UID",class:"warn"}))}}return t.\u0275fac=function(e){return new(e||t)(u.Ob(r.b),u.Ob(i.d),u.Ob(h.d))},t.\u0275cmp=u.Ib({type:t,selectors:[["fiat-withdrawal-details"]],decls:8,vars:7,consts:[["heading","HEADING.MANAGE_WITHDRAWAL_DETAILS",3,"loading"],[4,"ngIf","ngIfElse"],["loading",""],["notifyMfaRequired",""],["class","existing",3,"has-margin",4,"ngIf","ngIfElse"],["body","",3,"formGroup","ngSubmit"],["subheading","","bold",""],[1,"form-row"],[1,"form-col"],["color","accent","appearance","fill"],["matInput","","formControlName","beneficiaryName","autocomplete","off"],["matInput","","formControlName","accountNumber","autocomplete","off"],["matInput","","formControlName","address","autocomplete","off"],["matInput","","formControlName","iban","autocomplete","off"],["matInput","","formControlName","bicSwift","autocomplete","off"],["matInput","","formControlName","sortCode","autocomplete","off"],["color","accent","appearance","fill",1,"notes"],["matInput","","formControlName","notes","autocomplete","off"],[1,"submit"],["mat-button","","body","","type","button",3,"click"],["mat-raised-button","","body","",3,"disabled"],[1,"existing"],[4,"ngIf"],[3,"header"],["whiteSpace","nowrap","align","right"],["align","right"],[4,"ngFor","ngForOf"],["body",""],["body","","align","right"],["icon","close-large","size","2x","sbTooltip","TOOLTIP.REMOVE_BANK_DETAILS",3,"click"],["body","","translate",""]],template:function(t,e){if(1&t&&(u.Ub(0,"pro-dialog",0),u.gc(1,"async"),u.Oc(2,P,54,38,"ng-container",1),u.gc(3,"async"),u.Tb(),u.Oc(4,A,1,0,"ng-template",null,2,u.Pc),u.Oc(6,I,2,0,"ng-template",null,3,u.Pc)),2&t){const t=u.Ac(7);u.mc("loading",u.hc(1,3,e.loading$)),u.Cb(2),u.mc("ngIf",u.hc(3,5,e.mfaActive$))("ngIfElse",t)}},directives:[d.a,p.a,f.n,i.z,i.p,b.a,i.h,g.a,m.a,v.c,v.f,_.b,i.c,i.o,i.g,y.b,O.b,O.c,O.a,f.m,C.b,w.a,T.a,S.a],pipes:[f.b,S.d],styles:[".existing[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{cursor:pointer}form[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin-bottom:var(--spacing-l)}.form-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.form-col[_ngcontent-%COMP%]{display:flex;flex-direction:column}.form-col[_ngcontent-%COMP%]:first-child{margin-right:var(--spacing)}.notes[_ngcontent-%COMP%]{flex:1}.submit[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between}.has-margin[_ngcontent-%COMP%]{margin-bottom:var(--spacing-l)}"],changeDetection:0}),t})()},"/sr6":function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return c}));var i=n("lx5p");n("og7C"),n("VmIW"),n("p5wL"),n("TYVA"),n("CW1w"),Object(i.G)((function(t,e){return(t+e)/2}));var r=n("bCr7");Object(r.f)(1),n("Knqz");var s=function(t){return t[t.SAVE=1]="SAVE",t[t.RESTORE=2]="RESTORE",t[t.CLEAR=3]="CLEAR",t[t.CLEAR_RECT=4]="CLEAR_RECT",t[t.SET_FILL_STYLE=5]="SET_FILL_STYLE",t[t.SET_STROKE_STYLE=6]="SET_STROKE_STYLE",t[t.SET_LINE_WIDTH=7]="SET_LINE_WIDTH",t[t.SET_LINE_DASH=8]="SET_LINE_DASH",t[t.SET_SHADOW=9]="SET_SHADOW",t[t.SET_GCO=10]="SET_GCO",t[t.SET_BASELINE=11]="SET_BASELINE",t[t.SET_FONT=12]="SET_FONT",t[t.SET_ALIGN=13]="SET_ALIGN",t[t.PATH_FILL=14]="PATH_FILL",t[t.PATH_STROKE=15]="PATH_STROKE",t[t.CIRCLE_FILL=16]="CIRCLE_FILL",t[t.TEXT_FILL=17]="TEXT_FILL",t[t.DEBUG_ZERO_SIZE=18]="DEBUG_ZERO_SIZE",t}({});const o={[s.SAVE]:t=>t.save(),[s.RESTORE]:t=>t.restore(),[s.CLEAR]:t=>t.clearRect(0,0,t.canvas.width,t.canvas.height),[s.CLEAR_RECT]:(t,{point:{x:e,y:n},dimensions:{width:i,height:r}})=>{t.clearRect(e,n,i,r)},[s.SET_FILL_STYLE]:(t,e)=>{if("string"==typeof e)t.fillStyle=e;else{const{p0:n,p1:i,steps:r}=e,s=t.createLinearGradient(n.x,n.y,i.x,i.y);for(const[t,e]of r)s.addColorStop(t,e);t.fillStyle=s}},[s.SET_STROKE_STYLE]:(t,e)=>t.strokeStyle=e,[s.SET_LINE_WIDTH]:(t,e)=>t.lineWidth=e,[s.SET_LINE_DASH]:(t,e)=>t.setLineDash(e),[s.SET_SHADOW]:(t,{color:e,size:n,offset:i})=>{t.shadowBlur=n,t.shadowColor=e,t.shadowOffsetX=i.x,t.shadowOffsetY=i.y},[s.SET_GCO]:(t,e)=>t.globalCompositeOperation=e,[s.SET_BASELINE]:(t,e)=>t.textBaseline=e,[s.SET_FONT]:(t,e)=>t.font=e,[s.SET_ALIGN]:(t,e)=>t.textAlign=e,[s.PATH_FILL]:(t,e)=>t.fill(new Path2D(e)),[s.PATH_STROKE]:(t,e)=>t.stroke(new Path2D(e)),[s.CIRCLE_FILL]:(t,{center:{x:e,y:n},r:i})=>{const r=`\n M${e+i},${n}\n A${i},${i},${Math.PI},1,0,${e-i},${n}\n A${i},${i},${Math.PI},1,0,${e+i},${n}\n `;t.fill(new Path2D(r))},[s.TEXT_FILL]:(t,{text:e,pos:n})=>t.fillText(e,n.x,n.y),[s.DEBUG_ZERO_SIZE]:(t,{pos:e})=>{const{width:n,actualBoundingBoxAscent:i}=t.measureText("0");t.fillText(`Zero: ${n.toFixed(2)} x ${i.toFixed(2)}`,e.x,e.y)}};class a{constructor(){this._calls=[]}get size(){return this._calls.length}add(t,e){this._calls.push([t,e])}addBatch(t){this._calls.push(...t)}replaceDrawCalls(t){const e=this._calls;return this._calls=t,e}isolate(t){this.add(s.SAVE,void 0),t(this),this.add(s.RESTORE,void 0)}flushTo(t){if(0!==this._calls.length){for(const e of this._calls)(0,o[e[0]])(t,e[1]);this._calls=[]}}}Object(i.E)(Math.log10,Math.floor),n("Qbn9");const c=Object(i.e)(5e-4,1)},"/vgl":function(t,e,n){"use strict";function i(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,"a",(function(){return i}))},0:function(t,e,n){t.exports=n("zUnb")},"09eR":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("TYVA"),r=n("kZht");let s=(()=>{class t{transform(t){if(null!=t)return Object(i.s)(t.ask,t.bid)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r.Nb({name:"mid",type:t,pure:!0}),t})()},"0FJ2":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("kZht"),r=n("An66");let s=(()=>{class t{constructor(t,e){this.document=t,this.platformId=e,this.documentIsAccessible=Object(r.z)(this.platformId)}check(t){return!!this.documentIsAccessible&&(t=encodeURIComponent(t),this.getCookieRegExp(t).test(this.document.cookie))}get(t){if(this.documentIsAccessible&&this.check(t)){t=encodeURIComponent(t);const e=this.getCookieRegExp(t).exec(this.document.cookie);return this.safeDecodeURIComponent(e[1])}return""}getAll(){if(!this.documentIsAccessible)return{};const t={},e=this.document;return e.cookie&&""!==e.cookie&&e.cookie.split(";").forEach(e=>{const[n,i]=e.split("=");t[this.safeDecodeURIComponent(n.replace(/^ /,""))]=this.safeDecodeURIComponent(i)}),t}set(t,e,n,i,r,s,o="Lax"){if(!this.documentIsAccessible)return;let a=encodeURIComponent(t)+"="+encodeURIComponent(e)+";";n&&(a+="number"==typeof n?"expires="+new Date((new Date).getTime()+1e3*n*60*60*24).toUTCString()+";":"expires="+n.toUTCString()+";"),i&&(a+="path="+i+";"),r&&(a+="domain="+r+";"),!1===s&&"None"===o&&(s=!0,console.warn(`[ngx-cookie-service] Cookie ${t} was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130`)),s&&(a+="secure;"),a+="sameSite="+o+";",this.document.cookie=a}delete(t,e,n,i,r="Lax"){this.documentIsAccessible&&this.set(t,"",new Date("Thu, 01 Jan 1970 00:00:01 GMT"),e,n,i,r)}deleteAll(t,e,n,i="Lax"){if(!this.documentIsAccessible)return;const r=this.getAll();for(const s in r)r.hasOwnProperty(s)&&this.delete(s,t,e,n,i)}getCookieRegExp(t){const e=t.replace(/([\[\]\{\}\(\)\|\=\;\+\?\,\.\*\^\$])/gi,"\\$1");return new RegExp("(?:^"+e+"|;\\s*"+e+")=(.*?)(?:;|$)","g")}safeDecodeURIComponent(t){try{return decodeURIComponent(t)}catch(e){return t}}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(r.d),i.Yb(i.D))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(r.d),Object(i.Yb)(i.D))},token:t,providedIn:"root"}),t})()},"0SRF":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("H88Z"),r=n("LqyJ");e.default=function(){function t(t,e,n,i,r,s,o){this.image=t,this.startX=e,this.startY=n,this.width=i,this.height=r,this.moduleSize=s,this.resultPointCallback=o,this.possibleCenters=[],this.crossCheckStateCount=new Int32Array(3)}return t.prototype.find=function(){for(var t=this.startX,e=this.height,n=t+this.width,i=this.startY+e/2,s=new Int32Array(3),o=this.image,a=0;a=n)return!1;return!0},t.prototype.crossCheckVertical=function(e,n,i,r){var s=this.image,o=s.getHeight(),a=this.crossCheckStateCount;a[0]=0,a[1]=0,a[2]=0;for(var c=e;c>=0&&s.get(n,c)&&a[1]<=i;)a[1]++,c--;if(c<0||a[1]>i)return NaN;for(;c>=0&&!s.get(n,c)&&a[0]<=i;)a[0]++,c--;if(a[0]>i)return NaN;for(c=e+1;ci)return NaN;for(;ci||5*Math.abs(a[0]+a[1]+a[2]-r)>=2*r?NaN:this.foundPatternCross(a)?t.centerFromEnd(a,c):NaN},t.prototype.handlePossibleCenter=function(e,n,r){var s=e[0]+e[1]+e[2],o=t.centerFromEnd(e,r),a=this.crossCheckVertical(n,o,2*e[1],s);if(!isNaN(a)){for(var c=(e[0]+e[1]+e[2])/3,l=0,u=this.possibleCenters;lt.lift(new s)}class s{call(t,e){return e.subscribe(new o(t))}}class o extends i.a{constructor(t){super(t),this.hasPrev=!1}_next(t){let e;this.hasPrev?e=[this.prev,t]:this.hasPrev=!0,this.prev=t,e&&this.destination.next(e)}}},"0YqF":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("zqNl");const r=Object(i.g)("Set Platform",Object(i.l)())},"0goF":function(t,e,n){!function(t){"use strict";var e=Object.assign||function(t){for(var e,n=arguments,i=1,r=arguments.length;i'},t}();window.TradingView=window.TradingView||{},window.TradingView.version=s,t.version=s,t.widget=o,Object.defineProperty(t,"__esModule",{value:!0})}(e)},"0o+O":function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return a}));var i=n("kZht"),r=n("OHEV");const s=["qrcElement"];let o=(()=>{class t{constructor(t,e){this.renderer=t,this.platformId=e,this.colordark="",this.colorlight="",this.level="",this.hidetitle=!1,this.size=0,this.usesvg=!1,this.allowEmptyString=!1,this.qrdata="",this.colorDark="#000000ff",this.colorLight="#ffffffff",this.cssClass="qrcode",this.elementType="canvas",this.errorCorrectionLevel="M",this.margin=4,this.scale=4,this.width=10,""!==this.colordark&&console.warn("[angularx-qrcode] colordark is deprecated, use colorDark."),""!==this.colorlight&&console.warn("[angularx-qrcode] colorlight is deprecated, use colorLight."),""!==this.level&&console.warn("[angularx-qrcode] level is deprecated, use errorCorrectionLevel."),!1!==this.hidetitle&&console.warn("[angularx-qrcode] hidetitle is deprecated."),0!==this.size&&console.warn("[angularx-qrcode] size is deprecated, use `width`. Defaults to 10."),!1!==this.usesvg&&console.warn("[angularx-qrcode] usesvg is deprecated, use [elementType]=\"'svg'\".")}ngOnChanges(){this.createQRCode()}isValidQrCodeText(t){return!1===this.allowEmptyString?!(void 0===t||""===t||"null"===t||null===t):!(void 0===t)}toDataURL(){return new Promise((t,e)=>{Object(r.toDataURL)(this.qrdata,{color:{dark:this.colorDark,light:this.colorLight},errorCorrectionLevel:this.errorCorrectionLevel,margin:this.margin,scale:this.scale,version:this.version,width:this.width},(n,i)=>{n?e(n):t(i)})})}toCanvas(t){return new Promise((e,n)=>{Object(r.toCanvas)(t,this.qrdata,{color:{dark:this.colorDark,light:this.colorLight},errorCorrectionLevel:this.errorCorrectionLevel,margin:this.margin,scale:this.scale,version:this.version,width:this.width},t=>{t?n(t):e("success")})})}toSVG(){return new Promise((t,e)=>{Object(r.toString)(this.qrdata,{color:{dark:this.colorDark,light:this.colorLight},errorCorrectionLevel:this.errorCorrectionLevel,margin:this.margin,scale:this.scale,type:"svg",version:this.version,width:this.width},(n,i)=>{n?e(n):t(i)})})}renderElement(t){for(const e of this.qrcElement.nativeElement.childNodes)this.renderer.removeChild(this.qrcElement.nativeElement,e);this.renderer.appendChild(this.qrcElement.nativeElement,t)}createQRCode(){this.version&&this.version>40?(console.warn("[angularx-qrcode] max value for `version` is 40"),this.version=40):this.version&&this.version<1?(console.warn("[angularx-qrcode]`min value for `version` is 1"),this.version=1):void 0!==this.version&&isNaN(this.version)&&(console.warn("[angularx-qrcode] version should be a number, defaulting to auto."),this.version=void 0);try{if(!this.isValidQrCodeText(this.qrdata))throw new Error('[angularx-qrcode] Field `qrdata` is empty, set`allowEmptyString="true"` to overwrite this behaviour.');let t;switch(this.elementType){case"canvas":t=this.renderer.createElement("canvas"),this.toCanvas(t).then(()=>{this.renderElement(t)}).catch(t=>{console.error("[angularx-qrcode] canvas error: ",t)});break;case"svg":t=this.renderer.createElement("svg","svg"),this.toSVG().then(e=>{t.innerHTML=e,this.renderer.setAttribute(t,"height",""+this.width),this.renderer.setAttribute(t,"width",""+this.width),this.renderElement(t)}).catch(t=>{console.error("[angularx-qrcode] svg error: ",t)});break;case"url":case"img":default:t=this.renderer.createElement("img"),this.toDataURL().then(e=>{t.setAttribute("src",e),this.renderElement(t)}).catch(t=>{console.error("[angularx-qrcode] img/url error: ",t)})}}catch(t){console.error("[angularx-qrcode] Error generating QR Code: ",t.message)}}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.G),i.Ob(i.D))},t.\u0275cmp=i.Ib({type:t,selectors:[["qrcode"]],viewQuery:function(t,e){var n;1&t&&i.Jc(s,!0),2&t&&i.zc(n=i.cc())&&(e.qrcElement=n.first)},inputs:{colordark:"colordark",colorlight:"colorlight",level:"level",hidetitle:"hidetitle",size:"size",usesvg:"usesvg",allowEmptyString:"allowEmptyString",qrdata:"qrdata",colorDark:"colorDark",colorLight:"colorLight",cssClass:"cssClass",elementType:"elementType",errorCorrectionLevel:"errorCorrectionLevel",margin:"margin",scale:"scale",width:"width",version:"version"},features:[i.Ab],decls:2,vars:2,consts:[["qrcElement",""]],template:function(t,e){1&t&&i.Pb(0,"div",null,0),2&t&&i.Eb(e.cssClass)},encapsulation:2,changeDetection:0}),t})(),a=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},providers:[]}),t})()},"0tVE":function(t,e,n){"use strict";n.d(e,"x",(function(){return r})),n.d(e,"l",(function(){return s})),n.d(e,"G",(function(){return o})),n.d(e,"o",(function(){return a})),n.d(e,"J",(function(){return c})),n.d(e,"n",(function(){return l})),n.d(e,"H",(function(){return u})),n.d(e,"y",(function(){return h})),n.d(e,"g",(function(){return d})),n.d(e,"t",(function(){return p})),n.d(e,"b",(function(){return f})),n.d(e,"I",(function(){return b})),n.d(e,"a",(function(){return g})),n.d(e,"D",(function(){return m})),n.d(e,"s",(function(){return v})),n.d(e,"e",(function(){return _})),n.d(e,"d",(function(){return y})),n.d(e,"v",(function(){return O})),n.d(e,"q",(function(){return C})),n.d(e,"h",(function(){return w})),n.d(e,"j",(function(){return T})),n.d(e,"w",(function(){return S})),n.d(e,"z",(function(){return k})),n.d(e,"c",(function(){return E})),n.d(e,"u",(function(){return x})),n.d(e,"k",(function(){return P})),n.d(e,"B",(function(){return A})),n.d(e,"C",(function(){return I})),n.d(e,"f",(function(){return M})),n.d(e,"A",(function(){return D})),n.d(e,"r",(function(){return R})),n.d(e,"E",(function(){return j})),n.d(e,"M",(function(){return L})),n.d(e,"p",(function(){return N})),n.d(e,"K",(function(){return U})),n.d(e,"m",(function(){return F})),n.d(e,"F",(function(){return B})),n.d(e,"i",(function(){return z})),n.d(e,"L",(function(){return V}));var i=n("zqNl");const r=Object(i.g)("Reset User State"),s=Object(i.g)("Fetch User"),o=Object(i.g)("Set User Details",Object(i.l)()),a=Object(i.g)("Get User Summary"),c=Object(i.g)("Set User Summary",Object(i.l)()),l=Object(i.g)("Get User Docs"),u=Object(i.g)("Set User Docs",Object(i.l)()),h=Object(i.g)("Respond to Document",Object(i.l)()),d=Object(i.g)("Check User Terms"),p=Object(i.g)("Process New SSO"),f=Object(i.g)("Activate SSO transfers"),b=Object(i.g)("Set User Limitations",Object(i.l)()),g=Object(i.g)("Accept Terms"),m=Object(i.g)("Set Quantity Units",Object(i.l)()),v=Object(i.g)("Init Frontend Data",Object(i.l)()),_=Object(i.g)("Add Frontend Data",Object(i.l)()),y=Object(i.g)("Add Favorite Market",Object(i.l)()),O=Object(i.g)("Remove Favorite Market",Object(i.l)()),C=Object(i.g)("Get API Keys"),w=Object(i.g)("Create API Key",Object(i.l)()),T=Object(i.g)("Delete API Key",Object(i.l)()),S=Object(i.g)("Reset API Key",Object(i.l)()),k=Object(i.g)("Set API Keys",Object(i.l)()),E=Object(i.g)("Add API Key",Object(i.l)()),x=Object(i.g)("Remove API Key",Object(i.l)()),P=Object(i.g)("Fetch Email Alerts"),A=Object(i.g)("Set Email Alerts",Object(i.l)()),I=Object(i.g)("Set Newsletter",Object(i.l)()),M=Object(i.g)("Change Email Alerts",Object(i.l)()),D=Object(i.g)("Set Assignment Accepted Date",Object(i.l)()),R=Object(i.g)("Get Sub Accounts"),j=Object(i.g)("Set Sub Accounts",Object(i.l)()),L=Object(i.g)("Subaccount Signup",Object(i.l)()),N=Object(i.g)("Fetch Fee Schedule Volumes"),U=Object(i.g)("Set Fee Schedule Volumes",Object(i.l)()),F=Object(i.g)("Fetch User Algos"),B=Object(i.g)("Set User Algos",Object(i.l)()),z=Object(i.g)("Create User Algo",Object(i.l)()),V=Object(i.g)("Sign User Algo",Object(i.l)())},"13Sj":function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s=n("J180"),o=n("uepk");e.BrowserBarcodeReader=function(t){function e(e,n){return void 0===e&&(e=500),t.call(this,new o.default(n),e,n)||this}return r(e,t),e}(s.BrowserCodeReader)},"15qg":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("kZht");let r=(()=>{class t{transform(t){if(null==t)return null;const e=["week","month","quarter","semiannual"].includes(t)?t+"ly":t;return e.substring(0,1).toUpperCase()+e.substring(1)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.Nb({name:"tag",type:t,pure:!0}),t})()},"188V":function(t,e,n){var i=n("67SP");function r(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new i(t*t),this.data.fill(0),this.reservedBit=new i(t*t),this.reservedBit.fill(0)}r.prototype.set=function(t,e,n,i){var r=t*this.size+e;this.data[r]=n,i&&(this.reservedBit[r]=!0)},r.prototype.get=function(t,e){return this.data[t*this.size+e]},r.prototype.xor=function(t,e,n){this.data[t*this.size+e]^=n},r.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]},t.exports=r},"1MAX":function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var i=n("dUuy"),r=n("i9P/"),s=n("sWLk"),o=n("qEfY"),a=n("eY+9"),c=n("/vgl"),l=n("X0qr");const u=t=>{if(t&&"function"==typeof t[o.a])return u=t,t=>{const e=u[o.a]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(Object(a.a)(t))return Object(i.a)(t);if(Object(c.a)(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,r.a),t);if(t&&"function"==typeof t[s.a])return e=t,t=>{const n=e[s.a]();for(;;){let e;try{e=n.next()}catch(i){return t.error(i),t}if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t};{const e=Object(l.a)(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,n,u}},"1OAy":function(t,e,n){"use strict";n.d(e,"j",(function(){return r})),n.d(e,"p",(function(){return s})),n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"i",(function(){return c})),n.d(e,"d",(function(){return l})),n.d(e,"e",(function(){return u})),n.d(e,"m",(function(){return h})),n.d(e,"a",(function(){return d})),n.d(e,"o",(function(){return p})),n.d(e,"f",(function(){return f})),n.d(e,"n",(function(){return b})),n.d(e,"h",(function(){return g})),n.d(e,"l",(function(){return m})),n.d(e,"g",(function(){return v})),n.d(e,"k",(function(){return _}));var i=n("zqNl");const r=Object(i.g)("Reset Private Logs State"),s=Object(i.g)("Set Public Trades",Object(i.l)()),o=Object(i.g)("Add Public Trade",Object(i.l)()),a=Object(i.g)("Add Public Trade Batch",Object(i.l)()),c=Object(i.g)("Open Private Log Feeds"),l=Object(i.g)("Close Private Log Feeds"),u=Object(i.g)("Fetch Private Logs",Object(i.l)()),h=Object(i.g)("Set Private Logs",Object(i.l)()),d=Object(i.g)("Add Private Logs",Object(i.l)()),p=Object(i.g)("Set Private Transfers",Object(i.l)()),f=Object(i.g)("Fetch Private Orders"),b=Object(i.g)("Set Private Orders",Object(i.l)()),g=Object(i.g)("Get Fiat Manual Withdrawals"),m=Object(i.g)("Set Fiat Manual Withdrawals",Object(i.l)()),v=Object(i.g)("Get Fiat Manual Deposits"),_=Object(i.g)("Set Fiat Manual Deposits",Object(i.l)())},"1ONQ":function(t,e,n){"use strict";n.d(e,"f",(function(){return r})),n.d(e,"e",(function(){return s})),n.d(e,"d",(function(){return o})),n.d(e,"h",(function(){return a})),n.d(e,"g",(function(){return c})),n.d(e,"b",(function(){return l})),n.d(e,"i",(function(){return u})),n.d(e,"c",(function(){return h})),n.d(e,"a",(function(){return d}));var i=n("zqNl");const r=Object(i.g)("Reset Assignment State"),s=Object(i.g)("Get Assignment Preferences"),o=Object(i.g)("Get Assignment Preference History"),a=Object(i.g)("Set Assignment Preferences",Object(i.l)()),c=Object(i.g)("Set Assignment Preference History",Object(i.l)()),l=Object(i.g)("Add Participant",Object(i.l)()),u=Object(i.g)("Update Participants",Object(i.l)()),h=Object(i.g)("Delete Participant",Object(i.l)()),d=Object(i.g)("Accept Assignment Terms")},"1VvW":function(t,e,n){"use strict";n.d(e,"a",(function(){return Nt})),n.d(e,"b",(function(){return U})),n.d(e,"c",(function(){return an})),n.d(e,"d",(function(){return Xe})),n.d(e,"e",(function(){return Je})),n.d(e,"f",(function(){return nn})),n.d(e,"g",(function(){return tn})),n.d(e,"h",(function(){return bn})),n.d(e,"i",(function(){return rn}));var i=n("An66"),r=n("kZht"),s=n("ROBh"),o=n("GoAz"),a=n("C05f"),c=n("HM3f"),l=n("IdLP"),u=n("VxHp"),h=n("i9xl"),d=n("6Oco"),p=n("ZTXN"),f=n("YtkY"),b=n("mawV"),g=n("xVbo"),m=n("5uGe"),v=n("PNff");function _(t){return function(e){return 0===t?Object(d.b)():e.lift(new y(t))}}class y{constructor(t){if(this.total=t,this.total<0)throw new v.a}call(t,e){return e.subscribe(new O(t,this.total))}}class O extends m.a{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,i=this.count++;e.length0){const n=this.count>=this.total?this.total:this.count,i=this.ring;for(let r=0;rt.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||i.lengthi[e]===t)}return t===e}function st(t){return Array.prototype.concat.apply([],t)}function ot(t){return t.length>0?t[t.length-1]:null}function at(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function ct(t){return Object(r.tb)(t)?t:Object(r.ub)(t)?Object(o.a)(Promise.resolve(t)):Object(s.a)(t)}function lt(t,e,n){return n?function(t,e){return it(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!pt(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children){if(!e.children[i])return!1;if(!t(e.children[i],n.children[i]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>rt(t[n],e[n]))}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,i,r){if(n.segments.length>r.length)return!!pt(n.segments.slice(0,r.length),r)&&!i.hasChildren();if(n.segments.length===r.length){if(!pt(n.segments,r))return!1;for(const e in i.children){if(!n.children[e])return!1;if(!t(n.children[e],i.children[e]))return!1}return!0}{const t=r.slice(0,n.segments.length),s=r.slice(n.segments.length);return!!pt(n.segments,t)&&!!n.children.primary&&e(n.children.primary,i,s)}}(e,n,n.segments)}(t.root,e.root)}class ut{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=tt(this.queryParams)),this._queryParamMap}toString(){return mt.serialize(this)}}class ht{constructor(t,e){this.segments=t,this.children=e,this.parent=null,at(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return vt(this)}}class dt{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=tt(this.parameters)),this._parameterMap}toString(){return Tt(this)}}function pt(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}function ft(t,e){let n=[];return at(t.children,(t,i)=>{"primary"===i&&(n=n.concat(e(t,i)))}),at(t.children,(t,i)=>{"primary"!==i&&(n=n.concat(e(t,i)))}),n}class bt{}class gt{parse(t){const e=new Pt(t);return new ut(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){return`${"/"+function t(e,n){if(!e.hasChildren())return vt(e);if(n){const n=e.children.primary?t(e.children.primary,!1):"",i=[];return at(e.children,(e,n)=>{"primary"!==n&&i.push(`${n}:${t(e,!1)}`)}),i.length>0?`${n}(${i.join("//")})`:n}{const n=ft(e,(n,i)=>"primary"===i?[t(e.children.primary,!1)]:[`${i}:${t(n,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children.primary?`${vt(e)}/${n[0]}`:`${vt(e)}/(${n.join("//")})`}}(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${yt(e)}=${yt(t)}`).join("&"):`${yt(e)}=${yt(n)}`});return e.length?"?"+e.join("&"):""}(t.queryParams)}${"string"==typeof t.fragment?"#"+encodeURI(t.fragment):""}`}}const mt=new gt;function vt(t){return t.segments.map(t=>Tt(t)).join("/")}function _t(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function yt(t){return _t(t).replace(/%3B/gi,";")}function Ot(t){return _t(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ct(t){return decodeURIComponent(t)}function wt(t){return Ct(t.replace(/\+/g,"%20"))}function Tt(t){return`${Ot(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${Ot(t)}=${Ot(e[t])}`).join("")}`;var e}const St=/^[^\/()?;=#]+/;function kt(t){const e=t.match(St);return e?e[0]:""}const Et=/^[^=?&#]+/,xt=/^[^?&#]+/;class Pt{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ht([],{}):new ht([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n.primary=new ht(t,e)),n}parseSegment(){const t=kt(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new dt(Ct(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=kt(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=kt(this.remaining);t&&(n=t,this.capture(n))}t[Ct(e)]=Ct(n)}parseQueryParam(t){const e=function(t){const e=t.match(Et);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(xt);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const i=wt(e),r=wt(n);if(t.hasOwnProperty(i)){let e=t[i];Array.isArray(e)||(e=[e],t[i]=e),e.push(r)}else t[i]=r}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=kt(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error(`Cannot parse url '${this.url}'`);let r=void 0;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):t&&(r="primary");const s=this.parseChildren();e[r]=1===Object.keys(s).length?s.primary:new ht([],s),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class At{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=It(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=It(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Mt(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return Mt(t,this._root).map(t=>t.value)}}function It(t,e){if(t===e.value)return e;for(const n of e.children){const e=It(t,n);if(e)return e}return null}function Mt(t,e){if(t===e.value)return[e];for(const n of e.children){const i=Mt(t,n);if(i.length)return i.unshift(e),i}return[]}class Dt{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Rt(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class jt extends At{constructor(t,e){super(t),this.snapshot=e,zt(this,t)}toString(){return this.snapshot.toString()}}function Lt(t,e){const n=function(t,e){const n=new Ft([],{},{},"",{},"primary",e,null,t.root,-1,{});return new Bt("",new Dt(n,[]))}(t,e),i=new a.a([new dt("",{})]),r=new a.a({}),s=new a.a({}),o=new a.a({}),c=new a.a(""),l=new Nt(i,r,o,c,s,"primary",e,n.root);return l.snapshot=n.root,new jt(new Dt(l,[]),n)}class Nt{constructor(t,e,n,i,r,s,o,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=r,this.outlet=s,this.component=o,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(Object(f.a)(t=>tt(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(f.a)(t=>tt(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Ut(t,e="emptyOnly"){const n=t.pathFromRoot;let i=0;if("always"!==e)for(i=n.length-1;i>=1;){const t=n[i],e=n[i-1];if(t.routeConfig&&""===t.routeConfig.path)i--;else{if(e.component)break;i--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(i))}class Ft{constructor(t,e,n,i,r,s,o,a,c,l,u){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=r,this.outlet=s,this.component=o,this.routeConfig=a,this._urlSegment=c,this._lastPathIndex=l,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=tt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=tt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Bt extends At{constructor(t,e){super(e),this.url=t,zt(this,e)}toString(){return Vt(this._root)}}function zt(t,e){e.value._routerState=t,e.children.forEach(e=>zt(t,e))}function Vt(t){const e=t.children.length>0?` { ${t.children.map(Vt).join(", ")} } `:"";return`${t.value}${e}`}function $t(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,it(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),it(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;nit(t.parameters,i[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||Ht(t.parent,e.parent))}function qt(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Qt(t,e,n,i,r){let s={};return i&&at(i,(t,e)=>{s[e]=Array.isArray(t)?t.map(t=>""+t):""+t}),new ut(n.root===t?e:function t(e,n,i){const r={};return at(e.children,(e,s)=>{r[s]=e===n?i:t(e,n,i)}),new ht(e.segments,r)}(n.root,t,e),s,r)}class Wt{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&qt(n[0]))throw new Error("Root segment cannot have matrix parameters");const i=n.find(t=>"object"==typeof t&&null!=t&&t.outlets);if(i&&i!==ot(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Gt{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function Yt(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets.primary:""+t}function Kt(t,e,n){if(t||(t=new ht([],{})),0===t.segments.length&&t.hasChildren())return Zt(t,e,n);const i=function(t,e,n){let i=0,r=e;const s={match:!1,pathIndex:0,commandIndex:0};for(;r=n.length)return s;const e=t.segments[r],o=Yt(n[i]),a=i0&&void 0===o)break;if(o&&a&&"object"==typeof a&&void 0===a.outlets){if(!ee(o,a,e))return s;i+=2}else{if(!ee(o,{},e))return s;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(t,e,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex{null!==n&&(r[i]=Kt(t.children[i],e,n))}),at(t.children,(t,e)=>{void 0===i[e]&&(r[e]=t)}),new ht(t.segments,r)}}function Xt(t,e,n){const i=t.segments.slice(0,e);let r=0;for(;r{null!==t&&(e[n]=Xt(new ht([],{}),0,t))}),e}function te(t){const e={};return at(t,(t,n)=>e[n]=""+t),e}function ee(t,e,n){return t==n.path&&it(e,n.parameters)}class ne{constructor(t,e,n,i){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=i}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),$t(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const i=Rt(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,i[e],n),delete i[e]}),at(i,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const i=t.value,r=e?e.value:null;if(i===r)if(i.component){const r=n.getContext(i.outlet);r&&this.deactivateChildRoutes(t,e,r.children)}else this.deactivateChildRoutes(t,e,n);else r&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet);if(n&&n.outlet){const e=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:i})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet);if(n){const i=Rt(t),r=t.value.component?n.children:e;at(i,(t,e)=>this.deactivateRouteAndItsChildren(t,r)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(t,e,n){const i=Rt(e);t.children.forEach(t=>{this.activateRoutes(t,i[t.value.outlet],n),this.forwardEvent(new Z(t.value.snapshot))}),t.children.length&&this.forwardEvent(new Y(t.value.snapshot))}activateRoutes(t,e,n){const i=t.value,s=e?e.value:null;if($t(i),i===s)if(i.component){const r=n.getOrCreateContext(i.outlet);this.activateChildRoutes(t,e,r.children)}else this.activateChildRoutes(t,e,n);else if(i.component){const e=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const t=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),ie(t.route)}else{const n=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(i.snapshot),s=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=i,e.resolver=s,e.outlet?e.outlet.activateWith(i,s):Object(r.X)()&&console&&console.warn&&console.warn(`A router outlet has not been instantiated during routes activation. URL Segment: '${i.snapshot._urlSegment}'`),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function ie(t){$t(t.value),t.children.forEach(ie)}class re{constructor(t,e){this.routes=t,this.module=e}}function se(t){return"function"==typeof t}function oe(t){return t instanceof ut}const ae=Symbol("INITIAL_VALUE");function ce(){return Object(S.a)(t=>Object(c.a)(...t.map(t=>t.pipe(Object(k.a)(1),Object(E.a)(ae)))).pipe(Object(x.a)((t,e)=>{let n=!1;return e.reduce((t,i,r)=>{if(t!==ae)return t;if(i===ae&&(n=!0),!n){if(!1===i)return i;if(r===e.length-1||oe(i))return i}return t},t)},ae),Object(g.a)(t=>t!==ae),Object(f.a)(t=>oe(t)?t:!0===t),Object(k.a)(1)))}class le{constructor(t){this.segmentGroup=t||null}}class ue{constructor(t){this.urlTree=t}}function he(t){return new l.a(e=>e.error(new le(t)))}function de(t){return new l.a(e=>e.error(new ue(t)))}function pe(t){return new l.a(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class fe{constructor(t,e,n,i,s){this.configLoader=e,this.urlSerializer=n,this.urlTree=i,this.config=s,this.allowRedirects=!0,this.ngModule=t.get(r.z)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,"primary").pipe(Object(f.a)(t=>this.createUrlTree(t,this.urlTree.queryParams,this.urlTree.fragment))).pipe(Object(P.a)(t=>{if(t instanceof ue)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof le)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe(Object(f.a)(e=>this.createUrlTree(e,t.queryParams,t.fragment))).pipe(Object(P.a)(t=>{if(t instanceof le)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const i=t.segments.length>0?new ht([],{primary:t}):t;return new ut(i,e,n)}expandSegmentGroup(t,e,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(Object(f.a)(t=>new ht([],t))):this.expandSegment(t,n,e,n.segments,i,!0)}expandChildren(t,e,n){return function(t,e){if(0===Object.keys(t).length)return Object(s.a)({});const n=[],i=[],r={};return at(t,(t,s)=>{const o=e(s,t).pipe(Object(f.a)(t=>r[s]=t));"primary"===s?n.push(o):i.push(o)}),s.a.apply(null,n.concat(i)).pipe(Object(b.a)(),function(t,e){const n=arguments.length>=2;return i=>i.pipe(t?Object(g.a)((e,n)=>t(e,n,i)):T.a,_(1),n?Object(w.a)(e):Object(C.a)(()=>new u.a))}(),Object(f.a)(()=>r))}(n.children,(n,i)=>this.expandSegmentGroup(t,e,i,n))}expandSegment(t,e,n,i,r,o){return Object(s.a)(...n).pipe(Object(f.a)(a=>this.expandSegmentAgainstRoute(t,e,n,a,i,r,o).pipe(Object(P.a)(t=>{if(t instanceof le)return Object(s.a)(null);throw t}))),Object(b.a)(),Object(A.a)(t=>!!t),Object(P.a)((t,n)=>{if(t instanceof u.a||"EmptyError"===t.name){if(this.noLeftoversInUrl(e,i,r))return Object(s.a)(new ht([],{}));throw new le(e)}throw t}))}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}expandSegmentAgainstRoute(t,e,n,i,r,s,o){return ve(i)!==s?he(e):void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,r):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,i,r,s):he(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,i,r,s){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,i,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,r,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,i){const r=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?de(r):this.lineralizeSegments(n,r).pipe(Object(I.a)(n=>{const r=new ht(n,{});return this.expandSegment(t,r,e,n,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,r,s){const{matched:o,consumedSegments:a,lastChild:c,positionalParamSegments:l}=be(e,i,r);if(!o)return he(e);const u=this.applyRedirectCommands(a,i.redirectTo,l);return i.redirectTo.startsWith("/")?de(u):this.lineralizeSegments(i,u).pipe(Object(I.a)(i=>this.expandSegment(t,e,n,i.concat(r.slice(c)),s,!1)))}matchSegmentAgainstRoute(t,e,n,i){if("**"===n.path)return n.loadChildren?Object(h.a)(()=>this.configLoader.load(t.injector,n).pipe(Object(f.a)(t=>(n._loadedConfig=t,new ht(i,{}))))):Object(s.a)(new ht(i,{}));const{matched:r,consumedSegments:o,lastChild:a}=be(e,n,i);if(!r)return he(e);const c=i.slice(a);return this.getChildConfig(t,n,i).pipe(Object(I.a)(t=>{const n=t.module,i=t.routes,{segmentGroup:r,slicedSegments:a}=function(t,e,n,i){return n.length>0&&function(t,e,n){return n.some(n=>me(t,e,n)&&"primary"!==ve(n))}(t,n,i)?{segmentGroup:ge(new ht(e,function(t,e){const n={};n.primary=e;for(const i of t)""===i.path&&"primary"!==ve(i)&&(n[ve(i)]=new ht([],{}));return n}(i,new ht(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return n.some(n=>me(t,e,n))}(t,n,i)?{segmentGroup:ge(new ht(t.segments,function(t,e,n,i){const r={};for(const s of n)me(t,e,s)&&!i[ve(s)]&&(r[ve(s)]=new ht([],{}));return Object.assign(Object.assign({},i),r)}(t,n,i,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,o,c,i);return 0===a.length&&r.hasChildren()?this.expandChildren(n,i,r).pipe(Object(f.a)(t=>new ht(o,t))):0===i.length&&0===a.length?Object(s.a)(new ht(o,{})):this.expandSegment(n,r,i,a,"primary",!0).pipe(Object(f.a)(t=>new ht(o.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?Object(s.a)(new re(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Object(s.a)(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(Object(I.a)(n=>n?this.configLoader.load(t.injector,e).pipe(Object(f.a)(t=>(e._loadedConfig=t,t))):function(t){return new l.a(e=>e.error(et(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Object(s.a)(new re([],t))}runCanLoadGuards(t,e,n){const i=e.canLoad;if(!i||0===i.length)return Object(s.a)(!0);const r=i.map(i=>{const r=t.get(i);let s;if(function(t){return t&&se(t.canLoad)}(r))s=r.canLoad(e,n);else{if(!se(r))throw new Error("Invalid CanLoad guard");s=r(e,n)}return ct(s)});return Object(s.a)(r).pipe(ce(),Object(M.a)(t=>{if(!oe(t))return;const e=et(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),Object(f.a)(t=>!0===t))}lineralizeSegments(t,e){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return Object(s.a)(n);if(i.numberOfChildren>1||!i.children.primary)return pe(t.redirectTo);i=i.children.primary}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,i){const r=this.createSegmentGroup(t,e.root,n,i);return new ut(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return at(t,(t,i)=>{if("string"==typeof t&&t.startsWith(":")){const r=t.substring(1);n[i]=e[r]}else n[i]=t}),n}createSegmentGroup(t,e,n,i){const r=this.createSegments(t,e.segments,n,i);let s={};return at(e.children,(e,r)=>{s[r]=this.createSegmentGroup(t,e,n,i)}),new ht(r,s)}createSegments(t,e,n,i){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,i):this.findOrReturn(e,n))}findPosParam(t,e,n){const i=n[e.path.substring(1)];if(!i)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return i}findOrReturn(t,e){let n=0;for(const i of e){if(i.path===t.path)return e.splice(n),i;n++}return t}}function be(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const i=(e.matcher||nt)(n,t,e);return i?{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,positionalParamSegments:i.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function ge(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new ht(t.segments.concat(e.segments),e.children)}return t}function me(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function ve(t){return t.outlet||"primary"}class _e{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class ye{constructor(t,e){this.component=t,this.route=e}}function Oe(t,e,n){const i=t._root;return function t(e,n,i,r,s={canDeactivateChecks:[],canActivateChecks:[]}){const o=Rt(n);return e.children.forEach(e=>{!function(e,n,i,r,s={canDeactivateChecks:[],canActivateChecks:[]}){const o=e.value,a=n?n.value:null,c=i?i.getContext(e.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){const l=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!pt(t.url,e.url);case"pathParamsOrQueryParamsChange":return!pt(t.url,e.url)||!it(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ht(t,e)||!it(t.queryParams,e.queryParams);case"paramsChange":default:return!Ht(t,e)}}(a,o,o.routeConfig.runGuardsAndResolvers);l?s.canActivateChecks.push(new _e(r)):(o.data=a.data,o._resolvedData=a._resolvedData),t(e,n,o.component?c?c.children:null:i,r,s),l&&s.canDeactivateChecks.push(new ye(c&&c.outlet&&c.outlet.component||null,a))}else a&&we(n,c,s),s.canActivateChecks.push(new _e(r)),t(e,null,o.component?c?c.children:null:i,r,s)}(e,o[e.value.outlet],i,r.concat([e.value]),s),delete o[e.value.outlet]}),at(o,(t,e)=>we(t,i.getContext(e),s)),s}(i,e?e._root:null,n,[i.value])}function Ce(t,e,n){const i=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(i?i.module.injector:n).get(t)}function we(t,e,n){const i=Rt(t),r=t.value;at(i,(t,i)=>{we(t,r.component?e?e.children.getContext(i):null:e,n)}),n.canDeactivateChecks.push(new ye(r.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,r))}function Te(t,e){return null!==t&&e&&e(new K(t)),Object(s.a)(!0)}function Se(t,e){return null!==t&&e&&e(new G(t)),Object(s.a)(!0)}function ke(t,e,n){const i=e.routeConfig?e.routeConfig.canActivate:null;if(!i||0===i.length)return Object(s.a)(!0);const r=i.map(i=>Object(h.a)(()=>{const r=Ce(i,e,n);let s;if(function(t){return t&&se(t.canActivate)}(r))s=ct(r.canActivate(e,t));else{if(!se(r))throw new Error("Invalid CanActivate guard");s=ct(r(e,t))}return s.pipe(Object(A.a)())}));return Object(s.a)(r).pipe(ce())}function Ee(t,e,n){const i=e[e.length-1],r=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>Object(h.a)(()=>{const r=e.guards.map(r=>{const s=Ce(r,e.node,n);let o;if(function(t){return t&&se(t.canActivateChild)}(s))o=ct(s.canActivateChild(i,t));else{if(!se(s))throw new Error("Invalid CanActivateChild guard");o=ct(s(i,t))}return o.pipe(Object(A.a)())});return Object(s.a)(r).pipe(ce())}));return Object(s.a)(r).pipe(ce())}class xe{}class Pe{constructor(t,e,n,i,r,s){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=i,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=s}recognize(){try{const t=Me(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),n=new Ft([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),i=new Dt(n,e),r=new Bt(this.url,i);return this.inheritParamsAndData(r._root),Object(s.a)(r)}catch(t){return new l.a(e=>e.error(t))}}inheritParamsAndData(t){const e=t.value,n=Ut(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}processChildren(t,e){const n=ft(e,(e,n)=>this.processSegmentGroup(t,e,n));return function(t){const e={};t.forEach(t=>{const n=e[t.value.outlet];if(n){const e=n.url.map(t=>t.toString()).join("/"),i=t.value.url.map(t=>t.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${e}' and '${i}'.`)}e[t.value.outlet]=t.value})}(n),n.sort((t,e)=>"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)),n}processSegment(t,e,n,i){for(const s of t)try{return this.processSegmentAgainstRoute(s,e,n,i)}catch(r){if(!(r instanceof xe))throw r}if(this.noLeftoversInUrl(e,n,i))return[];throw new xe}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}processSegmentAgainstRoute(t,e,n,i){if(t.redirectTo)throw new xe;if((t.outlet||"primary")!==i)throw new xe;let r,s=[],o=[];if("**"===t.path){const s=n.length>0?ot(n).parameters:{};r=new Ft(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,je(t),i,t.component,t,Ae(e),Ie(e)+n.length,Le(t))}else{const a=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new xe;return{consumedSegments:[],lastChild:0,parameters:{}}}const i=(e.matcher||nt)(n,t,e);if(!i)throw new xe;const r={};at(i.posParams,(t,e)=>{r[e]=t.path});const s=i.consumed.length>0?Object.assign(Object.assign({},r),i.consumed[i.consumed.length-1].parameters):r;return{consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:s}}(e,t,n);s=a.consumedSegments,o=n.slice(a.lastChild),r=new Ft(s,a.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,je(t),i,t.component,t,Ae(e),Ie(e)+s.length,Le(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:c,slicedSegments:l}=Me(e,s,o,a,this.relativeLinkResolution);if(0===l.length&&c.hasChildren()){const t=this.processChildren(a,c);return[new Dt(r,t)]}if(0===a.length&&0===l.length)return[new Dt(r,[])];const u=this.processSegment(a,c,l,"primary");return[new Dt(r,u)]}}function Ae(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function Ie(t){let e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function Me(t,e,n,i,r){if(n.length>0&&function(t,e,n){return n.some(n=>De(t,e,n)&&"primary"!==Re(n))}(t,n,i)){const r=new ht(e,function(t,e,n,i){const r={};r.primary=i,i._sourceSegment=t,i._segmentIndexShift=e.length;for(const s of n)if(""===s.path&&"primary"!==Re(s)){const n=new ht([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,r[Re(s)]=n}return r}(t,e,i,new ht(n,t.children)));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(n=>De(t,e,n))}(t,n,i)){const s=new ht(t.segments,function(t,e,n,i,r,s){const o={};for(const a of i)if(De(t,n,a)&&!r[Re(a)]){const n=new ht([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===s?t.segments.length:e.length,o[Re(a)]=n}return Object.assign(Object.assign({},r),o)}(t,e,n,i,t.children,r));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}const s=new ht(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}function De(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Re(t){return t.outlet||"primary"}function je(t){return t.data||{}}function Le(t){return t.resolve||{}}function Ne(t){return function(e){return e.pipe(Object(S.a)(e=>{const n=t(e);return n?Object(o.a)(n).pipe(Object(f.a)(()=>e)):Object(o.a)([e])}))}}class Ue extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}let Fe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Ib({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&r.Pb(0,"router-outlet")},directives:function(){return[rn]},encapsulation:2}),t})();function Be(t,e=""){for(let n=0;n{this.onLoadEndListener&&this.onLoadEndListener(e);const i=n.create(t);return new re(st(i.injector.get(He)).map($e),i)}))}loadModuleFactory(t){return"string"==typeof t?Object(o.a)(this.loader.load(t)):ct(t()).pipe(Object(I.a)(t=>t instanceof r.x?Object(s.a)(t):Object(o.a)(this.compiler.compileModuleAsync(t))))}}class Qe{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new We,this.attachRef=null}}class We{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new Qe,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class Ge{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function Ye(t){throw t}function Ke(t,e,n){return e.parse("/")}function Ze(t,e){return Object(s.a)(null)}let Xe=(()=>{class t{constructor(t,e,n,i,s,o,c,l){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=i,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new p.b,this.errorHandler=Ye,this.malformedUriErrorHandler=Ke,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Ze,afterPreactivation:Ze},this.urlHandlingStrategy=new Ge,this.routeReuseStrategy=new Ue,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=s.get(r.z),this.console=s.get(r.ab);const u=s.get(r.B);this.isNgZoneEnabled=u instanceof r.B,this.resetConfig(l),this.currentUrlTree=new ut(new ht([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new qe(o,c,t=>this.triggerEvent(new Q(t)),t=>this.triggerEvent(new W(t))),this.routerState=Lt(this.currentUrlTree,this.rootComponentType),this.transitions=new a.a({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(t){const e=this.events;return t.pipe(Object(g.a)(t=>0!==t.id),Object(f.a)(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),Object(S.a)(t=>{let n=!1,i=!1;return Object(s.a)(t).pipe(Object(M.a)(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Object(S.a)(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Object(s.a)(t).pipe(Object(S.a)(t=>{const n=this.transitions.getValue();return e.next(new N(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?d.a:[t]}),Object(S.a)(t=>Promise.resolve(t)),(i=this.ngModule.injector,r=this.configLoader,o=this.urlSerializer,a=this.config,function(t){return t.pipe(Object(S.a)(t=>function(t,e,n,i,r){return new fe(t,e,n,i,r).apply()}(i,r,o,t.extractedUrl,a).pipe(Object(f.a)(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e})))))}),Object(M.a)(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,i,r){return function(s){return s.pipe(Object(I.a)(s=>function(t,e,n,i,r="emptyOnly",s="legacy"){return new Pe(t,e,n,i,r,s).recognize()}(t,e,s.urlAfterRedirects,n(s.urlAfterRedirects),i,r).pipe(Object(f.a)(t=>Object.assign(Object.assign({},s),{targetSnapshot:t})))))}}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),Object(M.a)(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),Object(M.a)(t=>{const n=new z(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));var i,r,o,a;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:i,source:r,restoredState:o,extras:a}=t,c=new N(n,this.serializeUrl(i),r,o);e.next(c);const l=Lt(i,this.rootComponentType).snapshot;return Object(s.a)(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:i,extras:Object.assign(Object.assign({},a),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),d.a}),Ne(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:r,extras:{skipLocationChange:s,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:r,skipLocationChange:!!s,replaceUrl:!!o})}),Object(M.a)(t=>{const e=new V(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Object(f.a)(t=>Object.assign(Object.assign({},t),{guards:Oe(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return function(n){return n.pipe(Object(I.a)(n=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:a,canDeactivateChecks:c}}=n;return 0===c.length&&0===a.length?Object(s.a)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,i){return Object(o.a)(t).pipe(Object(I.a)(t=>function(t,e,n,i,r){const o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||0===o.length)return Object(s.a)(!0);const a=o.map(s=>{const o=Ce(s,e,r);let a;if(function(t){return t&&se(t.canDeactivate)}(o))a=ct(o.canDeactivate(t,e,n,i));else{if(!se(o))throw new Error("Invalid CanDeactivate guard");a=ct(o(t,e,n,i))}return a.pipe(Object(A.a)())});return Object(s.a)(a).pipe(ce())}(t.component,t.route,n,e,i)),Object(A.a)(t=>!0!==t,!0))}(c,i,r,t).pipe(Object(I.a)(n=>n&&"boolean"==typeof n?function(t,e,n,i){return Object(o.a)(e).pipe(Object(D.a)(e=>Object(o.a)([Se(e.route.parent,i),Te(e.route,i),Ee(t,e.path,n),ke(t,e.route,n)]).pipe(Object(b.a)(),Object(A.a)(t=>!0!==t,!0))),Object(A.a)(t=>!0!==t,!0))}(i,a,t,e):Object(s.a)(n)),Object(f.a)(t=>Object.assign(Object.assign({},n),{guardsResult:t})))}))}}(this.ngModule.injector,t=>this.triggerEvent(t)),Object(M.a)(t=>{if(oe(t.guardsResult)){const e=et(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}}),Object(M.a)(t=>{const e=new $(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Object(g.a)(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const n=new F(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(n),t.resolve(!1),!1}return!0}),Ne(t=>{if(t.guards.canActivateChecks.length)return Object(s.a)(t).pipe(Object(M.a)(t=>{const e=new H(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Object(S.a)(t=>{let n=!1;return Object(s.a)(t).pipe((i=this.paramsInheritanceStrategy,r=this.ngModule.injector,function(t){return t.pipe(Object(I.a)(t=>{const{targetSnapshot:e,guards:{canActivateChecks:n}}=t;if(!n.length)return Object(s.a)(t);let a=0;return Object(o.a)(n).pipe(Object(D.a)(t=>function(t,e,n,i){return function(t,e,n,i){const r=Object.keys(t);if(0===r.length)return Object(s.a)({});const a={};return Object(o.a)(r).pipe(Object(I.a)(r=>function(t,e,n,i){const r=Ce(t,e,i);return ct(r.resolve?r.resolve(e,n):r(e,n))}(t[r],e,n,i).pipe(Object(M.a)(t=>{a[r]=t}))),_(1),Object(I.a)(()=>Object.keys(a).length===r.length?Object(s.a)(a):d.a))}(t._resolve,t,e,i).pipe(Object(f.a)(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Ut(t,n).resolve),null)))}(t.route,e,i,r)),Object(M.a)(()=>a++),_(1),Object(I.a)(e=>a===n.length?Object(s.a)(t):d.a))}))}),Object(M.a)({next:()=>n=!0,complete:()=>{if(!n){const n=new F(t.id,this.serializeUrl(t.extractedUrl),"At least one route resolver didn't emit any value.");e.next(n),t.resolve(!1)}}}));var i,r}),Object(M.a)(t=>{const e=new q(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),Ne(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:r,extras:{skipLocationChange:s,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:r,skipLocationChange:!!s,replaceUrl:!!o})}),Object(f.a)(t=>{const e=function(t,e,n){const i=function t(e,n,i){if(i&&e.shouldReuseRoute(n.value,i.value.snapshot)){const r=i.value;r._futureSnapshot=n.value;const s=function(e,n,i){return n.children.map(n=>{for(const r of i.children)if(e.shouldReuseRoute(r.value.snapshot,n.value))return t(e,n,r);return t(e,n)})}(e,n,i);return new Dt(r,s)}{const i=e.retrieve(n.value);if(i){const t=i.route;return function t(e,n){if(e.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=e.value;for(let i=0;it(e,n));return new Dt(i,s)}}var r}(t,e._root,n?n._root:void 0);return new jt(i,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),Object(M.a)(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),(r=this.rootContexts,c=this.routeReuseStrategy,l=t=>this.triggerEvent(t),Object(f.a)(t=>(new ne(c,t.targetRouterState,t.currentRouterState,l).activate(r),t))),Object(M.a)({next(){n=!0},complete(){n=!0}}),Object(R.a)(()=>{if(!n&&!i){this.resetUrlToCurrentUrlTree();const n=new F(t.id,this.serializeUrl(t.extractedUrl),`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`);e.next(n),t.resolve(!1)}this.currentNavigation=null}),Object(P.a)(n=>{if(i=!0,(r=n)&&r.ngNavigationCancelingError){const i=oe(n.url);i||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const r=new F(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(r),i?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);return this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const i=new B(t.id,this.serializeUrl(t.extractedUrl),n);e.next(i);try{t.resolve(this.errorHandler(n))}catch(s){t.reject(s)}}var r;return d.a}));var r,c,l}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout(()=>{const{source:t,state:n,urlTree:i}=e,r={replaceUrl:!0};if(n){const t=Object.assign({},n);delete t.navigationId,0!==Object.keys(t).length&&(r.state=t)}this.scheduleNavigation(i,t,n,r)},0),this.lastLocationChangeInfo=e}))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const n=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&n&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){Be(t),this.config=t.map($e),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0)}createUrlTree(t,e={}){const{relativeTo:n,queryParams:i,fragment:s,preserveQueryParams:o,queryParamsHandling:a,preserveFragment:c}=e;Object(r.X)()&&o&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");const l=n||this.routerState.root,u=c?this.currentUrlTree.fragment:s;let h=null;if(a)switch(a){case"merge":h=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=i||null}else h=o?this.currentUrlTree.queryParams:i||null;return null!==h&&(h=this.removeEmptyProps(h)),function(t,e,n,i,r){if(0===n.length)return Qt(e.root,e.root,e,i,r);const s=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Wt(!0,0,t);let e=0,n=!1;const i=t.reduce((t,i,r)=>{if("object"==typeof i&&null!=i){if(i.outlets){const e={};return at(i.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(i.segmentPath)return[...t,i.segmentPath]}return"string"!=typeof i?[...t,i]:0===r?(i.split("/").forEach((i,r)=>{0==r&&"."===i||(0==r&&""===i?n=!0:".."===i?e++:""!=i&&t.push(i))}),t):[...t,i]},[]);return new Wt(n,e,i)}(n);if(s.toRoot())return Qt(e.root,new ht([],{}),e,i,r);const o=function(t,e,n){if(t.isAbsolute)return new Gt(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const t=n.snapshot._urlSegment;return new Gt(t,t===e.root,0)}const i=qt(t.commands[0])?0:1;return function(t,e,n){let i=t,r=e,s=n;for(;s>r;){if(s-=r,i=i.parent,!i)throw new Error("Invalid number of '../'");r=i.segments.length}return new Gt(i,!1,r-s)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(s,e,t),a=o.processChildren?Zt(o.segmentGroup,o.index,s.commands):Kt(o.segmentGroup,o.index,s.commands);return Qt(o.segmentGroup,a,e,i,r)}(l,this.currentUrlTree,t,h,u)}navigateByUrl(t,e={skipLocationChange:!1}){Object(r.X)()&&this.isNgZoneEnabled&&!r.B.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");const n=oe(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const i=t[n];return null!=i&&(e[n]=i),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.events.next(new U(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,n,i,r){const s=this.getTransition(),o="imperative"!==e&&"imperative"===(null==s?void 0:s.source),a=(this.lastSuccessfulId===s.id||this.currentNavigation?s.rawUrl:s.urlAfterRedirects).toString()===t.toString();if(o&&a)return Promise.resolve(!0);let c,l,u;r?(c=r.resolve,l=r.reject,u=r.promise):u=new Promise((t,e)=>{c=t,l=e});const h=++this.navigationId;return this.setTransition({id:h,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:i,resolve:c,reject:l,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,n,i){const r=this.urlSerializer.serialize(t);i=i||{},this.location.isCurrentPathEqualTo(r)||e?this.location.replaceState(r,"",Object.assign(Object.assign({},i),{navigationId:n})):this.location.go(r,"",Object.assign(Object.assign({},i),{navigationId:n}))}resetStateAndUrl(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return t.\u0275fac=function(e){return new(e||t)(r.Yb(r.P),r.Yb(bt),r.Yb(We),r.Yb(i.j),r.Yb(r.t),r.Yb(r.y),r.Yb(r.i),r.Yb(void 0))},t.\u0275prov=r.Kb({token:t,factory:t.\u0275fac}),t})(),Je=(()=>{class t{constructor(t,e,n,i,r){this.router=t,this.route=e,this.commands=[],this.onChanges=new p.b,null==n&&i.setAttribute(r.nativeElement,"tabindex","0")}ngOnChanges(t){this.onChanges.next(this)}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){Object(r.X)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=t}onClick(){const t={skipLocationChange:en(this.skipLocationChange),replaceUrl:en(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:en(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:en(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(r.Ob(Xe),r.Ob(Nt),r.Zb("tabindex"),r.Ob(r.G),r.Ob(r.l))},t.\u0275dir=r.Jb({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&r.bc("click",(function(){return e.onClick()}))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[r.Ab]}),t})(),tn=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.onChanges=new p.b,this.subscription=t.events.subscribe(t=>{t instanceof U&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){Object(r.X)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=t}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,n,i,r){if(0!==t||e||n||i||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const s={skipLocationChange:en(this.skipLocationChange),replaceUrl:en(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,s),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:en(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:en(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(r.Ob(Xe),r.Ob(Nt),r.Ob(i.k))},t.\u0275dir=r.Jb({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&r.bc("click",(function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)})),2&t&&(r.Xb("href",e.href,r.Gc),r.Db("target",e.target))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[r.Ab]}),t})();function en(t){return""===t||!!t}let nn=(()=>{class t{constructor(t,e,n,i,r,s){this.router=t,this.element=e,this.renderer=n,this.cdr=i,this.link=r,this.linkWithHref=s,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.routerEventsSubscription=t.events.subscribe(t=>{t instanceof U&&this.update()})}ngAfterContentInit(){Object(o.a)([this.links.changes,this.linksWithHrefs.changes,Object(s.a)(null)]).pipe(Object(j.a)()).subscribe(t=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var t;null===(t=this.linkInputChangesSubscription)||void 0===t||t.unsubscribe();const e=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(t=>!!t).map(t=>t.onChanges);this.linkInputChangesSubscription=Object(o.a)(e).pipe(Object(j.a)()).subscribe(t=>{this.isActive!==this.isLinkActive(this.router)(t)&&this.update()})}set routerLinkActive(t){const e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(t=>!!t)}ngOnChanges(t){this.update()}ngOnDestroy(){var t;this.routerEventsSubscription.unsubscribe(),null===(t=this.linkInputChangesSubscription)||void 0===t||t.unsubscribe()}update(){this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(()=>{const t=this.hasActiveLinks();this.isActive!==t&&(this.isActive=t,this.cdr.markForCheck(),this.classes.forEach(e=>{t?this.renderer.addClass(this.element.nativeElement,e):this.renderer.removeClass(this.element.nativeElement,e)}))})}isLinkActive(t){return e=>t.isActive(e.urlTree,this.routerLinkActiveOptions.exact)}hasActiveLinks(){const t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.linkWithHref&&t(this.linkWithHref)||this.links.some(t)||this.linksWithHrefs.some(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Ob(Xe),r.Ob(r.l),r.Ob(r.G),r.Ob(r.h),r.Ob(Je,8),r.Ob(tn,8))},t.\u0275dir=r.Jb({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(t,e,n){var i;1&t&&(r.Hb(n,Je,!0),r.Hb(n,tn,!0)),2&t&&(r.zc(i=r.cc())&&(e.links=i),r.zc(i=r.cc())&&(e.linksWithHrefs=i))},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[r.Ab]}),t})(),rn=(()=>{class t{constructor(t,e,n,i,s){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new r.o,this.deactivateEvents=new r.o,this.name=i||"primary",t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,r=new sn(t,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,r),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(r.Ob(We),r.Ob(r.R),r.Ob(r.j),r.Zb("name"),r.Ob(r.h))},t.\u0275dir=r.Jb({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class sn{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===Nt?this.route:t===We?this.childContexts:this.parent.get(t,e)}}class on{}class an{preload(t,e){return e().pipe(Object(P.a)(()=>Object(s.a)(null)))}}class cn{preload(t,e){return Object(s.a)(null)}}let ln=(()=>{class t{constructor(t,e,n,i,r){this.router=t,this.injector=i,this.preloadingStrategy=r,this.loader=new qe(e,n,e=>t.triggerEvent(new Q(e)),e=>t.triggerEvent(new W(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Object(g.a)(t=>t instanceof U),Object(D.a)(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(r.z);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const i of e)if(i.loadChildren&&!i.canLoad&&i._loadedConfig){const t=i._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else i.loadChildren&&!i.canLoad?n.push(this.preloadConfig(t,i)):i.children&&n.push(this.processRoutes(t,i.children));return Object(o.a)(n).pipe(Object(j.a)(),Object(f.a)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>this.loader.load(t.injector,e).pipe(Object(I.a)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(r.Yb(Xe),r.Yb(r.y),r.Yb(r.i),r.Yb(r.t),r.Yb(on))},t.\u0275prov=r.Kb({token:t,factory:t.\u0275fac}),t})(),un=(()=>{class t{constructor(t,e,n={}){this.router=t,this.viewportScroller=e,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof N?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof U&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof X&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new X(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(r.Yb(Xe),r.Yb(i.y),r.Yb(void 0))},t.\u0275prov=r.Kb({token:t,factory:t.\u0275fac}),t})();const hn=new r.s("ROUTER_CONFIGURATION"),dn=new r.s("ROUTER_FORROOT_GUARD"),pn=[i.j,{provide:bt,useClass:gt},{provide:Xe,useFactory:function(t,e,n,r,s,o,a,c={},l,u){const h=new Xe(null,t,e,n,r,s,o,st(a));if(l&&(h.urlHandlingStrategy=l),u&&(h.routeReuseStrategy=u),c.errorHandler&&(h.errorHandler=c.errorHandler),c.malformedUriErrorHandler&&(h.malformedUriErrorHandler=c.malformedUriErrorHandler),c.enableTracing){const t=Object(i.C)();h.events.subscribe(e=>{t.logGroup("Router Event: "+e.constructor.name),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return c.onSameUrlNavigation&&(h.onSameUrlNavigation=c.onSameUrlNavigation),c.paramsInheritanceStrategy&&(h.paramsInheritanceStrategy=c.paramsInheritanceStrategy),c.urlUpdateStrategy&&(h.urlUpdateStrategy=c.urlUpdateStrategy),c.relativeLinkResolution&&(h.relativeLinkResolution=c.relativeLinkResolution),h},deps:[bt,We,i.j,r.t,r.y,r.i,He,hn,[class{},new r.C],[class{},new r.C]]},We,{provide:Nt,useFactory:function(t){return t.routerState.root},deps:[Xe]},{provide:r.y,useClass:r.M},ln,cn,an,{provide:hn,useValue:{enableTracing:!1}}];function fn(){return new r.A("Router",Xe)}let bn=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[pn,_n(e),{provide:dn,useFactory:vn,deps:[[Xe,new r.C,new r.L]]},{provide:hn,useValue:n||{}},{provide:i.k,useFactory:mn,deps:[i.v,[new r.q(i.a),new r.C],hn]},{provide:un,useFactory:gn,deps:[Xe,i.y,hn]},{provide:on,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:cn},{provide:r.A,multi:!0,useFactory:fn},[yn,{provide:r.d,multi:!0,useFactory:On,deps:[yn]},{provide:wn,useFactory:Cn,deps:[yn]},{provide:r.b,multi:!0,useExisting:wn}]]}}static forChild(e){return{ngModule:t,providers:[_n(e)]}}}return t.\u0275mod=r.Mb({type:t}),t.\u0275inj=r.Lb({factory:function(e){return new(e||t)(r.Yb(dn,8),r.Yb(Xe,8))}}),t})();function gn(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new un(t,e,n)}function mn(t,e,n={}){return n.useHash?new i.g(t,e):new i.t(t,e)}function vn(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function _n(t){return[{provide:r.a,multi:!0,useValue:t},{provide:He,multi:!0,useValue:t}]}let yn=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new p.b}appInitializer(){return this.injector.get(i.i,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),n=this.injector.get(Xe),i=this.injector.get(hn);if(this.isLegacyDisabled(i)||this.isLegacyEnabled(i))t(!0);else if("disabled"===i.initialNavigation)n.setUpLocationChangeListener(),t(!0);else{if("enabled"!==i.initialNavigation)throw new Error(`Invalid initialNavigation options: '${i.initialNavigation}'`);n.hooks.afterPreactivation=()=>this.initNavigation?Object(s.a)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()}return e})}bootstrapListener(t){const e=this.injector.get(hn),n=this.injector.get(ln),i=this.injector.get(un),s=this.injector.get(Xe),o=this.injector.get(r.g);t===o.components[0]&&(this.isLegacyEnabled(e)?s.initialNavigation():this.isLegacyDisabled(e)&&s.setUpLocationChangeListener(),n.setUpPreloading(),i.init(),s.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}isLegacyEnabled(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation}isLegacyDisabled(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation}}return t.\u0275fac=function(e){return new(e||t)(r.Yb(r.t))},t.\u0275prov=r.Kb({token:t,factory:t.\u0275fac}),t})();function On(t){return t.appInitializer.bind(t)}function Cn(t){return t.bootstrapListener.bind(t)}const wn=new r.s("Router Initializer")},"1XZd":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("ssKD");e.default=function(){function t(){}return t.equals=function(t,e){if(!t)return!1;if(!e)return!1;if(!t.length)return!1;if(!e.length)return!1;if(t.length!==e.length)return!1;for(var n=0,i=t.length;n>1,a=i(n,e[o]);if(a>0)r=o+1;else{if(!(a<0))return o;s=o-1}}return-r-1},t.numberComparator=function(t,e){return t-e},t}()},"1a33":function(t,e,n){"use strict";n.r(e),n.d(e,"MobileScanComponent",(function(){return j}));var i=n("D57K"),r=n("zqNl"),s=n("JpLq"),o=n("Nhx6"),a=n("gxtV"),c=n("KQpv"),l=n.n(c),u=n("94ty"),h=n("9Ccw"),d=n("bjK4"),p=n("9baa"),f=n("ZTXN"),b=n("C05f"),g=n("GoAz"),m=n("ROBh"),v=n("YtkY"),_=n("8j5Y"),y=n("TLy2"),O=n("xVbo"),C=n("i67J"),w=n("kZht"),T=n("rfPA"),S=n("bBQR"),k=n("An66"),E=n("1etq"),x=n("aDqW"),P=n("anSm");function A(t,e){1&t&&(w.Ub(0,"div",5),w.Ub(1,"p",6),w.Qc(2,"DIALOG.SCAN_QR_CODE.NO_PERMISSION"),w.Tb(),w.Ub(3,"p",7),w.Qc(4,"DIALOG.SCAN_QR_CODE.UNSUPPORTED_DEVICE"),w.Tb(),w.Tb())}function I(t,e){if(1&t){const t=w.Vb();w.Ub(0,"zxing-scanner",8),w.bc("scanSuccess",(function(e){return w.Ec(t),w.fc().scanSuccessHandler(e)})),w.Tb()}if(2&t){const t=w.fc();w.mc("autostart",!1)("formats",t.scannerFormats)}}function M(t,e){if(1&t&&(w.Sb(0),w.Ub(1,"p",9),w.Qc(2,"DIALOG.SCAN_QR_CODE.CONFIRM_CODE"),w.Tb(),w.Ub(3,"div",10),w.Ub(4,"p",11),w.Qc(5),w.Tb(),w.Tb(),w.Rb()),2&t){const t=e.ngIf;w.Cb(5),w.Rc(t)}}const D=l()("app:mobile-scanner"),R=/back|rear|environment/gi;let j=(()=>{let t=class{constructor(t){this.store=t,this.scannerFormats=[o.BarcodeFormat.QR_CODE],this.device$=new f.b,this.showPermissionWarning$=new b.a(!1),this.confirmationCode$=this.store.pipe(Object(r.m)(h.e)),this.hideScanner$=this.confirmationCode$.pipe(Object(v.a)(t=>t.isSome())),this.loading$=this.store.pipe(Object(r.m)(d.m,{filter:u.v.type}))}ngOnInit(){this.hideScanner$.pipe(Object(C.g)(),Object(a.b)(this)).subscribe(()=>this.scanner.device=null)}ngAfterViewInit(){this.isWeb&&(D("scanner component",this.scanner),Object(g.a)(this.scanner.askForPermission()).pipe(Object(_.a)(t=>D("perms?",t)),Object(y.a)(t=>t?Object(g.a)(this.scanner.updateVideoInputDevices()):(this.showPermissionWarning$.next(!0),Object(m.a)([]))),Object(_.a)(t=>D("cameras",t)),Object(O.a)(t=>t.length>0)).subscribe(t=>{var e;const n=null!==(e=t.find(t=>R.test(t.label)))&&void 0!==e?e:t[0];n&&(D("selected device",n),this.scanner.device=n)}))}scanSuccessHandler(t){this.store.dispatch(Object(u.v)({serializedPayload:t}))}get isNative(){var t;return null!==(t=p.a.isNative)&&void 0!==t&&t}get isWeb(){return!this.isNative}};return t.\u0275fac=function(e){return new(e||t)(w.Ob(r.b))},t.\u0275cmp=w.Ib({type:t,selectors:[["mobile-scan"]],viewQuery:function(t,e){var n;1&t&&w.Wc(s.a,!0),2&t&&w.zc(n=w.cc())&&(e.scanner=n.first)},decls:8,vars:10,consts:[["heading","DIALOG.SCAN_QR_CODE.TITLE",3,"loading"],[1,"mobile-scan"],["class","denied",4,"ngIf"],["class","small-video",3,"autostart","formats","scanSuccess",4,"ngIf"],[4,"ngIf"],[1,"denied"],["subheading","","translate","",1,"global__text--warn"],["body","","translate",""],[1,"small-video",3,"autostart","formats","scanSuccess"],["subheading","","translate",""],[1,"mobile-scan__info"],["subheading","","color","accent"]],template:function(t,e){if(1&t&&(w.Ub(0,"pro-dialog",0),w.gc(1,"async"),w.Ub(2,"section",1),w.Oc(3,A,5,0,"div",2),w.gc(4,"async"),w.Oc(5,I,1,2,"zxing-scanner",3),w.Oc(6,M,6,1,"ng-container",4),w.gc(7,"async"),w.Tb(),w.Tb()),2&t){var n=null;w.mc("loading",w.hc(1,4,e.loading$)),w.Cb(3),w.mc("ngIf",w.hc(4,6,e.showPermissionWarning$)),w.Cb(2),w.mc("ngIf",e.isWeb),w.Cb(1),w.mc("ngIf",null==(n=w.hc(7,8,e.confirmationCode$))?null:n.orUndefined())}},directives:[T.a,S.a,k.n,E.a,x.a,P.a,s.a],pipes:[k.b],styles:[".mobile-scan__info[_ngcontent-%COMP%]{border:solid var(--accent-colour);text-align:center;padding:var(--spacing);margin:var(--spacing) 0}.small-video[_ngcontent-%COMP%] video{height:100vw!important}.denied[_ngcontent-%COMP%]{line-height:1.4}"],changeDetection:0}),t=Object(i.d)([Object(a.a)()],t),t})()},"1a7C":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){function t(){}return t.prototype.RSSUtils=function(){},t.getRSSvalue=function(e,n,i){for(var r=0,s=0,o=e;s=l-u-1&&(d-=t.combins(r-h-(l-u),l-u-2)),l-u-1>1){for(var p=0,f=r-h-(l-u-2);f>n;f--)p+=t.combins(r-h-f-1,l-u-3);d-=p*(l-1-u)}else r-h>n&&d--;a+=d}r-=h}return a},t.combins=function(t,e){var n,i;t-e>e?(i=e,n=t-e):(i=t-e,n=e);for(var r=1,s=1,o=t;o>n;o--)r*=o,s<=i&&(r/=s,s++);for(;s<=i;)r/=s,s++;return r},t}()},"1aiz":function(t,e,n){var i=n("VTjg");e.render=function(t,e,n){var r=n,s=e;void 0!==r||e&&e.getContext||(r=e,e=void 0),e||(s=function(){try{return document.createElement("canvas")}catch(t){throw new Error("You need to specify a canvas element")}}()),r=i.getOptions(r);var o=i.getImageWidth(t.modules.size,r),a=s.getContext("2d"),c=a.createImageData(o,o);return i.qrToImageData(c.data,t,r),function(t,e,n){t.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=n,e.width=n,e.style.height=n+"px",e.style.width=n+"px"}(a,s,o),a.putImageData(c,0,0),s},e.renderToDataURL=function(t,n,i){var r=i;return void 0!==r||n&&n.getContext||(r=n,n=void 0),r||(r={}),e.render(t,n,r).toDataURL(r.type||"image/png",(r.rendererOpts||{}).quality)}},"1eaT":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("kZht"),r=n("anSm");const s=["*"];let o=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["nutritional-info"]],ngContentSelectors:s,decls:2,vars:0,consts:[["body","",1,"grid"]],template:function(t,e){1&t&&(i.lc(),i.Ub(0,"div",0),i.kc(1),i.Tb())},directives:[r.a],styles:[".gap-xs-xs[_ngcontent-%COMP%]{gap:var(--spacing-xs) var(--spacing-xs)}.gap-xs-s[_ngcontent-%COMP%]{gap:var(--spacing-xs) var(--spacing-s)}.gap-xs-m[_ngcontent-%COMP%]{gap:var(--spacing-xs) var(--spacing-m)}.gap-xs-l[_ngcontent-%COMP%]{gap:var(--spacing-xs) var(--spacing-l)}.gap-xs-xl[_ngcontent-%COMP%]{gap:var(--spacing-xs) var(--spacing-xl)}.gap-s-xs[_ngcontent-%COMP%]{gap:var(--spacing-s) var(--spacing-xs)}.gap-s-s[_ngcontent-%COMP%]{gap:var(--spacing-s) var(--spacing-s)}.gap-s-m[_ngcontent-%COMP%]{gap:var(--spacing-s) var(--spacing-m)}.gap-s-l[_ngcontent-%COMP%]{gap:var(--spacing-s) var(--spacing-l)}.gap-s-xl[_ngcontent-%COMP%]{gap:var(--spacing-s) var(--spacing-xl)}.gap-m-xs[_ngcontent-%COMP%]{gap:var(--spacing-m) var(--spacing-xs)}.gap-m-s[_ngcontent-%COMP%]{gap:var(--spacing-m) var(--spacing-s)}.gap-m-m[_ngcontent-%COMP%]{gap:var(--spacing-m) var(--spacing-m)}.gap-m-l[_ngcontent-%COMP%]{gap:var(--spacing-m) var(--spacing-l)}.gap-m-xl[_ngcontent-%COMP%]{gap:var(--spacing-m) var(--spacing-xl)}.gap-l-xs[_ngcontent-%COMP%]{gap:var(--spacing-l) var(--spacing-xs)}.gap-l-s[_ngcontent-%COMP%]{gap:var(--spacing-l) var(--spacing-s)}.gap-l-m[_ngcontent-%COMP%]{gap:var(--spacing-l) var(--spacing-m)}.gap-l-l[_ngcontent-%COMP%]{gap:var(--spacing-l) var(--spacing-l)}.gap-l-xl[_ngcontent-%COMP%]{gap:var(--spacing-l) var(--spacing-xl)}.gap-xl-xs[_ngcontent-%COMP%]{gap:var(--spacing-xl) var(--spacing-xs)}.gap-xl-s[_ngcontent-%COMP%]{gap:var(--spacing-xl) var(--spacing-s)}.gap-xl-m[_ngcontent-%COMP%]{gap:var(--spacing-xl) var(--spacing-m)}.gap-xl-l[_ngcontent-%COMP%]{gap:var(--spacing-xl) var(--spacing-l)}.gap-xl-xl[_ngcontent-%COMP%]{gap:var(--spacing-xl) var(--spacing-xl)}[_nghost-%COMP%]{display:block;padding:var(--spacing) 0}[_nghost-%COMP%]:not(:last-of-type){border-bottom:1px dashed var(--border-colour-dark)}.grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:auto auto;align-items:center;justify-content:space-between;gap:var(--spacing-m) var(--spacing-m)}"],changeDetection:0}),t})()},"1etq":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("kZht");let r=(()=>{class t{constructor(t,e){this.renderer=t,this.element=e}ngOnInit(){this.renderer.addClass(this.element.nativeElement,"global__text"),this.renderer.addClass(this.element.nativeElement,"global__text-subheading")}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.G),i.Ob(i.l))},t.\u0275dir=i.Jb({type:t,selectors:[["","subheading",""]]}),t})()},"1h0I":function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var i=n("kZht"),r=n("1etq"),s=n("aDqW"),o=n("8spT"),a=n("TADc");let c=(()=>{class t{constructor(){this.changeTradingUnits$=new i.o,this.changeWalletUnits$=new i.o}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["quantity-units-choice"]],inputs:{quantityUnits:"quantityUnits"},outputs:{changeTradingUnits$:"changeTradingUnits",changeWalletUnits$:"changeWalletUnits"},decls:23,vars:14,consts:[["subheading","","translate",""],["translate",""],[3,"value","change"],["value","order"],["value","notional"],[2,"--divider-margin","1em auto"],["value","face"],["value","market"]],template:function(t,e){1&t&&(i.Ub(0,"h2",0),i.Qc(1,"HEADING.TRADING_UNITS"),i.Tb(),i.Ub(2,"p",1),i.Qc(3,"EXPLAIN.TRADING_UNITS"),i.Tb(),i.Ub(4,"mat-radio-group",2),i.bc("change",(function(t){return e.changeTradingUnits$.emit(t.value)})),i.Ub(5,"mat-radio-button",3),i.Qc(6),i.gc(7,"translate"),i.Tb(),i.Ub(8,"mat-radio-button",4),i.Qc(9),i.gc(10,"translate"),i.Tb(),i.Tb(),i.Pb(11,"sb-divider",5),i.Ub(12,"h2",0),i.Qc(13,"HEADING.WALLET_UNITS"),i.Tb(),i.Ub(14,"p",1),i.Qc(15,"EXPLAIN.WALLET_UNITS"),i.Tb(),i.Ub(16,"mat-radio-group",2),i.bc("change",(function(t){return e.changeWalletUnits$.emit(t.value)})),i.Ub(17,"mat-radio-button",6),i.Qc(18),i.gc(19,"translate"),i.Tb(),i.Ub(20,"mat-radio-button",7),i.Qc(21),i.gc(22,"translate"),i.Tb(),i.Tb()),2&t&&(i.Cb(4),i.mc("value",e.quantityUnits.trading),i.Cb(2),i.Sc(" ",i.hc(7,6,"TRADING_UNITS.ORDER")," "),i.Cb(3),i.Sc(" ",i.hc(10,8,"TRADING_UNITS.NOTIONAL")," "),i.Cb(7),i.mc("value",e.quantityUnits.wallet),i.Cb(2),i.Sc(" ",i.hc(19,10,"WALLET_UNITS.FACE")," "),i.Cb(3),i.Sc(" ",i.hc(22,12,"WALLET_UNITS.MARKET")," "))},directives:[r.a,s.a,o.b,o.a,a.a],pipes:[s.d],styles:["[_nghost-%COMP%]{display:block;font-family:var(--typeface);color:var(--text-colour)}p[_ngcontent-%COMP%]{margin:.25em 0;line-height:1.4}h2[_ngcontent-%COMP%]{margin-bottom:.2em 0;line-height:1.2}mat-radio-button[_ngcontent-%COMP%]:not(:last-child){margin-right:var(--spacing-l)}"],changeDetection:0}),t})()},"1o0v":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("kZht");let r=(()=>{class t{constructor(t,e){this.renderer=t,this.element=e}ngOnInit(){this.renderer.addClass(this.element.nativeElement,"global__text--ghost")}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.G),i.Ob(i.l))},t.\u0275dir=i.Jb({type:t,selectors:[["","ghost",""]]}),t})()},"1u95":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return s})),n.d(e,"e",(function(){return o})),n.d(e,"d",(function(){return a})),n.d(e,"c",(function(){return c}));var i=n("zqNl");const r=Object(i.g)("Get Initial Margin",Object(i.l)()),s=Object(i.g)("Get Bracket Initial Margin",Object(i.l)()),o=Object(i.g)("Set Initial Margin",Object(i.l)()),a=Object(i.g)("Set Edit Initial Margin",Object(i.l)()),c=Object(i.g)("Set Bracket Initial Margin",Object(i.l)())},"25CY":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())()},"2Agw":function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s=n("4Pxi"),o=n("ZCEf"),a=n("KFdt"),c=n("Qkwj"),l=n("iiuT"),u=n("KZGf"),h=n("ssKD"),d=n("nB6u"),p=n("LqyJ");e.default=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.narrowLineWidth=-1,e}return r(e,t),e.prototype.decodeRow=function(t,n,i){var r=this.decodeStart(n),l=this.decodeEnd(n),h=new u.default;e.decodeMiddle(n,r[1],l[0],h);var p=h.toString(),f=null;null!=i&&(f=i.get(o.default.ALLOWED_LENGTHS)),null==f&&(f=e.DEFAULT_ALLOWED_LENGTHS);for(var b=p.length,g=!1,m=0,v=0,_=f;v<_.length;v++){var y=_[v];if(b===y){g=!0;break}y>m&&(m=y)}if(!g&&b>m&&(g=!0),!g)throw new d.default;var O=[new c.default(r[1],t),new c.default(l[0],t)];return new a.default(p,null,0,O,s.default.ITF,(new Date).getTime())},e.decodeMiddle=function(t,n,i,r){var s=new Array(10),o=new Array(5),a=new Array(5);for(s.fill(0),o.fill(0),a.fill(0);n0&&i>=0&&!t.get(i);i--)n--;if(0!==n)throw new p.default},e.skipWhiteSpace=function(t){var e=t.getSize(),n=t.getNextSet(0);if(n===e)throw new p.default;return n},e.prototype.decodeEnd=function(t){t.reverse();try{var n=e.skipWhiteSpace(t),i=void 0;try{i=e.findGuardPattern(t,n,e.END_PATTERN_REVERSED[0])}catch(s){i=e.findGuardPattern(t,n,e.END_PATTERN_REVERSED[1])}this.validateQuietZone(t,i[0]);var r=i[0];return i[0]=t.getSize()-i[1],i[1]=t.getSize()-r,i}finally{t.reverse()}},e.findGuardPattern=function(t,n,i){var r=i.length,s=new Array(r),o=t.getSize(),a=!1,c=0,u=n;s.fill(0);for(var d=n;d=0)return i%10;throw new p.default},e.W=3,e.w=2,e.N=1,e.PATTERNS=[[1,1,2,2,1],[2,1,1,1,2],[1,2,1,1,2],[2,2,1,1,1],[1,1,2,1,2],[2,1,2,1,1],[1,2,2,1,1],[1,1,1,2,2],[2,1,1,2,1],[1,2,1,2,1],[1,1,3,3,1],[3,1,1,1,3],[1,3,1,1,3],[3,3,1,1,1],[1,1,3,1,3],[3,1,3,1,1],[1,3,3,1,1],[1,1,1,3,3],[3,1,1,3,1],[1,3,1,3,1]],e.MAX_AVG_VARIANCE=.38,e.MAX_INDIVIDUAL_VARIANCE=.5,e.DEFAULT_ALLOWED_LENGTHS=[6,8,10,12,14],e.START_PATTERN=[1,1,1,1],e.END_PATTERN_REVERSED=[[1,1,2],[1,1,3]],e}(l.default)},"2Xgx":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("kZht");let r=(()=>{class t{constructor(t,e){this.renderer=t,this.element=e,this.renderer.addClass(this.element.nativeElement,"sb__card")}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.G),i.Ob(i.l))},t.\u0275dir=i.Jb({type:t,selectors:[["","sb-card",""]]}),t})()},"2YH/":function(t,e,n){"use strict";n.d(e,"a",(function(){return N}));var i=n("kZht"),r=n("3kIJ"),s=n("C05f"),o=n("jOdJ"),a=n("YtkY"),c=n("pjhv"),l=n("lE9u"),u=n("lx5p"),h=n("nXdR"),d=n("zqNl"),p=n("anSm"),f=n("EmXI"),b=n("scAs"),g=n("oiza"),m=n("aDqW"),v=n("IOEv"),_=n("An66"),y=n("Eu46"),O=n("hCLc"),C=n("NxuZ"),w=n("Tcl6"),T=n("yPvj"),S=n("pTnX"),k=n("1eaT"),E=n("+I9z"),x=n("1o0v"),P=n("P0Um"),A=n("DpwM");function I(t,e){if(1&t&&(i.Ub(0,"mat-option",23),i.Qc(1),i.gc(2,"walletName"),i.gc(3,"walletType"),i.Tb()),2&t){const t=e.$implicit;i.mc("value",t.name),i.Cb(1),i.Tc(" ",i.hc(2,3,t.name)," ",i.hc(3,5,t.type)," Wallet ")}}const M=function(t){return{"global__text--warn":t}};function D(t,e){if(1&t&&(i.Ub(0,"nutritional-info"),i.Ub(1,"span",24),i.Qc(2),i.gc(3,"translate"),i.Tb(),i.Pb(4,"ghost-trail",25),i.gc(5,"cryptoPrecise"),i.Tb()),2&t){const t=e.ngLet,n=i.fc();i.Cb(1),i.mc("ngClass",i.rc(8,M,null==n.form.get("amount").errors?null:n.form.get("amount").errors.amountOverBalance)),i.Cb(1),i.Sc(" ",i.hc(3,3,n.originBalanceLabel)," "),i.Cb(2),i.mc("content",i.ic(5,5,t,n.selected.currency))}}function R(t,e){if(1&t&&(i.Ub(0,"mat-option",23),i.Qc(1),i.gc(2,"walletName"),i.gc(3,"walletType"),i.Tb()),2&t){const t=e.$implicit;i.mc("value",t.name),i.Cb(1),i.Tc(" ",i.hc(2,3,t.name)," ",i.hc(3,5,t.type)," Wallet ")}}function j(t,e){if(1&t&&(i.Ub(0,"nutritional-info"),i.Ub(1,"span"),i.Qc(2),i.gc(3,"translate"),i.Tb(),i.Pb(4,"ghost-trail",25),i.gc(5,"cryptoPrecise"),i.Tb()),2&t){const t=e.ngLet,n=i.fc();i.Cb(2),i.Rc(i.hc(3,2,n.destinationBalanceLabel)),i.Cb(2),i.mc("content",i.ic(5,4,t,n.selected.currency))}}function L(t,e){if(1&t){const t=i.Vb();i.Ub(0,"mat-form-field",26),i.Ub(1,"mat-label",5),i.Qc(2,"FORM.USD_AMOUNT"),i.Tb(),i.Ub(3,"span",27),i.Qc(4,"\u2248"),i.Tb(),i.Ub(5,"input",28),i.bc("input",(function(){return i.Ec(t),i.fc().setAmount()})),i.Tb(),i.Pb(6,"market-icon",29),i.Tb()}}let N=(()=>{class t{constructor(t,e){this.store=t,this.fb=e,this.form=this.buildForm(),this.origins$=new s.a(void 0),this.destinations$=new s.a(void 0),this.transfer=new i.o}ngOnChanges(t){var e,n;if(null===(e=t.selected)||void 0===e?void 0:e.currentValue){const e=t.selected.currentValue;this.form.reset(),null===(n=this.form.get("origin"))||void 0===n||n.setValue(e.name),this.setWallets(e.name)}}buildForm(){return this.fb.group({origin:["",r.x.required],amount:[0,[r.x.required,r.x.min(1e-12),this.amountValidator.bind(this)]],usdAmount:[0],destination:["",r.x.required]})}amountValidator(t){try{const e=this.rawWallets.find(t=>{var e;return t.name===(null===(e=this.form.get("origin"))||void 0===e?void 0:e.value)});return"futures"===e.type?e.am>=t.value?null:{amountOverBalance:!0}:e.balance>=t.value?null:{amountOverBalance:!0}}catch(e){return null}}get rawWallets(){var t;const{holding:e,futures:n,flex:i}=this.wallets,r=[...e.values(),...n.values()];return(null==i?void 0:i.flexAssets)&&this.flexEnabled&&r.push(...null===(t=i.flexAssets)||void 0===t?void 0:t.values()),r.sort(h.r)}get balance$(){return this.origins$.pipe(Object(o.a)(),Object(a.a)(t=>{var e;const n=null===(e=this.form.get("origin"))||void 0===e?void 0:e.value,i=null==t?void 0:t.find(({name:t})=>t===n);return"holding"===i.type?i.balance:i.am}))}get margin$(){return this.destinations$.pipe(Object(o.a)(),Object(a.a)(t=>{var e;const n=null===(e=this.form.get("destination"))||void 0===e?void 0:e.value,i=null==t?void 0:t.find(({name:t})=>t===n);return"holding"===i.type?i.balance:i.am}))}get amount(){var t;return null===(t=this.form.get("amount"))||void 0===t?void 0:t.value}setWallets(t){const e=this.rawWallets.find(e=>e.name===t);this.setOrigins(e,this.rawWallets),this.setDestination(e,this.rawWallets)}setOrigins(t,e){var n;const i=e.filter(e=>e.currency===(null==t?void 0:t.currency)||"BTC"===e.currency&&"XBT"===t.currency||"XBT"===e.currency&&"BTC"===t.currency);null===(n=this.form.get("origin"))||void 0===n||n.setValue(null==t?void 0:t.name),this.origins$.next(i)}setDestination(t,e){var n;const i=e.filter(e=>e.currency===(null==t?void 0:t.currency)||"BTC"===e.currency&&"XBT"===t.currency||"XBT"===e.currency&&"BTC"===t.currency).filter(e=>e.name!==(null==t?void 0:t.name)||e.type!==t.type);null===(n=this.form.get("destination"))||void 0===n||n.setValue(i[0].name),this.destinations$.next(i)}setWalletPercentage(t){var e;const n=null===(e=this.form.get("origin"))||void 0===e?void 0:e.value,i=this.rawWallets.find(t=>t.name===n),r=Object(c.b)(i.currency,!0),s=Math.pow(10,r),o=i.am?i.am:i.balance;if(1===t)return this.form.get("amount").setValue(o),void this.setUSDAmount();const a=Math.min(o*t,o),l=Math.floor(a*s)/s;this.form.get("amount").setValue(l),this.setUSDAmount()}submitTransfer(){var t;const e=this.rawWallets.find(t=>{var e;return t.name===(null===(e=this.form.get("origin"))||void 0===e?void 0:e.value)}),n=this.rawWallets.find(t=>{var e;return t.name===(null===(e=this.form.get("destination"))||void 0===e?void 0:e.value)});this.store.dispatch(Object(l.y)({quantity:null===(t=this.form.get("amount"))||void 0===t?void 0:t.value,asset:e.currency,source:e,destination:n}))}switch(){var t,e;const n=this.rawWallets.find(t=>{var e;return t.name===(null===(e=this.form.get("destination"))||void 0===e?void 0:e.value)});null===(t=this.form.get("origin"))||void 0===t||t.setValue(null==n?void 0:n.name),this.setWallets(null==n?void 0:n.name),null===(e=this.form.get("amount"))||void 0===e||e.updateValueAndValidity()}setUSDAmount(){var t,e;const n=null===(t=this.form.get("amount"))||void 0===t?void 0:t.value;null===(e=this.form.get("usdAmount"))||void 0===e||e.setValue(Object(u.I)(.001)(n*this.price))}setAmount(){var t,e;const n=null===(t=this.form.get("usdAmount"))||void 0===t?void 0:t.value;null===(e=this.form.get("amount"))||void 0===e||e.setValue((n/this.price).toFixed(Object(c.b)(this.selected.currency,!0)))}get originBalanceLabel(){const t=this.rawWallets.find(t=>{var e;return t.name===(null===(e=this.form.get("origin"))||void 0===e?void 0:e.value)});return t?"holding"===t.type?"LABEL.BALANCE":"LABEL.AVAILABLE_MARGIN":"LABEL.BALANCE"}get destinationBalanceLabel(){const t=this.rawWallets.find(t=>{var e;return t.name===(null===(e=this.form.get("destination"))||void 0===e?void 0:e.value)});return t?"holding"===t.type?"LABEL.BALANCE":"LABEL.AVAILABLE_MARGIN":"LABEL.BALANCE"}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(d.b),i.Ob(r.d))},t.\u0275cmp=i.Ib({type:t,selectors:[["crypto-transfer-form"]],inputs:{selected:"selected",wallets:"wallets",ticker:"ticker",price:"price",market:"market",loading:"loading",flexEnabled:"flexEnabled"},outputs:{transfer:"transfer"},features:[i.Ab],decls:41,vars:24,consts:[["body","",3,"formGroup","ngSubmit"],["body","","bold","","uppercase","","translate",""],[1,"transfer-grid"],[1,"from"],["color","accent","appearance","fill",1,"no-padding"],["translate",""],["matNativeControl","","formControlName","origin",3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],[1,"from-balance"],[4,"ngLet"],[1,"switch"],["mat-raised-button","","type","button","body","",1,"mat-small-button",3,"click"],["icon","transfer","size","2x"],[1,"to"],["matNativeControl","","formControlName","destination"],[1,"to-balance"],["color","accent","appearance","fill",1,"market-form"],["matInput","","formControlName","amount","required","","type","number","min","0","inputmode","numeric","autocomplete","off",3,"input"],["amountField",""],["matSuffix","","mat-raised-button","","body","","type","button",1,"mat-small-button",3,"click"],["matSuffix","",1,"form-icon",3,"base"],["color","accent","appearance","fill",4,"ngIf"],["mat-raised-button","",3,"disabled"],[3,"value"],[3,"ngClass"],[3,"content"],["color","accent","appearance","fill"],["ghost","","matPrefix","",1,"estimate"],["matInput","","formControlName","usdAmount","type","number","min","0","inputmode","numeric","autocomplete","off",3,"input"],["matSuffix","","base","USD",1,"form-icon"]],template:function(t,e){1&t&&(i.Ub(0,"form",0),i.bc("ngSubmit",(function(){return e.submitTransfer()})),i.Ub(1,"mat-label",1),i.Qc(2,"LABEL.TRANSFER_BETWEEN_WALLETS"),i.Tb(),i.Ub(3,"div",2),i.Ub(4,"div",3),i.Ub(5,"mat-form-field",4),i.Ub(6,"mat-label",5),i.Qc(7,"FORM.FROM"),i.Tb(),i.Ub(8,"mat-select",6),i.bc("selectionChange",(function(t){return e.setWallets(t.value)})),i.Oc(9,I,4,7,"mat-option",7),i.gc(10,"async"),i.Tb(),i.Tb(),i.Tb(),i.Ub(11,"div",8),i.Oc(12,D,6,10,"nutritional-info",9),i.gc(13,"async"),i.Tb(),i.Ub(14,"div",10),i.Ub(15,"button",11),i.bc("click",(function(){return e.switch()})),i.Pb(16,"fa-icon",12),i.Tb(),i.Tb(),i.Ub(17,"div",13),i.Ub(18,"mat-form-field",4),i.Ub(19,"mat-label",5),i.Qc(20,"FORM.TO"),i.Tb(),i.Ub(21,"mat-select",14),i.Oc(22,R,4,7,"mat-option",7),i.gc(23,"async"),i.Tb(),i.Tb(),i.Tb(),i.Ub(24,"div",15),i.Oc(25,j,6,7,"nutritional-info",9),i.gc(26,"async"),i.Tb(),i.Tb(),i.Ub(27,"mat-form-field",16),i.Ub(28,"mat-label",5),i.Qc(29,"FORM.AMOUNT"),i.Tb(),i.Ub(30,"input",17,18),i.bc("input",(function(){return e.setUSDAmount()})),i.Tb(),i.Ub(32,"button",19),i.bc("click",(function(){return e.setWalletPercentage(1)})),i.Qc(33),i.gc(34,"uppercase"),i.gc(35,"translate"),i.Tb(),i.Pb(36,"market-icon",20),i.Tb(),i.Oc(37,L,7,0,"mat-form-field",21),i.Ub(38,"button",22),i.Qc(39),i.gc(40,"translate"),i.Tb(),i.Tb()),2&t&&(i.mc("formGroup",e.form),i.Cb(9),i.mc("ngForOf",i.hc(10,10,e.origins$)),i.Cb(3),i.mc("ngLet",i.hc(13,12,e.balance$)),i.Cb(10),i.mc("ngForOf",i.hc(23,14,e.destinations$)),i.Cb(3),i.mc("ngLet",i.hc(26,16,e.margin$)),i.Cb(8),i.Sc(" ",i.hc(34,18,i.hc(35,20,"BUTTON.MAX"))," "),i.Cb(3),i.mc("base",e.selected.currency),i.Cb(1),i.mc("ngIf",e.price),i.Cb(1),i.mc("disabled",e.form.invalid||e.loading),i.Cb(1),i.Sc(" ",i.hc(40,22,"BUTTON.SUBMIT_TRANSFER")," "))},directives:[r.z,r.p,p.a,r.h,f.f,b.a,g.a,m.a,f.c,v.a,r.o,r.g,_.m,y.a,O.b,C.b,w.b,r.c,r.s,r.v,f.h,T.a,_.n,S.n,k.a,_.l,E.a,x.a,f.g],pipes:[_.b,_.x,m.d,P.a,P.b,A.b],styles:['button[_ngcontent-%COMP%], mat-form-field[_ngcontent-%COMP%]{width:100%}.transfer-grid[_ngcontent-%COMP%]{margin-top:var(--spacing)}@media (max-width:1024px){.transfer-grid[_ngcontent-%COMP%]{display:flex;flex-direction:column}.transfer-grid[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.transfer-grid[_ngcontent-%COMP%] .switch[_ngcontent-%COMP%]{display:none}}@media (min-width:1025px){.transfer-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr auto 1fr;grid-template-rows:auto auto;grid-template:"from switch to" auto "fromBalance empty toBalance" auto/min-content min-content min-content;grid-column-gap:var(--spacing)}.transfer-grid.subaccount[_ngcontent-%COMP%]{grid-template-columns:1fr 1fr;grid-template:"from-account to-account" auto "from to" auto "fromBalance toBalance" auto/auto}.transfer-grid[_ngcontent-%COMP%] .from-account[_ngcontent-%COMP%]{grid-area:from-account}.transfer-grid[_ngcontent-%COMP%] .to-account[_ngcontent-%COMP%]{grid-area:to-account}.transfer-grid[_ngcontent-%COMP%] .from[_ngcontent-%COMP%]{grid-area:from}.transfer-grid[_ngcontent-%COMP%] .to[_ngcontent-%COMP%]{grid-area:to}.transfer-grid[_ngcontent-%COMP%] .switch[_ngcontent-%COMP%]{align-self:center;grid-area:switch}.transfer-grid[_ngcontent-%COMP%] .switch[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:42px!important}.transfer-grid[_ngcontent-%COMP%] .from-balance[_ngcontent-%COMP%]{grid-area:fromBalance}.transfer-grid[_ngcontent-%COMP%] .to-balance[_ngcontent-%COMP%]{grid-area:toBalance}}.estimate[_ngcontent-%COMP%]{font-size:2em;margin-right:var(--spacing)}'],changeDetection:0}),t})()},"2gaf":function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s=n("w6/c");e.default=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e}(s.default)},"2hZ/":function(t,e,n){"use strict";n.d(e,"a",(function(){return O}));var i=n("D57K"),r=n("gxtV"),s=n("zqNl"),o=n("xVbo"),a=n("bjK4"),c=n("kZht"),l=n("LBlH"),u=n("y1fC"),h=n("pPqe"),d=n("w2Kr"),p=n("1etq"),f=n("aDqW");const b=["tourStep"];function g(t,e){if(1&t){const t=c.Vb();c.Ub(0,"tour-step",3),c.bc("dispose",(function(){return c.Ec(t),c.fc().disposePopper(1)})),c.Ub(1,"p",4),c.Qc(2," Start using the Multi-collateral single wallet by transferring assets from your Holding or Single Collateral Wallets to the Multi-Collateral Wallet. "),c.Tb(),c.Ub(3,"p",4),c.Qc(4," You can deposit one or more collateral of your choosing (fiat, crypto, stablecoin) to get exposure to more than 20 contracts available using a single wallet. Your wallet will be valued and margined in USD. "),c.Tb(),c.Tb()}2&t&&c.mc("title","Multi-collateral, single wallet")("image","flex-wallets")("minHeight","300px")}function m(t,e){if(1&t){const t=c.Vb();c.Ub(0,"tour-step",3),c.bc("dispose",(function(){return c.Ec(t),c.fc().disposePopper(2)})),c.Ub(1,"p",4),c.Qc(2," You can choose to trade from a wide variety of contracts using your single multi-collateral wallet. "),c.Tb(),c.Tb()}2&t&&c.mc("title","Variety of 20+ contracts")("image","flex-contracts")("minHeight","300px")}function v(t,e){if(1&t){const t=c.Vb();c.Ub(0,"tour-step",3),c.bc("dispose",(function(){return c.Ec(t),c.fc().disposePopper(3)})),c.Ub(1,"p",4),c.Qc(2," Decide to trade contracts in Isolated Margin Mode, and allocate amounts of margin to each contract, or choose Cross Margin Mode with your total available margin shared across all open positions. "),c.Tb(),c.Ub(3,"p",4),c.Qc(4," Adjust the leverage of your isolated positions depending on how much of your margin you want to put at risk. "),c.Tb(),c.Tb()}2&t&&c.mc("title","Flexibility with your risk appetite")("image","flex-isolated")("minHeight","300px")}function _(t,e){if(1&t){const t=c.Vb();c.Ub(0,"tour-step",3),c.bc("dispose",(function(){return c.Ec(t),c.fc().disposePopper(4)})),c.Ub(1,"p",4),c.Qc(2," Choose which currency to realize your Profit on a per contract basis. This can be a different currency than your collateral. "),c.Tb(),c.Tb()}2&t&&c.mc("title","Choose your realized Profit Currency:")("image","flex-pnl")("minHeight","300px")}function y(t,e){if(1&t){const t=c.Vb();c.Ub(0,"tour-step",3),c.bc("dispose",(function(){return c.Ec(t),c.fc().disposePopper(5)})),c.Ub(1,"p",4),c.Qc(2," Experience fully customizable workspaces, with draggable widgets that can be turned on and off depending on what you want to actively monitor. "),c.Tb(),c.Tb()}2&t&&c.mc("title","Customizable user experience")("image","flex-custom")("minHeight","300px")}let O=(()=>{let t=class{constructor(t){this.store=t,this.tour$=this.store.pipe(Object(s.m)(a.k))}ngAfterViewInit(){this.tour$.pipe(Object(r.b)(this),Object(o.a)(t=>t.inProgress),Object(o.a)(t=>"flex"===t.type),Object(o.a)(({step:t})=>t>0&&t{this.steps.toArray()[t-1].centerTrigger()})}disposePopper(t){this.steps.toArray()[t-1].dispose()}};return t.\u0275fac=function(e){return new(e||t)(c.Ob(s.b))},t.\u0275cmp=c.Ib({type:t,selectors:[["flex-tour"]],viewQuery:function(t,e){var n;1&t&&c.Wc(b,!0),2&t&&c.zc(n=c.cc())&&(e.steps=n)},decls:15,vars:0,consts:[["sbPlacement","topStart"],["tourStep",""],[3,"title","image","minHeight","dispose",4,"sbContent"],[3,"title","image","minHeight","dispose"],["subheading","","translate",""]],template:function(t,e){1&t&&(c.Ub(0,"sb-popper",0,1),c.Oc(2,g,5,3,"tour-step",2),c.Tb(),c.Ub(3,"sb-popper",0,1),c.Oc(5,m,3,3,"tour-step",2),c.Tb(),c.Ub(6,"sb-popper",0,1),c.Oc(8,v,5,3,"tour-step",2),c.Tb(),c.Ub(9,"sb-popper",0,1),c.Oc(11,_,3,3,"tour-step",2),c.Tb(),c.Ub(12,"sb-popper",0,1),c.Oc(14,y,3,3,"tour-step",2),c.Tb())},directives:[l.a,u.a,h.a,d.a,p.a,f.a],styles:[""],changeDetection:0}),t=Object(i.d)([Object(r.a)()],t),t})()},"2rct":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("Qkwj");e.default=function(){function t(t,e,n,r,s){this.value=t,this.startEnd=e,this.value=t,this.startEnd=e,this.resultPoints=new Array,this.resultPoints.push(new i.default(n,s)),this.resultPoints.push(new i.default(r,s))}return t.prototype.getValue=function(){return this.value},t.prototype.getStartEnd=function(){return this.startEnd},t.prototype.getResultPoints=function(){return this.resultPoints},t.prototype.equals=function(e){return e instanceof t&&this.value===e.value},t.prototype.hashCode=function(){return this.value},t}()},"2rk/":function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s=n("qAUu"),o=n("q+cW"),a=n("9GlW"),c=n("LqyJ");e.default=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.sampleGrid=function(t,e,n,i,r,s,o,c,l,u,h,d,p,f,b,g,m,v,_){var y=a.default.quadrilateralToQuadrilateral(i,r,s,o,c,l,u,h,d,p,f,b,g,m,v,_);return this.sampleGridWithTransform(t,e,n,y)},e.prototype.sampleGridWithTransform=function(t,e,n,i){if(e<=0||n<=0)throw new c.default;for(var r=new o.default(e,n),a=new Float32Array(2*e),l=0;l0)("ngIfElse",n)}}const D=function(t){return{pair:t}};function R(t,e){if(1&t&&(g.Ub(0,"p"),g.Qc(1),g.gc(2,"translate"),g.Tb()),2&t){const t=e.ngIfSome;g.Cb(1),g.Sc(" ",g.ic(2,1,"NO_CONTENT.PAIR_OPEN_POSITIONS",g.rc(4,D,t))," ")}}function j(t,e){1&t&&(g.Ub(0,"p",14),g.Qc(1,"NO_CONTENT.OPEN_POSITIONS"),g.Tb())}function L(t,e){if(1&t&&(g.Ub(0,"section",10),g.Pb(1,"fa-icon",11),g.Oc(2,R,3,6,"p",12),g.gc(3,"async"),g.Oc(4,j,2,0,"ng-template",null,13,g.Pc),g.Tb()),2&t){const t=g.Ac(5),e=g.fc();g.Cb(2),g.mc("ngIfSome",g.hc(3,2,e.filterPair$))("ngIfSomeElse",t)}}function N(t,e){1&t&&g.Pb(0,"kraken-loading")}let U=(()=>{let t=class{constructor(t,e,n){this.store=t,this.translate=e,this.market=n,this.flexOnly=!1,this.instruments$=this.store.pipe(Object(r.m)(u.f)),this.tickers$=this.store.pipe(Object(r.m)(h.o)),this.filterPair$=this.store.pipe(Object(r.m)(f.q)),this.displayTooltips$=this.store.pipe(Object(r.m)(f.y))}ngOnInit(){this.positions$=this.store.pipe(Object(r.m)(this.flexOnly?d.e:d.k),Object(a.p)())}selectTicker({symbol:t,replaceUrl:e}){this.market.navigateToMarket(t,e)}marketClose({position:t}){const e=t.balance>0?"Long":"Short",n={symbol:t.instrument,side:t.balance>0?"sell":"buy",size:Math.abs(t.balance),orderType:"market",reduceOnly:!0},i={title:"DIALOG.CONFIRM_CLOSE_POSITION.TITLE",subtitle:"DIALOG.CONFIRM_CLOSE_POSITION.SUBTITLE",body:this.translate.instant("DIALOG.CONFIRM_CLOSE_POSITION.CONTENT",{direction:e,size:t.balance.toLocaleString(),contract:t.instrument}),buttons:[{label:"BUTTON.YES",colour:"accent",actions:[Object(l.o)(n),Object(c.c)()]},{label:"BUTTON.NO",colour:"warn",actions:[Object(c.c)()]}]};this.store.dispatch(Object(c.g)({name:"confirmation",inputs:i}))}limitClose({position:t}){Object(s.a)([this.tickers$,this.instruments$]).pipe(Object(o.a)()).subscribe(([e,n])=>{const i=e.get(t.instrument),r=n.get(t.instrument);this.store.dispatch(Object(c.g)({name:"limit-close",inputs:{position:t,ticker:i,instrument:r}}))})}viewDetailed({position:t}){this.instruments$.pipe(Object(a.h)()).subscribe(e=>{const n=e.get(t.instrument);this.store.dispatch(Object(c.g)({name:"position-details",inputs:{position:t,instrument:n}}))})}sharePosition({position:t}){this.instruments$.pipe(Object(a.h)()).subscribe(e=>{const n=e.get(t.instrument);this.store.dispatch(Object(c.g)({name:"share-position",inputs:{position:t,instrument:n}}))})}viewLvgPrefs({position:t}){this.instruments$.pipe(Object(a.h)()).subscribe(e=>{"flexible_futures"===e.get(t.instrument).type&&this.store.dispatch(Object(c.g)({name:"flex-prefs"}))})}};return t.\u0275fac=function(e){return new(e||t)(g.Ob(r.b),g.Ob(m.e),g.Ob(p.a))},t.\u0275cmp=g.Ib({type:t,selectors:[["open-positions"]],inputs:{flexOnly:"flexOnly"},decls:6,vars:3,consts:[["class","table-wrapper","breakpoint","",3,"breakpoints",4,"ngLet"],["noEntries",""],["loader",""],["breakpoint","",1,"table-wrapper",3,"breakpoints"],["tourPositionRef",""],[4,"ngIf","ngIfElse"],[3,"flexOnly","positions","displayTooltips","selectTicker","marketClose","limitClose","viewDetailed","sharePosition","viewLvgPrefs"],[3,"itemSize"],[3,"position","selectTicker","marketClose","limitClose","viewDetailed",4,"cdkVirtualFor","cdkVirtualForOf"],[3,"position","selectTicker","marketClose","limitClose","viewDetailed"],["body","","ghost","",1,"no-activity"],["icon","list","size","3x"],[4,"ngIfSome","ngIfSomeElse"],["unfiltered",""],["translate",""]],template:function(t,e){1&t&&(g.Oc(0,M,3,4,"div",0),g.gc(1,"async"),g.Oc(2,L,6,4,"ng-template",null,1,g.Pc),g.Oc(4,N,1,0,"ng-template",null,2,g.Pc)),2&t&&g.mc("ngLet",g.hc(1,1,e.positions$))},directives:[v.a,_.a,y.n,O.a,C.e,C.a,C.d,w.a,T.a,S.a,k.b,E.a,m.a,x.a],pipes:[y.b,m.d],styles:["market-icon[_ngcontent-%COMP%]{font-size:20px}[_nghost-%COMP%]{display:flex;flex-direction:column;padding:var(--spacing)}.table-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%]{height:100%}.no-activity[_ngcontent-%COMP%]{text-align:center;padding:var(--spacing-l)}cdk-virtual-scroll-viewport[_ngcontent-%COMP%]{height:100%}@media (max-width:1024px){.table-wrapper[_ngcontent-%COMP%] open-positions-desktop[_ngcontent-%COMP%]{display:none}.table-wrapper[_ngcontent-%COMP%] cdk-virtual-scroll-viewport[_ngcontent-%COMP%]{display:block!important}}.table-wrapper[breakpoint=large][_ngcontent-%COMP%] cdk-virtual-scroll-viewport[_ngcontent-%COMP%], .table-wrapper[breakpoint=medium][_ngcontent-%COMP%] cdk-virtual-scroll-viewport[_ngcontent-%COMP%], .table-wrapper[breakpoint=small][_ngcontent-%COMP%] open-positions-desktop[_ngcontent-%COMP%]{display:none}"],changeDetection:0}),t=Object(i.d)([Object(b.a)()],t),t})()},"3GEX":function(t,e,n){"use strict";n.d(e,"a",(function(){return b}));var i=n("Aey0"),r=n("YzTY"),s=n("uJYd"),o=n("kZht"),a=n("zqNl"),c=n("anSm"),l=n("1o0v"),u=n("NxuZ"),h=n("An66"),d=n("aDqW");const p=["*"],f={[r.a.OPEN_POSITIONS]:"POSITIONS_ORDERS",[r.a.OPEN_ORDERS]:"POSITIONS_ORDERS",[r.a.TRIGGER_ORDERS]:"POSITIONS_ORDERS",[r.a.FILLED_ORDERS]:"POSITIONS_ORDERS",[r.a.ORDERBOOK]:"ORDERBOOK",[r.a.MARKET_CHART]:"MARKET_CHART",[r.a.TRADE_HISTORY]:"TRADE_HISTORY"};let b=(()=>{class t{constructor(t,e){this.layout=t,this.store=e,this.CID=r.a}pushItem(t){this.layout.pushItem(t)}openSettings(){const t=f[this.draggableItem.id];this.store.dispatch(Object(s.g)({name:"tab-settings",inputs:{title:t}}))}removeItem(){this.layout.removeItem(this.draggableItem)}}return t.\u0275fac=function(e){return new(e||t)(o.Ob(i.a),o.Ob(a.b))},t.\u0275cmp=o.Ib({type:t,selectors:[["draggable-container"]],inputs:{draggableItem:"draggableItem"},ngContentSelectors:p,decls:11,vars:5,consts:[[1,"draggable-container"],[1,"draggable"],["body","","ghost",""],["icon","close-medium","size","lg",3,"click","mousedown"],["icon","cog","size","lg",3,"click","mousedown"],[1,"content"]],template:function(t,e){1&t&&(o.lc(),o.Ub(0,"section",0),o.Ub(1,"div",1),o.Ub(2,"p",2),o.Qc(3),o.gc(4,"uppercase"),o.gc(5,"translate"),o.Tb(),o.Ub(6,"div"),o.Ub(7,"fa-icon",3),o.bc("click",(function(){return e.removeItem()}))("mousedown",(function(t){return t.stopPropagation()})),o.Tb(),o.Ub(8,"fa-icon",4),o.bc("click",(function(){return e.openSettings()}))("mousedown",(function(t){return t.stopPropagation()})),o.Tb(),o.Tb(),o.Tb(),o.Ub(9,"div",5),o.kc(10),o.Tb(),o.Tb()),2&t&&(o.Cb(3),o.Rc(o.hc(4,1,o.hc(5,3,"HEADING."+e.CID[e.draggableItem.id]))))},directives:[c.a,l.a,u.b],pipes:[h.x,d.d],styles:[".draggable-container[_ngcontent-%COMP%]{height:100%}.draggable-container[_ngcontent-%COMP%]:hover .draggable[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{display:inherit}.draggable[_ngcontent-%COMP%]{background:var(--card-colour);height:30px;cursor:grab;display:flex;justify-content:space-between;align-items:center;padding:0 var(--spacing);position:sticky}.draggable[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{display:none;color:var(--icon-colour);float:right;padding:var(--spacing) var(--spacing-s);cursor:pointer}.content[_ngcontent-%COMP%]{background:var(--card-colour);height:calc(100% - 30px);overflow-y:auto}"]}),t})()},"3W1Y":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("kZht");let r=(()=>{class t{constructor(t,e){this.renderer=t,this.element=e}ngOnInit(){this.renderer.addClass(this.element.nativeElement,"global__text"),this.renderer.addClass(this.element.nativeElement,"global__text-caption")}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.G),i.Ob(i.l))},t.\u0275dir=i.Jb({type:t,selectors:[["","caption",""]]}),t})()},"3ZBw":function(t,e,n){"use strict";n.r(e),n.d(e,"EditOrderComponent",(function(){return P}));var i=n("3kIJ"),r=n("mcff"),s=n("zqNl"),o=n("ZTXN"),a=n("8lHc"),c=n("xVbo"),l=n("kuMc"),u=n("1u95"),h=n("h3eB"),d=n("KyJX"),p=n("kZht"),f=n("rfPA"),b=n("bBQR"),g=n("An66"),m=n("EmXI"),v=n("Tcl6"),_=n("hCLc"),y=n("aDqW"),O=n("DpwM"),C=n("rUBT");function w(t,e){if(1&t&&(p.Ub(0,"mat-form-field",13),p.Ub(1,"mat-label"),p.Qc(2),p.gc(3,"translate"),p.Tb(),p.Pb(4,"input",14),p.Tb()),2&t){const t=p.fc();p.Cb(2),p.Rc(p.hc(3,2,"FORM.TRIGGER_PRICE")),p.Cb(2),p.mc("step",t.tickSize)}}function T(t,e){if(1&t&&(p.Ub(0,"mat-form-field",13),p.Ub(1,"mat-label"),p.Qc(2),p.gc(3,"translate"),p.Tb(),p.Pb(4,"input",15),p.Tb()),2&t){const t=p.fc();p.Cb(2),p.Rc(p.hc(3,2,"FORM.LIMIT_PRICE")),p.Cb(2),p.mc("step",t.tickSize)}}function S(t,e){if(1&t&&(p.Ub(0,"p",9),p.Qc(1),p.gc(2,"cryptoPrecise"),p.gc(3,"async"),p.gc(4,"collateral"),p.gc(5,"collateral"),p.Tb()),2&t){const t=p.fc(2);var n;p.Cb(1),p.Tc(" ",p.ic(2,2,(null==(n=p.hc(3,5,t.editInitialMargin$))?null:n.buy)||0,p.hc(4,7,t.inputs.instrument.symbol))," ",p.hc(5,9,t.inputs.instrument.symbol)," ")}}function k(t,e){if(1&t&&(p.Ub(0,"p",9),p.Qc(1),p.gc(2,"cryptoPrecise"),p.gc(3,"async"),p.gc(4,"collateral"),p.gc(5,"collateral"),p.Tb()),2&t){const t=p.fc(2);var n;p.Cb(1),p.Tc(" ",p.ic(2,2,(null==(n=p.hc(3,5,t.editInitialMargin$))?null:n.sell)||0,p.hc(4,7,t.inputs.instrument.symbol))," ",p.hc(5,9,t.inputs.instrument.symbol)," ")}}function E(t,e){if(1&t&&(p.Ub(0,"div",3),p.Ub(1,"p",4),p.Qc(2),p.gc(3,"translate"),p.Tb(),p.Oc(4,S,6,11,"p",16),p.Oc(5,k,6,11,"p",16),p.Tb()),2&t){const t=p.fc();p.Cb(2),p.Rc(p.hc(3,3,"LABEL.MARGIN_REQUIREMENT")),p.Cb(2),p.mc("ngIf","Long"===t.orderDirection),p.Cb(1),p.mc("ngIf","Short"===t.orderDirection)}}const x=function(t,e){return{"global__text--accent":t,"global__text--warn":e}};let P=(()=>{class t{constructor(t,e,n){this.store=t,this.inputs=e,this.formBuilder=n,this.destroy$=new o.b,this.editInitialMargin$=this.store.pipe(Object(s.m)(d.c))}ngOnInit(){this.form=this.buildForm,this.getInitialMargin()}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.unsubscribe()}getInitialMargin(){Object(a.a)(500,1500).pipe(Object(c.a)(()=>this.marginRequired),Object(c.a)(()=>this.form&&this.form.get("size").value>0&&(!this.form.get("limitPrice")||this.form.get("limitPrice").value>0)&&(!this.form.get("stopPrice")||this.form.get("stopPrice").value>0)),Object(l.a)(this.destroy$)).subscribe(()=>{this.store.dispatch(Object(u.b)({order:Object.assign(Object.assign({},this.form.value),{side:this.inputs.order.direction?"sell":"buy",symbol:this.inputs.order.instrument,orderType:this.inputs.order.type.toLowerCase()}),editMargin:!0}))})}get buildForm(){return this.formBuilder.group(Object.assign(Object.assign({orderId:[this.inputs.order.order_id,i.x.required],size:[Math.abs(this.inputs.order.qty),[i.x.required]]},this.inputs.order.limit_price&&{limitPrice:[this.inputs.order.limit_price,[i.x.required]]}),this.inputs.order.stop_price&&{stopPrice:[this.inputs.order.stop_price,[i.x.required]]}))}submitForm(){this.store.dispatch(Object(h.g)(this.form.value))}get tickSize(){return this.inputs.instrument?this.inputs.instrument.tickSize:1}get orderDirection(){return 0===this.inputs.order.direction?"Long":"Short"}calculateNotionalValue(t,e,n){switch(n){case"futures_inverse":return t/e;case"futures_vanilla":case"flexible_futures":return t*e}}get marginRequired(){return"market"===this.inputs.order.type||"limit"===this.inputs.order.type}}return t.\u0275fac=function(e){return new(e||t)(p.Ob(s.b),p.Ob(r.a),p.Ob(i.d))},t.\u0275cmp=p.Ib({type:t,selectors:[["edit-order"]],decls:64,vars:70,consts:[["heading","DIALOG.EDIT_ORDER.TITLE"],[1,"edit-order__form","global__text","global__text-body",3,"formGroup"],[1,"edit-order__details"],[1,"edit-order__detail"],[1,"global__text","global__text-body"],[1,"global__text","global__text-body",3,"ngClass"],["color","accent","appearance","fill",1,"edit-order__quantity","global__text","global__text-body"],["formControlName","size","required","","matInput","","type","number","min","0"],["color","accent","appearance","fill","class","edit-order__limit-price global__text global__text-body",4,"ngIf"],[1,"global__text","global__text-body","global__text--mono"],[1,"global__text","global__text-body","global__text--mono",3,"ngClass"],["class","edit-order__detail",4,"ngIf"],["mat-raised-button","","color","warn",1,"global__text","global__text-body",3,"disabled","click"],["color","accent","appearance","fill",1,"edit-order__limit-price","global__text","global__text-body"],["formControlName","stopPrice","required","","matInput","","type","number","min","0",3,"step"],["formControlName","limitPrice","required","","matInput","","type","number","min","0",3,"step"],["class","global__text global__text-body global__text--mono",4,"ngIf"]],template:function(t,e){1&t&&(p.Ub(0,"pro-dialog",0),p.Ub(1,"form",1),p.Ub(2,"section",2),p.Ub(3,"div",3),p.Ub(4,"p",4),p.Qc(5),p.gc(6,"translate"),p.Tb(),p.Ub(7,"p",4),p.Qc(8),p.Tb(),p.Tb(),p.Ub(9,"div",3),p.Ub(10,"p",4),p.Qc(11),p.gc(12,"translate"),p.Tb(),p.Ub(13,"p",4),p.Qc(14),p.gc(15,"date"),p.Tb(),p.Tb(),p.Ub(16,"div",3),p.Ub(17,"p",4),p.Qc(18),p.gc(19,"translate"),p.Tb(),p.Ub(20,"p",4),p.Qc(21),p.Tb(),p.Tb(),p.Ub(22,"div",3),p.Ub(23,"p",4),p.Qc(24),p.gc(25,"translate"),p.Tb(),p.Ub(26,"p",5),p.Qc(27),p.Tb(),p.Tb(),p.Ub(28,"div",3),p.Ub(29,"p",4),p.Qc(30),p.gc(31,"translate"),p.Tb(),p.Ub(32,"p",5),p.Qc(33),p.Tb(),p.Tb(),p.Tb(),p.Ub(34,"mat-form-field",6),p.Ub(35,"mat-label"),p.Qc(36),p.gc(37,"translate"),p.Tb(),p.Pb(38,"input",7),p.Tb(),p.Oc(39,w,5,4,"mat-form-field",8),p.Oc(40,T,5,4,"mat-form-field",8),p.Ub(41,"section",2),p.Ub(42,"div",3),p.Ub(43,"p",4),p.Qc(44),p.gc(45,"translate"),p.Tb(),p.Ub(46,"p",9),p.Qc(47),p.gc(48,"cryptoPrecise"),p.gc(49,"collateral"),p.gc(50,"collateral"),p.Tb(),p.Tb(),p.Ub(51,"div",3),p.Ub(52,"p",4),p.Qc(53),p.gc(54,"translate"),p.Tb(),p.Ub(55,"p",10),p.Qc(56),p.gc(57,"cryptoPrecise"),p.gc(58,"collateral"),p.gc(59,"collateral"),p.Tb(),p.Tb(),p.Oc(60,E,6,5,"div",11),p.Tb(),p.Ub(61,"button",12),p.bc("click",(function(){return e.submitForm()})),p.Qc(62),p.gc(63,"translate"),p.Tb(),p.Tb(),p.Tb()),2&t&&(p.Cb(1),p.mc("formGroup",e.form),p.Cb(4),p.Rc(p.hc(6,26,"COLUMN.SYMBOL")),p.Cb(3),p.Sc(" ",e.inputs.order.instrument," "),p.Cb(3),p.Rc(p.hc(12,28,"COLUMN.DATE_TIME")),p.Cb(3),p.Sc(" ",p.ic(15,30,e.inputs.order.time,"dd/MMM/yyyy HH:mm:ss")," "),p.Cb(4),p.Rc(p.hc(19,33,"COLUMN.TYPE")),p.Cb(3),p.Sc(" ",e.inputs.order.type," "),p.Cb(3),p.Rc(p.hc(25,35,"BUTTON.REDUCE_ONLY")),p.Cb(2),p.mc("ngClass",p.sc(61,x,null==e.inputs.order?null:e.inputs.order.reduce_only,!(null!=e.inputs.order&&e.inputs.order.reduce_only))),p.Cb(1),p.Sc(" ",e.inputs.order.reduce_only," "),p.Cb(3),p.Rc(p.hc(31,37,"COLUMN.SIDE")),p.Cb(2),p.mc("ngClass",p.sc(64,x,"Long"===e.orderDirection,"Short"===e.orderDirection)),p.Cb(1),p.Sc(" ",e.orderDirection," "),p.Cb(3),p.Rc(p.hc(37,39,"FORM.QUANTITY")),p.Cb(3),p.mc("ngIf",null==e.inputs?null:e.inputs.order.stop_price),p.Cb(1),p.mc("ngIf",null==e.inputs?null:e.inputs.order.limit_price),p.Cb(4),p.Rc(p.hc(45,41,"LABEL.ORDER_VALUE")),p.Cb(3),p.Tc(" ",p.ic(48,43,e.calculateNotionalValue(e.form.value.size,e.form.value.limitPrice,null==e.inputs.instrument?null:e.inputs.instrument.type)||0,p.hc(49,46,e.inputs.instrument.symbol))," ",p.hc(50,48,e.inputs.instrument.symbol)," "),p.Cb(6),p.Rc(p.hc(54,50,"LABEL.AVAILABLE_MARGIN")),p.Cb(2),p.mc("ngClass",p.sc(67,x,e.inputs.availableMargin>0,e.inputs.availableMargin<=0)),p.Cb(1),p.Tc(" ",p.ic(57,52,e.inputs.availableMargin||0,p.hc(58,55,e.inputs.instrument.symbol))," ",p.hc(59,57,e.inputs.instrument.symbol)," "),p.Cb(4),p.mc("ngIf",e.marginRequired),p.Cb(1),p.mc("disabled",e.form.invalid),p.Cb(1),p.Sc(" ",p.hc(63,59,"BUTTON.EDIT_ORDER")," "))},directives:[f.a,b.a,i.z,i.p,i.h,g.l,m.c,m.f,i.c,v.b,i.s,i.o,i.g,i.v,g.n,_.b],pipes:[y.d,g.e,O.b,C.b,g.b],styles:["form[_ngcontent-%COMP%]{width:250px}@media (max-width:599px){form[_ngcontent-%COMP%]{width:100%}}form[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%]{width:100%}form[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{margin-top:var(--spacing);width:100%}.edit-order__details[_ngcontent-%COMP%]{padding:var(--spacing) 0}.edit-order__detail[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:space-between;margin-bottom:6px;text-transform:capitalize}"],changeDetection:0}),t})()},"3as9":function(t,e,n){var i;!function(r,s){"use strict";var o="model",a="name",c="type",l="vendor",u="version",h="mobile",d="tablet",p="smarttv",f=function(t){for(var e={},n=0;n0?2===s.length?this[s[0]]="function"==typeof s[1]?s[1].call(this,a):s[1]:3===s.length?this[s[0]]="function"!=typeof s[1]||s[1].exec&&s[1].test?a?a.replace(s[1],s[2]):void 0:a?s[1].call(this,a,s[2]):void 0:4===s.length&&(this[s[0]]=a?s[3].call(this,a.replace(s[1],s[2])):void 0):this[s]=a||void 0;c+=2}},_=function(t,e){for(var n in e)if("object"==typeof e[n]&&e[n].length>0){for(var i=0;i2&&(t.model="iPad",t.type=d),t},this.getEngine=function(){var t={name:void 0,version:void 0};return v.call(t,i,o.engine),t},this.getOS=function(){var t={name:void 0,version:void 0};return v.call(t,i,o.os),a&&!t.name&&s&&"Unknown"!=s.platform&&(t.name=s.platform.replace(/chrome os/i,"Chromium OS").replace(/macos/i,"Mac OS")),t},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return i},this.setUA=function(t){return i="string"==typeof t&&t.length>350?m(t,350):t,this},this.setUA(i),this};C.VERSION="0.7.36",C.BROWSER=f([a,u,"major"]),C.CPU=f(["architecture"]),C.DEVICE=f([o,l,c,"console",h,p,d,"wearable","embedded"]),C.ENGINE=C.OS=f([a,u]),void 0!==e?(void 0!==t&&t.exports&&(e=t.exports=C),e.UAParser=C):n("jPSd")?void 0===(i=(function(){return C}).call(e,n,e,t))||(t.exports=i):void 0!==r&&(r.UAParser=C);var w=void 0!==r&&(r.jQuery||r.Zepto);if(w&&!w.ua){var T=new C;w.ua=T.getResult(),w.ua.get=function(){return T.getUA()},w.ua.set=function(t){T.setUA(t);var e=T.getResult();for(var n in e)w.ua[n]=e[n]}}}("object"==typeof window?window:this)},"3kIJ":function(t,e,n){"use strict";n.d(e,"a",(function(){return jt})),n.d(e,"b",(function(){return b})),n.d(e,"c",(function(){return p})),n.d(e,"d",(function(){return Vt})),n.d(e,"e",(function(){return ht})),n.d(e,"f",(function(){return Ct})),n.d(e,"g",(function(){return It})),n.d(e,"h",(function(){return Tt})),n.d(e,"i",(function(){return kt})),n.d(e,"j",(function(){return $t})),n.d(e,"k",(function(){return Ut})),n.d(e,"l",(function(){return w})),n.d(e,"m",(function(){return c})),n.d(e,"n",(function(){return m})),n.d(e,"o",(function(){return _})),n.d(e,"p",(function(){return y})),n.d(e,"q",(function(){return gt})),n.d(e,"r",(function(){return V})),n.d(e,"s",(function(){return D})),n.d(e,"t",(function(){return Bt})),n.d(e,"u",(function(){return Ht})),n.d(e,"v",(function(){return Rt})),n.d(e,"w",(function(){return z})),n.d(e,"x",(function(){return k})),n.d(e,"y",(function(){return Q})),n.d(e,"z",(function(){return _t}));var i=n("kZht"),r=n("An66"),s=n("P4Xx"),o=n("GoAz"),a=n("YtkY");const c=new i.s("NgValueAccessor"),l={provide:c,useExisting:Object(i.V)(()=>u),multi:!0};let u=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.G),i.Ob(i.l))},t.\u0275dir=i.Jb({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&i.bc("change",(function(t){return e.onChange(t.target.checked)}))("blur",(function(){return e.onTouched()}))},features:[i.Bb([l])]}),t})();const h={provide:c,useExisting:Object(i.V)(()=>p),multi:!0},d=new i.s("CompositionEventMode");let p=(()=>{class t{constructor(t,e,n){this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=t=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=Object(r.C)()?Object(r.C)().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.G),i.Ob(i.l),i.Ob(d,8))},t.\u0275dir=i.Jb({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&i.bc("input",(function(t){return e._handleInput(t.target.value)}))("blur",(function(){return e.onTouched()}))("compositionstart",(function(){return e._compositionStart()}))("compositionend",(function(t){return e._compositionEnd(t.target.value)}))},features:[i.Bb([h])]}),t})(),f=(()=>{class t{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t}),t})(),b=(()=>{class t extends f{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return g(e||t)},t.\u0275dir=i.Jb({type:t,features:[i.zb]}),t})();const g=i.Wb(b);class m extends f{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){}get asyncValidator(){}}class v{constructor(t){this._cd=t}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}let _=(()=>{class t extends v{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(m,2))},t.\u0275dir=i.Jb({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&i.Gb("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[i.zb]}),t})(),y=(()=>{class t extends v{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(b,2))},t.\u0275dir=i.Jb({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&i.Gb("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[i.zb]}),t})();function O(t){return null==t||0===t.length}function C(t){return null!=t&&"number"==typeof t.length}const w=new i.s("NgValidators"),T=new i.s("NgAsyncValidators"),S=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class k{static min(t){return e=>{if(O(e.value)||O(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n{if(O(e.value)||O(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}static required(t){return O(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return O(t.value)||S.test(t.value)?null:{email:!0}}static minLength(t){return e=>O(e.value)||!C(e.value)?null:e.value.lengthC(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}static pattern(t){if(!t)return k.nullValidator;let e,n;return"string"==typeof t?(n="","^"!==t.charAt(0)&&(n+="^"),n+=t,"$"!==t.charAt(t.length-1)&&(n+="$"),e=new RegExp(n)):(n=t.toString(),e=t),t=>{if(O(t.value))return null;const i=t.value;return e.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}}static nullValidator(t){return null}static compose(t){if(!t)return null;const e=t.filter(E);return 0==e.length?null:function(t){return P(A(t,e))}}static composeAsync(t){if(!t)return null;const e=t.filter(E);return 0==e.length?null:function(t){const n=A(t,e).map(x);return Object(s.a)(n).pipe(Object(a.a)(P))}}}function E(t){return null!=t}function x(t){const e=Object(i.ub)(t)?Object(o.a)(t):t;return Object(i.tb)(e),e}function P(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function A(t,e){return e.map(e=>e(t))}function I(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}const M={provide:c,useExisting:Object(i.V)(()=>D),multi:!0};let D=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.G),i.Ob(i.l))},t.\u0275dir=i.Jb({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&i.bc("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[i.Bb([M])]}),t})();const R={provide:c,useExisting:Object(i.V)(()=>L),multi:!0};let j=(()=>{class t{constructor(){this._accessors=[]}add(t,e){this._accessors.push([t,e])}remove(t){for(let e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}select(t){this._accessors.forEach(e=>{this._isSameGroup(e,t)&&e[1]!==t&&e[1].fireUncheck(t.value)})}_isSameGroup(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),L=(()=>{class t{constructor(t,e,n,i){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=i,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(m),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}fireUncheck(t){this.writeValue(t)}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.G),i.Ob(i.l),i.Ob(j),i.Ob(i.t))},t.\u0275dir=i.Jb({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&i.bc("change",(function(){return e.onChange()}))("blur",(function(){return e.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[i.Bb([R])]}),t})();const N={provide:c,useExisting:Object(i.V)(()=>U),multi:!0};let U=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.G),i.Ob(i.l))},t.\u0275dir=i.Jb({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&i.bc("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[i.Bb([N])]}),t})();const F={provide:c,useExisting:Object(i.V)(()=>z),multi:!0};function B(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let z=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=B(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(t){this.onChange=e=>{this.value=this._getOptionValue(e),t(this.value)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e),t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.G),i.Ob(i.l))},t.\u0275dir=i.Jb({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&i.bc("change",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[i.Bb([F])]}),t})(),V=(()=>{class t{constructor(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(B(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(i.G),i.Ob(z,9))},t.\u0275dir=i.Jb({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const $={provide:c,useExisting:Object(i.V)(()=>q),multi:!0};function H(t,e){return null==t?""+e:("string"==typeof e&&(e=`'${e}'`),e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let q=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let e;if(this.value=t,Array.isArray(t)){const n=t.map(t=>this._getOptionId(t));e=(t,e)=>{t._setSelected(n.indexOf(e.toString())>-1)}}else e=(t,e)=>{t._setSelected(!1)};this._optionMap.forEach(e)}registerOnChange(t){this.onChange=e=>{const n=[];if(void 0!==e.selectedOptions){const t=e.selectedOptions;for(let e=0;e{class t{constructor(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue(H(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(H(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(i.G),i.Ob(q,9))},t.\u0275dir=i.Jb({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();function W(t,e){return[...e.path,t]}function G(t,e){t.validator=k.compose([t.validator,e.validator]),t.asyncValidator=k.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&Y(t,e)})}(t,e),function(t,e){t.registerOnChange((t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&Y(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(t=>{e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())}),e._rawAsyncValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())})}function Y(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function K(t,e){t.validator=k.compose([t.validator,e.validator]),t.asyncValidator=k.composeAsync([t.asyncValidator,e.asyncValidator])}function Z(t){return null!=t?k.compose(I(t)):null}function X(t){return null!=t?k.composeAsync(I(t)):null}function J(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}const tt=[u,U,D,z,q,L];function et(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function nt(t,e){if(!e)return null;Array.isArray(e);let n=void 0,i=void 0,r=void 0;return e.forEach(t=>{var e;t.constructor===p?n=t:(e=t,tt.some(t=>e.constructor===t)?i=t:r=t)}),r||i||n||null}function it(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}function rt(t,e,n,r){Object(i.X)()&&"never"!==r&&((null!==r&&"once"!==r||e._ngModelWarningSentOnce)&&("always"!==r||n._ngModelWarningSent)||(e._ngModelWarningSentOnce=!0,n._ngModelWarningSent=!0))}function st(t){return(lt(t)?t.validators:t)||null}function ot(t){return Array.isArray(t)?Z(t):t||null}function at(t,e){return(lt(e)?e.asyncValidators:t)||null}function ct(t){return Array.isArray(t)?X(t):t||null}function lt(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class ut{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=ot(this._rawValidators),this._composedAsyncValidatorFn=ct(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return"VALID"===this.status}get invalid(){return"INVALID"===this.status}get pending(){return"PENDING"==this.status}get disabled(){return"DISABLED"===this.status}get enabled(){return"DISABLED"!==this.status}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=ot(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=ct(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;const e=x(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,n){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let i=t;return e.forEach(t=>{i=i instanceof dt?i.controls.hasOwnProperty(t)?i.controls[t]:null:i instanceof pt&&i.at(t)||null}),i}(this,t)}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new i.o,this.statusChanges=new i.o}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){lt(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class ht extends ut{constructor(t=null,e,n){super(st(e),at(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_clearChangeFns(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=()=>{}}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class dt extends ut{constructor(t,e,n){super(st(e),at(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t={},e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e instanceof ht?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>t(this.controls[e],e))}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const n=this.controls[e];if(this.contains(e)&&t(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,i)=>{n=e(n,t,i)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class pt extends ut{constructor(t,e,n){super(st(e),at(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}at(t){return this.controls[t]}push(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}insert(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}removeAt(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t=[],e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof ht?t.value:t.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error("Cannot find form control at index "+t)}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const ft={provide:b,useExisting:Object(i.V)(()=>gt)},bt=(()=>Promise.resolve(null))();let gt=(()=>{class t extends b{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new i.o,this.form=new dt({},Z(t),X(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){bt.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),G(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){bt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),it(this._directives,t)})}addFormGroup(t){bt.then(()=>{const e=this._findContainer(t.path),n=new dt({});K(n,t),e.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){bt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){bt.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,et(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(w,10),i.Ob(T,10))},t.\u0275dir=i.Jb({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&i.bc("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.Bb([ft]),i.zb]}),t})(),mt=(()=>{class t extends b{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return W(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return Z(this._validators)}get asyncValidator(){return X(this._asyncValidators)}_checkParentType(){}}return t.\u0275fac=function(e){return vt(e||t)},t.\u0275dir=i.Jb({type:t,features:[i.zb]}),t})();const vt=i.Wb(mt);let _t=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const yt=new i.s("NgModelWithFormControlWarning"),Ot={provide:m,useExisting:Object(i.V)(()=>Ct)};let Ct=(()=>{class t extends m{constructor(t,e,n,r){super(),this._ngModelWarningConfig=r,this.update=new i.o,this._ngModelWarningSent=!1,this._rawValidators=t||[],this._rawAsyncValidators=e||[],this.valueAccessor=nt(0,n)}set isDisabled(t){}ngOnChanges(e){this._isControlChanged(e)&&(G(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),J(e,this.viewModel)&&(rt(0,t,this,this._ngModelWarningConfig),this.form.setValue(this.model),this.viewModel=this.model)}get path(){return[]}get validator(){return Z(this._rawValidators)}get asyncValidator(){return X(this._rawAsyncValidators)}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(w,10),i.Ob(T,10),i.Ob(c,10),i.Ob(yt,8))},t.\u0275dir=i.Jb({type:t,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[i.Bb([Ot]),i.zb,i.Ab]}),t._ngModelWarningSentOnce=!1,t})();const wt={provide:b,useExisting:Object(i.V)(()=>Tt)};let Tt=(()=>{class t extends b{constructor(t,e){super(),this._validators=t,this._asyncValidators=e,this.submitted=!1,this.directives=[],this.form=null,this.ngSubmit=new i.o}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return G(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){it(this.directives,t)}addFormGroup(t){const e=this.form.get(t.path);K(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormGroup(t){}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){const e=this.form.get(t.path);K(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormArray(t){}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,et(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=this.form.get(t.path);t.control!==e&&(function(t,e){const n=()=>{};e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n),e._rawValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),e._rawAsyncValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),t&&t._clearChangeFns()}(t.control,t),e&&G(e,t),t.control=e)}),this.form._updateTreeValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(()=>this._updateDomValue()),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{}),this._oldForm=this.form}_updateValidators(){const t=Z(this._validators);this.form.validator=k.compose([this.form.validator,t]);const e=X(this._asyncValidators);this.form.asyncValidator=k.composeAsync([this.form.asyncValidator,e])}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(w,10),i.Ob(T,10))},t.\u0275dir=i.Jb({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&i.bc("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.Bb([wt]),i.zb,i.Ab]}),t})();const St={provide:b,useExisting:Object(i.V)(()=>kt)};let kt=(()=>{class t extends mt{constructor(t,e,n){super(),this._parent=t,this._validators=e,this._asyncValidators=n}_checkParentType(){Pt(this._parent)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(b,13),i.Ob(w,10),i.Ob(T,10))},t.\u0275dir=i.Jb({type:t,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[i.Bb([St]),i.zb]}),t})();const Et={provide:b,useExisting:Object(i.V)(()=>xt)};let xt=(()=>{class t extends b{constructor(t,e,n){super(),this._parent=t,this._validators=e,this._asyncValidators=n}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return W(null==this.name?this.name:this.name.toString(),this._parent)}get validator(){return Z(this._validators)}get asyncValidator(){return X(this._asyncValidators)}_checkParentType(){Pt(this._parent)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(b,13),i.Ob(w,10),i.Ob(T,10))},t.\u0275dir=i.Jb({type:t,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[i.Bb([Et]),i.zb]}),t})();function Pt(t){return!(t instanceof kt||t instanceof Tt||t instanceof xt)}const At={provide:m,useExisting:Object(i.V)(()=>It)};let It=(()=>{class t extends m{constructor(t,e,n,r,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new i.o,this._ngModelWarningSent=!1,this._parent=t,this._rawValidators=e||[],this._rawAsyncValidators=n||[],this.valueAccessor=nt(0,r)}set isDisabled(t){}ngOnChanges(e){this._added||this._setUpControl(),J(e,this.viewModel)&&(rt(0,t,this,this._ngModelWarningConfig),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return W(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return Z(this._rawValidators)}get asyncValidator(){return X(this._rawAsyncValidators)}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(b,13),i.Ob(w,10),i.Ob(T,10),i.Ob(c,10),i.Ob(yt,8))},t.\u0275dir=i.Jb({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[i.Bb([At]),i.zb,i.Ab]}),t._ngModelWarningSentOnce=!1,t})();const Mt={provide:w,useExisting:Object(i.V)(()=>Rt),multi:!0},Dt={provide:w,useExisting:Object(i.V)(()=>jt),multi:!0};let Rt=(()=>{class t{constructor(){this._required=!1}get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&""+t!="false",this._onChange&&this._onChange()}validate(t){return this.required?k.required(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&i.Db("required",e.required?"":null)},inputs:{required:"required"},features:[i.Bb([Mt])]}),t})(),jt=(()=>{class t extends Rt{validate(t){return this.required?k.requiredTrue(t):null}}return t.\u0275fac=function(e){return Lt(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&i.Db("required",e.required?"":null)},features:[i.Bb([Dt]),i.zb]}),t})();const Lt=i.Wb(jt),Nt={provide:w,useExisting:Object(i.V)(()=>Ut),multi:!0};let Ut=(()=>{class t{constructor(){this._validator=k.nullValidator}ngOnChanges(t){"maxlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return null!=this.maxlength?this._validator(t):null}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=k.maxLength("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&i.Db("maxlength",e.maxlength?e.maxlength:null)},inputs:{maxlength:"maxlength"},features:[i.Bb([Nt]),i.Ab]}),t})();const Ft={provide:w,useExisting:Object(i.V)(()=>Bt),multi:!0};let Bt=(()=>{class t{constructor(){this._validator=k.nullValidator}ngOnChanges(t){"pattern"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=k.pattern(this.pattern)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&i.Db("pattern",e.pattern?e.pattern:null)},inputs:{pattern:"pattern"},features:[i.Bb([Ft]),i.Ab]}),t})(),zt=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)}}),t})(),Vt=(()=>{class t{group(t,e=null){const n=this._reduceControls(t);let i=null,r=null,s=void 0;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(i=null!=e.validators?e.validators:null,r=null!=e.asyncValidators?e.asyncValidators:null,s=null!=e.updateOn?e.updateOn:void 0):(i=null!=e.validator?e.validator:null,r=null!=e.asyncValidator?e.asyncValidator:null)),new dt(n,{asyncValidators:r,updateOn:s,validators:i})}control(t,e,n){return new ht(t,e,n)}array(t,e,n){const i=t.map(t=>this._createControl(t));return new pt(i,e,n)}_reduceControls(t){const e={};return Object.keys(t).forEach(n=>{e[n]=this._createControl(t[n])}),e}_createControl(t){return t instanceof ht||t instanceof dt||t instanceof pt?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),$t=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},providers:[j],imports:[zt]}),t})(),Ht=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:yt,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},providers:[Vt,j],imports:[zt]}),t})()},"3lSR":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("cJ9h"),r=n("5E2i");function s(t=Number.POSITIVE_INFINITY){return Object(i.a)(r.a,t)}},"3mST":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("5uGe");function r(t){return e=>e.lift(new s(t))}class s{constructor(t){this.total=t}call(t,e){return e.subscribe(new o(t,this.total))}}class o extends i.a{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}},"3p4X":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("IdLP"),r=n("Efrr"),s=n("KRZI");function o(t=0,e=r.a){return(!Object(s.a)(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=r.a),new i.a(n=>(n.add(e.schedule(a,t,{subscriber:n,counter:0,period:t})),n))}function a(t){const{subscriber:e,counter:n,period:i}=t;e.next(n),this.schedule({subscriber:e,counter:n+1,period:i},i)}},"3xzP":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("2gaf"),r=n("y1Fj");e.default=function(){function t(){}return t.decode=function(t,e){var n=this.encodingName(e);return"undefined"==typeof TextDecoder?this.decodeFallback(t,n):new TextDecoder(n).decode(t)},t.encode=function(e,n){return t.isBrowser()?"undefined"==typeof TextEncoder?this.encodeFallback(e):(new TextEncoder).encode(e):new TextEncoder(this.encodingName(n),{NONSTANDARD_allowLegacyEncoding:!0}).encode(e)},t.isBrowser=function(){return"undefined"!=typeof window&&"[object Window]"==={}.toString.call(window)},t.encodingName=function(t){return"string"==typeof t?t:t.getName()},t.encodingCharacterSet=function(t){return r.default.getCharacterSetECIByName(this.encodingName(t))},t.decodeFallback=function(t,e){var n=this.encodingCharacterSet(e);if(n.equals(r.default.UTF8)||n.equals(r.default.ISO8859_1)||n.equals(r.default.ASCII)){for(var s="",o=0,a=t.length;oe.schedule(s,0,{error:t,subscriber:n}):e=>e.error(t))}function s({error:t,subscriber:e}){e.error(t)}},"4Pxi":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t[t.AZTEC=0]="AZTEC",t[t.CODABAR=1]="CODABAR",t[t.CODE_39=2]="CODE_39",t[t.CODE_93=3]="CODE_93",t[t.CODE_128=4]="CODE_128",t[t.DATA_MATRIX=5]="DATA_MATRIX",t[t.EAN_8=6]="EAN_8",t[t.EAN_13=7]="EAN_13",t[t.ITF=8]="ITF",t[t.MAXICODE=9]="MAXICODE",t[t.PDF_417=10]="PDF_417",t[t.QR_CODE=11]="QR_CODE",t[t.RSS_14=12]="RSS_14",t[t.RSS_EXPANDED=13]="RSS_EXPANDED",t[t.UPC_A=14]="UPC_A",t[t.UPC_E=15]="UPC_E",t[t.UPC_EAN_EXTENSION=16]="UPC_EAN_EXTENSION",t}({})},"4S8q":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("8vcT"),r=n("NWTG"),s=n("FEHI"),o=n("oznm"),a=n("FoZF");e.BrowserQRCodeSvgWriter=function(){function t(){}return t.prototype.write=function(e,n,a,c){if(void 0===c&&(c=null),0===e.length)throw new o.default("Found empty contents");if(n<0||a<0)throw new o.default("Requested dimensions are too small: "+n+"x"+a);var l=s.default.L,u=t.QUIET_ZONE_SIZE;null!==c&&(void 0!==c.get(i.default.ERROR_CORRECTION)&&(l=s.default.fromString(c.get(i.default.ERROR_CORRECTION).toString())),void 0!==c.get(i.default.MARGIN)&&(u=Number.parseInt(c.get(i.default.MARGIN).toString(),10)));var h=r.default.encode(e,l,c);return this.renderResult(h,n,a,u)},t.prototype.writeToDom=function(t,e,n,i,r){void 0===r&&(r=null),"string"==typeof t&&(t=document.querySelector(t));var s=this.write(e,n,i,r);t&&t.appendChild(s)},t.prototype.renderResult=function(t,e,n,i){var r=t.getMatrix();if(null===r)throw new a.default;for(var s=r.getWidth(),o=r.getHeight(),c=s+2*i,l=o+2*i,u=Math.max(e,c),h=Math.max(n,l),d=Math.min(Math.floor(u/c),Math.floor(h/l)),p=Math.floor((u-s*d)/2),f=Math.floor((h-o*d)/2),b=this.createSVGElement(u,h),g=0,m=f;g0)("global__text--warn",t.currentPosition.balance<0),f.Cb(1),f.nc("content",t.currentPosition.balance)}}function M(t,e){if(1&t&&(f.Ub(0,"nutritional-info"),f.Ub(1,"span"),f.Qc(2),f.gc(3,"translate"),f.Tb(),f.Ub(4,"span"),f.Pb(5,"ghost-trail",14),f.Tb(),f.Tb()),2&t){const t=f.fc().ngIf;f.Cb(2),f.Rc(f.hc(3,6,"LABEL.POSITION_AFTER_EXECUTE")),f.Cb(2),f.Gb("global__text--accent",t.positionSize>0)("global__text--warn",t.positionSize<0),f.Cb(1),f.nc("content",t.positionSize)}}function D(t,e){if(1&t&&(f.Ub(0,"nutritional-info"),f.Ub(1,"span"),f.Qc(2),f.gc(3,"translate"),f.Tb(),f.Ub(4,"span"),f.Pb(5,"ghost-trail",14),f.gc(6,"sato"),f.Tb(),f.Tb()),2&t){const t=f.fc().ngIf,e=f.fc();f.Cb(2),f.Rc(f.hc(3,3,"LABEL.POST_AVG_ENTRY")),f.Cb(3),f.pc("content","",f.ic(6,5,e.postEntryPrice(t.currentPosition,t.ticker),null==e.inputs?null:e.inputs.instrument)," ",e.quoteCurrency,"")}}function R(t,e){if(1&t&&(f.Ub(0,"div",12),f.Ub(1,"h2",13),f.Qc(2),f.gc(3,"uppercase"),f.gc(4,"translate"),f.Tb(),f.Ub(5,"nutritional-info"),f.Ub(6,"span"),f.Qc(7),f.gc(8,"translate"),f.Tb(),f.Ub(9,"span"),f.Qc(10),f.gc(11,"uppercase"),f.Tb(),f.Tb(),f.Ub(12,"nutritional-info"),f.Ub(13,"span"),f.Qc(14),f.gc(15,"translate"),f.Tb(),f.Ub(16,"span"),f.Pb(17,"ghost-trail",14),f.gc(18,"cryptoPrecise"),f.gc(19,"collateral"),f.gc(20,"collateral"),f.Tb(),f.Tb(),f.Ub(21,"nutritional-info"),f.Ub(22,"span"),f.Qc(23),f.gc(24,"translate"),f.Tb(),f.Ub(25,"span"),f.Pb(26,"ghost-trail",14),f.gc(27,"sato"),f.Tb(),f.Tb(),f.Ub(28,"nutritional-info"),f.Ub(29,"span"),f.Qc(30),f.gc(31,"translate"),f.Tb(),f.Ub(32,"span"),f.Pb(33,"ghost-trail",14),f.gc(34,"cryptoPrecise"),f.gc(35,"collateral"),f.gc(36,"collateral"),f.Tb(),f.Tb(),f.Oc(37,I,6,8,"nutritional-info",15),f.Oc(38,M,6,8,"nutritional-info",15),f.Oc(39,D,7,8,"nutritional-info",15),f.Tb()),2&t){const t=e.ngIf,n=f.fc();f.Cb(2),f.Sc(" ",f.hc(3,15,f.hc(4,17,"BUTTON.DETAILS"))," "),f.Cb(5),f.Rc(f.hc(8,19,"LABEL.ORDER_TYPE")),f.Cb(3),f.Sc(" ",f.hc(11,21,null==n.inputs?null:n.inputs.order.orderType)," "),f.Cb(4),f.Rc(f.hc(15,23,"LABEL.ORDER_VALUE")),f.Cb(3),f.pc("content","\n ",f.ic(18,25,t.orderValue,f.hc(19,28,null==n.inputs?null:n.inputs.instrument.symbol)),"\n ",f.hc(20,30,null==n.inputs?null:n.inputs.instrument.symbol),""),f.Cb(6),f.Rc(f.hc(24,32,"LABEL.MARK_PRICE")),f.Cb(3),f.pc("content","\n ",f.ic(27,34,null==t.selectedTicker?null:t.selectedTicker.markPrice,null==n.inputs?null:n.inputs.instrument)," ",n.quoteCurrency,""),f.Cb(4),f.Rc(f.hc(31,37,"LABEL.AVAILABLE_MARGIN")),f.Cb(3),f.pc("content","\n ",f.ic(34,39,(null==t.wallet?null:t.wallet.am)||0,f.hc(35,42,null==n.inputs?null:n.inputs.instrument.symbol))," ",f.hc(36,44,null==n.inputs?null:n.inputs.instrument.symbol),""),f.Cb(4),f.mc("ngIf",t.currentPosition),f.Cb(1),f.mc("ngIf",t.currentPosition),f.Cb(1),f.mc("ngIf","limit"===(null==n.inputs?null:n.inputs.order.orderType)&&t.currentPosition)}}const j=function(t,e,n,i,r){return{side:t,size:e,symbol:n,quote:i,limitPrice:r}},L=function(t,e,n,i,r){return{selectedTicker:t,wallet:e,currentPosition:n,positionSize:i,orderValue:r}};let N=(()=>{class t{constructor(t,e){this.store=t,this.inputs=e,this.selectedInstrumentPosition$=this.store.pipe(Object(r.m)(u.g)),this.selectedFuturesWallet$=this.store.pipe(Object(r.m)(h.n)),this.selectedTicker$=this.store.pipe(Object(r.m)(l.p)),this.orderValue$=this.selectedTicker$.pipe(Object(d.g)(),Object(s.a)(t=>{const e=this.inputs.instrument;if(e){const n=this.inputs.order.size,i=this.inputs.order.limitPrice?this.inputs.order.limitPrice:Object(p.j)(t);if("futures_inverse"===e.type)return n/i||0;if("futures_vanilla"===e.type)return n*i||0}return 0})),this.positionSizeAfterExecute$=this.selectedInstrumentPosition$.pipe(Object(d.g)(),Object(s.a)(t=>t.balance+("buy"===this.inputs.order.side?this.inputs.order.size:-this.inputs.order.size)))}submitOrder(){this.store.dispatch(Object(c.o)(this.inputs.order))}closeDialog(){this.store.dispatch(Object(a.c)())}get quoteCurrency(){return Object(o.p)(this.inputs.instrument.symbol)}get orderType(){return this.inputs.order.stopPrice?"stop":this.inputs.order.limitPrice?"limit":"market"}get triggerAbove(){return"stop"===this.inputs.order.orderType==("buy"===this.inputs.order.side)}postEntryPrice(t,e){const n=t.balance,i=this.inputs.order.size;return(t.entry_price*n+i*(this.inputs.order.limitPrice?this.inputs.order.limitPrice:Object(p.j)(e)))/(n+i)}capitalizeFirstLetter(t){return t.charAt(0).toUpperCase()+t.slice(1)}}return t.\u0275fac=function(e){return new(e||t)(f.Ob(r.b),f.Ob(i.a))},t.\u0275cmp=f.Ib({type:t,selectors:[["order-confirmation"]],decls:24,vars:38,consts:[["heading","HEADING.ORDER_CONFIRMATION"],[1,"header"],[1,"divider"],[1,"inner"],[3,"pair"],["subheading","","bold","",1,"subtitle"],["class","subtitle","subheading","",4,"ngIf"],["class","details",4,"ngIf"],[1,"buttons"],["body","","mat-raised-button","","color","accent",3,"click"],["body","","mat-raised-button","","color","warn",3,"click"],["subheading","",1,"subtitle"],[1,"details"],["body","","bold",""],[3,"content"],[4,"ngIf"]],template:function(t,e){1&t&&(f.Ub(0,"pro-dialog",0),f.Ub(1,"div",1),f.Ub(2,"div",2),f.Pb(3,"div",3),f.Pb(4,"market-icon",4),f.gc(5,"pair"),f.Tb(),f.Ub(6,"p",5),f.Qc(7),f.gc(8,"translate"),f.Tb(),f.Oc(9,P,3,7,"p",6),f.Oc(10,A,3,7,"p",6),f.Tb(),f.Oc(11,R,40,46,"div",7),f.gc(12,"async"),f.gc(13,"async"),f.gc(14,"async"),f.gc(15,"async"),f.gc(16,"async"),f.Ub(17,"section",8),f.Ub(18,"button",9),f.bc("click",(function(){return e.submitOrder()})),f.Qc(19),f.gc(20,"translate"),f.Tb(),f.Ub(21,"button",10),f.bc("click",(function(){return e.closeDialog()})),f.Qc(22),f.gc(23,"translate"),f.Tb(),f.Tb(),f.Tb()),2&t&&(f.Cb(4),f.mc("pair",f.hc(5,7,null==e.inputs?null:e.inputs.order.symbol)),f.Cb(3),f.Sc(" ",f.ic(8,9,"DIALOG.ORDER_CONFIRMATION.DESCRIPTION",f.vc(26,j,e.capitalizeFirstLetter(null==e.inputs?null:e.inputs.order.side),null==e.inputs?null:e.inputs.order.size,null==e.inputs?null:e.inputs.order.symbol.toUpperCase(),e.quoteCurrency,(null==e.inputs||null==e.inputs.order?null:e.inputs.order.limitPrice)||"Market"))," "),f.Cb(2),f.mc("ngIf",(null==e.inputs?null:e.inputs.order.stopPrice)&&!e.triggerAbove),f.Cb(1),f.mc("ngIf",(null==e.inputs?null:e.inputs.order.stopPrice)&&e.triggerAbove),f.Cb(1),f.mc("ngIf",f.vc(32,L,f.hc(12,12,e.selectedTicker$),f.hc(13,14,e.selectedFuturesWallet$),f.hc(14,16,e.selectedInstrumentPosition$),f.hc(15,18,e.positionSizeAfterExecute$),f.hc(16,20,e.orderValue$))),f.Cb(8),f.Sc(" ",f.hc(20,22,"BUTTON.SUBMIT_ORDER")," "),f.Cb(3),f.Sc(" ",f.hc(23,24,"BUTTON.CANCEL")," "))},directives:[b.a,g.a,m.a,v.a,_.a,y.n,O.b,C.a,w.a,T.a],pipes:[S.e,k.d,y.b,y.x,E.b,S.b,E.c],styles:[".buttons[_ngcontent-%COMP%]{margin-top:var(--spacing-l);width:100%}.buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{flex:1}.buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%] + button[_ngcontent-%COMP%]{margin-left:var(--spacing)}.error[_ngcontent-%COMP%]{padding-top:var(--spacing);width:100%}.error[_ngcontent-%COMP%], .header[_ngcontent-%COMP%]{text-align:center}.header[_ngcontent-%COMP%]{margin-bottom:var(--spacing-xl)}.header[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{margin-bottom:var(--spacing)}.header[_ngcontent-%COMP%] .divider[_ngcontent-%COMP%]{position:relative}.header[_ngcontent-%COMP%] .divider[_ngcontent-%COMP%] .inner[_ngcontent-%COMP%]{border-bottom:1px solid var(--border-colour);top:50%;position:absolute;width:100%}.header[_ngcontent-%COMP%] .divider[_ngcontent-%COMP%] market-icon[_ngcontent-%COMP%]{font-size:2em;position:relative}.header[_ngcontent-%COMP%] .subtitle[_ngcontent-%COMP%]{margin-top:var(--spacing)}"],changeDetection:0}),t})()},"4e/d":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("uCWR");function r(t){return function(e){const n=new s(t),i=e.lift(n);return n.caught=i}}class s{constructor(t){this.selector=t}call(t,e){return e.subscribe(new o(t,this.selector,this.caught))}}class o extends i.b{constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const r=new i.a(this);this.add(r);const s=Object(i.c)(n,r);s!==r&&this.add(s)}}}},"4f+B":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("ZCEf"),r=n("Qkwj"),s=n("FpF2"),o=n("XQte"),a=n("LqyJ"),c=function(){function t(t,e){this.image=t,this.resultPointCallback=e,this.possibleCenters=[],this.crossCheckStateCount=new Int32Array(5),this.resultPointCallback=e}return t.prototype.getImage=function(){return this.image},t.prototype.getPossibleCenters=function(){return this.possibleCenters},t.prototype.find=function(e){var n=null!=e&&void 0!==e.get(i.default.TRY_HARDER),s=null!=e&&void 0!==e.get(i.default.PURE_BARCODE),a=this.image,c=a.getHeight(),l=a.getWidth(),u=Math.floor(3*c/(4*t.MAX_MODULES));(ud[2]&&(p+=g-d[2]-u,b=l-1)}f=0,d[0]=0,d[1]=0,d[2]=0,d[3]=0,d[4]=0}else d[0]=d[2],d[1]=d[3],d[2]=d[4],d[3]=1,d[4]=0,f=3;else d[++f]++;else d[f]++;t.foundPatternCross(d)&&!0===this.handlePossibleCenter(d,p,l,s)&&(u=d[0],this.hasSkipped&&(h=this.haveMultiplyConfirmedCenters()))}var m=this.selectBestPatterns();return r.default.orderBestPatterns(m),new o.default(m)},t.centerFromEnd=function(t,e){return e-t[4]-t[3]-t[2]/2},t.foundPatternCross=function(t){for(var e=0,n=0;n<5;n++){var i=t[n];if(0===i)return!1;e+=i}if(e<7)return!1;var r=e/7,s=r/2;return Math.abs(r-t[0])=o&&n>=o&&a.get(n-o,e-o);)s[2]++,o++;if(e=o&&n>=o&&!a.get(n-o,e-o)&&s[1]<=i;)s[1]++,o++;if(ei)return!1;for(;e>=o&&n>=o&&a.get(n-o,e-o)&&s[0]<=i;)s[0]++,o++;if(s[0]>i)return!1;var c=a.getHeight(),l=a.getWidth();for(o=1;e+o=c||n+o>=l)return!1;for(;e+o=c||n+o>=l||s[3]>=i)return!1;for(;e+o=i)&&Math.abs(s[0]+s[1]+s[2]+s[3]+s[4]-r)<2*r&&t.foundPatternCross(s)},t.prototype.crossCheckVertical=function(e,n,i,r){for(var s=this.image,o=s.getHeight(),a=this.getCrossCheckStateCount(),c=e;c>=0&&s.get(n,c);)a[2]++,c--;if(c<0)return NaN;for(;c>=0&&!s.get(n,c)&&a[1]<=i;)a[1]++,c--;if(c<0||a[1]>i)return NaN;for(;c>=0&&s.get(n,c)&&a[0]<=i;)a[0]++,c--;if(a[0]>i)return NaN;for(c=e+1;c=i)return NaN;for(;c=i||5*Math.abs(a[0]+a[1]+a[2]+a[3]+a[4]-r)>=2*r?NaN:t.foundPatternCross(a)?t.centerFromEnd(a,c):NaN},t.prototype.crossCheckHorizontal=function(e,n,i,r){for(var s=this.image,o=s.getWidth(),a=this.getCrossCheckStateCount(),c=e;c>=0&&s.get(c,n);)a[2]++,c--;if(c<0)return NaN;for(;c>=0&&!s.get(c,n)&&a[1]<=i;)a[1]++,c--;if(c<0||a[1]>i)return NaN;for(;c>=0&&s.get(c,n)&&a[0]<=i;)a[0]++,c--;if(a[0]>i)return NaN;for(c=e+1;c=i)return NaN;for(;c=i||5*Math.abs(a[0]+a[1]+a[2]+a[3]+a[4]-r)>=r?NaN:t.foundPatternCross(a)?t.centerFromEnd(a,c):NaN},t.prototype.handlePossibleCenter=function(e,n,i,r){var o=e[0]+e[1]+e[2]+e[3]+e[4],a=t.centerFromEnd(e,i),c=this.crossCheckVertical(n,Math.floor(a),e[2],o);if(!isNaN(c)&&(a=this.crossCheckHorizontal(Math.floor(a),Math.floor(c),e[2],o),!isNaN(a)&&(!r||this.crossCheckDiagonal(Math.floor(c),Math.floor(a),e[2],o)))){for(var l=o/7,u=!1,h=this.possibleCenters,d=0,p=h.length;d=t.CENTER_QUORUM){if(null!=e)return this.hasSkipped=!0,Math.floor((Math.abs(e.getX()-r.getX())-Math.abs(e.getY()-r.getY()))/2);e=r}}return 0},t.prototype.haveMultiplyConfirmedCenters=function(){for(var e=0,n=0,i=this.possibleCenters.length,r=0,s=this.possibleCenters;r=t.CENTER_QUORUM&&(e++,n+=u.getEstimatedModuleSize());if(e<3)return!1;for(var o=n/i,a=0,c=0,l=this.possibleCenters;c3){for(var i=0,r=0,s=0,o=this.possibleCenters;sr?1:0}));for(var u=Math.max(.2*e,l),h=0;h3;h++)Math.abs(n[h].getEstimatedModuleSize()-e)>u&&(n.splice(h,1),h--)}if(n.length>3){i=0;for(var d=0,p=n;dr?-1:0}return n.getCount()-t.getCount()})),n.splice(3)}return[n[0],n[1],n[2]]},t.CENTER_QUORUM=2,t.MIN_SKIP=3,t.MAX_MODULES=57,t}();e.default=c},"4f9k":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("4Pxi"),r=n("ZCEf"),s=n("KFdt"),o=n("xSUO"),a=n("q+cW"),c=n("8AhB"),l=n("Rby2"),u=n("L20P"),h=n("LqyJ");e.default=function(){function t(){this.decoder=new c.default}return t.prototype.getDecoder=function(){return this.decoder},t.prototype.decode=function(e,n){var a,c;if(null!=n&&void 0!==n.get(r.default.PURE_BARCODE)){var h=t.extractPureBits(e.getBlackMatrix());a=this.decoder.decodeBitMatrix(h,n),c=t.NO_POINTS}else{var d=new u.default(e.getBlackMatrix()).detect(n);a=this.decoder.decodeBitMatrix(d.getBits(),n),c=d.getPoints()}a.getOther()instanceof l.default&&a.getOther().applyMirroredCorrection(c);var p=new s.default(a.getText(),a.getRawBytes(),void 0,c,i.default.QR_CODE,void 0),f=a.getByteSegments();null!==f&&p.putMetadata(o.default.BYTE_SEGMENTS,f);var b=a.getECLevel();return null!==b&&p.putMetadata(o.default.ERROR_CORRECTION_LEVEL,b),a.hasStructuredAppend()&&(p.putMetadata(o.default.STRUCTURED_APPEND_SEQUENCE,a.getStructuredAppendSequenceNumber()),p.putMetadata(o.default.STRUCTURED_APPEND_PARITY,a.getStructuredAppendParity())),p},t.prototype.reset=function(){},t.extractPureBits=function(t){var e=t.getTopLeftOnBit(),n=t.getBottomRightOnBit();if(null===e||null===n)throw new h.default;var i=this.moduleSize(e,t),r=e[1],s=n[1],o=e[0],c=n[0];if(o>=c||r>=s)throw new h.default;if(s-r!=c-o&&(c=o+(s-r))>=t.getWidth())throw new h.default;var l=Math.round((c-o+1)/i),u=Math.round((s-r+1)/i);if(l<=0||u<=0)throw new h.default;if(u!==l)throw new h.default;var d=Math.floor(i/2);r+=d;var p=(o+=d)+Math.floor((l-1)*i)-c;if(p>0){if(p>d)throw new h.default;o-=p}var f=r+Math.floor((u-1)*i)-s;if(f>0){if(f>d)throw new h.default;r-=f}for(var b=new a.default(l,u),g=0;gMath.abs(t-e.value));let i=0;for(let r=0;r{a.events.next(t)};return t.addEventListener(e,c,{passive:!0,capture:!1}),a.teardownCallback=()=>{t.removeEventListener(e,c,{passive:!0,capture:!1})},a.eventsSubscription=a.events.pipe(F.isNullOrUndefined(o)?Object(s.a)(()=>{}):Object(r.a)(o,void 0,{leading:!0,trailing:!0})).subscribe(t=>{n(t)}),a}detachEventListener(t){F.isNullOrUndefined(t.eventsSubscription)||(t.eventsSubscription.unsubscribe(),t.eventsSubscription=null),F.isNullOrUndefined(t.events)||(t.events.complete(),t.events=null),F.isNullOrUndefined(t.teardownCallback)||(t.teardownCallback(),t.teardownCallback=null)}attachEventListener(t,e,n,o){const a=new V;return a.eventName=e,a.events=new i.b,a.teardownCallback=this.renderer.listen(t,e,t=>{a.events.next(t)}),a.eventsSubscription=a.events.pipe(F.isNullOrUndefined(o)?Object(s.a)(()=>{}):Object(r.a)(o,void 0,{leading:!0,trailing:!0})).subscribe(t=>{n(t)}),a}}let H=(()=>{class t{constructor(t,e,n){this.elemRef=t,this.renderer=e,this.changeDetectionRef=n,this._position=0,this._dimension=0,this._alwaysHide=!1,this._vertical=!1,this._scale=1,this.opacity=1,this.visibility="visible",this.left="",this.bottom="",this.height="",this.width="",this.eventListeners=[],this.eventListenerHelper=new $(this.renderer)}get position(){return this._position}get dimension(){return this._dimension}get alwaysHide(){return this._alwaysHide}get vertical(){return this._vertical}get scale(){return this._scale}setAlwaysHide(t){this._alwaysHide=t,this.visibility=t?"hidden":"visible"}hide(){this.opacity=0}show(){this.alwaysHide||(this.opacity=1)}isVisible(){return!this.alwaysHide&&0!==this.opacity}setVertical(t){this._vertical=t,this._vertical?(this.left="",this.width=""):(this.bottom="",this.height="")}setScale(t){this._scale=t}setPosition(t){this._position===t||this.isRefDestroyed()||this.changeDetectionRef.markForCheck(),this._position=t,this._vertical?this.bottom=Math.round(t)+"px":this.left=Math.round(t)+"px"}calculateDimension(){const t=this.getBoundingClientRect();this._dimension=this.vertical?(t.bottom-t.top)*this.scale:(t.right-t.left)*this.scale}setDimension(t){this._dimension===t||this.isRefDestroyed()||this.changeDetectionRef.markForCheck(),this._dimension=t,this._vertical?this.height=Math.round(t)+"px":this.width=Math.round(t)+"px"}getBoundingClientRect(){return this.elemRef.nativeElement.getBoundingClientRect()}on(t,e,n){const i=this.eventListenerHelper.attachEventListener(this.elemRef.nativeElement,t,e,n);this.eventListeners.push(i)}onPassive(t,e,n){const i=this.eventListenerHelper.attachPassiveEventListener(this.elemRef.nativeElement,t,e,n);this.eventListeners.push(i)}off(t){let e,n;F.isNullOrUndefined(t)?(e=[],n=this.eventListeners):(e=this.eventListeners.filter(e=>e.eventName!==t),n=this.eventListeners.filter(e=>e.eventName===t));for(const i of n)this.eventListenerHelper.detachEventListener(i);this.eventListeners=e}isRefDestroyed(){return F.isNullOrUndefined(this.changeDetectionRef)||this.changeDetectionRef.destroyed}}return t.\u0275fac=function(e){return new(e||t)(u.Ob(u.l),u.Ob(u.G),u.Ob(u.h))},t.\u0275dir=u.Jb({type:t,selectors:[["","ngxSliderElement",""]],hostVars:12,hostBindings:function(t,e){2&t&&u.Lc("opacity",e.opacity)("visibility",e.visibility)("left",e.left)("bottom",e.bottom)("height",e.height)("width",e.width)}}),t})(),q=(()=>{class t extends H{constructor(t,e,n){super(t,e,n),this.active=!1,this.role="",this.tabindex="",this.ariaOrientation="",this.ariaLabel="",this.ariaLabelledBy="",this.ariaValueNow="",this.ariaValueText="",this.ariaValueMin="",this.ariaValueMax=""}focus(){this.elemRef.nativeElement.focus()}}return t.\u0275fac=function(e){return new(e||t)(u.Ob(u.l),u.Ob(u.G),u.Ob(u.h))},t.\u0275dir=u.Jb({type:t,selectors:[["","ngxSliderHandle",""]],hostVars:11,hostBindings:function(t,e){2&t&&(u.Db("role",e.role)("tabindex",e.tabindex)("aria-orientation",e.ariaOrientation)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledBy)("aria-valuenow",e.ariaValueNow)("aria-valuetext",e.ariaValueText)("aria-valuemin",e.ariaValueMin)("aria-valuemax",e.ariaValueMax),u.Gb("ngx-slider-active",e.active))},features:[u.zb]}),t})(),Q=(()=>{class t extends H{constructor(t,e,n){super(t,e,n),this._value=null}get value(){return this._value}setValue(t){let e=!1;!this.alwaysHide&&(F.isNullOrUndefined(this.value)||this.value.length!==t.length||this.value.length>0&&0===this.dimension)&&(e=!0),this._value=t,this.elemRef.nativeElement.innerHTML=t,e&&this.calculateDimension()}}return t.\u0275fac=function(e){return new(e||t)(u.Ob(u.l),u.Ob(u.G),u.Ob(u.h))},t.\u0275dir=u.Jb({type:t,selectors:[["","ngxSliderLabel",""]],features:[u.zb]}),t})();class W{constructor(){this.selected=!1,this.style={},this.tooltip=null,this.tooltipPlacement=null,this.value=null,this.valueTooltip=null,this.valueTooltipPlacement=null,this.legend=null}}class G{constructor(){this.active=!1,this.value=0,this.difference=0,this.position=0,this.lowLimit=0,this.highLimit=0}}class Y{static compare(t,e){return!(F.isNullOrUndefined(t)&&F.isNullOrUndefined(e)||F.isNullOrUndefined(t)!==F.isNullOrUndefined(e)||t.value!==e.value||t.highValue!==e.highValue)}}class K extends Y{static compare(t,e){return!(F.isNullOrUndefined(t)&&F.isNullOrUndefined(e)||F.isNullOrUndefined(t)!==F.isNullOrUndefined(e)||t.value!==e.value||t.highValue!==e.highValue||t.forceChange!==e.forceChange)}}const Z={provide:h.m,useExisting:Object(u.V)(()=>X),multi:!0};let X=(()=>{class t{constructor(t,e,n,r){this.renderer=t,this.elementRef=e,this.changeDetectionRef=n,this.zone=r,this.value=null,this.valueChange=new u.o,this.highValue=null,this.highValueChange=new u.o,this.options=new L,this.userChangeStart=new u.o,this.userChange=new u.o,this.userChangeEnd=new u.o,this.initHasRun=!1,this.inputModelChangeSubject=new i.b,this.inputModelChangeSubscription=null,this.outputModelChangeSubject=new i.b,this.outputModelChangeSubscription=null,this.viewLowValue=null,this.viewHighValue=null,this.viewOptions=new L,this.handleHalfDimension=0,this.maxHandlePosition=0,this.currentTrackingPointer=null,this.currentFocusPointer=null,this.firstKeyDown=!1,this.touchId=null,this.dragging=new G,this.sliderElementVerticalClass=!1,this.sliderElementAnimateClass=!1,this.sliderElementDisabledAttr=null,this.barStyle={},this.minPointerStyle={},this.maxPointerStyle={},this.fullBarTransparentClass=!1,this.selectionBarDraggableClass=!1,this.ticksUnderValuesClass=!1,this.intermediateTicks=!1,this.ticks=[],this.eventListenerHelper=null,this.onMoveEventListener=null,this.onEndEventListener=null,this.moving=!1,this.resizeObserver=null,this.onTouchedCallback=null,this.onChangeCallback=null,this.eventListenerHelper=new $(this.renderer)}set manualRefresh(t){this.unsubscribeManualRefresh(),this.manualRefreshSubscription=t.subscribe(()=>{setTimeout(()=>this.calculateViewDimensionsAndDetectChanges())})}set triggerFocus(t){this.unsubscribeTriggerFocus(),this.triggerFocusSubscription=t.subscribe(t=>{this.focusPointer(t)})}get range(){return!F.isNullOrUndefined(this.value)&&!F.isNullOrUndefined(this.highValue)}get showTicks(){return this.viewOptions.showTicks}ngOnInit(){this.viewOptions=new L,Object.assign(this.viewOptions,this.options),this.updateDisabledState(),this.updateVerticalState()}ngAfterViewInit(){this.applyOptions(),this.subscribeInputModelChangeSubject(this.viewOptions.inputEventsInterval),this.subscribeOutputModelChangeSubject(this.viewOptions.outputEventsInterval),this.renormaliseModelValues(),this.viewLowValue=this.modelValueToViewValue(this.value),this.viewHighValue=this.range?this.modelValueToViewValue(this.highValue):null,this.updateVerticalState(),this.manageElementsStyle(),this.updateDisabledState(),this.calculateViewDimensions(),this.addAccessibility(),this.updateCeilLabel(),this.updateFloorLabel(),this.initHandles(),this.manageEventsBindings(),this.subscribeResizeObserver(),this.initHasRun=!0,this.isRefDestroyed()||this.changeDetectionRef.detectChanges()}ngOnChanges(t){F.isNullOrUndefined(t.options)||this.onChangeOptions(),F.isNullOrUndefined(t.value)&&F.isNullOrUndefined(t.highValue)||this.inputModelChangeSubject.next({value:this.value,highValue:this.highValue,forceChange:!1,internalChange:!1})}ngOnDestroy(){this.unbindEvents(),this.unsubscribeResizeObserver(),this.unsubscribeInputModelChangeSubject(),this.unsubscribeOutputModelChangeSubject(),this.unsubscribeManualRefresh(),this.unsubscribeTriggerFocus()}writeValue(t){t instanceof Array?(this.value=t[0],this.highValue=t[1]):this.value=t,this.inputModelChangeSubject.next({value:this.value,highValue:this.highValue,forceChange:!1,internalChange:!1})}registerOnChange(t){this.onChangeCallback=t}registerOnTouched(t){this.onTouchedCallback=t}setDisabledState(t){this.viewOptions.disabled=t,this.updateDisabledState()}onResize(t){this.calculateViewDimensionsAndDetectChanges()}subscribeInputModelChangeSubject(t){this.inputModelChangeSubscription=this.inputModelChangeSubject.pipe(Object(o.a)(K.compare),Object(a.a)(t=>!t.forceChange&&!t.internalChange),F.isNullOrUndefined(t)?Object(s.a)(()=>{}):Object(r.a)(t,void 0,{leading:!0,trailing:!0})).subscribe(t=>this.applyInputModelChange(t))}subscribeOutputModelChangeSubject(t){this.outputModelChangeSubscription=this.outputModelChangeSubject.pipe(Object(o.a)(K.compare),F.isNullOrUndefined(t)?Object(s.a)(()=>{}):Object(r.a)(t,void 0,{leading:!0,trailing:!0})).subscribe(t=>this.publishOutputModelChange(t))}subscribeResizeObserver(){B.isResizeObserverAvailable()&&(this.resizeObserver=new ResizeObserver(()=>this.calculateViewDimensionsAndDetectChanges()),this.resizeObserver.observe(this.elementRef.nativeElement))}unsubscribeResizeObserver(){B.isResizeObserverAvailable()&&null!==this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}unsubscribeOnMove(){F.isNullOrUndefined(this.onMoveEventListener)||(this.eventListenerHelper.detachEventListener(this.onMoveEventListener),this.onMoveEventListener=null)}unsubscribeOnEnd(){F.isNullOrUndefined(this.onEndEventListener)||(this.eventListenerHelper.detachEventListener(this.onEndEventListener),this.onEndEventListener=null)}unsubscribeInputModelChangeSubject(){F.isNullOrUndefined(this.inputModelChangeSubscription)||(this.inputModelChangeSubscription.unsubscribe(),this.inputModelChangeSubscription=null)}unsubscribeOutputModelChangeSubject(){F.isNullOrUndefined(this.outputModelChangeSubscription)||(this.outputModelChangeSubscription.unsubscribe(),this.outputModelChangeSubscription=null)}unsubscribeManualRefresh(){F.isNullOrUndefined(this.manualRefreshSubscription)||(this.manualRefreshSubscription.unsubscribe(),this.manualRefreshSubscription=null)}unsubscribeTriggerFocus(){F.isNullOrUndefined(this.triggerFocusSubscription)||(this.triggerFocusSubscription.unsubscribe(),this.triggerFocusSubscription=null)}getPointerElement(t){return t===N.Min?this.minHandleElement:t===N.Max?this.maxHandleElement:null}getCurrentTrackingValue(){return this.currentTrackingPointer===N.Min?this.viewLowValue:this.currentTrackingPointer===N.Max?this.viewHighValue:null}modelValueToViewValue(t){return F.isNullOrUndefined(t)?NaN:F.isNullOrUndefined(this.viewOptions.stepsArray)||this.viewOptions.bindIndexForStepsArray?+t:F.findStepIndex(+t,this.viewOptions.stepsArray)}viewValueToModelValue(t){return F.isNullOrUndefined(this.viewOptions.stepsArray)||this.viewOptions.bindIndexForStepsArray?t:this.getStepValue(t)}getStepValue(t){const e=this.viewOptions.stepsArray[t];return F.isNullOrUndefined(e)?NaN:e.value}applyViewChange(){this.value=this.viewValueToModelValue(this.viewLowValue),this.range&&(this.highValue=this.viewValueToModelValue(this.viewHighValue)),this.outputModelChangeSubject.next({value:this.value,highValue:this.highValue,userEventInitiated:!0,forceChange:!1}),this.inputModelChangeSubject.next({value:this.value,highValue:this.highValue,forceChange:!1,internalChange:!0})}applyInputModelChange(t){const e=this.normaliseModelValues(t),n=!Y.compare(t,e);n&&(this.value=e.value,this.highValue=e.highValue),this.viewLowValue=this.modelValueToViewValue(e.value),this.viewHighValue=this.range?this.modelValueToViewValue(e.highValue):null,this.updateLowHandle(this.valueToPosition(this.viewLowValue)),this.range&&this.updateHighHandle(this.valueToPosition(this.viewHighValue)),this.updateSelectionBar(),this.updateTicksScale(),this.updateAriaAttributes(),this.range&&this.updateCombinedLabel(),this.outputModelChangeSubject.next({value:e.value,highValue:e.highValue,forceChange:n,userEventInitiated:!1})}publishOutputModelChange(t){const e=()=>{this.valueChange.emit(t.value),this.range&&this.highValueChange.emit(t.highValue),F.isNullOrUndefined(this.onChangeCallback)||this.onChangeCallback(this.range?[t.value,t.highValue]:t.value),F.isNullOrUndefined(this.onTouchedCallback)||this.onTouchedCallback(this.range?[t.value,t.highValue]:t.value)};t.userEventInitiated?(e(),this.userChange.emit(this.getChangeContext())):setTimeout(()=>{e()})}normaliseModelValues(t){const e=new Y;if(e.value=t.value,e.highValue=t.highValue,!F.isNullOrUndefined(this.viewOptions.stepsArray)){if(this.viewOptions.enforceStepsArray){const t=F.findStepIndex(e.value,this.viewOptions.stepsArray);if(e.value=this.viewOptions.stepsArray[t].value,this.range){const t=F.findStepIndex(e.highValue,this.viewOptions.stepsArray);e.highValue=this.viewOptions.stepsArray[t].value}}return e}if(this.viewOptions.enforceStep&&(e.value=this.roundStep(e.value),this.range&&(e.highValue=this.roundStep(e.highValue))),this.viewOptions.enforceRange&&(e.value=z.clampToRange(e.value,this.viewOptions.floor,this.viewOptions.ceil),this.range&&(e.highValue=z.clampToRange(e.highValue,this.viewOptions.floor,this.viewOptions.ceil)),this.range&&t.value>t.highValue))if(this.viewOptions.noSwitching)e.value=e.highValue;else{const n=t.value;e.value=t.highValue,e.highValue=n}return e}renormaliseModelValues(){const t={value:this.value,highValue:this.highValue},e=this.normaliseModelValues(t);Y.compare(e,t)||(this.value=e.value,this.highValue=e.highValue,this.outputModelChangeSubject.next({value:this.value,highValue:this.highValue,forceChange:!0,userEventInitiated:!1}))}onChangeOptions(){if(!this.initHasRun)return;const t=this.viewOptions.inputEventsInterval,e=this.viewOptions.outputEventsInterval,n=this.getOptionsInfluencingEventBindings(this.viewOptions);this.applyOptions();const i=this.getOptionsInfluencingEventBindings(this.viewOptions),r=!F.areArraysEqual(n,i);t!==this.viewOptions.inputEventsInterval&&(this.unsubscribeInputModelChangeSubject(),this.subscribeInputModelChangeSubject(this.viewOptions.inputEventsInterval)),e!==this.viewOptions.outputEventsInterval&&(this.unsubscribeInputModelChangeSubject(),this.subscribeInputModelChangeSubject(this.viewOptions.outputEventsInterval)),this.renormaliseModelValues(),this.viewLowValue=this.modelValueToViewValue(this.value),this.viewHighValue=this.range?this.modelValueToViewValue(this.highValue):null,this.resetSlider(r)}applyOptions(){if(this.viewOptions=new L,Object.assign(this.viewOptions,this.options),this.viewOptions.draggableRange=this.range&&this.viewOptions.draggableRange,this.viewOptions.draggableRangeOnly=this.range&&this.viewOptions.draggableRangeOnly,this.viewOptions.draggableRangeOnly&&(this.viewOptions.draggableRange=!0),this.viewOptions.showTicks=this.viewOptions.showTicks||this.viewOptions.showTicksValues||!F.isNullOrUndefined(this.viewOptions.ticksArray),!this.viewOptions.showTicks||F.isNullOrUndefined(this.viewOptions.tickStep)&&F.isNullOrUndefined(this.viewOptions.ticksArray)||(this.intermediateTicks=!0),this.viewOptions.showSelectionBar=this.viewOptions.showSelectionBar||this.viewOptions.showSelectionBarEnd||!F.isNullOrUndefined(this.viewOptions.showSelectionBarFromValue),F.isNullOrUndefined(this.viewOptions.stepsArray)?this.applyFloorCeilOptions():this.applyStepsArrayOptions(),F.isNullOrUndefined(this.viewOptions.combineLabels)&&(this.viewOptions.combineLabels=(t,e)=>t+" - "+e),this.viewOptions.logScale&&0===this.viewOptions.floor)throw Error("Can't use floor=0 with logarithmic scale")}applyStepsArrayOptions(){this.viewOptions.floor=0,this.viewOptions.ceil=this.viewOptions.stepsArray.length-1,this.viewOptions.step=1,F.isNullOrUndefined(this.viewOptions.translate)&&(this.viewOptions.translate=t=>String(this.viewOptions.bindIndexForStepsArray?this.getStepValue(t):t)),this.viewOptions.getLegend=t=>this.viewOptions.stepsArray[t].legend}applyFloorCeilOptions(){if(F.isNullOrUndefined(this.viewOptions.step)?this.viewOptions.step=1:(this.viewOptions.step=+this.viewOptions.step,this.viewOptions.step<=0&&(this.viewOptions.step=1)),F.isNullOrUndefined(this.viewOptions.ceil)||F.isNullOrUndefined(this.viewOptions.floor))throw Error("floor and ceil options must be supplied");this.viewOptions.ceil=+this.viewOptions.ceil,this.viewOptions.floor=+this.viewOptions.floor,F.isNullOrUndefined(this.viewOptions.translate)&&(this.viewOptions.translate=t=>String(t))}resetSlider(t=!0){this.manageElementsStyle(),this.addAccessibility(),this.updateCeilLabel(),this.updateFloorLabel(),t&&(this.unbindEvents(),this.manageEventsBindings()),this.updateDisabledState(),this.calculateViewDimensions(),this.refocusPointerIfNeeded()}focusPointer(t){t!==N.Min&&t!==N.Max&&(t=N.Min),t===N.Min?this.minHandleElement.focus():this.range&&t===N.Max&&this.maxHandleElement.focus()}refocusPointerIfNeeded(){F.isNullOrUndefined(this.currentFocusPointer)||(this.onPointerFocus(this.currentFocusPointer),this.getPointerElement(this.currentFocusPointer).focus())}manageElementsStyle(){this.updateScale(),this.floorLabelElement.setAlwaysHide(this.viewOptions.showTicksValues||this.viewOptions.hideLimitLabels),this.ceilLabelElement.setAlwaysHide(this.viewOptions.showTicksValues||this.viewOptions.hideLimitLabels);const t=this.viewOptions.showTicksValues&&!this.intermediateTicks;this.minHandleLabelElement.setAlwaysHide(t||this.viewOptions.hidePointerLabels),this.maxHandleLabelElement.setAlwaysHide(t||!this.range||this.viewOptions.hidePointerLabels),this.combinedLabelElement.setAlwaysHide(t||!this.range||this.viewOptions.hidePointerLabels),this.selectionBarElement.setAlwaysHide(!this.range&&!this.viewOptions.showSelectionBar),this.leftOuterSelectionBarElement.setAlwaysHide(!this.range||!this.viewOptions.showOuterSelectionBars),this.rightOuterSelectionBarElement.setAlwaysHide(!this.range||!this.viewOptions.showOuterSelectionBars),this.fullBarTransparentClass=this.range&&this.viewOptions.showOuterSelectionBars,this.selectionBarDraggableClass=this.viewOptions.draggableRange&&!this.viewOptions.onlyBindHandles,this.ticksUnderValuesClass=this.intermediateTicks&&this.options.showTicksValues,this.sliderElementVerticalClass!==this.viewOptions.vertical&&(this.updateVerticalState(),setTimeout(()=>{this.resetSlider()})),this.sliderElementAnimateClass!==this.viewOptions.animate&&setTimeout(()=>{this.sliderElementAnimateClass=this.viewOptions.animate})}manageEventsBindings(){this.viewOptions.disabled||this.viewOptions.readOnly?this.unbindEvents():this.bindEvents()}updateDisabledState(){this.sliderElementDisabledAttr=this.viewOptions.disabled?"disabled":null}updateVerticalState(){this.sliderElementVerticalClass=this.viewOptions.vertical;for(const t of this.getAllSliderElements())F.isNullOrUndefined(t)||t.setVertical(this.viewOptions.vertical)}updateScale(){for(const t of this.getAllSliderElements())t.setScale(this.viewOptions.scale)}getAllSliderElements(){return[this.leftOuterSelectionBarElement,this.rightOuterSelectionBarElement,this.fullBarElement,this.selectionBarElement,this.minHandleElement,this.maxHandleElement,this.floorLabelElement,this.ceilLabelElement,this.minHandleLabelElement,this.maxHandleLabelElement,this.combinedLabelElement,this.ticksElement]}initHandles(){this.updateLowHandle(this.valueToPosition(this.viewLowValue)),this.range&&this.updateHighHandle(this.valueToPosition(this.viewHighValue)),this.updateSelectionBar(),this.range&&this.updateCombinedLabel(),this.updateTicksScale()}addAccessibility(){this.updateAriaAttributes(),this.minHandleElement.role="slider",this.minHandleElement.tabindex=!this.viewOptions.keyboardSupport||this.viewOptions.readOnly||this.viewOptions.disabled?"":"0",this.minHandleElement.ariaOrientation=this.viewOptions.vertical?"vertical":"horizontal",F.isNullOrUndefined(this.viewOptions.ariaLabel)?F.isNullOrUndefined(this.viewOptions.ariaLabelledBy)||(this.minHandleElement.ariaLabelledBy=this.viewOptions.ariaLabelledBy):this.minHandleElement.ariaLabel=this.viewOptions.ariaLabel,this.range&&(this.maxHandleElement.role="slider",this.maxHandleElement.tabindex=!this.viewOptions.keyboardSupport||this.viewOptions.readOnly||this.viewOptions.disabled?"":"0",this.maxHandleElement.ariaOrientation=this.viewOptions.vertical?"vertical":"horizontal",F.isNullOrUndefined(this.viewOptions.ariaLabelHigh)?F.isNullOrUndefined(this.viewOptions.ariaLabelledByHigh)||(this.maxHandleElement.ariaLabelledBy=this.viewOptions.ariaLabelledByHigh):this.maxHandleElement.ariaLabel=this.viewOptions.ariaLabelHigh)}updateAriaAttributes(){this.minHandleElement.ariaValueNow=(+this.value).toString(),this.minHandleElement.ariaValueText=this.viewOptions.translate(+this.value,j.Low),this.minHandleElement.ariaValueMin=this.viewOptions.floor.toString(),this.minHandleElement.ariaValueMax=this.viewOptions.ceil.toString(),this.range&&(this.maxHandleElement.ariaValueNow=(+this.highValue).toString(),this.maxHandleElement.ariaValueText=this.viewOptions.translate(+this.highValue,j.High),this.maxHandleElement.ariaValueMin=this.viewOptions.floor.toString(),this.maxHandleElement.ariaValueMax=this.viewOptions.ceil.toString())}calculateViewDimensions(){F.isNullOrUndefined(this.viewOptions.handleDimension)?this.minHandleElement.calculateDimension():this.minHandleElement.setDimension(this.viewOptions.handleDimension);const t=this.minHandleElement.dimension;this.handleHalfDimension=t/2,F.isNullOrUndefined(this.viewOptions.barDimension)?this.fullBarElement.calculateDimension():this.fullBarElement.setDimension(this.viewOptions.barDimension),this.maxHandlePosition=this.fullBarElement.dimension-t,this.initHasRun&&(this.updateFloorLabel(),this.updateCeilLabel(),this.initHandles())}calculateViewDimensionsAndDetectChanges(){this.calculateViewDimensions(),this.isRefDestroyed()||this.changeDetectionRef.detectChanges()}isRefDestroyed(){return this.changeDetectionRef.destroyed}updateTicksScale(){if(!this.viewOptions.showTicks)return;const t=F.isNullOrUndefined(this.viewOptions.ticksArray)?this.getTicksArray():this.viewOptions.ticksArray,e=this.viewOptions.vertical?"translateY":"translateX";this.viewOptions.rightToLeft&&t.reverse();const n=F.isNullOrUndefined(this.viewOptions.tickValueStep)?F.isNullOrUndefined(this.viewOptions.tickStep)?this.viewOptions.step:this.viewOptions.tickStep:this.viewOptions.tickValueStep,i=t.map(t=>{let i=this.valueToPosition(t);this.viewOptions.vertical&&(i=this.maxHandlePosition-i);const r=e+"("+Math.round(i)+"px)",s=new W;if(s.selected=this.isTickSelected(t),s.style={"-webkit-transform":r,"-moz-transform":r,"-o-transform":r,"-ms-transform":r,transform:r},s.selected&&!F.isNullOrUndefined(this.viewOptions.getSelectionBarColor)&&(s.style["background-color"]=this.getSelectionBarColor()),s.selected||F.isNullOrUndefined(this.viewOptions.getTickColor)||(s.style["background-color"]=this.getTickColor(t)),F.isNullOrUndefined(this.viewOptions.ticksTooltip)||(s.tooltip=this.viewOptions.ticksTooltip(t),s.tooltipPlacement=this.viewOptions.vertical?"right":"top"),this.viewOptions.showTicksValues&&!F.isNullOrUndefined(n)&&z.isModuloWithinPrecisionLimit(t,n,this.viewOptions.precisionLimit)&&(s.value=this.getDisplayValue(t,j.TickValue),F.isNullOrUndefined(this.viewOptions.ticksValuesTooltip)||(s.valueTooltip=this.viewOptions.ticksValuesTooltip(t),s.valueTooltipPlacement=this.viewOptions.vertical?"right":"top")),!F.isNullOrUndefined(this.viewOptions.getLegend)){const e=this.viewOptions.getLegend(t);F.isNullOrUndefined(e)||(s.legend=e)}return s});if(F.isNullOrUndefined(this.ticks)||this.ticks.length!==i.length)this.ticks=i;else for(let r=0;r=this.viewLowValue)return!0}else if(this.viewOptions.showSelectionBar&&t<=this.viewLowValue)return!0}else{const e=this.viewOptions.showSelectionBarFromValue;if(this.viewLowValue>e&&t>=e&&t<=this.viewLowValue)return!0;if(this.viewLowValue=this.viewLowValue)return!0}return!!(this.range&&t>=this.viewLowValue&&t<=this.viewHighValue)}updateFloorLabel(){this.floorLabelElement.alwaysHide||(this.floorLabelElement.setValue(this.getDisplayValue(this.viewOptions.floor,j.Floor)),this.floorLabelElement.calculateDimension(),this.floorLabelElement.setPosition(this.viewOptions.rightToLeft?this.fullBarElement.dimension-this.floorLabelElement.dimension:0))}updateCeilLabel(){this.ceilLabelElement.alwaysHide||(this.ceilLabelElement.setValue(this.getDisplayValue(this.viewOptions.ceil,j.Ceil)),this.ceilLabelElement.calculateDimension(),this.ceilLabelElement.setPosition(this.viewOptions.rightToLeft?0:this.fullBarElement.dimension-this.ceilLabelElement.dimension))}updateHandles(t,e){t===N.Min?this.updateLowHandle(e):t===N.Max&&this.updateHighHandle(e),this.updateSelectionBar(),this.updateTicksScale(),this.range&&this.updateCombinedLabel()}getHandleLabelPos(t,e){const n=t===N.Min?this.minHandleLabelElement.dimension:this.maxHandleLabelElement.dimension,i=e-n/2+this.handleHalfDimension,r=this.fullBarElement.dimension-n;return this.viewOptions.boundPointerLabels?this.viewOptions.rightToLeft&&t===N.Min||!this.viewOptions.rightToLeft&&t===N.Max?Math.min(i,r):Math.min(Math.max(i,0),r):i}updateLowHandle(t){this.minHandleElement.setPosition(t),this.minHandleLabelElement.setValue(this.getDisplayValue(this.viewLowValue,j.Low)),this.minHandleLabelElement.setPosition(this.getHandleLabelPos(N.Min,t)),F.isNullOrUndefined(this.viewOptions.getPointerColor)||(this.minPointerStyle={backgroundColor:this.getPointerColor(N.Min)}),this.viewOptions.autoHideLimitLabels&&this.updateFloorAndCeilLabelsVisibility()}updateHighHandle(t){this.maxHandleElement.setPosition(t),this.maxHandleLabelElement.setValue(this.getDisplayValue(this.viewHighValue,j.High)),this.maxHandleLabelElement.setPosition(this.getHandleLabelPos(N.Max,t)),F.isNullOrUndefined(this.viewOptions.getPointerColor)||(this.maxPointerStyle={backgroundColor:this.getPointerColor(N.Max)}),this.viewOptions.autoHideLimitLabels&&this.updateFloorAndCeilLabelsVisibility()}updateFloorAndCeilLabelsVisibility(){if(this.viewOptions.hidePointerLabels)return;let t=!1,e=!1;const n=this.isLabelBelowFloorLabel(this.minHandleLabelElement),i=this.isLabelAboveCeilLabel(this.minHandleLabelElement),r=this.isLabelAboveCeilLabel(this.maxHandleLabelElement),s=this.isLabelBelowFloorLabel(this.combinedLabelElement),o=this.isLabelAboveCeilLabel(this.combinedLabelElement);if(n?(t=!0,this.floorLabelElement.hide()):(t=!1,this.floorLabelElement.show()),i?(e=!0,this.ceilLabelElement.hide()):(e=!1,this.ceilLabelElement.show()),this.range){const i=this.combinedLabelElement.isVisible()?o:r,a=this.combinedLabelElement.isVisible()?s:n;i?this.ceilLabelElement.hide():e||this.ceilLabelElement.show(),a?this.floorLabelElement.hide():t||this.floorLabelElement.show()}}isLabelBelowFloorLabel(t){const e=t.position,n=this.floorLabelElement.position;return this.viewOptions.rightToLeft?e+t.dimension>=n-2:e<=n+this.floorLabelElement.dimension+2}isLabelAboveCeilLabel(t){const e=t.position,n=this.ceilLabelElement.position;return this.viewOptions.rightToLeft?e<=n+this.ceilLabelElement.dimension+2:e+t.dimension>=n-2}updateSelectionBar(){let t=0,e=0;const n=this.viewOptions.rightToLeft?!this.viewOptions.showSelectionBarEnd:this.viewOptions.showSelectionBarEnd,i=this.viewOptions.rightToLeft?this.maxHandleElement.position+this.handleHalfDimension:this.minHandleElement.position+this.handleHalfDimension;if(this.range)e=Math.abs(this.maxHandleElement.position-this.minHandleElement.position),t=i;else if(F.isNullOrUndefined(this.viewOptions.showSelectionBarFromValue))n?(e=Math.ceil(Math.abs(this.maxHandlePosition-this.minHandleElement.position)+this.handleHalfDimension),t=Math.floor(this.minHandleElement.position+this.handleHalfDimension)):(e=this.minHandleElement.position+this.handleHalfDimension,t=0);else{const n=this.viewOptions.showSelectionBarFromValue,i=this.valueToPosition(n);(this.viewOptions.rightToLeft?this.viewLowValue<=n:this.viewLowValue>n)?(e=this.minHandleElement.position-i,t=i+this.handleHalfDimension):(e=i-this.minHandleElement.position,t=this.minHandleElement.position+this.handleHalfDimension)}if(this.selectionBarElement.setDimension(e),this.selectionBarElement.setPosition(t),this.range&&this.viewOptions.showOuterSelectionBars&&(this.viewOptions.rightToLeft?(this.rightOuterSelectionBarElement.setDimension(t),this.rightOuterSelectionBarElement.setPosition(0),this.fullBarElement.calculateDimension(),this.leftOuterSelectionBarElement.setDimension(this.fullBarElement.dimension-(t+e)),this.leftOuterSelectionBarElement.setPosition(t+e)):(this.leftOuterSelectionBarElement.setDimension(t),this.leftOuterSelectionBarElement.setPosition(0),this.fullBarElement.calculateDimension(),this.rightOuterSelectionBarElement.setDimension(this.fullBarElement.dimension-(t+e)),this.rightOuterSelectionBarElement.setPosition(t+e))),F.isNullOrUndefined(this.viewOptions.getSelectionBarColor)){if(!F.isNullOrUndefined(this.viewOptions.selectionBarGradient)){const i=F.isNullOrUndefined(this.viewOptions.showSelectionBarFromValue)?0:this.valueToPosition(this.viewOptions.showSelectionBarFromValue),r=i-t>0&&!n||i-t<=0&&n;this.barStyle={backgroundImage:"linear-gradient(to "+(this.viewOptions.vertical?r?"bottom":"top":r?"left":"right")+", "+this.viewOptions.selectionBarGradient.from+" 0%,"+this.viewOptions.selectionBarGradient.to+" 100%)"},this.viewOptions.vertical?(this.barStyle.backgroundPosition="center "+(i+e+t+(r?-this.handleHalfDimension:0))+"px",this.barStyle.backgroundSize="100% "+(this.fullBarElement.dimension-this.handleHalfDimension)+"px"):(this.barStyle.backgroundPosition=i-t+(r?this.handleHalfDimension:0)+"px center",this.barStyle.backgroundSize=this.fullBarElement.dimension-this.handleHalfDimension+"px 100%")}}else{const t=this.getSelectionBarColor();this.barStyle={backgroundColor:t}}}getSelectionBarColor(){return this.range?this.viewOptions.getSelectionBarColor(this.value,this.highValue):this.viewOptions.getSelectionBarColor(this.value)}getPointerColor(t){return this.viewOptions.getPointerColor(t===N.Max?this.highValue:this.value,t)}getTickColor(t){return this.viewOptions.getTickColor(t)}updateCombinedLabel(){let t=null;if(t=this.viewOptions.rightToLeft?this.minHandleLabelElement.position-this.minHandleLabelElement.dimension-10<=this.maxHandleLabelElement.position:this.minHandleLabelElement.position+this.minHandleLabelElement.dimension+10>=this.maxHandleLabelElement.position,t){const t=this.getDisplayValue(this.viewLowValue,j.Low),e=this.getDisplayValue(this.viewHighValue,j.High),n=this.viewOptions.rightToLeft?this.viewOptions.combineLabels(e,t):this.viewOptions.combineLabels(t,e);this.combinedLabelElement.setValue(n);const i=this.viewOptions.boundPointerLabels?Math.min(Math.max(this.selectionBarElement.position+this.selectionBarElement.dimension/2-this.combinedLabelElement.dimension/2,0),this.fullBarElement.dimension-this.combinedLabelElement.dimension):this.selectionBarElement.position+this.selectionBarElement.dimension/2-this.combinedLabelElement.dimension/2;this.combinedLabelElement.setPosition(i),this.minHandleLabelElement.hide(),this.maxHandleLabelElement.hide(),this.combinedLabelElement.show()}else this.updateHighHandle(this.valueToPosition(this.viewHighValue)),this.updateLowHandle(this.valueToPosition(this.viewLowValue)),this.maxHandleLabelElement.show(),this.minHandleLabelElement.show(),this.combinedLabelElement.hide();this.viewOptions.autoHideLimitLabels&&this.updateFloorAndCeilLabelsVisibility()}getDisplayValue(t,e){return F.isNullOrUndefined(this.viewOptions.stepsArray)||this.viewOptions.bindIndexForStepsArray||(t=this.getStepValue(t)),this.viewOptions.translate(t,e)}roundStep(t,e){const n=F.isNullOrUndefined(e)?this.viewOptions.step:e;let i=z.roundToPrecisionLimit((t-this.viewOptions.floor)/n,this.viewOptions.precisionLimit);return i=Math.round(i)*n,z.roundToPrecisionLimit(this.viewOptions.floor+i,this.viewOptions.precisionLimit)}valueToPosition(t){let e=F.linearValueToPosition;F.isNullOrUndefined(this.viewOptions.customValueToPosition)?this.viewOptions.logScale&&(e=F.logValueToPosition):e=this.viewOptions.customValueToPosition;let n=e(t=z.clampToRange(t,this.viewOptions.floor,this.viewOptions.ceil),this.viewOptions.floor,this.viewOptions.ceil);return F.isNullOrUndefined(n)&&(n=0),this.viewOptions.rightToLeft&&(n=1-n),n*this.maxHandlePosition}positionToValue(t){let e=t/this.maxHandlePosition;this.viewOptions.rightToLeft&&(e=1-e);let n=F.linearPositionToValue;F.isNullOrUndefined(this.viewOptions.customPositionToValue)?this.viewOptions.logScale&&(n=F.logPositionToValue):n=this.viewOptions.customPositionToValue;const i=n(e,this.viewOptions.floor,this.viewOptions.ceil);return F.isNullOrUndefined(i)?0:i}getEventXY(t,e){if(t instanceof MouseEvent)return this.viewOptions.vertical?t.clientY:t.clientX;let n=0;const i=t.touches;if(!F.isNullOrUndefined(e))for(let r=0;ri?N.Max:this.viewOptions.rightToLeft?e>this.minHandleElement.position?N.Min:N.Max:ethis.onBarStart(null,t,e,!0,!0,!0)),this.viewOptions.draggableRangeOnly?(this.minHandleElement.on("mousedown",e=>this.onBarStart(N.Min,t,e,!0,!0)),this.maxHandleElement.on("mousedown",e=>this.onBarStart(N.Max,t,e,!0,!0))):(this.minHandleElement.on("mousedown",t=>this.onStart(N.Min,t,!0,!0)),this.range&&this.maxHandleElement.on("mousedown",t=>this.onStart(N.Max,t,!0,!0)),this.viewOptions.onlyBindHandles||(this.fullBarElement.on("mousedown",t=>this.onStart(null,t,!0,!0,!0)),this.ticksElement.on("mousedown",t=>this.onStart(null,t,!0,!0,!0,!0)))),this.viewOptions.onlyBindHandles||this.selectionBarElement.onPassive("touchstart",e=>this.onBarStart(null,t,e,!0,!0,!0)),this.viewOptions.draggableRangeOnly?(this.minHandleElement.onPassive("touchstart",e=>this.onBarStart(N.Min,t,e,!0,!0)),this.maxHandleElement.onPassive("touchstart",e=>this.onBarStart(N.Max,t,e,!0,!0))):(this.minHandleElement.onPassive("touchstart",t=>this.onStart(N.Min,t,!0,!0)),this.range&&this.maxHandleElement.onPassive("touchstart",t=>this.onStart(N.Max,t,!0,!0)),this.viewOptions.onlyBindHandles||(this.fullBarElement.onPassive("touchstart",t=>this.onStart(null,t,!0,!0,!0)),this.ticksElement.onPassive("touchstart",t=>this.onStart(null,t,!1,!1,!0,!0)))),this.viewOptions.keyboardSupport&&(this.minHandleElement.on("focus",()=>this.onPointerFocus(N.Min)),this.range&&this.maxHandleElement.on("focus",()=>this.onPointerFocus(N.Max)))}getOptionsInfluencingEventBindings(t){return[t.draggableRange,t.draggableRangeOnly,t.onlyBindHandles,t.keyboardSupport]}unbindEvents(){this.unsubscribeOnMove(),this.unsubscribeOnEnd();for(const t of this.getAllSliderElements())F.isNullOrUndefined(t)||t.off()}onBarStart(t,e,n,i,r,s,o){e?this.onDragStart(t,n,i,r):this.onStart(t,n,i,r,s,o)}onStart(t,e,n,i,r,s){e.stopPropagation(),B.isTouchEvent(e)&&l.a.hasSupport||e.preventDefault(),this.moving=!1,this.calculateViewDimensions(),F.isNullOrUndefined(t)&&(t=this.getNearestHandle(e)),this.currentTrackingPointer=t;const o=this.getPointerElement(t);if(o.active=!0,this.viewOptions.keyboardSupport&&o.focus(),n){this.unsubscribeOnMove();const t=t=>this.dragging.active?this.onDragMove(t):this.onMove(t);this.onMoveEventListener=B.isTouchEvent(e)?this.eventListenerHelper.attachPassiveEventListener(document,"touchmove",t,this.viewOptions.touchEventsInterval):this.eventListenerHelper.attachEventListener(document,"mousemove",t,this.viewOptions.mouseEventsInterval)}if(i){this.unsubscribeOnEnd();const t=t=>this.onEnd(t);this.onEndEventListener=B.isTouchEvent(e)?this.eventListenerHelper.attachPassiveEventListener(document,"touchend",t):this.eventListenerHelper.attachEventListener(document,"mouseup",t)}this.userChangeStart.emit(this.getChangeContext()),B.isTouchEvent(e)&&!F.isNullOrUndefined(e.changedTouches)&&F.isNullOrUndefined(this.touchId)&&(this.touchId=e.changedTouches[0].identifier),r&&this.onMove(e,!0),s&&this.onEnd(e)}onMove(t,e){let n=null;if(B.isTouchEvent(t)){const e=t.changedTouches;for(let t=0;t=this.maxHandlePosition?r=this.viewOptions.rightToLeft?this.viewOptions.floor:this.viewOptions.ceil:(r=this.positionToValue(i),r=e&&!F.isNullOrUndefined(this.viewOptions.tickStep)?this.roundStep(r,this.viewOptions.tickStep):this.roundStep(r)),this.positionTrackingHandle(r)}onEnd(t){B.isTouchEvent(t)&&t.changedTouches[0].identifier!==this.touchId||(this.moving=!1,this.viewOptions.animate&&(this.sliderElementAnimateClass=!0),this.touchId=null,this.viewOptions.keyboardSupport||(this.minHandleElement.active=!1,this.maxHandleElement.active=!1,this.currentTrackingPointer=null),this.dragging.active=!1,this.unsubscribeOnMove(),this.unsubscribeOnEnd(),this.userChangeEnd.emit(this.getChangeContext()))}onPointerFocus(t){const e=this.getPointerElement(t);e.on("blur",()=>this.onPointerBlur(e)),e.on("keydown",t=>this.onKeyboardEvent(t)),e.on("keyup",()=>this.onKeyUp()),e.active=!0,this.currentTrackingPointer=t,this.currentFocusPointer=t,this.firstKeyDown=!0}onKeyUp(){this.firstKeyDown=!0,this.userChangeEnd.emit(this.getChangeContext())}onPointerBlur(t){t.off("blur"),t.off("keydown"),t.off("keyup"),t.active=!1,F.isNullOrUndefined(this.touchId)&&(this.currentTrackingPointer=null,this.currentFocusPointer=null)}getKeyActions(t){const e=this.viewOptions.ceil-this.viewOptions.floor;let n=t+this.viewOptions.step,i=t-this.viewOptions.step,r=t+e/10,s=t-e/10;this.viewOptions.reversedControls&&(n=t-this.viewOptions.step,i=t+this.viewOptions.step,r=t-e/10,s=t+e/10);const o={UP:n,DOWN:i,LEFT:i,RIGHT:n,PAGEUP:r,PAGEDOWN:s,HOME:this.viewOptions.reversedControls?this.viewOptions.ceil:this.viewOptions.floor,END:this.viewOptions.reversedControls?this.viewOptions.floor:this.viewOptions.ceil};return this.viewOptions.rightToLeft&&(o.LEFT=n,o.RIGHT=i,this.viewOptions.vertical&&(o.UP=i,o.DOWN=n)),o}onKeyboardEvent(t){const e=this.getCurrentTrackingValue(),n=F.isNullOrUndefined(t.keyCode)?t.which:t.keyCode,i=this.getKeyActions(e)[{38:"UP",40:"DOWN",37:"LEFT",39:"RIGHT",33:"PAGEUP",34:"PAGEDOWN",36:"HOME",35:"END"}[n]];if(F.isNullOrUndefined(i)||F.isNullOrUndefined(this.currentTrackingPointer))return;t.preventDefault(),this.firstKeyDown&&(this.firstKeyDown=!1,this.userChangeStart.emit(this.getChangeContext()));const r=z.clampToRange(i,this.viewOptions.floor,this.viewOptions.ceil),s=this.roundStep(r);if(this.viewOptions.draggableRangeOnly){const t=this.viewHighValue-this.viewLowValue;let e,n;this.currentTrackingPointer===N.Min?(e=s,n=s+t,n>this.viewOptions.ceil&&(n=this.viewOptions.ceil,e=n-t)):this.currentTrackingPointer===N.Max&&(n=s,e=s-t,e=this.maxHandlePosition-n;let a,c;if(e<=i){if(0===r.position)return;a=this.getMinValue(e,!0,!1),c=this.getMaxValue(e,!0,!1)}else if(o){if(s.position===this.maxHandlePosition)return;c=this.getMaxValue(e,!0,!0),a=this.getMinValue(e,!0,!0)}else a=this.getMinValue(e,!1,!1),c=this.getMaxValue(e,!1,!1);this.positionTrackingBar(a,c)}positionTrackingBar(t,e){!F.isNullOrUndefined(this.viewOptions.minLimit)&&tthis.viewOptions.maxLimit&&(t=z.roundToPrecisionLimit((e=this.viewOptions.maxLimit)-this.dragging.difference,this.viewOptions.precisionLimit)),this.viewLowValue=t,this.viewHighValue=e,this.applyViewChange(),this.updateHandles(N.Min,this.valueToPosition(t)),this.updateHandles(N.Max,this.valueToPosition(e))}positionTrackingHandle(t){t=this.applyMinMaxLimit(t),this.range&&(this.viewOptions.pushRange?t=this.applyPushRange(t):(this.viewOptions.noSwitching&&(this.currentTrackingPointer===N.Min&&t>this.viewHighValue?t=this.applyMinMaxRange(this.viewHighValue):this.currentTrackingPointer===N.Max&&tthis.viewHighValue?(this.viewLowValue=this.viewHighValue,this.applyViewChange(),this.updateHandles(N.Min,this.maxHandleElement.position),this.updateAriaAttributes(),this.currentTrackingPointer=N.Max,this.minHandleElement.active=!1,this.maxHandleElement.active=!0,this.viewOptions.keyboardSupport&&this.maxHandleElement.focus()):this.currentTrackingPointer===N.Max&&tthis.viewOptions.maxLimit?this.viewOptions.maxLimit:t}applyMinMaxRange(t){const e=Math.abs(t-(this.currentTrackingPointer===N.Min?this.viewHighValue:this.viewLowValue));if(!F.isNullOrUndefined(this.viewOptions.minRange)&&ethis.viewOptions.maxRange){if(this.currentTrackingPointer===N.Min)return z.roundToPrecisionLimit(this.viewHighValue-this.viewOptions.maxRange,this.viewOptions.precisionLimit);if(this.currentTrackingPointer===N.Max)return z.roundToPrecisionLimit(this.viewLowValue+this.viewOptions.maxRange,this.viewOptions.precisionLimit)}return t}applyPushRange(t){const e=this.currentTrackingPointer===N.Min?this.viewHighValue-t:t-this.viewLowValue,n=F.isNullOrUndefined(this.viewOptions.minRange)?this.viewOptions.step:this.viewOptions.minRange,i=this.viewOptions.maxRange;return ei&&(this.currentTrackingPointer===N.Min?(this.viewHighValue=z.roundToPrecisionLimit(t+i,this.viewOptions.precisionLimit),this.applyViewChange(),this.updateHandles(N.Max,this.valueToPosition(this.viewHighValue))):this.currentTrackingPointer===N.Max&&(this.viewLowValue=z.roundToPrecisionLimit(t-i,this.viewOptions.precisionLimit),this.applyViewChange(),this.updateHandles(N.Min,this.valueToPosition(this.viewLowValue))),this.updateAriaAttributes()),t}getChangeContext(){const t=new U;return t.pointerType=this.currentTrackingPointer,t.value=+this.value,this.range&&(t.highValue=+this.highValue),t}}return t.\u0275fac=function(e){return new(e||t)(u.Ob(u.G),u.Ob(u.l),u.Ob(u.h),u.Ob(u.B))},t.\u0275cmp=u.Ib({type:t,selectors:[["ngx-slider"]],contentQueries:function(t,e,n){var i;1&t&&u.Hb(n,p,!0),2&t&&u.zc(i=u.cc())&&(e.tooltipTemplate=i.first)},viewQuery:function(t,e){var n;1&t&&(u.Wc(f,!0,H),u.Wc(b,!0,H),u.Wc(g,!0,H),u.Wc(m,!0,H),u.Wc(v,!0,q),u.Wc(_,!0,q),u.Wc(y,!0,Q),u.Wc(O,!0,Q),u.Wc(C,!0,Q),u.Wc(w,!0,Q),u.Wc(T,!0,Q),u.Wc(S,!0,H)),2&t&&(u.zc(n=u.cc())&&(e.leftOuterSelectionBarElement=n.first),u.zc(n=u.cc())&&(e.rightOuterSelectionBarElement=n.first),u.zc(n=u.cc())&&(e.fullBarElement=n.first),u.zc(n=u.cc())&&(e.selectionBarElement=n.first),u.zc(n=u.cc())&&(e.minHandleElement=n.first),u.zc(n=u.cc())&&(e.maxHandleElement=n.first),u.zc(n=u.cc())&&(e.floorLabelElement=n.first),u.zc(n=u.cc())&&(e.ceilLabelElement=n.first),u.zc(n=u.cc())&&(e.minHandleLabelElement=n.first),u.zc(n=u.cc())&&(e.maxHandleLabelElement=n.first),u.zc(n=u.cc())&&(e.combinedLabelElement=n.first),u.zc(n=u.cc())&&(e.ticksElement=n.first))},hostAttrs:[1,"ngx-slider"],hostVars:5,hostBindings:function(t,e){1&t&&u.bc("resize",(function(t){return e.onResize(t)}),!1,u.Dc),2&t&&(u.Db("disabled",e.sliderElementDisabledAttr),u.Gb("vertical",e.sliderElementVerticalClass)("animate",e.sliderElementAnimateClass))},inputs:{value:"value",highValue:"highValue",options:"options",manualRefresh:"manualRefresh",triggerFocus:"triggerFocus"},outputs:{valueChange:"valueChange",highValueChange:"highValueChange",userChangeStart:"userChangeStart",userChange:"userChange",userChangeEnd:"userChangeEnd"},features:[u.Bb([Z]),u.Ab],decls:29,vars:13,consts:[["ngxSliderElement","",1,"ngx-slider-span","ngx-slider-bar-wrapper","ngx-slider-left-out-selection"],["leftOuterSelectionBar",""],[1,"ngx-slider-span","ngx-slider-bar"],["ngxSliderElement","",1,"ngx-slider-span","ngx-slider-bar-wrapper","ngx-slider-right-out-selection"],["rightOuterSelectionBar",""],["ngxSliderElement","",1,"ngx-slider-span","ngx-slider-bar-wrapper","ngx-slider-full-bar"],["fullBar",""],["ngxSliderElement","",1,"ngx-slider-span","ngx-slider-bar-wrapper","ngx-slider-selection-bar"],["selectionBar",""],[1,"ngx-slider-span","ngx-slider-bar","ngx-slider-selection",3,"ngStyle"],["ngxSliderHandle","",1,"ngx-slider-span","ngx-slider-pointer","ngx-slider-pointer-min",3,"ngStyle"],["minHandle",""],["ngxSliderHandle","",1,"ngx-slider-span","ngx-slider-pointer","ngx-slider-pointer-max",3,"ngStyle"],["maxHandle",""],["ngxSliderLabel","",1,"ngx-slider-span","ngx-slider-bubble","ngx-slider-limit","ngx-slider-floor"],["floorLabel",""],["ngxSliderLabel","",1,"ngx-slider-span","ngx-slider-bubble","ngx-slider-limit","ngx-slider-ceil"],["ceilLabel",""],["ngxSliderLabel","",1,"ngx-slider-span","ngx-slider-bubble","ngx-slider-model-value"],["minHandleLabel",""],["ngxSliderLabel","",1,"ngx-slider-span","ngx-slider-bubble","ngx-slider-model-high"],["maxHandleLabel",""],["ngxSliderLabel","",1,"ngx-slider-span","ngx-slider-bubble","ngx-slider-combined"],["combinedLabel",""],["ngxSliderElement","",1,"ngx-slider-ticks",3,"hidden"],["ticksElement",""],["class","ngx-slider-tick",3,"ngClass","ngStyle",4,"ngFor","ngForOf"],[1,"ngx-slider-tick",3,"ngClass","ngStyle"],[3,"template","tooltip","placement"],["class","ngx-slider-span ngx-slider-tick-value",3,"template","tooltip","placement","content",4,"ngIf"],["class","ngx-slider-span ngx-slider-tick-legend",3,"innerHTML",4,"ngIf"],[1,"ngx-slider-span","ngx-slider-tick-value",3,"template","tooltip","placement","content"],[1,"ngx-slider-span","ngx-slider-tick-legend",3,"innerHTML"]],template:function(t,e){1&t&&(u.Ub(0,"span",0,1),u.Pb(2,"span",2),u.Tb(),u.Ub(3,"span",3,4),u.Pb(5,"span",2),u.Tb(),u.Ub(6,"span",5,6),u.Pb(8,"span",2),u.Tb(),u.Ub(9,"span",7,8),u.Pb(11,"span",9),u.Tb(),u.Pb(12,"span",10,11),u.Pb(14,"span",12,13),u.Pb(16,"span",14,15),u.Pb(18,"span",16,17),u.Pb(20,"span",18,19),u.Pb(22,"span",20,21),u.Pb(24,"span",22,23),u.Ub(26,"span",24,25),u.Oc(28,P,4,9,"span",26),u.Tb()),2&t&&(u.Cb(6),u.Gb("ngx-slider-transparent",e.fullBarTransparentClass),u.Cb(3),u.Gb("ngx-slider-draggable",e.selectionBarDraggableClass),u.Cb(2),u.mc("ngStyle",e.barStyle),u.Cb(1),u.mc("ngStyle",e.minPointerStyle),u.Cb(2),u.Lc("display",e.range?"inherit":"none"),u.mc("ngStyle",e.maxPointerStyle),u.Cb(12),u.Gb("ngx-slider-ticks-values-under",e.ticksUnderValuesClass),u.mc("hidden",!e.showTicks),u.Cb(2),u.mc("ngForOf",e.ticks))},directives:function(){return[H,d.o,q,Q,d.m,d.l,J,d.n]},styles:[".ngx-slider{display:inline-block;position:relative;height:4px;width:100%;margin:35px 0 15px;vertical-align:middle;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;touch-action:pan-y} .ngx-slider.with-legend{margin-bottom:40px} .ngx-slider[disabled]{cursor:not-allowed} .ngx-slider[disabled] .ngx-slider-pointer{cursor:not-allowed;background-color:#d8e0f3} .ngx-slider[disabled] .ngx-slider-draggable{cursor:not-allowed} .ngx-slider[disabled] .ngx-slider-selection{background:#8b91a2} .ngx-slider[disabled] .ngx-slider-tick{cursor:not-allowed} .ngx-slider[disabled] .ngx-slider-tick.ngx-slider-selected{background:#8b91a2} .ngx-slider .ngx-slider-span{white-space:nowrap;position:absolute;display:inline-block} .ngx-slider .ngx-slider-base{width:100%;height:100%;padding:0} .ngx-slider .ngx-slider-bar-wrapper{left:0;box-sizing:border-box;margin-top:-16px;padding-top:16px;width:100%;height:32px;z-index:1} .ngx-slider .ngx-slider-draggable{cursor:move} .ngx-slider .ngx-slider-bar{left:0;width:100%;height:4px;z-index:1;background:#d8e0f3;border-radius:2px} .ngx-slider .ngx-slider-bar-wrapper.ngx-slider-transparent .ngx-slider-bar{background:0 0} .ngx-slider .ngx-slider-bar-wrapper.ngx-slider-left-out-selection .ngx-slider-bar{background:#df002d} .ngx-slider .ngx-slider-bar-wrapper.ngx-slider-right-out-selection .ngx-slider-bar{background:#03a688} .ngx-slider .ngx-slider-selection{z-index:2;background:#0db9f0;border-radius:2px} .ngx-slider .ngx-slider-pointer{cursor:pointer;width:32px;height:32px;top:-14px;background-color:#0db9f0;z-index:3;border-radius:16px} .ngx-slider .ngx-slider-pointer:after{content:'';width:8px;height:8px;position:absolute;top:12px;left:12px;border-radius:4px;background:#fff} .ngx-slider .ngx-slider-pointer:hover:after{background-color:#fff} .ngx-slider .ngx-slider-pointer.ngx-slider-active{z-index:4} .ngx-slider .ngx-slider-pointer.ngx-slider-active:after{background-color:#451aff} .ngx-slider .ngx-slider-bubble{cursor:default;bottom:16px;padding:1px 3px;color:#55637d;font-size:16px} .ngx-slider .ngx-slider-bubble.ngx-slider-limit{color:#55637d} .ngx-slider .ngx-slider-ticks{box-sizing:border-box;width:100%;height:0;position:absolute;left:0;top:-3px;margin:0;z-index:1;list-style:none} .ngx-slider .ngx-slider-ticks-values-under .ngx-slider-tick-value{top:auto;bottom:-36px} .ngx-slider .ngx-slider-tick{text-align:center;cursor:pointer;width:10px;height:10px;background:#d8e0f3;border-radius:50%;position:absolute;top:0;left:0;margin-left:11px} .ngx-slider .ngx-slider-tick.ngx-slider-selected{background:#0db9f0} .ngx-slider .ngx-slider-tick-value{position:absolute;top:-34px;-webkit-transform:translate(-50%,0);transform:translate(-50%,0)} .ngx-slider .ngx-slider-tick-legend{position:absolute;top:24px;-webkit-transform:translate(-50%,0);transform:translate(-50%,0);max-width:50px;white-space:normal} .ngx-slider.vertical{position:relative;width:4px;height:100%;margin:0 20px;padding:0;vertical-align:baseline;touch-action:pan-x} .ngx-slider.vertical .ngx-slider-base{width:100%;height:100%;padding:0} .ngx-slider.vertical .ngx-slider-bar-wrapper{top:auto;left:0;margin:0 0 0 -16px;padding:0 0 0 16px;height:100%;width:32px} .ngx-slider.vertical .ngx-slider-bar{bottom:0;left:auto;width:4px;height:100%} .ngx-slider.vertical .ngx-slider-pointer{left:-14px!important;top:auto;bottom:0} .ngx-slider.vertical .ngx-slider-bubble{left:16px!important;bottom:0} .ngx-slider.vertical .ngx-slider-ticks{height:100%;width:0;left:-3px;top:0;z-index:1} .ngx-slider.vertical .ngx-slider-tick{vertical-align:middle;margin-left:auto;margin-top:11px} .ngx-slider.vertical .ngx-slider-tick-value{left:24px;top:auto;-webkit-transform:translate(0,-28%);transform:translate(0,-28%)} .ngx-slider.vertical .ngx-slider-tick-legend{top:auto;right:24px;-webkit-transform:translate(0,-28%);transform:translate(0,-28%);max-width:none;white-space:nowrap} .ngx-slider.vertical .ngx-slider-ticks-values-under .ngx-slider-tick-value{bottom:auto;left:auto;right:24px} .ngx-slider *{transition:none} .ngx-slider.animate .ngx-slider-bar-wrapper{transition:.3s linear} .ngx-slider.animate .ngx-slider-selection{transition:background-color .3s linear} .ngx-slider.animate .ngx-slider-pointer{transition:.3s linear} .ngx-slider.animate .ngx-slider-bubble{transition:.3s linear} .ngx-slider.animate .ngx-slider-bubble.ngx-slider-limit{transition:opacity .3s linear} .ngx-slider.animate .ngx-slider-bubble.ngx-slider-combined{transition:opacity .3s linear} .ngx-slider.animate .ngx-slider-tick{transition:background-color .3s linear}"]}),t})(),J=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=u.Ib({type:t,selectors:[["ngx-slider-tooltip-wrapper"]],inputs:{template:"template",tooltip:"tooltip",placement:"placement",content:"content"},decls:2,vars:2,consts:[[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ngx-slider-inner-tooltip"]],template:function(t,e){1&t&&(u.Oc(0,D,2,6,"ng-container",0),u.Oc(1,R,3,3,"ng-container",0)),2&t&&(u.mc("ngIf",e.template),u.Cb(1),u.mc("ngIf",!e.template))},directives:[d.n,d.s],styles:[".ngx-slider-inner-tooltip[_ngcontent-%COMP%]{height:100%}"]}),t})(),tt=(()=>{class t{}return t.\u0275mod=u.Mb({type:t}),t.\u0275inj=u.Lb({factory:function(e){return new(e||t)},imports:[[d.c]]}),t})()},"4hXt":function(t,e,n){"use strict";n.d(e,"a",(function(){return v}));var i=n("kZht"),r=n("Rjzq"),s=n("aaFr"),o=n("ROO/"),a=n("aDqW"),c=n("1etq"),l=n("An66"),u=n("NxuZ"),h=n("icqo");const d=["orderTypeToggle"],p=["triggerBtn"];function f(t,e){1&t&&(i.Sb(0),i.Qc(1),i.gc(2,"translate"),i.Rb()),2&t&&(i.Cb(1),i.Sc(" ",i.hc(2,1,"LABEL.STOP_LOSS")," "))}function b(t,e){1&t&&(i.Sb(0),i.Qc(1),i.gc(2,"translate"),i.Rb()),2&t&&(i.Cb(1),i.Sc(" ",i.hc(2,1,"LABEL.TAKE_PROFIT")," "))}function g(t,e){1&t&&(i.Sb(0),i.Qc(1),i.gc(2,"translate"),i.Rb()),2&t&&(i.Cb(1),i.Sc(" ",i.hc(2,1,"LABEL.TRIGGER_ENTRY")," "))}function m(t,e){1&t&&(i.Sb(0),i.Qc(1),i.gc(2,"translate"),i.Rb()),2&t&&(i.Cb(1),i.Rc(i.hc(2,1,"LABEL.ADVANCED")))}let v=(()=>{class t{constructor(t){this.keybinds=t,this.isFlexMarket=!1,this.orderType="limit",this.changeOrderType=new i.o,this.openCalculator=new i.o,this.lastTrigger="stop"}ngAfterViewInit(){this.setupKeybinds()}ngOnDestroy(){this.keybinds.dispose()}setupKeybinds(){this.keybinds.addBind("shift+l",()=>{this.onChangeOrderType("limit")}),this.keybinds.addBind("shift+m",()=>{this.onChangeOrderType("market")}),this.keybinds.register()}onChangeOrderType(t){this.changeOrderType.emit(t),"limit"!==t&&"market"!==t&&(this.lastTrigger=t)}get isLimitOrder(){return"limit"===this.orderType}get isMarketOrder(){return"market"===this.orderType}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(r.a,2))},t.\u0275cmp=i.Ib({type:t,selectors:[["order-type-toggle"]],viewQuery:function(t,e){var n;1&t&&(i.Wc(d,!0),i.Wc(p,!0)),2&t&&(i.zc(n=i.cc())&&(e.orderTypeToggle=n.first),i.zc(n=i.cc())&&(e.triggerBtn=n.first))},inputs:{isFlexMarket:"isFlexMarket",orderType:"orderType",displayTooltips:"displayTooltips"},outputs:{changeOrderType:"changeOrderType",openCalculator:"openCalculator"},features:[i.Bb([r.a])],decls:27,vars:11,consts:[["orderTypeMenu","sbMenu"],["sb-menu-item","","type","button",3,"click"],["translate",""],[1,"tabs"],[1,"tab",3,"click"],["subheading","","translate",""],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["subheading","",1,"tab"],["icon","chevron-down","size","lg",3,"sbMenuTriggerFor"]],template:function(t,e){if(1&t&&(i.Ub(0,"sb-menu",null,0),i.Ub(2,"button",1),i.bc("click",(function(){return e.onChangeOrderType("stop")})),i.Ub(3,"span",2),i.Qc(4,"LABEL.STOP_LOSS"),i.Tb(),i.Tb(),i.Ub(5,"button",1),i.bc("click",(function(){return e.onChangeOrderType("take_profit")})),i.Ub(6,"span",2),i.Qc(7,"LABEL.TAKE_PROFIT"),i.Tb(),i.Tb(),i.Ub(8,"button",1),i.bc("click",(function(){return e.onChangeOrderType("trigger_entry")})),i.Ub(9,"span",2),i.Qc(10,"LABEL.TRIGGER_ENTRY"),i.Tb(),i.Tb(),i.Tb(),i.Ub(11,"div",3),i.Ub(12,"div",4),i.bc("click",(function(){return e.onChangeOrderType("limit")})),i.Ub(13,"p",5),i.Qc(14,"BUTTON.LIMIT_ORDER_SHORT"),i.Tb(),i.Tb(),i.Ub(15,"div",4),i.bc("click",(function(){return e.onChangeOrderType("market")})),i.Ub(16,"p",5),i.Qc(17,"BUTTON.MARKET_ORDER_SHORT"),i.Tb(),i.Tb(),i.Ub(18,"div",4),i.bc("click",(function(){return e.onChangeOrderType(e.lastTrigger)})),i.Ub(19,"p",5),i.Sb(20,6),i.Oc(21,f,3,3,"ng-container",7),i.Oc(22,b,3,3,"ng-container",7),i.Oc(23,g,3,3,"ng-container",7),i.Oc(24,m,3,3,"ng-container",8),i.Rb(),i.Tb(),i.Tb(),i.Ub(25,"div",9),i.Pb(26,"fa-icon",10),i.Tb(),i.Tb()),2&t){const t=i.Ac(1);i.Cb(12),i.Gb("active","limit"===e.orderType),i.Cb(3),i.Gb("active","market"===e.orderType),i.Cb(3),i.Gb("active",!e.isLimitOrder&&!e.isMarketOrder),i.Cb(2),i.mc("ngSwitch",e.lastTrigger),i.Cb(1),i.mc("ngSwitchCase","stop"),i.Cb(1),i.mc("ngSwitchCase","take_profit"),i.Cb(1),i.mc("ngSwitchCase","trigger_entry"),i.Cb(3),i.mc("sbMenuTriggerFor",t)}},directives:[s.a,o.a,a.a,c.a,l.p,l.q,l.r,u.b,h.b],pipes:[a.d],styles:[".calculator[_ngcontent-%COMP%]{align-self:center;cursor:pointer;font-size:24px;margin-left:var(--spacing);margin-bottom:var(--spacing)}.order-toggle[_ngcontent-%COMP%]{display:flex;flex-direction:row}.order-toggle[_ngcontent-%COMP%] mat-button-toggle[_ngcontent-%COMP%]{flex:1}.tabs[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row;margin-bottom:var(--spacing);cursor:pointer;border-bottom:1px solid var(--border-colour)}.tabs[_ngcontent-%COMP%] .tab[_ngcontent-%COMP%]{padding:4px 8px 6px}.tabs[_ngcontent-%COMP%] .tab.active[_ngcontent-%COMP%]{border-bottom:2px solid var(--input-colour)}"],changeDetection:0}),t})()},"4x5s":function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s=n("J180"),o=n("4f9k");e.BrowserQRCodeReader=function(t){function e(e){return void 0===e&&(e=500),t.call(this,new o.default,e)||this}return r(e,t),e}(s.BrowserCodeReader)},"5AUt":function(t,e,n){"use strict";n.r(e),n.d(e,"OrderCalculatorsComponent",(function(){return m}));var i=n("mcff"),r=n("zqNl"),s=n("sq1e"),o=n("+Px6"),a=n("R1aX"),c=n("J/3c"),l=n("kZht"),u=n("rfPA"),h=n("bBQR"),d=n("rEzU"),p=n("RnHX"),f=n("IwOb"),b=n("aDqW"),g=n("An66");let m=(()=>{class t{constructor(t,e){this.inputs=t,this.store=e,this.classification$=this.store.pipe(Object(r.m)(a.c)),this.markets$=this.store.pipe(Object(r.m)(o.f)),this.selectedMarket$=this.store.pipe(Object(r.m)(o.n)),this.wallets$=this.store.pipe(Object(r.m)(c.h))}ngOnInit(){"liquidation"===this.inputs.calculator&&(this.tabs.selectedIndex=1)}}return t.\u0275fac=function(e){return new(e||t)(l.Ob(i.a),l.Ob(r.b))},t.\u0275cmp=l.Ib({type:t,selectors:[["order-calculators"]],viewQuery:function(t,e){var n;1&t&&l.Jc(s.c,!0),2&t&&l.zc(n=l.cc())&&(e.tabs=n.first)},decls:14,vars:28,consts:[["heading","HEADING.CALCULATORS",3,"padding"],[1,"tabs"],[3,"label"],[3,"mid","markets","selectedMarket"],[3,"mid","markets","selectedMarket","classification","wallets"]],template:function(t,e){1&t&&(l.Ub(0,"pro-dialog",0),l.Ub(1,"mat-tab-group",1),l.Ub(2,"mat-tab",2),l.gc(3,"translate"),l.Pb(4,"profit-loss-calculator",3),l.gc(5,"async"),l.gc(6,"async"),l.Tb(),l.Ub(7,"mat-tab",2),l.gc(8,"translate"),l.Pb(9,"liquidation-calculator",4),l.gc(10,"async"),l.gc(11,"async"),l.gc(12,"async"),l.gc(13,"async"),l.Tb(),l.Tb(),l.Tb()),2&t&&(l.mc("padding",!1),l.Cb(1),l.mc("@.disabled",!0),l.Cb(1),l.mc("label",l.hc(3,12,"LABEL.PROFIT_AND_LOSS")),l.Cb(2),l.mc("mid",e.inputs.mid)("markets",l.hc(5,14,e.markets$))("selectedMarket",l.hc(6,16,e.selectedMarket$)),l.Cb(3),l.mc("label",l.hc(8,18,"LABEL.LIQUIDATION")),l.Cb(2),l.mc("mid",e.inputs.mid)("markets",l.hc(10,20,e.markets$))("selectedMarket",l.hc(11,22,e.selectedMarket$))("classification",l.hc(12,24,e.classification$))("wallets",l.hc(13,26,e.wallets$)))},directives:[u.a,h.a,s.c,s.a,d.a,p.a,f.a],pipes:[b.d,g.b],styles:[".tabs[_ngcontent-%COMP%]{width:550px}@media (max-width:599px){.tabs[_ngcontent-%COMP%]{width:100%}}"],changeDetection:0}),t})()},"5E2i":function(t,e,n){"use strict";function i(t){return t}n.d(e,"a",(function(){return i}))},"5GZx":function(t,e,n){"use strict";n.d(e,"a",(function(){return q})),n.d(e,"b",(function(){return H})),n.d(e,"c",(function(){return z})),n.d(e,"d",(function(){return T})),n.d(e,"e",(function(){return I})),n.d(e,"f",(function(){return W}));var i=n("VbQ3"),r=n("kZht"),s=n("An66"),o=n("5XID"),a=n("vE5V"),c=n("ZtZA"),l=n("O1jd"),u=n("ZTXN"),h=n("bwdy"),d=n("g6G6"),p=n("J+dc"),f=n("kuMc"),b=n("B8NW"),g=n("Hq54");class m{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=Object(o.d)(-this._previousScrollPosition.left),t.style.top=Object(o.d)(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,n=this._document.body.style,i=e.scrollBehavior||"",r=n.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),e.scrollBehavior=n.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),e.scrollBehavior=i,n.scrollBehavior=r}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}class v{constructor(t,e,n,i){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=i,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class _{enable(){}disable(){}attach(){}}function y(t,e){return e.some(e=>t.bottome.bottom||t.righte.right)}function O(t,e){return e.some(e=>t.tope.bottom||t.lefte.right)}class C{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=i,this._scrollSubscription=null}attach(t){this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:n}=this._viewportRuler.getViewportSize();y(t,[{width:e,height:n,bottom:n,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let w=(()=>{class t{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=()=>new _,this.close=t=>new v(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new m(this._viewportRuler,this._document),this.reposition=t=>new C(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=i}}return t.\u0275fac=function(e){return new(e||t)(r.Yb(i.f),r.Yb(i.h),r.Yb(r.B),r.Yb(s.d))},t.\u0275prov=Object(r.Kb)({factory:function(){return new t(Object(r.Yb)(i.f),Object(r.Yb)(i.h),Object(r.Yb)(r.B),Object(r.Yb)(s.d))},token:t,providedIn:"root"}),t})();class T{constructor(t){if(this.scrollStrategy=new _,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const n of e)void 0!==t[n]&&(this[n]=t[n])}}}class S{constructor(t,e,n,i,r){this.offsetX=n,this.offsetY=i,this.panelClass=r,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class k{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let E=(()=>{class t{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(r.Yb(s.d))},t.\u0275prov=Object(r.Kb)({factory:function(){return new t(Object(r.Yb)(s.d))},token:t,providedIn:"root"}),t})(),x=(()=>{class t extends E{constructor(t){super(t),this._keydownListener=t=>{const e=this._attachedOverlays;for(let n=e.length-1;n>-1;n--)if(e[n]._keydownEvents.observers.length>0){e[n]._keydownEvents.next(t);break}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(r.Yb(s.d))},t.\u0275prov=Object(r.Kb)({factory:function(){return new t(Object(r.Yb)(s.d))},token:t,providedIn:"root"}),t})(),P=(()=>{class t extends E{constructor(t,e){super(t),this._platform=e,this._cursorStyleIsSet=!1,this._clickListener=t=>{const e=t.composedPath?t.composedPath()[0]:t.target,n=this._attachedOverlays.slice();for(let i=n.length-1;i>-1;i--){const r=n[i];if(!(r._outsidePointerEvents.observers.length<1)&&r.hasAttached()){if(r.overlayElement.contains(e))break;r._outsidePointerEvents.next(t)}}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("click",this._clickListener,!0),this._document.body.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=this._document.body.style.cursor,this._document.body.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("click",this._clickListener,!0),this._document.body.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(r.Yb(s.d),r.Yb(l.a))},t.\u0275prov=Object(r.Kb)({factory:function(){return new t(Object(r.Yb)(s.d),Object(r.Yb)(l.a))},token:t,providedIn:"root"}),t})();const A=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let I=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t=this._platform?this._platform.isBrowser:"undefined"!=typeof window;if(t||A){const t=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]');for(let e=0;ethis._backdropClick.next(t),this._keydownEvents=new u.b,this._outsidePointerEvents=new u.b,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Object(p.a)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&this._location&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher&&this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher&&this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher&&this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=Object(o.d)(this._config.width),t.height=Object(o.d)(this._config.height),t.minWidth=Object(o.d)(this._config.minWidth),t.minHeight=Object(o.d)(this._config.minHeight),t.maxWidth=Object(o.d)(this._config.maxWidth),t.maxHeight=Object(o.d)(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"auto":"none"}_attachBackdrop(){this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t,e=this._backdropElement;if(!e)return;let n=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",n),e.parentNode&&e.parentNode.removeChild(e)),this._backdropElement==e&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",n)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(n,500))}_toggleClasses(t,e,n){const i=t.classList;Object(o.b)(e).forEach(t=>{t&&(n?i.add(t):i.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(Object(f.a)(Object(d.a)(this._attachments,this._detachments))).subscribe(()=>{this._pane&&this._host&&0!==this._pane.children.length||(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}}const D=/([A-Za-z%]+)$/;class R{constructor(t,e,n,i,r){this._viewportRuler=e,this._document=n,this._platform=i,this._overlayContainer=r,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new u.b,this._resizeSubscription=h.a.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const t=this._originRect,e=this._overlayRect,n=this._viewportRect,i=[];let r;for(let s of this._preferredPositions){let o=this._getOriginPoint(t,s),a=this._getOverlayPoint(o,e,s),c=this._getOverlayFit(a,e,n,s);if(c.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,o);this._canFitWithFlexibleDimensions(c,a,n)?i.push({position:s,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,s)}):(!r||r.overlayFit.visibleAreae&&(e=i,t=n)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(r.position,r.originPoint);this._applyPosition(r.position,r.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&j(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let n,i;if("center"==e.originX)n=t.left+t.width/2;else{const i=this._isRtl()?t.right:t.left,r=this._isRtl()?t.left:t.right;n="start"==e.originX?i:r}return i="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:n,y:i}}_getOverlayPoint(t,e,n){let i,r;return i="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,r="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height,{x:t.x+i,y:t.y+r}}_getOverlayFit(t,e,n,i){let{x:r,y:s}=t,o=this._getOffset(i,"x"),a=this._getOffset(i,"y");o&&(r+=o),a&&(s+=a);let c=0-s,l=s+e.height-n.height,u=this._subtractOverflows(e.width,0-r,r+e.width-n.width),h=this._subtractOverflows(e.height,c,l),d=u*h;return{visibleArea:d,isCompletelyWithinViewport:e.width*e.height===d,fitsInViewportVertically:h===e.height,fitsInViewportHorizontally:u==e.width}}_canFitWithFlexibleDimensions(t,e,n){if(this._hasFlexibleDimensions){const i=n.bottom-e.y,r=n.right-e.x,s=L(this._overlayRef.getConfig().minHeight),o=L(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=o&&o<=r;return(t.fitsInViewportVertically||null!=s&&s<=i)&&a}return!1}_pushOverlayOnScreen(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const i=this._viewportRect,r=Math.max(t.x+e.width-i.width,0),s=Math.max(t.y+e.height-i.height,0),o=Math.max(i.top-n.top-t.y,0),a=Math.max(i.left-n.left-t.x,0);let c=0,l=0;return c=e.width<=i.width?a||-r:t.xi&&!this._isInitialRender&&!this._growAfterOpen&&(s=t.y-i/2)}if("end"===e.overlayX&&!i||"start"===e.overlayX&&i)l=n.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!i||"end"===e.overlayX&&i)c=t.x,a=n.right-t.x;else{const e=Math.min(n.right-t.x+n.left,t.x),i=this._lastBoundingBoxSize.width;a=2*e,c=t.x-e,a>i&&!this._isInitialRender&&!this._growAfterOpen&&(c=t.x-i/2)}return{top:s,left:c,bottom:o,right:l,width:a,height:r}}_setBoundingBoxStyles(t,e){const n=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));const i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,r=this._overlayRef.getConfig().maxWidth;i.height=Object(o.d)(n.height),i.top=Object(o.d)(n.top),i.bottom=Object(o.d)(n.bottom),i.width=Object(o.d)(n.width),i.left=Object(o.d)(n.left),i.right=Object(o.d)(n.right),i.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",i.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(i.maxHeight=Object(o.d)(t)),r&&(i.maxWidth=Object(o.d)(r))}this._lastBoundingBoxSize=n,j(this._boundingBox.style,i)}_resetBoundingBoxStyles(){j(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){j(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const n={},i=this._hasExactPosition(),r=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(i){const i=this._viewportRuler.getViewportScrollPosition();j(n,this._getExactOverlayY(e,t,i)),j(n,this._getExactOverlayX(e,t,i))}else n.position="static";let a="",c=this._getOffset(e,"x"),l=this._getOffset(e,"y");c&&(a+=`translateX(${c}px) `),l&&(a+=`translateY(${l}px)`),n.transform=a.trim(),s.maxHeight&&(i?n.maxHeight=Object(o.d)(s.maxHeight):r&&(n.maxHeight="")),s.maxWidth&&(i?n.maxWidth=Object(o.d)(s.maxWidth):r&&(n.maxWidth="")),j(this._pane.style,n)}_getExactOverlayY(t,e,n){let i={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));let s=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=s,"bottom"===t.overlayY?i.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":i.top=Object(o.d)(r.y),i}_getExactOverlayX(t,e,n){let i,r={left:"",right:""},s=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,n)),i=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===i?r.right=this._document.documentElement.clientWidth-(s.x+this._overlayRect.width)+"px":r.left=Object(o.d)(s.x),r}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:O(t,n),isOriginOutsideView:y(t,n),isOverlayClipped:O(e,n),isOverlayOutsideView:y(e,n)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+t-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&Object(o.b)(t).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof r.l)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,n=t.height||0;return{top:t.y,bottom:t.y+n,left:t.x,right:t.x+e,height:n,width:e}}}function j(t,e){for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function L(t){if("number"!=typeof t&&null!=t){const[e,n]=t.split(D);return n&&"px"!==n?null:parseFloat(e)}return t||null}class N{constructor(t,e,n,i,r,s,o){this._preferredPositions=[],this._positionStrategy=new R(n,i,r,s,o).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,n,i){const r=new S(t,e,n,i);return this._preferredPositions.push(r),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}class U{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add("cdk-global-overlay-wrapper"),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:i,height:r,maxWidth:s,maxHeight:o}=n,a=!("100%"!==i&&"100vw"!==i||s&&"100%"!==s&&"100vw"!==s),c=!("100%"!==r&&"100vh"!==r||o&&"100%"!==o&&"100vh"!==o);t.position=this._cssPosition,t.marginLeft=a?"0":this._leftOffset,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,a?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove("cdk-global-overlay-wrapper"),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let F=(()=>{class t{constructor(t,e,n,i){this._viewportRuler=t,this._document=e,this._platform=n,this._overlayContainer=i}global(){return new U}connectedTo(t,e,n){return new N(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new R(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(r.Yb(i.h),r.Yb(s.d),r.Yb(l.a),r.Yb(I))},t.\u0275prov=Object(r.Kb)({factory:function(){return new t(Object(r.Yb)(i.h),Object(r.Yb)(s.d),Object(r.Yb)(l.a),Object(r.Yb)(I))},token:t,providedIn:"root"}),t})(),B=0,z=(()=>{class t{constructor(t,e,n,i,r,s,o,a,c,l,u){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=n,this._positionBuilder=i,this._keyboardDispatcher=r,this._injector=s,this._ngZone=o,this._document=a,this._directionality=c,this._location=l,this._outsideClickDispatcher=u}create(t){const e=this._createHostElement(),n=this._createPaneElement(e),i=this._createPortalOutlet(n),r=new T(t);return r.direction=r.direction||this._directionality.value,new M(i,e,n,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id="cdk-overlay-"+B++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(r.g)),new c.e(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(r.Yb(w),r.Yb(I),r.Yb(r.j),r.Yb(F),r.Yb(x),r.Yb(r.t),r.Yb(r.B),r.Yb(s.d),r.Yb(a.b),r.Yb(s.j),r.Yb(P))},t.\u0275prov=r.Kb({token:t,factory:t.\u0275fac}),t})();const V=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],$=new r.s("cdk-connected-overlay-scroll-strategy");let H=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)(r.Ob(r.l))},t.\u0275dir=r.Jb({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),q=(()=>{class t{constructor(t,e,n,i,s){this._overlay=t,this._dir=s,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=h.a.EMPTY,this._attachSubscription=h.a.EMPTY,this._detachSubscription=h.a.EMPTY,this._positionSubscription=h.a.EMPTY,this.viewportMargin=0,this.open=!1,this.backdropClick=new r.o,this.positionChange=new r.o,this.attach=new r.o,this.detach=new r.o,this.overlayKeydown=new r.o,this.overlayOutsideClick=new r.o,this._templatePortal=new c.h(e,n),this._scrollStrategyFactory=i,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=Object(o.c)(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=Object(o.c)(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=Object(o.c)(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=Object(o.c)(t)}get push(){return this._push}set push(t){this._push=Object(o.c)(t)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){this.positions&&this.positions.length||(this.positions=V);const t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=t.detachments().subscribe(()=>this.detach.emit()),t.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),t.keyCode!==g.f||Object(g.r)(t)||(t.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(t=>{this.overlayOutsideClick.next(t)})}_buildConfig(){const t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new T({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}_updatePositionStrategy(t){const e=this.positions.map(t=>({originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||this.offsetX,offsetY:t.offsetY||this.offsetY,panelClass:t.panelClass||void 0}));return t.setOrigin(this.origin.elementRef).withPositions(e).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const t=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(t),t}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(Object(b.a)(()=>this.positionChange.observers.length>0)).subscribe(t=>{this.positionChange.emit(t),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(r.Ob(z),r.Ob(r.N),r.Ob(r.R),r.Ob($),r.Ob(a.b,8))},t.\u0275dir=r.Jb({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[r.Ab]}),t})();const Q={provide:$,deps:[z],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let W=(()=>{class t{}return t.\u0275mod=r.Mb({type:t}),t.\u0275inj=r.Lb({factory:function(e){return new(e||t)},providers:[z,Q],imports:[[a.a,c.g,i.g],i.g]}),t})()},"5JSY":function(t,e,n){"use strict";n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return h}));var i=n("zqNl"),r=n("p5wL"),s=n("0YqF"),o=n("644g");const a=Object(i.i)({platform:"kraken"},Object(i.k)(s.a,(t,{platform:e})=>Object(r.b)(e,t,"platform")));function c(t,e){return a(t,e)}const l=Object(i.h)("env"),u=Object(i.j)(l,t=>t.platform),h=Object(i.j)(u,t=>Object(o.a)(t))},"5OId":function(t,e){var n="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",i="(?:(?![A-Z0-9 $%*+\\-./:]|"+(n=n.replace(/u/g,"\\u"))+")(?:.|[\r\n]))+";e.KANJI=new RegExp(n,"g"),e.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),e.BYTE=new RegExp(i,"g"),e.NUMERIC=new RegExp("[0-9]+","g"),e.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");var r=new RegExp("^"+n+"$"),s=new RegExp("^[0-9]+$"),o=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");e.testKanji=function(t){return r.test(t)},e.testNumeric=function(t){return s.test(t)},e.testAlphanumeric=function(t){return o.test(t)}},"5OT+":function(t,e,n){"use strict";var i=n("pPqe");n.d(e,"a",(function(){return i.a}));var r=n("zho4");n.d(e,"b",(function(){return r.a}));var s=n("y1fC");n.d(e,"c",(function(){return s.a})),n.d(e,"e",(function(){return s.b}));var o=n("o09O");n.d(e,"d",(function(){return o.a}))},"5XID":function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return r})),n.d(e,"d",(function(){return c})),n.d(e,"e",(function(){return l})),n.d(e,"f",(function(){return s}));var i=n("kZht");function r(t){return null!=t&&""+t!="false"}function s(t,e=0){return o(t)?Number(t):e}function o(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function a(t){return Array.isArray(t)?t:[t]}function c(t){return null==t?"":"string"==typeof t?t:t+"px"}function l(t){return t instanceof i.l?t.nativeElement:t}},"5a6m":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("3as9"),r=n("kZht");const s={browser:[[/(KrakenFutures)\/([0-9._-]+)/i],[[i.UAParser.BROWSER.NAME,"Kraken Futures App"],i.UAParser.BROWSER.VERSION]]};let o=(()=>{class t{transform(t){const e=new i.UAParser(t,s),{os:n,browser:r}=e.getResult();return`${n.name} / ${r.name}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r.Nb({name:"userAgent",type:t,pure:!0}),t})()},"5uDM":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("cJ9h");function r(t,e){return Object(i.a)(t,e,1)}},"5uGe":function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i=n("IJgj"),r=n("rWo0"),s=n("bwdy"),o=n("25CY"),a=n("HgnN"),c=n("i9P/");class l extends s.a{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=r.a;break;case 1:if(!t){this.destination=r.a;break}if("object"==typeof t){t instanceof l?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new u(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new u(this,t,e,n)}}[o.a](){return this}static create(t,e,n){const i=new l(t,e,n);return i.syncErrorThrowable=!1,i}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class u extends l{constructor(t,e,n,s){let o;super(),this._parentSubscriber=t;let a=this;Object(i.a)(e)?o=e:e&&(o=e.next,n=e.error,s=e.complete,e!==r.a&&(a=Object.create(e),Object(i.a)(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=o,this._error=n,this._complete=s}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;a.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=a.a;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):Object(c.a)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;Object(c.a)(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);a.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),a.a.useDeprecatedSynchronousErrorHandling)throw n;Object(c.a)(n)}}__tryOrSetError(t,e,n){if(!a.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(i){return a.a.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=i,t.syncErrorThrown=!0,!0):(Object(c.a)(i),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}},"644g":function(t,e,n){"use strict";function i(t){return"cf"===t?"Crypto Facilities":"Kraken Futures"}n.d(e,"a",(function(){return i}))},"67SP":function(t,e,n){"use strict";var i=n("B9MG"),r=(s.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()}catch(e){return!1}}())?2147483647:1073741823;function s(t,e,n){return s.TYPED_ARRAY_SUPPORT||this instanceof s?"number"==typeof t?c(this,t):function(t,e,n,i){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,i){if(n<0||e.byteLength=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return 0|t}function a(t,e){var n;return s.TYPED_ARRAY_SUPPORT?(n=new Uint8Array(e)).__proto__=s.prototype:(null===(n=t)&&(n=new s(e)),n.length=e),n}function c(t,e){var n=a(t,e<0?0:0|o(e));if(!s.TYPED_ARRAY_SUPPORT)for(var i=0;i55295&&n<57344){if(!r){if(n>56319){(e-=3)>-1&&s.push(239,191,189);continue}if(o+1===i){(e-=3)>-1&&s.push(239,191,189);continue}r=n;continue}if(n<56320){(e-=3)>-1&&s.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(e-=3)>-1&&s.push(239,191,189);if(r=null,n<128){if((e-=1)<0)break;s.push(n)}else if(n<2048){if((e-=2)<0)break;s.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;s.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;s.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return s}function h(t){return s.isBuffer(t)?t.length:"undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer)?t.byteLength:("string"!=typeof t&&(t=""+t),0===t.length?0:u(t).length)}s.TYPED_ARRAY_SUPPORT&&(s.prototype.__proto__=Uint8Array.prototype,s.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&s[Symbol.species]===s&&Object.defineProperty(s,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1})),s.prototype.write=function(t,e,n){void 0===e||void 0===n&&"string"==typeof e?(n=this.length,e=0):isFinite(e)&&(e|=0,isFinite(n)?n|=0:n=void 0);var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");return function(t,e,n,i){return function(t,e,n,i){for(var r=0;r=e.length||r>=t.length);++r)e[r+n]=t[r];return r}(u(e,t.length-n),t,n,i)}(this,t,e,n)},s.prototype.slice=function(t,e){var n,i=this.length;if((t=~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),(e=void 0===e?i:~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),e=t.length&&(e=t.length),e||(e=0),i>0&&i=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e=0;--r)t[r+e]=this[r+n];else if(o<1e3||!s.TYPED_ARRAY_SUPPORT)for(r=0;r>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(r=e;r=10&&(a|=1<<1-l),1!==l&&(o=t.getNextSet(o),o=t.getNextUnset(o))}if(2!==n.length)throw new c.default;if(parseInt(n.toString())%4!==a)throw new c.default;return o},t.parseExtensionString=function(t){return 2!==t.length?null:new Map([[a.default.ISSUE_NUMBER,parseInt(t)]])},t}()},"6BNo":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("kZht");let r=(()=>{class t{constructor(t,e){this.renderer=t,this.element=e}ngOnInit(){this.renderer.addClass(this.element.nativeElement,"global__text--nobr")}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.G),i.Ob(i.l))},t.\u0275dir=i.Jb({type:t,selectors:[["","nobr",""]]}),t})()},"6D9M":function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var i=n("zqNl"),r=n("J/3c"),s=n("lE9u"),o=n("rxqU"),a=n("kZht"),c=n("bv5E"),l=n("An66");let u=(()=>{class t{constructor(t){this.store=t,this.availableTransferPreferences$=this.store.pipe(Object(i.m)(r.b)),this.defaultTransferPreference$=this.store.pipe(Object(i.m)(o.u))}changeTransferPreference(t){this.store.dispatch(Object(s.d)({transferPreference:t}))}}return t.\u0275fac=function(e){return new(e||t)(a.Ob(i.b))},t.\u0275cmp=a.Ib({type:t,selectors:[["transfer-preference"]],decls:3,vars:6,consts:[[3,"availablePreferences","defaultTransferPreference","changeTransferPreference"]],template:function(t,e){1&t&&(a.Ub(0,"inbound-transfer-dropdown",0),a.bc("changeTransferPreference",(function(t){return e.changeTransferPreference(t)})),a.gc(1,"async"),a.gc(2,"async"),a.Tb()),2&t&&a.mc("availablePreferences",a.hc(1,2,e.availableTransferPreferences$))("defaultTransferPreference",a.hc(2,4,e.defaultTransferPreference$))},directives:[c.a],pipes:[l.b],styles:[""],changeDetection:0}),t})()},"6NrZ":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return o})),n.d(e,"e",(function(){return a})),n.d(e,"d",(function(){return c}));var i=n("YzTY");const r={draggable:{enabled:!0,dragHandleClass:"draggable",ignoreContent:!0,start:()=>a(),stop:()=>c()},resizable:{enabled:!0,start:()=>a(),stop:()=>c()},gridType:n("lw+r").a.VerticalFixed,outerMargin:!1,displayGrid:"none",fixedColWidth:100,fixedRowHeight:50,disableScrollHorizontal:!0,pushItems:!0,pushDirections:{south:!0,east:!1,west:!1,north:!1},pushResizeItems:!1,swap:!1,compactType:"compactUp"},s=[{id:i.a.ORDER_FORM,cols:4,rows:10,y:0,x:0,component:"order-form",componentName:"Order Form",minItemCols:4,minItemRows:6},{id:i.a.MARKET_CHART,cols:10,rows:10,y:0,x:0,component:"market-chart",componentName:"Market Chart",minItemCols:6,minItemRows:6},{id:i.a.ACCOUNT_ACTIVITY,cols:15,rows:8,y:0,x:0,component:"account-activity",componentName:"Activity",minItemCols:10,minItemRows:4},{id:i.a.ORDERBOOK,cols:5,rows:8,y:0,x:0,component:"orderbook",componentName:"Orderbook",minItemCols:4,minItemRows:4},{id:i.a.TRADE_HISTORY,cols:5,rows:8,y:0,x:0,component:"trade-history",componentName:"Trade History",minItemCols:4,minItemRows:4},{id:i.a.PAIR_WALLET,cols:4,rows:6,y:0,x:0,component:"pair-wallet",componentName:"Pair Wallet",minItemCols:2,minItemRows:2},{id:i.a.DEPTH_CHART,cols:4,rows:6,y:0,x:0,component:"depth-chart",componentName:"Depth Chart",minItemCols:4,minItemRows:4},{id:i.a.MARKET_PREVIEWS,cols:15,rows:6,y:0,x:0,component:"market-previews",componentName:"Market Previews",minItemCols:6,minItemRows:6},{id:i.a.MARKET_DETAILS,cols:4,rows:6,y:0,x:0,component:"market-details",componentName:"Market Details",minItemCols:2,minItemRows:2}],o=[{id:i.a.ORDER_FORM,cols:4,rows:10,y:0,x:0,component:"order-form",componentName:"Order Form",minItemCols:4,minItemRows:6},{id:i.a.MARKET_CHART,cols:11,rows:10,y:0,x:4,component:"market-chart",componentName:"Market Chart",minItemCols:6,minItemRows:6},{id:i.a.ACCOUNT_ACTIVITY,cols:15,rows:6,y:10,x:0,component:"account-activity",componentName:"Trades",minItemCols:10,minItemRows:4},{id:i.a.ORDERBOOK,cols:5,rows:8,y:0,x:15,component:"orderbook",componentName:"Orderbook",minItemCols:4,minItemRows:4},{id:i.a.TRADE_HISTORY,cols:5,rows:8,y:8,x:15,component:"trade-history",componentName:"Trade History",minItemCols:4,minItemRows:4}];function a(){const t=document.getElementById("market-chart");t&&(t.style.pointerEvents="none")}function c(){const t=document.getElementById("market-chart");t&&(t.style.pointerEvents="initial")}},"6Oco":function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return s}));var i=n("IdLP");const r=new i.a(t=>t.complete());function s(t){return t?function(t){return new i.a(e=>t.schedule(()=>e.complete()))}(t):r}},"6neU":function(t,e,n){"use strict";n.d(e,"a",(function(){return wt}));var i=n("D57K"),r=n("zqNl"),s=n("3kIJ"),o=n("w0kG"),a=n("xVbo"),c=n("jOdJ"),l=n("3mST"),u=n("gxtV"),h=n("8lHc"),d=n("VmIW"),p=n("KQpv"),f=n.n(p),b=n("lx5p"),g=n("Ee7O"),m=n("i67J"),v=n("CW1w"),_=n("NloN"),y=n("l5Az"),O=n("1u95"),C=n("KyJX"),w=n("h3eB"),T=n("R1aX"),S=n("+Px6"),k=n("qAYy"),E=n("rxqU"),x=n("ylpo"),P=n("kZht"),A=n("An66"),I=n("NxuZ"),M=n("1etq"),D=n("Eu46"),R=n("TMzY"),j=n("anSm"),L=n("yvKM"),N=n("LBlH"),U=n("y1fC"),F=n("pPqe"),B=n("EmXI"),z=n("Tcl6"),V=n("o09O"),$=n("1eaT"),H=n("aDqW"),q=n("+I9z"),Q=n("UDV5"),W=n("1o0v"),G=n("8spT"),Y=n("scAs"),K=n("WYJo"),Z=n("LbKT"),X=n("hCLc"),J=n("3W1Y"),tt=n("DpwM"),et=n("rUBT"),nt=n("fvDn");function it(t,e){1&t&&(P.Ub(0,"section",2),P.Pb(1,"fa-icon",3),P.Ub(2,"h2",4),P.Qc(3),P.gc(4,"translate"),P.Tb(),P.Tb()),2&t&&(P.Cb(3),P.Sc("",P.hc(4,1,"DASHBOARD.AUTHMASK"),"."))}function rt(t,e){1&t&&(P.Ub(0,"mat-checkbox",50),P.Qc(1),P.gc(2,"translate"),P.Tb()),2&t&&(P.Cb(1),P.Sc(" ",P.hc(2,1,"BUTTON.MAKER_ONLY")," "))}function st(t,e){if(1&t){const t=P.Vb();P.Ub(0,"div",44),P.Ub(1,"mat-radio-group",45),P.bc("change",(function(){P.Ec(t);const e=P.fc().ngIf;return P.fc(2).adjustTriggerInputs(e.selectedMarket,e.selectedTicker)})),P.Ub(2,"mat-radio-button",46),P.Qc(3),P.gc(4,"translate"),P.Tb(),P.Ub(5,"mat-radio-button",47),P.Qc(6),P.gc(7,"translate"),P.Tb(),P.Tb(),P.Ub(8,"div",48),P.Oc(9,rt,3,3,"mat-checkbox",49),P.Tb(),P.Tb()}if(2&t){const t=P.fc(3);P.Cb(3),P.Sc(" ",P.hc(4,3,"BUTTON.LIMIT_ORDER")," "),P.Cb(3),P.Sc(" ",P.hc(7,5,"BUTTON.MARKET_ORDER")," "),P.Cb(3),P.mc("ngIf","limit"===t.mainForm.controls.type.value)}}function ot(t,e){if(1&t){const t=P.Vb();P.Ub(0,"mat-form-field",19),P.Ub(1,"mat-label"),P.Qc(2),P.gc(3,"translate"),P.Tb(),P.Ub(4,"input",51),P.bc("input",(function(){P.Ec(t);const e=P.fc().ngIf;return P.fc(2).adjustTriggerInputs(e.selectedMarket,e.selectedTicker)})),P.Tb(),P.Ub(5,"span",35),P.Qc(6),P.gc(7,"quote"),P.Tb(),P.Tb()}if(2&t){const t=P.fc().ngIf,e=P.fc(2);P.Lc("flex",1),P.Cb(2),P.Rc(P.hc(3,5,"FORM.LIMIT_PRICE")),P.Cb(2),P.mc("step",e.tickSize(t.selectedMarket)),P.Cb(2),P.Rc(P.hc(7,7,null==t.selectedMarket?null:t.selectedMarket.symbol))}}function at(t,e){1&t&&(P.Ub(0,"span",25),P.Qc(1," LABEL.BUY_MARGIN_REQ "),P.Tb())}function ct(t,e){1&t&&(P.Ub(0,"span",25),P.Qc(1," LABEL.SELL_MARGIN_REQ "),P.Tb())}function lt(t,e){if(1&t&&(P.Ub(0,"div",44),P.Ub(1,"mat-radio-group",52),P.Ub(2,"mat-radio-button",53),P.Qc(3),P.gc(4,"translate"),P.Tb(),P.Ub(5,"mat-radio-button",54),P.Qc(6),P.gc(7,"translate"),P.Tb(),P.Tb(),P.Ub(8,"mat-label",55),P.Qc(9),P.gc(10,"uppercase"),P.gc(11,"translate"),P.Tb(),P.Ub(12,"mat-radio-group",56),P.Ub(13,"mat-radio-button",57),P.Ub(14,"p",58),P.gc(15,"translate"),P.Qc(16),P.gc(17,"translate"),P.Tb(),P.Tb(),P.Ub(18,"mat-radio-button",59),P.Ub(19,"p",58),P.gc(20,"translate"),P.Qc(21),P.gc(22,"translate"),P.Tb(),P.Tb(),P.Ub(23,"mat-radio-button",60),P.Ub(24,"p",58),P.gc(25,"translate"),P.Qc(26),P.gc(27,"translate"),P.Tb(),P.Tb(),P.Tb(),P.Tb()),2&t){const t=P.fc(3);P.Cb(3),P.Sc(" ",P.hc(4,9,"BUTTON.ORDER_TAKE_PROFIT_LIMIT")," "),P.Cb(3),P.Sc(" ",P.hc(7,11,"BUTTON.ORDER_TAKE_PROFIT_MARKET")," "),P.Cb(3),P.Sc("",P.hc(10,13,P.hc(11,15,"FORM.TRIGGER_SIGNAL")),":"),P.Cb(5),P.mc("matTooltip",P.hc(15,17,t.exitTriggerTooltipText.last)),P.Cb(2),P.Sc(" ",P.hc(17,19,"BUTTON.LAST")," "),P.Cb(3),P.mc("matTooltip",P.hc(20,21,t.exitTriggerTooltipText.mark)),P.Cb(2),P.Sc(" ",P.hc(22,23,"BUTTON.MARK")," "),P.Cb(3),P.mc("matTooltip",P.hc(25,25,t.exitTriggerTooltipText.spot)),P.Cb(2),P.Sc(" ",P.hc(27,27,"BUTTON.INDEX")," ")}}function ut(t,e){1&t&&(P.Ub(0,"p",61),P.Qc(1),P.gc(2,"translate"),P.Tb()),2&t&&(P.Cb(1),P.Sc(" ",P.hc(2,1,"LABEL.EXIT_ENTRY_INVALID")," "))}function ht(t,e){if(1&t&&(P.Ub(0,"mat-form-field",19),P.Ub(1,"mat-label"),P.Qc(2),P.gc(3,"translate"),P.Tb(),P.Pb(4,"input",62),P.Ub(5,"span",35),P.Qc(6),P.gc(7,"cryptoAbbreviation"),P.gc(8,"quote"),P.Tb(),P.Tb()),2&t){const t=P.fc().ngIf,e=P.fc(2);P.Cb(2),P.Rc(P.hc(3,3,"FORM.LIMIT_PRICE")),P.Cb(2),P.mc("step",e.tickSize(t.selectedMarket)),P.Cb(2),P.Rc(P.hc(7,5,P.hc(8,7,null==t.selectedMarket?null:t.selectedMarket.symbol)))}}function dt(t,e){if(1&t&&(P.Ub(0,"nutritional-info"),P.Ub(1,"span"),P.Qc(2),P.gc(3,"translate"),P.Tb(),P.Ub(4,"span",63),P.Pb(5,"ghost-trail",26),P.gc(6,"cryptoPrecise"),P.gc(7,"base"),P.gc(8,"cryptoAbbreviation"),P.gc(9,"base"),P.Qc(10),P.Pb(11,"ghost-trail",26),P.gc(12,"cryptoPrecise"),P.gc(13,"quote"),P.gc(14,"cryptoAbbreviation"),P.gc(15,"quote"),P.Tb(),P.Tb()),2&t){const t=P.fc().ngIf,e=P.fc(2);P.Cb(2),P.Sc(" ",P.hc(3,7,"LABEL.EXIT_PNL")," "),P.Cb(2),P.mc("pnl",e.profitAsBase(t.selectedMarket,t.selectedTicker)),P.Cb(1),P.pc("content","",P.ic(6,9,e.profitAsBase(t.selectedMarket,t.selectedTicker),P.hc(7,12,null==t.selectedMarket?null:t.selectedMarket.symbol))," ",P.hc(8,14,P.hc(9,16,t.selectedMarket.symbol)),""),P.Cb(5),P.Sc(" "," / "," "),P.Cb(1),P.pc("content","",P.ic(12,18,e.profitAsQuote(t.selectedMarket,t.selectedTicker),P.hc(13,21,null==t.selectedMarket?null:t.selectedMarket.symbol))," ",P.hc(14,23,P.hc(15,25,t.selectedMarket.symbol)),"")}}function pt(t,e){if(1&t&&(P.Ub(0,"div",44),P.Ub(1,"mat-radio-group",52),P.Ub(2,"mat-radio-button",64),P.Qc(3),P.gc(4,"translate"),P.Tb(),P.Ub(5,"mat-radio-button",65),P.Qc(6),P.gc(7,"translate"),P.Tb(),P.Tb(),P.Ub(8,"mat-label",55),P.Qc(9),P.gc(10,"uppercase"),P.gc(11,"translate"),P.Tb(),P.Ub(12,"mat-radio-group",56),P.Ub(13,"mat-radio-button",57),P.Ub(14,"p",58),P.gc(15,"translate"),P.Qc(16),P.gc(17,"translate"),P.Tb(),P.Tb(),P.Ub(18,"mat-radio-button",59),P.Ub(19,"p",58),P.gc(20,"translate"),P.Qc(21),P.gc(22,"translate"),P.Tb(),P.Tb(),P.Ub(23,"mat-radio-button",60),P.Ub(24,"p",58),P.gc(25,"translate"),P.Qc(26),P.gc(27,"translate"),P.Tb(),P.Tb(),P.Tb(),P.Tb()),2&t){const t=P.fc(3);P.Cb(3),P.Sc(" ",P.hc(4,9,"BUTTON.ORDER_STOP_LOSS_LIMIT")," "),P.Cb(3),P.Sc(" ",P.hc(7,11,"BUTTON.ORDER_STOP_LOSS_MARKET")," "),P.Cb(3),P.Sc("",P.hc(10,13,P.hc(11,15,"FORM.TRIGGER_SIGNAL")),":"),P.Cb(5),P.mc("matTooltip",P.hc(15,17,t.stopTriggerTooltipText.last)),P.Cb(2),P.Sc(" ",P.hc(17,19,"BUTTON.LAST")," "),P.Cb(3),P.mc("matTooltip",P.hc(20,21,t.stopTriggerTooltipText.mark)),P.Cb(2),P.Sc(" ",P.hc(22,23,"BUTTON.MARK")," "),P.Cb(3),P.mc("matTooltip",P.hc(25,25,t.stopTriggerTooltipText.spot)),P.Cb(2),P.Sc(" ",P.hc(27,27,"BUTTON.INDEX")," ")}}function ft(t,e){1&t&&(P.Ub(0,"p",61),P.Qc(1),P.gc(2,"translate"),P.Tb()),2&t&&(P.Cb(1),P.Sc(" ",P.hc(2,1,"LABEL.STOP_ENTRY_INVALID")," "))}function bt(t,e){if(1&t&&(P.Ub(0,"mat-form-field",19),P.Ub(1,"mat-label"),P.Qc(2),P.gc(3,"translate"),P.Tb(),P.Pb(4,"input",62),P.Ub(5,"span",35),P.Qc(6),P.gc(7,"cryptoAbbreviation"),P.gc(8,"quote"),P.Tb(),P.Tb()),2&t){const t=P.fc().ngIf,e=P.fc(2);P.Cb(2),P.Rc(P.hc(3,3,"FORM.LIMIT_PRICE")),P.Cb(2),P.mc("step",e.tickSize(t.selectedMarket)),P.Cb(2),P.Rc(P.hc(7,5,P.hc(8,7,null==t.selectedMarket?null:t.selectedMarket.symbol)))}}function gt(t,e){if(1&t&&(P.Ub(0,"nutritional-info"),P.Ub(1,"span"),P.Qc(2),P.gc(3,"translate"),P.Tb(),P.Ub(4,"span",63),P.Pb(5,"ghost-trail",26),P.gc(6,"cryptoPrecise"),P.gc(7,"base"),P.gc(8,"cryptoAbbreviation"),P.gc(9,"base"),P.Qc(10),P.Pb(11,"ghost-trail",26),P.gc(12,"cryptoPrecise"),P.gc(13,"quote"),P.gc(14,"cryptoAbbreviation"),P.gc(15,"quote"),P.Tb(),P.Tb()),2&t){const t=P.fc().ngIf,e=P.fc(2);P.Cb(2),P.Sc(" ",P.hc(3,7,"LABEL.STOP_PNL")," "),P.Cb(2),P.mc("pnl",e.lossBase(t.selectedMarket,t.selectedTicker)),P.Cb(1),P.pc("content","",P.ic(6,9,e.lossBase(t.selectedMarket,t.selectedTicker),P.hc(7,12,null==t.selectedMarket?null:t.selectedMarket.symbol))," ",P.hc(8,14,P.hc(9,16,t.selectedMarket.symbol)),""),P.Cb(5),P.Sc(" "," / "," "),P.Cb(1),P.pc("content","",P.ic(12,18,e.lossQuote(t.selectedMarket,t.selectedTicker),P.hc(13,21,null==t.selectedMarket?null:t.selectedMarket.symbol))," ",P.hc(14,23,P.hc(15,25,t.selectedMarket.symbol)),"")}}const mt=function(){return{horizontal:675,vertical:600}};function vt(t,e){if(1&t){const t=P.Vb();P.Ub(0,"section",7),P.Ub(1,"section",8),P.Ub(2,"mat-button-toggle-group",9,10),P.Ub(4,"mat-button-toggle",11),P.bc("click",(function(){P.Ec(t);const n=e.ngIf;return P.fc(2).changeSide("buy",n.selectedMarket,n.selectedTicker)})),P.Qc(5),P.gc(6,"translate"),P.Tb(),P.Ub(7,"mat-button-toggle",12),P.bc("click",(function(){P.Ec(t);const n=e.ngIf;return P.fc(2).changeSide("sell",n.selectedMarket,n.selectedTicker)})),P.Qc(8),P.gc(9,"translate"),P.Tb(),P.Tb(),P.Tb(),P.Ub(10,"section",13),P.Ub(11,"form",14),P.Ub(12,"sb-popper",15,16),P.Oc(14,st,10,7,"div",17),P.Tb(),P.Ub(15,"section",18),P.Ub(16,"mat-form-field",19),P.Ub(17,"mat-label"),P.Qc(18),P.gc(19,"translate"),P.Tb(),P.Ub(20,"input",20,21),P.bc("focus",(function(){return P.Ec(t),P.fc(2).onSizeFocus()})),P.Tb(),P.Tb(),P.Oc(22,ot,8,9,"mat-form-field",22),P.Ub(23,"div",23),P.Ub(24,"fa-icon",24),P.bc("click",(function(){return P.Ec(t),P.Ac(13).dispose()})),P.Tb(),P.Tb(),P.Tb(),P.Ub(25,"nutritional-info"),P.Ub(26,"span",25),P.Qc(27," LABEL.ORDER_VALUE "),P.Tb(),P.Ub(28,"span"),P.Pb(29,"ghost-trail",26),P.gc(30,"cryptoPrecise"),P.gc(31,"base"),P.gc(32,"cryptoAbbreviation"),P.gc(33,"base"),P.Qc(34),P.Pb(35,"ghost-trail",26),P.gc(36,"cryptoPrecise"),P.gc(37,"quote"),P.gc(38,"cryptoAbbreviation"),P.gc(39,"quote"),P.Tb(),P.Tb(),P.Ub(40,"nutritional-info"),P.Oc(41,at,2,0,"span",27),P.Oc(42,ct,2,0,"span",27),P.Ub(43,"span"),P.Pb(44,"ghost-trail",26),P.gc(45,"cryptoPrecise"),P.gc(46,"base"),P.gc(47,"cryptoAbbreviation"),P.gc(48,"base"),P.Qc(49),P.Pb(50,"ghost-trail",26),P.gc(51,"cryptoPrecise"),P.gc(52,"quote"),P.gc(53,"cryptoAbbreviation"),P.gc(54,"quote"),P.Tb(),P.Tb(),P.Tb(),P.Ub(55,"form",28),P.Ub(56,"sb-popper",15,29),P.Oc(58,lt,28,29,"div",17),P.Tb(),P.Ub(59,"div",30),P.Ub(60,"span"),P.Ub(61,"mat-checkbox",31),P.Qc(62),P.gc(63,"translate"),P.Tb(),P.Tb(),P.Ub(64,"span",32),P.Ub(65,"span",33),P.Qc(66),P.gc(67,"translate"),P.Tb(),P.Qc(68),P.gc(69,"uppercase"),P.Tb(),P.Tb(),P.Ub(70,"div",32),P.Ub(71,"section",18),P.Ub(72,"mat-form-field",19),P.Ub(73,"mat-label"),P.Qc(74),P.gc(75,"translate"),P.Tb(),P.Ub(76,"input",34),P.bc("input",(function(n){P.Ec(t);const i=e.ngIf;return P.fc(2).changePercentage(n.target.value,"gain",i.selectedTicker)})),P.Tb(),P.Ub(77,"span",35),P.Qc(78),P.gc(79,"cryptoAbbreviation"),P.gc(80,"quote"),P.Tb(),P.Tb(),P.Ub(81,"mat-form-field",19),P.Ub(82,"mat-label"),P.Qc(83),P.gc(84,"translate"),P.Tb(),P.Ub(85,"input",36),P.bc("input",(function(n){P.Ec(t);const i=e.ngIf;return P.fc(2).changePrice(n.target.value,"exitPrice",i.selectedMarket,i.selectedTicker)})),P.Tb(),P.Ub(86,"span",35),P.Qc(87,"%"),P.Tb(),P.Tb(),P.Ub(88,"div",23),P.Pb(89,"fa-icon",37),P.Tb(),P.Tb(),P.Oc(90,ut,3,3,"p",38),P.Oc(91,ht,9,9,"mat-form-field",39),P.Oc(92,dt,16,27,"nutritional-info",40),P.Tb(),P.Tb(),P.Ub(93,"form",28),P.Ub(94,"sb-popper",15,41),P.Oc(96,pt,28,29,"div",17),P.Tb(),P.Ub(97,"div",30),P.Ub(98,"span"),P.Ub(99,"mat-checkbox",31),P.Qc(100),P.gc(101,"translate"),P.Tb(),P.Tb(),P.Ub(102,"span",32),P.Ub(103,"span",33),P.Qc(104),P.gc(105,"translate"),P.Tb(),P.Qc(106),P.gc(107,"uppercase"),P.Tb(),P.Tb(),P.Ub(108,"div",32),P.Ub(109,"section",18),P.Ub(110,"mat-form-field",19),P.Ub(111,"mat-label"),P.Qc(112),P.gc(113,"translate"),P.Tb(),P.Ub(114,"input",42),P.bc("input",(function(n){P.Ec(t);const i=e.ngIf;return P.fc(2).changePercentage(n.target.value,"loss",i.selectedTicker)})),P.Tb(),P.Ub(115,"span",35),P.Qc(116),P.gc(117,"cryptoAbbreviation"),P.gc(118,"quote"),P.Tb(),P.Tb(),P.Ub(119,"mat-form-field",19),P.Ub(120,"mat-label"),P.Qc(121),P.gc(122,"translate"),P.Tb(),P.Ub(123,"input",43),P.bc("input",(function(n){P.Ec(t);const i=e.ngIf;return P.fc(2).changePrice(n.target.value,"stopPrice",i.selectedMarket,i.selectedTicker)})),P.Tb(),P.Ub(124,"span",35),P.Qc(125,"%"),P.Tb(),P.Tb(),P.Ub(126,"div",23),P.Pb(127,"fa-icon",37),P.Tb(),P.Tb(),P.Oc(128,ft,3,3,"p",38),P.Oc(129,bt,9,9,"mat-form-field",39),P.Oc(130,gt,16,27,"nutritional-info",40),P.Tb(),P.Tb(),P.Tb(),P.Tb()}if(2&t){const t=e.ngIf,n=P.Ac(13),i=P.Ac(57),r=P.Ac(95),s=P.fc(2);P.mc("breakpoints",P.qc(131,mt)),P.Cb(2),P.mc("value",s.side),P.Cb(3),P.Sc(" ",P.hc(6,61,"BUTTON.LONG")," "),P.Cb(3),P.Sc(" ",P.hc(9,63,"BUTTON.SHORT")," "),P.Cb(3),P.mc("formGroup",s.mainForm),P.Cb(1),P.mc("sbPopperBackdropClass","transparent"),P.Cb(4),P.Lc("flex",1),P.Cb(2),P.Rc(P.hc(19,65,"FORM.QUANTITY")),P.Cb(4),P.mc("ngIf","limit"===s.mainForm.controls.type.value),P.Cb(2),P.mc("sbTriggerFor",n),P.Cb(5),P.pc("content","",P.ic(30,67,s.orderValueBase(t.selectedMarket,t.selectedTicker),P.hc(31,70,null==t.selectedMarket?null:t.selectedMarket.symbol))," ",P.hc(32,72,P.hc(33,74,null==t.selectedMarket?null:t.selectedMarket.symbol)),""),P.Cb(5),P.Sc(" "," / "," "),P.Cb(1),P.pc("content","",P.ic(36,76,s.orderValueQuote(t.selectedMarket),P.hc(37,79,null==t.selectedMarket?null:t.selectedMarket.symbol))," ",P.hc(38,81,P.hc(39,83,null==t.selectedMarket?null:t.selectedMarket.symbol)),""),P.Cb(6),P.mc("ngIf","buy"===s.side),P.Cb(1),P.mc("ngIf","sell"===s.side),P.Cb(2),P.pc("content","",P.ic(45,85,t.initialMargin[s.side],P.hc(46,88,null==t.selectedMarket?null:t.selectedMarket.symbol))," ",P.hc(47,90,P.hc(48,92,null==t.selectedMarket?null:t.selectedMarket.symbol)),""),P.Cb(5),P.Sc(" "," / "," "),P.Cb(1),P.pc("content","",P.ic(51,94,s.marginAsQuote(t.initialMargin[s.side],t.selectedMarket,t.selectedTicker),P.hc(52,97,null==t.selectedMarket?null:t.selectedMarket.symbol)),"\n ",P.hc(53,99,P.hc(54,101,null==t.selectedMarket?null:t.selectedMarket.symbol)),""),P.Cb(5),P.mc("formGroup",s.takeProfitForm),P.Cb(1),P.mc("sbPopperBackdropClass","transparent"),P.Cb(6),P.Sc(" ",P.hc(63,103,"LABEL.TAKE_PROFIT")," "),P.Cb(2),P.mc("hidden",!s.isTakeProfitEnabled),P.Cb(2),P.Sc("",P.hc(67,105,"LABEL.TRIGGER_SIGNAL"),":"),P.Cb(2),P.Sc(" ",P.hc(69,107,s.exitTriggerSignal)," "),P.Cb(2),P.mc("hidden",!s.isTakeProfitEnabled),P.Cb(2),P.Lc("flex",1),P.Cb(2),P.Rc(P.hc(75,109,"FORM.EXIT_PRICE")),P.Cb(2),P.mc("step",s.tickSize(t.selectedMarket)),P.Cb(2),P.Rc(P.hc(79,111,P.hc(80,113,null==t.selectedMarket?null:t.selectedMarket.symbol))),P.Cb(3),P.Lc("flex",.4),P.Cb(2),P.Rc(P.hc(84,115,"LABEL.GAIN")),P.Cb(6),P.mc("sbTriggerFor",i),P.Cb(1),P.mc("ngIf",s.takeProfitForm.get("exitPrice").invalid),P.Cb(1),P.mc("ngIf","take_profit|limit"===s.takeProfitForm.controls.type.value),P.Cb(1),P.mc("ngIf",s.validExit),P.Cb(1),P.mc("formGroup",s.stopLossForm),P.Cb(1),P.mc("sbPopperBackdropClass","transparent"),P.Cb(6),P.Sc(" ",P.hc(101,117,"LABEL.STOP_LOSS")," "),P.Cb(2),P.mc("hidden",!s.isStopEnabled),P.Cb(2),P.Sc("",P.hc(105,119,"LABEL.TRIGGER_SIGNAL"),":"),P.Cb(2),P.Sc(" ",P.hc(107,121,s.stopTriggerSignal)," "),P.Cb(2),P.mc("hidden",!s.isStopEnabled),P.Cb(2),P.Lc("flex",1),P.Cb(2),P.Rc(P.hc(113,123,"FORM.STOP_PRICE")),P.Cb(2),P.mc("step",s.tickSize(t.selectedMarket)),P.Cb(2),P.Rc(P.hc(117,125,P.hc(118,127,null==t.selectedMarket?null:t.selectedMarket.symbol))),P.Cb(3),P.Lc("flex",.4),P.Cb(2),P.Rc(P.hc(122,129,"LABEL.LOSS")),P.Cb(6),P.mc("sbTriggerFor",r),P.Cb(1),P.mc("ngIf",s.stopLossForm.get("stopPrice").invalid),P.Cb(1),P.mc("ngIf","stop|limit"===s.stopLossForm.controls.type.value),P.Cb(1),P.mc("ngIf",s.validStop)}}function _t(t,e){if(1&t){const t=P.Vb();P.Ub(0,"div",66),P.Ub(1,"button",67),P.bc("click",(function(){P.Ec(t);const n=e.ngLet;return P.fc(2).submit(n)})),P.Qc(2),P.gc(3,"translate"),P.Tb(),P.Ub(4,"small",68),P.bc("click",(function(){return P.Ec(t),P.fc(2).showMobileDefault()})),P.Pb(5,"fa-icon",69),P.Qc(6),P.gc(7,"translate"),P.Tb(),P.Tb()}if(2&t){const t=P.fc(2);P.Cb(1),P.mc("disabled",t.formInvalid),P.Cb(1),P.Sc(" ",P.hc(3,3,"BUTTON.SUBMIT_ORDERS")," "),P.Cb(4),P.Sc(" ",P.hc(7,5,"LABEL.USE_DEFAULT_ORDER_FORM")," ")}}const yt=function(t,e,n,i){return{selectedMarket:t,selectedTicker:e,initialMargin:n,userVerification:i}};function Ot(t,e){if(1&t&&(P.Sb(0),P.Oc(1,vt,131,132,"section",5),P.gc(2,"async"),P.gc(3,"async"),P.gc(4,"async"),P.gc(5,"async"),P.Oc(6,_t,8,7,"div",6),P.gc(7,"async"),P.Rb()),2&t){const t=P.fc();P.Cb(1),P.mc("ngIf",P.uc(12,yt,P.hc(2,2,t.selectedMarket$),P.hc(3,4,t.selectedTicker$),P.hc(4,6,t.initialMargin$),P.hc(5,8,t.userVerification$))),P.Cb(5),P.mc("ngLet",P.hc(7,10,t.selectedMarket$))}}const Ct=f()("trace:app:order-form");let wt=(()=>{let t=class{constructor(t,e,n){this.store=t,this.formBuilder=e,this.trade=n,this.side="buy",this.options=this.refreshSavedOptions(),this.userData$=this.store.pipe(Object(r.m)(E.a)),this.userSignedIn$=this.store.pipe(Object(r.m)(E.m)),this.initialMargin$=this.store.pipe(Object(r.m)(C.b)),this.userVerification$=this.store.pipe(Object(r.m)(T.f)),this.selectedMarket$=this.store.pipe(Object(r.m)(S.n)),this.selectedTicker$=this.store.pipe(Object(r.m)(k.p))}ngOnInit(){this.mainForm=this.buildMainForm(),this.takeProfitForm=this.buildTakeProfitForm(),this.stopLossForm=this.buildStopLossForm(),this.mainForm.valueChanges.subscribe(t=>{const e=Object.assign({},this.options);d.Maybe.fromNull(t.makerOnly).forEach(t=>e.makerOnly=t),Ct("saving form options (bracket)",e),Object(_.c)(x.b,e),this.refreshSavedOptions()}),this.takeProfitForm.valueChanges.subscribe(t=>{const e=Object.assign({},this.options);d.Maybe.fromNull(t.triggerSignal).forEach(t=>e.triggerSignalExit=t),Ct("saving form options (bracket)",e),Object(_.c)(x.b,e),this.refreshSavedOptions()}),this.stopLossForm.valueChanges.subscribe(t=>{const e=Object.assign({},this.options);d.Maybe.fromNull(t.triggerSignal).forEach(t=>e.triggerSignalStop=t),Ct("saving form options (bracket)",e),Object(_.c)(x.b,e),this.refreshSavedOptions()}),this.getInitialMargin(),this.trade.orderFormPriceUpdated$.pipe(Object(o.a)(this.selectedMarket$,this.selectedTicker$),Object(a.a)(([t,e,n])=>!!t&&!!e),Object(u.b)(this),Object(c.a)()).subscribe(([t,e,n])=>{var i,r,s,o,a,c,l;const u=Object(b.I)(e.tickSize)(t);null===(i=this.mainForm.get("limitPrice"))||void 0===i||i.setValue(u),null===(r=this.stopLossForm.get("limitPrice"))||void 0===r||r.setValue(u),null===(s=this.stopLossForm.get("stopPrice"))||void 0===s||s.setValue(u),null===(o=this.takeProfitForm.get("limitPrice"))||void 0===o||o.setValue(u),null===(a=this.takeProfitForm.get("exitPrice"))||void 0===a||a.setValue(u),this.changePercentage(null===(c=this.stopLossForm.get("stopPrice"))||void 0===c?void 0:c.value,"loss",n),this.changePercentage(null===(l=this.takeProfitForm.get("exitPrice"))||void 0===l?void 0:l.value,"gain",n)}),this.trade.orderFormPriceUpdated$.pipe(Object(o.a)(this.selectedMarket$,this.selectedTicker$),Object(a.a)(([t,e,n])=>!!t&&!!e),Object(u.b)(this),Object(l.a)(1)).subscribe(([t,e,n])=>{var i,r,s;const o=Object(b.I)(e.tickSize)(t);null===(i=this.mainForm.get("limitPrice"))||void 0===i||i.setValue(o),this.changePrice(null===(r=this.stopLossForm.get("loss"))||void 0===r?void 0:r.value,"stopPrice",e,n),this.changePrice(null===(s=this.takeProfitForm.get("gain"))||void 0===s?void 0:s.value,"exitPrice",e,n)}),this.selectedTicker$.subscribe(t=>{this.currentBidAsk={bid:null==t?void 0:t.bid,ask:null==t?void 0:t.ask}}),this.trade.orderFormQuantityUpdated$.pipe(Object(m.g)(),Object(u.b)(this)).subscribe(t=>{var e;null===(e=this.mainForm.get("size"))||void 0===e||e.setValue(t)}),this.mainForm.controls.type.valueChanges.pipe(Object(u.b)(this)).subscribe(t=>{if("limit"===t){const t=new s.e(0,[s.x.required,s.x.min(1e-9)]);this.mainForm.addControl("limitPrice",t)}else this.mainForm.removeControl("limitPrice")})}getInitialMargin(){Object(h.a)(500,1500).pipe(Object(o.a)(this.userSignedIn$),Object(o.a)(this.selectedMarket$),Object(a.a)(([[t,e],n])=>e),Object(a.a)(([[t,e],n])=>this.mainForm&&this.mainForm.get("size").value>0&&(!this.mainForm.get("limitPrice")||this.mainForm.get("limitPrice").value>0)),Object(a.a)(([[t,e],n])=>!!n&&!n.symbol.startsWith("S")),Object(u.b)(this)).subscribe(([[t,e],n])=>{const i=Object.assign({symbol:n.symbol.toUpperCase(),orderType:this.mainForm.get("type").value},this.mainForm.value);this.store.dispatch(Object(O.a)({order:i}))})}stopPriceValidator(t){var e;const n=this.currentBidAsk?"buy"===this.side?this.currentBidAsk.ask:this.currentBidAsk.bid:0,i=this.isLimitBracket?null===(e=this.mainForm.get("limitPrice"))||void 0===e?void 0:e.value:n;return"buy"===this.side?t.value<=i&&t.value<=n?null:{stopInvalidWithEntry:!0}:t.value>=i&&t.value>=n?null:{stopInvalidWithEntry:!0}}exitPriceValidator(t){var e;const n=this.currentBidAsk?"buy"===this.side?this.currentBidAsk.ask:this.currentBidAsk.bid:0,i=this.isLimitBracket?null===(e=this.mainForm.get("limitPrice"))||void 0===e?void 0:e.value:n;return"buy"===this.side?t.value>=i&&t.value>=n?null:{stopInvalidWithEntry:!0}:t.value<=i&&t.value<=n?null:{stopInvalidWithEntry:!0}}buildMainForm(){return this.formBuilder.group({type:["limit",[s.x.required]],size:[0,[s.x.required,s.x.min(1e-9)]],limitPrice:[0,[s.x.required,s.x.min(1e-9)]],makerOnly:[this.options.makerOnly,[s.x.required]]})}buildTakeProfitForm(){return this.formBuilder.group({enabled:[!0,[s.x.required]],type:["take_profit|market",[s.x.required]],limitPrice:[0,[s.x.required]],exitPrice:[0,[s.x.required,s.x.min(1e-9),this.exitPriceValidator.bind(this)]],gain:[0,[s.x.min(1e-9)]],triggerSignal:[this.options.triggerSignalExit,[s.x.required]]})}buildStopLossForm(){return this.formBuilder.group({enabled:[!0,[s.x.required]],type:["stop|market",[s.x.required]],limitPrice:[0,[s.x.required]],stopPrice:[0,[s.x.required,s.x.min(1e-9),this.stopPriceValidator.bind(this)]],loss:[0,[s.x.min(1e-9)]],triggerSignal:[this.options.triggerSignalStop,[s.x.required]]})}submit(t){const e={side:this.side,symbol:t.symbol.toUpperCase(),orderType:"limit"===this.mainForm.value.type&&this.mainForm.value.makerOnly?"post":this.mainForm.value.type,size:this.mainForm.value.size,limitPrice:"limit"===this.mainForm.value.type?this.mainForm.value.limitPrice:void 0,reduceOnly:!1,quantityType:"base",margin:!1},n=this.isTakeProfitEnabled?{side:"buy"===this.side?"sell":"buy",symbol:t.symbol.toUpperCase(),orderType:this.takeProfitForm.value.type.split("|")[0],size:this.mainForm.value.size,limitPrice:"take_profit|limit"===this.takeProfitForm.value.type?this.takeProfitForm.value.limitPrice:void 0,stopPrice:this.takeProfitForm.value.exitPrice,reduceOnly:!0,quantityType:"base",margin:!1,triggerSignal:this.takeProfitForm.value.triggerSignal}:void 0,i=this.isStopEnabled?{side:"buy"===this.side?"sell":"buy",symbol:t.symbol.toUpperCase(),orderType:this.stopLossForm.value.type.split("|")[0],size:this.mainForm.value.size,limitPrice:"stop|limit"===this.stopLossForm.value.type?this.stopLossForm.value.limitPrice:void 0,stopPrice:this.stopLossForm.value.stopPrice,reduceOnly:!0,quantityType:"base",margin:!1,triggerSignal:this.stopLossForm.value.triggerSignal}:void 0;this.store.dispatch(Object(w.n)({mainOrder:e,stopLoss:i,takeProfit:n}))}orderValueBase(t,e){var n,i;const r=null===(n=this.mainForm.get("type"))||void 0===n?void 0:n.value,s=null===(i=this.mainForm.get("size"))||void 0===i?void 0:i.value;if(t){const n=s*t.contractSize,i="limit"===r?this.mainForm.get("limitPrice").value:this.marketPrice(e);if("futures_inverse"===t.type)return n/i||0;if("futures_vanilla"===t.type)return n*i||0}return 0}orderValueQuote(t){return this.mainForm.get("size").value*t.contractSize}marketPrice(t){return"buy"===this.side?t.ask:t.bid}profitAsBase(t,e){var n,i,r;const s=null===(n=this.mainForm.get("size"))||void 0===n?void 0:n.value,o=this.isLimitBracket?null===(i=this.mainForm.get("limitPrice"))||void 0===i?void 0:i.value:this.marketPrice(e),a=null===(r=this.takeProfitForm.get("exitPrice"))||void 0===r?void 0:r.value,c="futures_inverse"===t.type,l="buy"===this.side?"long":"short";return Object(v.f)({entry:o,exit:a,isInverse:c,quantity:s,side:l})}profitAsQuote(t,e){var n;const i=null===(n=this.takeProfitForm.get("exitPrice"))||void 0===n?void 0:n.value,r="futures_inverse"===t.type,s=this.profitAsBase(t,e);return Object(v.a)(s,i,r)}lossBase(t,e){var n,i,r;const s=null===(n=this.mainForm.get("size"))||void 0===n?void 0:n.value,o=this.isLimitBracket?null===(i=this.mainForm.get("limitPrice"))||void 0===i?void 0:i.value:this.marketPrice(e),a=null===(r=this.stopLossForm.get("stopPrice"))||void 0===r?void 0:r.value,c="futures_inverse"===t.type,l="buy"===this.side?"long":"short";return Object(v.f)({entry:o,exit:a,isInverse:c,quantity:s,side:l})}lossQuote(t,e){var n;const i=null===(n=this.stopLossForm.get("stopPrice"))||void 0===n?void 0:n.value,r="futures_inverse"===t.type,s=this.lossBase(t,e);return Object(v.a)(s,i,r)}adjustTriggerInputs(t,e){var n,i;const r=null===(n=this.takeProfitForm.get("gain"))||void 0===n?void 0:n.value,s=null===(i=this.stopLossForm.get("loss"))||void 0===i?void 0:i.value;this.changePrice(r,"exitPrice",t,e),this.changePrice(s,"stopPrice",t,e)}changeSide(t,e,n){var i,r;this.side=t,this.changePrice(null===(i=this.stopLossForm.get("loss"))||void 0===i?void 0:i.value,"stopPrice",e,n),this.changePrice(null===(r=this.takeProfitForm.get("gain"))||void 0===r?void 0:r.value,"exitPrice",e,n)}changePrice(t,e,n,i){var r,s,o;const a="limit"===(null===(r=this.mainForm.get("type"))||void 0===r?void 0:r.value)?this.mainForm.get("limitPrice").value:this.marketPrice(i);if("stopPrice"!==e)if("exitPrice"!==e);else{const i=t/100,r=a+i*a,s=a-i*a,c="buy"===this.side?r:s,l=Object(b.I)(n.tickSize)(c);null===(o=this.takeProfitForm.get(e))||void 0===o||o.setValue(l)}else{const i=t/100,r=a-i*a,o=a+i*a,c="buy"===this.side?r:o,l=Object(b.I)(n.tickSize)(c);null===(s=this.stopLossForm.get(e))||void 0===s||s.setValue(l)}}changePercentage(t,e,n){var i,r,s;const o=this.isLimitBracket?null===(i=this.mainForm.get("limitPrice"))||void 0===i?void 0:i.value:this.marketPrice(n);if("loss"===e){const n=("buy"===this.side?o-t:t-o)/o*100;null===(r=this.stopLossForm.get(e))||void 0===r||r.setValue(n.toFixed(2))}else{const n=("buy"===this.side?t-o:o-t)/o*100;null===(s=this.takeProfitForm.get(e))||void 0===s||s.setValue(n.toFixed(2))}}refreshSavedOptions(){const t={makerOnly:!1,triggerSignalStop:"mark",triggerSignalExit:"mark"},e=Object(_.b)(x.b,void 0);if(e){Ct("loading saved options",e);const n=Object.assign(Object.assign({},t),e);return this.options=n,n}return Ct("loading default options"),this.options=t,t}onSizeFocus(){const t=this.mainForm.get("size");0===t.value&&t.setValue("")}marginAsQuote(t,e,n){var i;const r=this.isLimitBracket?null===(i=this.mainForm.get("limitPrice"))||void 0===i?void 0:i.value:this.marketPrice(n);return Object(v.a)(t,r,"futures_inverse"===e.type)}tickSize(t){return t?t.tickSize:1}showMobileDefault(){Object(_.c)(x.n,"default")}get isLimitBracket(){return!!this.mainForm&&"limit"===this.mainForm.get("type").value}get isMarketBracket(){return!!this.mainForm&&"market"===this.mainForm.get("type").value}get exitTriggerSignal(){return this.takeProfitForm.get("triggerSignal").value}get stopTriggerSignal(){return this.stopLossForm.get("triggerSignal").value}get validStop(){var t;return(null===(t=this.stopLossForm.get("stopPrice"))||void 0===t?void 0:t.value)>0}get validExit(){var t;return(null===(t=this.takeProfitForm.get("exitPrice"))||void 0===t?void 0:t.value)>0}get formInvalid(){return this.isStopEnabled&&this.isTakeProfitEnabled?this.mainForm.invalid||this.stopLossForm.invalid||this.takeProfitForm.invalid:this.isStopEnabled?this.mainForm.invalid||this.stopLossForm.invalid:this.isTakeProfitEnabled?this.mainForm.invalid||this.takeProfitForm.invalid:this.mainForm.invalid}get stopTriggerTooltipText(){return{last:"TOOLTIP.STOP_LAST",mark:"TOOLTIP.STOP_MARK",spot:"TOOLTIP.STOP_INDEX"}}get exitTriggerTooltipText(){return{last:"TOOLTIP.TAKE_PROFIT_LAST",mark:"TOOLTIP.TAKE_PROFIT_MARK",spot:"TOOLTIP.TAKE_PROFIT_INDEX"}}get isStopEnabled(){return this.stopLossForm.get("enabled").value}get isTakeProfitEnabled(){return this.takeProfitForm.get("enabled").value}};return t.\u0275fac=function(e){return new(e||t)(P.Ob(r.b),P.Ob(s.d),P.Ob(y.a))},t.\u0275cmp=P.Ib({type:t,selectors:[["bracket-order-form"]],viewQuery:function(t,e){var n;1&t&&(P.Jc(g.a,!0),P.Jc(g.a,!0),P.Jc(g.a,!0)),2&t&&(P.zc(n=P.cc())&&(e.mainOrderOptions=n.first),P.zc(n=P.cc())&&(e.takeProfitOptions=n.first),P.zc(n=P.cc())&&(e.stopLossOptions=n.first))},decls:4,vars:4,consts:[["authMask",""],[4,"ngIf","ngIfElse"],[1,"global__auth-mask"],["icon","stop","size","2x"],["subheading","",1,"global__text--warn"],["orientation","","class","bracket-order","body","",3,"breakpoints",4,"ngIf"],["class","submit",4,"ngLet"],["orientation","","body","",1,"bracket-order",3,"breakpoints"],[1,"side-toggle"],[3,"value"],["orderSideToggle",""],["value","buy",1,"long",3,"click"],["value","sell",1,"short",3,"click"],[1,"orders"],["body","",3,"formGroup"],["sbPlacement","bottomEnd",3,"sbPopperBackdropClass"],["mainOrderOptions",""],["class","options-popper",4,"sbContent"],[1,"input-row"],["color","accent","appearance","fill"],["autocomplete","off","type","number","formControlName","size","matInput","","min","0","step","1",3,"focus"],["quantityField",""],["color","accent","appearance","fill",3,"flex",4,"ngIf"],[1,"options"],["icon","cog","size","2x",3,"sbTriggerFor","click"],["translate",""],[3,"content"],["translate","",4,"ngIf"],["body","",1,"trigger",3,"formGroup"],["takeProfitOptions",""],["body","",1,"title"],["formControlName","enabled",1,"no-border"],[3,"hidden"],["ghost",""],["autocomplete","off","type","number","formControlName","exitPrice","matInput","",3,"step","input"],["matSuffix",""],["autocomplete","off","type","number","formControlName","gain","matInput","","min","0",3,"input"],["icon","cog","size","2x",3,"sbTriggerFor"],["class","global__text--warn",4,"ngIf"],["color","accent","appearance","fill",4,"ngIf"],[4,"ngIf"],["stopLossOptions",""],["autocomplete","off","type","number","formControlName","stopPrice","matInput","",3,"step","input"],["autocomplete","off","type","number","formControlName","loss","matInput","","min","0",3,"input"],[1,"options-popper"],["formControlName","type",3,"change"],["value","limit"],["value","market"],[1,"checkboxes"],["formControlName","makerOnly",4,"ngIf"],["formControlName","makerOnly"],["autocomplete","off","type","number","formControlName","limitPrice","matInput","",3,"step","input"],["formControlName","type"],["value","take_profit|limit"],["value","take_profit|market"],["body","","ghost","","bold",""],["formControlName","triggerSignal"],["value","last",1,"global__text--tooltip"],["matTooltipShowDelay","600",3,"matTooltip"],["value","mark",1,"global__text--tooltip"],["value","spot",1,"global__text--tooltip"],[1,"global__text--warn"],["autocomplete","off","type","number","formControlName","limitPrice","matInput","",3,"step"],[3,"pnl"],["value","stop|limit"],["value","stop|market"],[1,"submit"],["mat-raised-button","",3,"disabled","click"],["caption","",1,"global__text--link","default-order",3,"click"],["icon","exchange","size","lg"]],template:function(t,e){if(1&t&&(P.Oc(0,it,5,3,"ng-template",null,0,P.Pc),P.Oc(2,Ot,8,17,"ng-container",1),P.gc(3,"async")),2&t){const t=P.Ac(1);P.Cb(2),P.mc("ngIf",P.hc(3,2,e.userSignedIn$))("ngIfElse",t)}},directives:[A.n,I.b,M.a,D.a,R.a,j.a,L.b,L.a,s.z,s.p,s.h,N.a,U.a,F.a,B.c,B.f,s.s,s.c,z.b,s.o,s.g,V.a,$.a,H.a,q.a,Q.a,W.a,B.h,G.b,G.a,Y.a,K.a,Z.a,X.b,J.a],pipes:[A.b,H.d,tt.b,et.a,nt.a,et.f,A.x],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%;justify-content:space-evenly;position:relative;max-width:100%}.bracket-order[_ngcontent-%COMP%]{height:calc(100% - 60px);padding-top:var(--spacing);overflow:overlay;background:var(--card-colour)}@media (max-width:1024px){.bracket-order[_ngcontent-%COMP%]{width:98vw}}.title[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between}.options[_ngcontent-%COMP%], .title[_ngcontent-%COMP%]{margin-bottom:var(--spacing)}.options[_ngcontent-%COMP%]{margin-left:var(--spacing);align-self:center;cursor:pointer}.options-popper[_ngcontent-%COMP%]{padding:var(--spacing)}.options-popper[_ngcontent-%COMP%] mat-radio-group[_ngcontent-%COMP%]{padding:var(--spacing) 0}.options-popper[_ngcontent-%COMP%] mat-radio-button[_ngcontent-%COMP%]{margin-right:var(--spacing)}form[_ngcontent-%COMP%]{border-bottom:1px solid var(--border-colour);min-width:0;padding:var(--spacing) 0}[orientation=horizontal][_ngcontent-%COMP%] form.trigger[_ngcontent-%COMP%]{border-left:1px solid var(--border-colour)}form[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%]{width:100%}form[_ngcontent-%COMP%] .input-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}form[_ngcontent-%COMP%] .input-row[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%]{min-width:0}form[_ngcontent-%COMP%] .input-row[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%]:not(:first-child){padding-left:var(--spacing)}@media (max-width:599px){form[_ngcontent-%COMP%] .input-row[_ngcontent-%COMP%]{width:91vw}}[orientation=horizontal][_ngcontent-%COMP%] .orders[_ngcontent-%COMP%]{display:flex;flex-direction:row}[orientation=horizontal][_ngcontent-%COMP%] .orders[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1}.submit[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:var(--spacing);background:var(--card-colour)}.submit[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{padding-top:var(--spacing);text-align:right}.submit[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{flex:1}.checkboxes[_ngcontent-%COMP%], mat-radio-group[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;padding-bottom:var(--spacing)}.checkboxes[_ngcontent-%COMP%] .mat-checkbox-layout, mat-radio-group[_ngcontent-%COMP%] .mat-checkbox-layout{border-bottom:none!important}.mat-button-toggle-checked.long[_ngcontent-%COMP%]{background:var(--g300)}.mat-button-toggle-checked.short[_ngcontent-%COMP%]{background:var(--r300)}@media (min-width:1025px){.default-order[_ngcontent-%COMP%]{display:none}}"],changeDetection:0}),t=Object(i.d)([Object(u.a)()],t),t})()},"6oIa":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("ZCEf"),r=n("4Pxi"),s=n("4f9k"),o=n("uepk"),a=n("ldwH"),c=n("LqyJ"),l=n("35XV");e.default=function(){function t(){}return t.prototype.decode=function(t,e){return this.setHints(e),this.decodeInternal(t)},t.prototype.decodeWithState=function(t){return null==this.readers&&this.setHints(null),this.decodeInternal(t)},t.prototype.setHints=function(t){this.hints=t;var e=null!=t&&void 0!==t.get(i.default.TRY_HARDER),n=null==t?null:t.get(i.default.POSSIBLE_FORMATS),c=new Array;if(null!=n){var l=n.some((function(t){return t===r.default.UPC_A||t===r.default.UPC_E||t===r.default.EAN_13||t===r.default.EAN_8||t===r.default.CODABAR||t===r.default.CODE_39||t===r.default.CODE_93||t===r.default.CODE_128||t===r.default.ITF||t===r.default.RSS_14||t===r.default.RSS_EXPANDED}));l&&!e&&c.push(new o.default(t)),n.includes(r.default.QR_CODE)&&c.push(new s.default),n.includes(r.default.DATA_MATRIX)&&c.push(new a.default),l&&e&&c.push(new o.default(t))}0===c.length&&(e||c.push(new o.default(t)),c.push(new s.default),c.push(new a.default),e&&c.push(new o.default(t))),this.readers=c},t.prototype.reset=function(){if(null!==this.readers)for(var t=0,e=this.readers;t{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const n=t.slice(0,e),i=n.toLowerCase(),r=t.slice(e+1).trim();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(r):this.headers.set(i,[r])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const i=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(i,n),this.maybeSetNormalizedName(e,i))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof d?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new d;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof d?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const i=("a"===t.op?this.headers.get(e):void 0)||[];i.push(...n),this.headers.set(e,i);break;case"d":const r=t.value;if(r){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===r.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class p{encodeKey(t){return f(t)}encodeValue(t){return f(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function f(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class b{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new p,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.split("&").forEach(t=>{const i=t.indexOf("="),[r,s]=-1==i?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,i)),e.decodeValue(t.slice(i+1))],o=n.get(r)||[];o.push(s),n.set(r,o)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new b({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat([t]),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(t.value),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(t.value);-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}function g(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function m(t){return"undefined"!=typeof Blob&&t instanceof Blob}function v(t){return"undefined"!=typeof FormData&&t instanceof FormData}class _{constructor(t,e,n,i){let r;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==n?n:null,r=i):r=n,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.params&&(this.params=r.params)),this.headers||(this.headers=new d),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":ne.set(n,t.setHeaders[n]),a)),t.setParams&&(c=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),c)),new _(e,n,r,{params:c,headers:a,reportProgress:o,responseType:i,withCredentials:s})}}var y=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({});class O{constructor(t,e=200,n="OK"){this.headers=t.headers||new d,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class C extends O{constructor(t={}){super(t),this.type=y.ResponseHeader}clone(t={}){return new C({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class w extends O{constructor(t={}){super(t),this.type=y.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new w({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class T extends O{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?"Http failure during parsing for "+(t.url||"(unknown url)"):`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function S(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let k=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let i;if(t instanceof _)i=t;else{let r=void 0;r=n.headers instanceof d?n.headers:new d(n.headers);let s=void 0;n.params&&(s=n.params instanceof b?n.params:new b({fromObject:n.params})),i=new _(t,e,void 0!==n.body?n.body:null,{headers:r,params:s,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const s=Object(r.a)(i).pipe(Object(o.a)(t=>this.handler.handle(t)));if(t instanceof _||"events"===n.observe)return s;const l=s.pipe(Object(a.a)(t=>t instanceof w));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return l.pipe(Object(c.a)(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return l.pipe(Object(c.a)(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return l.pipe(Object(c.a)(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return l.pipe(Object(c.a)(t=>t.body))}case"response":return l;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new b).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,S(n,e))}post(t,e,n={}){return this.request("POST",t,S(n,e))}put(t,e,n={}){return this.request("PUT",t,S(n,e))}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(u))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();class E{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const x=new i.s("HTTP_INTERCEPTORS");let P=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();const A=/^\)\]\}',?\n/;class I{}let M=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),D=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new s.a(e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((t,e)=>n.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&n.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();n.responseType="json"!==e?e:"text"}const i=t.serializeBody();let r=null;const s=()=>{if(null!==r)return r;const e=1223===n.status?204:n.status,i=n.statusText||"OK",s=new d(n.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return r=new C({headers:s,status:e,statusText:i,url:o}),r},o=()=>{let{headers:i,status:r,statusText:o,url:a}=s(),c=null;204!==r&&(c=void 0===n.response?n.responseText:n.response),0===r&&(r=c?200:0);let l=r>=200&&r<300;if("json"===t.responseType&&"string"==typeof c){const t=c;c=c.replace(A,"");try{c=""!==c?JSON.parse(c):null}catch(u){c=t,l&&(l=!1,c={error:u,text:c})}}l?(e.next(new w({body:c,headers:i,status:r,statusText:o,url:a||void 0})),e.complete()):e.error(new T({error:c,headers:i,status:r,statusText:o,url:a||void 0}))},a=t=>{const{url:i}=s(),r=new T({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:i||void 0});e.error(r)};let c=!1;const l=i=>{c||(e.next(s()),c=!0);let r={type:y.DownloadProgress,loaded:i.loaded};i.lengthComputable&&(r.total=i.total),"text"===t.responseType&&n.responseText&&(r.partialText=n.responseText),e.next(r)},u=t=>{let n={type:y.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),t.reportProgress&&(n.addEventListener("progress",l),null!==i&&n.upload&&n.upload.addEventListener("progress",u)),n.send(i),e.next({type:y.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("load",o),t.reportProgress&&(n.removeEventListener("progress",l),null!==i&&n.upload&&n.upload.removeEventListener("progress",u)),n.readyState!==n.DONE&&n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(I))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();const R=new i.s("XSRF_COOKIE_NAME"),j=new i.s("XSRF_HEADER_NAME");class L{}let N=(()=>{class t{constructor(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Object(l.D)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(l.d),i.Yb(i.D),i.Yb(R))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),U=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);const i=this.tokenService.getToken();return null===i||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,i)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(L),i.Yb(j))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),F=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(x,[]);this.chain=t.reduceRight((t,e)=>new E(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(h),i.Yb(i.t))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),B=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:U,useClass:P}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:R,useValue:e.cookieName}:[],e.headerName?{provide:j,useValue:e.headerName}:[]]}}}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},providers:[U,{provide:x,useExisting:U,multi:!0},{provide:L,useClass:N},{provide:R,useValue:"XSRF-TOKEN"},{provide:j,useValue:"X-XSRF-TOKEN"}]}),t})(),z=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},providers:[k,{provide:u,useClass:F},D,{provide:h,useExisting:D},M,{provide:I,useExisting:M}],imports:[[B.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})()},"71O4":function(t,e,n){t.exports=n.p+"depth-chart-es2015.0eeaef0c266b62986895.worker.js"},"7J2L":function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var i=n("zqNl"),r=n("5JSY"),s=n("YtkY"),o=n("kZht"),a=n("Eu46"),c=n("An66");function l(t,e){if(1&t&&(o.Ub(0,"section",1),o.Pb(1,"img",2),o.Tb()),2&t){const t=e.ngLet;o.Cb(1),o.mc("src",t,o.Gc)}}let u=(()=>{class t{constructor(t){this.store=t,this.loaderUrl$=this.store.pipe(Object(i.m)(r.a),Object(s.a)(t=>`assets/images/${t}/loader.svg`))}}return t.\u0275fac=function(e){return new(e||t)(o.Ob(i.b))},t.\u0275cmp=o.Ib({type:t,selectors:[["kraken-loading"]],decls:2,vars:3,consts:[["class","global__loading-spinner",4,"ngLet"],[1,"global__loading-spinner"],["alt","Loader",3,"src"]],template:function(t,e){1&t&&(o.Oc(0,l,2,1,"section",0),o.gc(1,"async")),2&t&&o.mc("ngLet",o.hc(1,1,e.loaderUrl$))},directives:[a.a],pipes:[c.b],styles:["[_nghost-%COMP%]{display:inline-block;height:var(--loader-size,100%);width:var(--loader-size,100%)}img[_ngcontent-%COMP%]{display:block;height:auto;max-width:100%;max-height:100%;color:var(--text-color)}"],changeDetection:0}),t})()},"7KkP":function(t,e,n){"use strict";n.d(e,"k",(function(){return c})),n.d(e,"i",(function(){return l})),n.d(e,"j",(function(){return u})),n.d(e,"h",(function(){return d})),n.d(e,"b",(function(){return p})),n.d(e,"a",(function(){return f})),n.d(e,"c",(function(){return b})),n.d(e,"d",(function(){return g})),n.d(e,"e",(function(){return m})),n.d(e,"f",(function(){return v})),n.d(e,"g",(function(){return _}));var i=n("TYVA"),r=n("Gbfs"),s=n("CW1w"),o=n("vYTc");function a(t){return Object.assign(Object.assign({},t),{instrument:t.instrument.toUpperCase()})}function c(t){return t.map(a).map(y)}function l(t){return Object.assign(Object.assign({},t),{instrument:t.instrument.toUpperCase()})}function u(t){return t.map(l)}function h(t){return Object.assign(Object.assign({},t),{instrument:t.instrument.toUpperCase()})}function d(t){return t.map(h)}function p(t,e){return n=>{var o,a;const{collateral:c,inverse:l,parts:u}=Object(i.u)(n.instrument),h="flex"===u.family,d=t.get(u.currencies.base),p=t.get(u.currencies.quote),f=h?d:Object.assign(Object.assign({},r.a),{name:u.currencies.quote}),b=h?p:t.get(c),g="order"===e.trading?f:b,m=Object(s.d)(n.filled,null!==(o=n.limit_price)&&void 0!==o?o:n.stop_price,l),v="order"===e.trading?n.filled:m,_=Object(s.d)(n.qty,null!==(a=n.limit_price)&&void 0!==a?a:n.stop_price,l),y={notionalFilled:m,displayFilled:v,notionalQty:_,displayQty:"order"===e.trading?n.qty:_,orderAsset:f,notionalAsset:b,tradingDisplayAsset:g};return Object.assign(Object.assign({},n),y)}}function f(t,e){return n=>{const{collateral:o,inverse:a,parts:c}=Object(i.u)(n.instrument),l="flex"===c.family,u=t.get(c.currencies.base),h=t.get(c.currencies.quote),d=l?u:r.a,p=l?h:t.get(o),f="order"===e.trading?d:p,b=Object(s.d)(n.qty,n.price,a),g={notionalQty:b,displayQty:"order"===e.trading?n.qty:b,orderAsset:d,notionalAsset:p,tradingDisplayAsset:f};return Object.assign(Object.assign({},n),g)}}function b(t,e){return n=>{const{collateral:o,traded:a,inverse:c,parts:l}=Object(i.u)(n.instrument),u="flex"===l.family,h=t.get(l.currencies.base),d=t.get(l.currencies.quote),p=u?h:Object.assign(Object.assign({},r.a),{name:l.currencies.quote}),f=u?d:t.get(o),b="order"===e.trading?p:f,g=t.get(o),m=t.get(a),v="face"===e.wallet?g:m,_=Object(s.d)(n.balance,n.mark_price,c),y="order"===e.trading?Math.abs(n.balance):_,O=u?n.pnl/n.mark_price:n.pnl*n.mark_price,C=n.unrealized_funding?n.unrealized_funding*n.mark_price:void 0,w={notionalSize:_,displaySize:y,marketPnl:O,displayPnl:"face"===e.wallet?n.pnl:O,orderAsset:p,notionalAsset:f,tradingDisplayAsset:b,marketUnrealizedFunding:C,displayUnrealizedFunding:"face"===e.wallet?n.unrealized_funding:C,faceAsset:g,marketAsset:m,walletDisplayAsset:v};return Object.assign(Object.assign({},n),w)}}function g(t,e,n){return i=>Object.assign(Object.assign({},i),{leveragePref:t.get(i.instrument)||{symbol:n,cross:!0},pnlPref:e.get(i.instrument)||{symbol:n,pnlCurrency:"USD"}})}function m(t){return e=>{const{inverse:n}=Object(i.u)(e.product_id),r=Object(s.d)(e.volume,Object(o.j)(e),n),a={notionalVolume:r,displayVolume:"order"===t.trading?e.volume:r};return Object.assign(Object.assign({},e),a)}}function v(t,e){return n=>{const{collateral:o,inverse:a,parts:c}=Object(i.u)(n.product_id),l=Object(s.d)(n.volume,n.markPrice,a),u="order"===e.trading?n.volume:l,h=Object(s.d)(n.openInterest,n.markPrice,a),d="order"===e.trading?n.openInterest:h,p="flex"===c.family,f=t.get(c.currencies.base),b=t.get(c.currencies.quote),g=p?f:r.a,m=p?b:t.get(o),v={notionalVolume:l,displayVolume:u,notionalOpenInterest:h,displayOpenInterest:d,orderAsset:g,notionalAsset:m,tradingDisplayAsset:"order"===e.trading?g:m};return Object.assign(Object.assign({},n),v)}}function _(t,e){return n=>{const i=Object(s.d)(n.qty,n.price,e),r={notionalQty:i,displayQty:"order"===t.trading?n.qty:i};return Object.assign(Object.assign({},n),r)}}function y(t){const e=(t.mark_price-t.entry_price)/t.entry_price;return Object.assign(Object.assign({},t),{change:e})}},"7SLS":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("5uGe");function r(t){return e=>e.lift(new s(t))}class s{constructor(t){this.value=t}call(t,e){return e.subscribe(new o(t,this.value))}}class o extends i.a{constructor(t,e){super(t),this.value=e}_next(t){this.destination.next(this.value)}}},"7UDb":function(t,e,n){"use strict";n.d(e,"a",(function(){return g})),n.d(e,"b",(function(){return m}));var i=n("6uGs"),r=n("6Oco"),s=n("uJYd"),o=n("ob6c"),a=n("8j5Y"),c=n("TLy2"),l=n("4e/d"),u=n("XcTA"),h=n("kZht"),d=n("zqNl"),p=n("aDqW");const f=()=>{},b=()=>r.a,g={headers:new i.c({"Content-Type":"application/json"}),withCredentials:!0};let m=(()=>{class t{constructor(t,e,n){this.store=t,this.actions$=e,this.translate=n}errorSnackbarAction(t,e){const n=this.translate.instant("ERROR."+e.toUpperCase());let i="UNKNOWN";console.log(t);try{i=t.errors[0].code.toString()}catch(a){}try{i=t.error.toString().toUpperCase()}catch(c){}const r=this.translate.instant("ERROR_CODE."+i),o=u.a.get(i.toString());return o?Object(s.k)(r,n,o):Object(s.l)(r,n)}createApiEffect(t){const{apiStream:e,tapPre:n=f,tapPost:i=f,loading:r,onSuccess:u=b,errSnackbarMsg:h="UNKNOWN",onError:d=b}=t,p=Array.isArray(t.ofType)?t.ofType:[t.ofType],g=r?()=>this.store.dispatch(Object(s.a)(r)):f,m=r?()=>this.store.dispatch(Object(s.n)(r)):f,v=h?t=>this.store.dispatch(this.errorSnackbarAction(t,h)):f;return Object(o.d)(()=>this.actions$.pipe(Object(o.e)(...p),Object(a.a)(t=>{g(),n(t)}),Object(c.a)(t=>e(t).pipe(Object(a.a)(t=>i(t)),Object(c.a)(t=>u(t)),Object(a.a)(m,m,m),Object(l.a)(t=>("error"in t&&v(t.error),d(t)))))))}}return t.\u0275fac=function(e){return new(e||t)(h.Yb(d.b),h.Yb(o.a),h.Yb(p.e))},t.\u0275prov=h.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},"7erP":function(t,e,n){"use strict";n.d(e,"a",(function(){return R}));var i=n("3kIJ"),r=n("pjhv"),s=n("lE9u"),o=n("uJYd"),a=n("MUfl"),c=n("kZht"),l=n("zqNl"),u=n("An66"),h=n("anSm"),d=n("EmXI"),p=n("Tcl6"),f=n("hCLc"),b=n("yPvj"),g=n("1eaT"),m=n("aDqW"),v=n("+I9z"),_=n("NxuZ"),y=n("8spT"),O=n("DpwM"),C=n("P0Um");function w(t,e){1&t&&(c.Sb(0),c.Ub(1,"mat-label",12),c.Qc(2),c.gc(3,"uppercase"),c.gc(4,"translate"),c.Tb(),c.Ub(5,"p",13),c.Qc(6,"DIALOG.CRYPTO_WITHDRAWAL.DESCRIPTION"),c.Tb(),c.Rb()),2&t&&(c.Cb(2),c.Sc(" ",c.hc(3,1,c.hc(4,3,"DIALOG.CRYPTO_WITHDRAWAL.HEADING"))," "))}function T(t,e){1&t&&(c.Sb(0),c.Ub(1,"mat-label",12),c.Qc(2),c.gc(3,"uppercase"),c.gc(4,"translate"),c.Tb(),c.Ub(5,"p",13),c.Qc(6,"DIALOG.CRYPTO_WITHDRAWAL.CONTENT.NETWORK_FEE"),c.Tb(),c.Rb()),2&t&&(c.Cb(2),c.Sc(" ",c.hc(3,1,c.hc(4,3,"LABEL.WITHDRAWAL_FEE"))," "))}function S(t,e){if(1&t&&(c.Ub(0,"mat-form-field",14),c.Ub(1,"mat-label",9),c.Qc(2,"FORM.FROM"),c.Tb(),c.Pb(3,"input",15),c.gc(4,"walletName"),c.gc(5,"walletType"),c.Pb(6,"fa-icon",16),c.Tb()),2&t){const t=c.fc(2);c.Cb(3),c.mc("value",c.hc(4,1,t.selected.name)+" "+c.hc(5,3,t.selected.type)+" Wallet")}}function k(t,e){1&t&&(c.Ub(0,"mat-form-field",14),c.Ub(1,"mat-label",9),c.Qc(2,"FORM.TO"),c.Tb(),c.Pb(3,"input",17),c.Pb(4,"fa-icon",16),c.Tb())}function E(t,e){1&t&&(c.Ub(0,"mat-form-field",14),c.Ub(1,"mat-label"),c.Qc(2),c.gc(3,"translate"),c.Tb(),c.Pb(4,"input",18),c.Tb()),2&t&&(c.Cb(2),c.Sc("",c.hc(3,1,"FORM.RECIPIENT_ADDRESS"),":"))}function x(t,e){1&t&&(c.Ub(0,"mat-form-field",14),c.Ub(1,"mat-label"),c.Qc(2),c.gc(3,"translate"),c.Tb(),c.Pb(4,"input",19),c.Tb()),2&t&&(c.Cb(2),c.Sc("",c.hc(3,1,"FORM.DESTINATION_TAG"),":"))}function P(t,e){1&t&&(c.Ub(0,"mat-radio-group",20),c.Ub(1,"mat-radio-button",21),c.Qc(2),c.gc(3,"translate"),c.Tb(),c.Ub(4,"mat-radio-button",22),c.Qc(5),c.gc(6,"translate"),c.Tb(),c.Ub(7,"mat-radio-button",23),c.Qc(8),c.gc(9,"translate"),c.Tb(),c.Tb()),2&t&&(c.Cb(2),c.Sc(" ",c.hc(3,3,"DIALOG.CRYPTO_WITHDRAWAL.CONTENT.HIGH_PRIORITY")," "),c.Cb(3),c.Sc(" ",c.hc(6,5,"DIALOG.CRYPTO_WITHDRAWAL.CONTENT.MED_PRIORITY")," "),c.Cb(3),c.Sc(" ",c.hc(9,7,"DIALOG.CRYPTO_WITHDRAWAL.CONTENT.LOW_PRIORITY")," "))}function A(t,e){1&t&&(c.Sb(0),c.Qc(1),c.gc(2,"translate"),c.Rb()),2&t&&(c.Cb(1),c.Rc(c.hc(2,1,"BUTTON.WITHDRAW_TO_KRAKEN")))}function I(t,e){1&t&&(c.Sb(0),c.Qc(1),c.gc(2,"translate"),c.Rb()),2&t&&(c.Cb(1),c.Rc(c.hc(2,1,"BUTTON.SUBMIT_WITHDRAWAL")))}function M(t,e){if(1&t){const t=c.Vb();c.Sb(0),c.Ub(1,"form",1),c.bc("ngSubmit",(function(){return c.Ec(t),c.fc().submitWithdrawal()})),c.Oc(2,w,7,5,"ng-container",0),c.Oc(3,T,7,5,"ng-container",0),c.Oc(4,S,7,5,"mat-form-field",2),c.Oc(5,k,5,0,"mat-form-field",2),c.Oc(6,E,5,3,"mat-form-field",2),c.Oc(7,x,5,3,"mat-form-field",2),c.Ub(8,"mat-form-field",3),c.Ub(9,"mat-label"),c.Qc(10),c.gc(11,"translate"),c.Tb(),c.Pb(12,"input",4),c.Ub(13,"button",5),c.bc("click",(function(){return c.Ec(t),c.fc().setAmount(1)})),c.Qc(14),c.gc(15,"uppercase"),c.gc(16,"translate"),c.Tb(),c.Pb(17,"market-icon",6),c.Tb(),c.Oc(18,P,10,9,"mat-radio-group",7),c.Ub(19,"div",8),c.Ub(20,"nutritional-info"),c.Ub(21,"span",9),c.Qc(22,"LABEL.BALANCE"),c.Tb(),c.Pb(23,"ghost-trail",10),c.gc(24,"cryptoPrecise"),c.Tb(),c.Tb(),c.Ub(25,"button",11),c.Oc(26,A,3,3,"ng-container",0),c.Oc(27,I,3,3,"ng-container",0),c.Tb(),c.Tb(),c.Rb()}if(2&t){const t=c.fc();c.Cb(1),c.mc("formGroup",t.form),c.Cb(1),c.mc("ngIf",t.userDetails.external),c.Cb(1),c.mc("ngIf",!t.userDetails.external),c.Cb(1),c.mc("ngIf",t.userDetails.external&&t.withdrawEnabled),c.Cb(1),c.mc("ngIf",t.userDetails.external),c.Cb(1),c.mc("ngIf",!t.userDetails.external),c.Cb(1),c.mc("ngIf",!t.userDetails.external&&"XRP"===t.selected.currency),c.Cb(3),c.Sc("",c.hc(11,15,"FORM.AMOUNT"),":"),c.Cb(4),c.Sc(" ",c.hc(15,17,c.hc(16,19,"BUTTON.MAX"))," "),c.Cb(3),c.mc("base",t.selected.currency),c.Cb(1),c.mc("ngIf",!t.userDetails.external&&"XRP"!==t.selected.currency),c.Cb(5),c.mc("content",c.ic(24,21,t.balance,t.selected.currency)),c.Cb(2),c.mc("disabled",t.form.invalid),c.Cb(1),c.mc("ngIf",t.userDetails.external),c.Cb(1),c.mc("ngIf",!t.userDetails.external)}}function D(t,e){1&t&&(c.Sb(0),c.Ub(1,"p",13),c.Qc(2,"LABEL.SUBACCOUNT_WITHDRAW"),c.Tb(),c.Rb())}let R=(()=>{class t{constructor(t,e,n){this.store=t,this.formBuilder=e,this.feature=n}ngOnInit(){this.form=this.formBuilder.group({amount:[0,[i.x.required,i.x.min(1e-12),i.x.pattern("^(?!0$).*")]],from:"",recipient:"",calculation:"high",destination:""}),this.checkWithdrawalDialog()}checkWithdrawalDialog(){"mtf"===this.userDetails.platformName&&"EUR"===this.selected.currency&&(this.store.dispatch(Object(o.c)()),this.store.dispatch(Object(o.g)({name:"fiat-withdraw",inputs:{wallet:this.selected}})))}get amount(){var t;return null===(t=this.form.get("amount"))||void 0===t?void 0:t.value}get balance(){return"holding"===this.selected.type?this.selected.balance:this.selected.am}setAmount(t){const e=Object(r.b)(this.selected.currency,!0),n=Math.pow(10,e),i=Math.min(this.balance*t,this.balance),s=Math.floor(i*n)/n;this.form.get("amount").setValue(s)}transformSCWalletName(t){return t.toLowerCase().replace("f-","fi_").replace(":","")}submitWithdrawal(){if(this.userDetails.external)if(this.withdrawEnabled){const t="flex"===this.selected.type?"flex":"futures"===this.selected.type?this.transformSCWalletName(this.selected.name):"cash";this.store.dispatch(Object(s.B)({amount:this.form.get("amount").value,currency:this.selected.currency,source:t}))}else this.store.dispatch(Object(s.B)({amount:this.form.get("amount").value,currency:this.selected.currency}));else this.store.dispatch("XRP"===this.selected.currency?Object(s.z)({amount:this.form.get("amount").value,currency:this.selected.currency,targetAddress:`${this.form.get("recipient").value}&dt=${this.form.get("destination").value}`}):Object(s.z)({amount:this.form.get("amount").value,currency:this.selected.currency,targetAddress:this.form.get("recipient").value,feeType:this.form.get("calculation").value}))}get withdrawEnabled(){return this.feature.isEnabled("transferDestination")}}return t.\u0275fac=function(e){return new(e||t)(c.Ob(l.b),c.Ob(i.d),c.Ob(a.a))},t.\u0275cmp=c.Ib({type:t,selectors:[["crypto-withdraw-form"]],inputs:{selected:"selected",isSubAccount:"isSubAccount",userDetails:"userDetails"},decls:2,vars:2,consts:[[4,"ngIf"],["body","",3,"formGroup","ngSubmit"],["color","accent","appearance","fill",4,"ngIf"],["color","accent","appearance","fill",1,"market-form","no-padding"],["matInput","","formControlName","amount","required","","type","number","min","0","inputmode","numeric","autocomplete","off"],["matSuffix","","mat-raised-button","","body","","type","button",1,"mat-small-button",3,"click"],["matSuffix","",1,"form-icon",3,"base"],["formControlName","calculation",4,"ngIf"],[1,"balance-info"],["translate",""],[3,"content"],["mat-raised-button","",1,"submit",3,"disabled"],[1,"global__text","global__text--bold","global__text--ghost"],["body","","translate",""],["color","accent","appearance","fill"],["disabled","","matInput","","required","","type","text",3,"value"],["matSuffix","","icon","kraken",1,"form-icon"],["disabled","","matInput","","required","","type","text","value","Kraken Spot Wallet"],["matInput","","required","","type","text","formControlName","recipient"],["matInput","","type","text","formControlName","destination"],["formControlName","calculation"],["value","high"],["value","medium"],["value","low"]],template:function(t,e){1&t&&(c.Oc(0,M,28,24,"ng-container",0),c.Oc(1,D,3,0,"ng-container",0)),2&t&&(c.mc("ngIf",!e.isSubAccount),c.Cb(1),c.mc("ngIf",e.isSubAccount))},directives:[u.n,i.z,i.p,h.a,i.h,d.c,d.f,p.b,i.c,i.s,i.o,i.g,i.v,f.b,d.h,b.a,g.a,m.a,v.a,_.b,y.b,y.a],pipes:[m.d,u.x,O.b,C.a,C.b],styles:["form[_ngcontent-%COMP%] > mat-label[_ngcontent-%COMP%]{display:block;margin-bottom:var(--spacing)}form[_ngcontent-%COMP%] > mat-form-field[_ngcontent-%COMP%]{width:100%}form[_ngcontent-%COMP%] > mat-form-field[_ngcontent-%COMP%]:first-of-type, form[_ngcontent-%COMP%] > mat-radio-group[_ngcontent-%COMP%]{margin-top:var(--spacing)}form[_ngcontent-%COMP%] > mat-radio-group[_ngcontent-%COMP%]{display:flex;flex-direction:column}form[_ngcontent-%COMP%] .submit[_ngcontent-%COMP%]{width:100%;margin-top:var(--spacing)}"],changeDetection:0}),t})()},"7fYw":function(t,e,n){"use strict";n.r(e),n.d(e,"MarketsOverviewComponent",(function(){return _}));var i=n("zqNl"),r=n("0tVE"),s=n("+Px6"),o=n("qAYy"),a=n("rxqU"),c=n("sxqi"),l=n("kZht"),u=n("mcff"),h=n("Asjx"),d=n("rfPA"),p=n("bBQR"),f=n("sq1e"),b=n("rEzU"),g=n("HeQ8"),m=n("aDqW"),v=n("An66");let _=(()=>{class t{constructor(t,e,n,r){this.store=t,this.dialogRef=e,this.market=n,this.breakpointObserver=r,this.favorites$=this.store.pipe(Object(i.m)(a.p)),this.assets$=this.store.pipe(Object(i.m)(s.d)),this.partitionedAssets$=this.store.pipe(Object(i.m)(s.c)),this.futuresTickers$=this.store.pipe(Object(i.m)(o.i)),this.flexTickers$=this.store.pipe(Object(i.m)(o.h))}changeSelectedTicker(t){this.market.navigateToMarket(t),this.dialogRef.close()}addFavorite(t){this.store.dispatch(Object(r.d)({marketDescriptor:t}))}removeFavorite(t){this.store.dispatch(Object(r.v)({marketDescriptor:t}))}get isHandset(){return this.breakpointObserver.isMatched("(max-width: 599px)")}}return t.\u0275fac=function(e){return new(e||t)(l.Ob(i.b),l.Ob(u.d),l.Ob(c.a),l.Ob(h.a))},t.\u0275cmp=l.Ib({type:t,selectors:[["markets-overview"]],decls:12,vars:20,consts:[["heading","HEADING.MARKETS",3,"padding"],["dynamicHeight",""],[3,"label"],[3,"tickers","favorites","selectTicker","addFavorite","removeFavorite"]],template:function(t,e){1&t&&(l.Ub(0,"pro-dialog",0),l.Ub(1,"mat-tab-group",1),l.Ub(2,"mat-tab",2),l.gc(3,"translate"),l.Ub(4,"markets-overview-futures",3),l.bc("selectTicker",(function(t){return e.changeSelectedTicker(t)}))("addFavorite",(function(t){return e.addFavorite(t)}))("removeFavorite",(function(t){return e.removeFavorite(t)})),l.gc(5,"async"),l.gc(6,"async"),l.Tb(),l.Tb(),l.Ub(7,"mat-tab",2),l.gc(8,"translate"),l.Ub(9,"markets-overview-futures",3),l.bc("selectTicker",(function(t){return e.changeSelectedTicker(t)}))("addFavorite",(function(t){return e.addFavorite(t)}))("removeFavorite",(function(t){return e.removeFavorite(t)})),l.gc(10,"async"),l.gc(11,"async"),l.Tb(),l.Tb(),l.Tb(),l.Tb()),2&t&&(l.mc("padding",!1),l.Cb(1),l.mc("@.disabled",!0),l.Cb(1),l.mc("label",l.hc(3,8,"Single Collateral")),l.Cb(2),l.mc("tickers",l.hc(5,10,e.futuresTickers$))("favorites",l.hc(6,12,e.favorites$)),l.Cb(3),l.mc("label",l.hc(8,14,"Multi Collateral")),l.Cb(2),l.mc("tickers",l.hc(10,16,e.flexTickers$))("favorites",l.hc(11,18,e.favorites$)))},directives:[d.a,p.a,f.c,f.a,b.a,g.a],pipes:[m.d,v.b],encapsulation:2,changeDetection:0}),t})()},"7ntQ":function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("JHA6"),r=n("i7Dj"),s=n("ZTXN");function o(){return new s.b}function a(){return t=>Object(r.a)()(Object(i.a)(o)(t))}},"807T":function(t,e,n){"use strict";n.d(e,"a",(function(){return bt})),n.d(e,"b",(function(){return Ot})),n.d(e,"c",(function(){return Tt})),n.d(e,"d",(function(){return wt}));var i=n("jL3B"),r=n("5GZx"),s=n("ZtZA"),o=n("An66"),a=n("kZht"),c=n("hCLc"),l=n("mcff"),u=n("VbQ3"),h=n("pTnX"),d=n("ZTXN"),p=n("bwdy"),f=n("g6G6"),b=n("ROBh"),g=n("Hq54"),m=n("vE5V"),v=n("J+dc"),_=n("jIqt"),y=n("xVbo"),O=n("5XID"),C=n("+6xv"),w=n("3kIJ"),T=n("EmXI"),S=n("Tcl6");const k=["mat-calendar-body",""];function E(t,e){if(1&t&&(a.Ub(0,"tr",2),a.Ub(1,"td",3),a.Qc(2),a.Tb(),a.Tb()),2&t){const t=a.fc();a.Cb(1),a.Lc("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),a.Db("colspan",t.numCols),a.Cb(1),a.Sc(" ",t.label," ")}}function x(t,e){if(1&t&&(a.Ub(0,"td",7),a.Qc(1),a.Tb()),2&t){const t=a.fc(2);a.Lc("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),a.Db("colspan",t._firstRowOffset),a.Cb(1),a.Sc(" ",t._firstRowOffset>=t.labelMinRequiredCells?t.label:""," ")}}function P(t,e){if(1&t){const t=a.Vb();a.Ub(0,"td",8),a.bc("click",(function(n){a.Ec(t);const i=e.$implicit;return a.fc(2)._cellClicked(i,n)})),a.Ub(1,"div",9),a.Qc(2),a.Tb(),a.Pb(3,"div",10),a.Tb()}if(2&t){const t=e.$implicit,n=e.index,i=a.fc().index,r=a.fc();a.Lc("width",r._cellWidth)("padding-top",r._cellPadding)("padding-bottom",r._cellPadding),a.Gb("mat-calendar-body-disabled",!t.enabled)("mat-calendar-body-active",r._isActiveCell(i,n))("mat-calendar-body-range-start",r._isRangeStart(t.compareValue))("mat-calendar-body-range-end",r._isRangeEnd(t.compareValue))("mat-calendar-body-in-range",r._isInRange(t.compareValue))("mat-calendar-body-comparison-bridge-start",r._isComparisonBridgeStart(t.compareValue,i,n))("mat-calendar-body-comparison-bridge-end",r._isComparisonBridgeEnd(t.compareValue,i,n))("mat-calendar-body-comparison-start",r._isComparisonStart(t.compareValue))("mat-calendar-body-comparison-end",r._isComparisonEnd(t.compareValue))("mat-calendar-body-in-comparison-range",r._isInComparisonRange(t.compareValue))("mat-calendar-body-preview-start",r._isPreviewStart(t.compareValue))("mat-calendar-body-preview-end",r._isPreviewEnd(t.compareValue))("mat-calendar-body-in-preview",r._isInPreview(t.compareValue)),a.mc("ngClass",t.cssClasses)("tabindex",r._isActiveCell(i,n)?0:-1),a.Db("data-mat-row",i)("data-mat-col",n)("aria-label",t.ariaLabel)("aria-disabled",!t.enabled||null)("aria-selected",r._isSelected(t.compareValue)),a.Cb(1),a.Gb("mat-calendar-body-selected",r._isSelected(t.compareValue))("mat-calendar-body-comparison-identical",r._isComparisonIdentical(t.compareValue))("mat-calendar-body-today",r.todayValue===t.compareValue),a.Cb(1),a.Sc(" ",t.displayValue," ")}}function A(t,e){if(1&t&&(a.Ub(0,"tr",4),a.Oc(1,x,2,6,"td",5),a.Oc(2,P,4,46,"td",6),a.Tb()),2&t){const t=e.$implicit,n=e.index,i=a.fc();a.Cb(1),a.mc("ngIf",0===n&&i._firstRowOffset),a.Cb(1),a.mc("ngForOf",t)}}function I(t,e){if(1&t&&(a.Ub(0,"th",5),a.Qc(1),a.Tb()),2&t){const t=e.$implicit;a.Db("aria-label",t.long),a.Cb(1),a.Rc(t.narrow)}}const M=["*"];function D(t,e){}function R(t,e){if(1&t){const t=a.Vb();a.Ub(0,"mat-month-view",5),a.bc("activeDateChange",(function(e){return a.Ec(t),a.fc().activeDate=e}))("_userSelection",(function(e){return a.Ec(t),a.fc()._dateSelected(e)})),a.Tb()}if(2&t){const t=a.fc();a.mc("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)("comparisonStart",t.comparisonStart)("comparisonEnd",t.comparisonEnd)}}function j(t,e){if(1&t){const t=a.Vb();a.Ub(0,"mat-year-view",6),a.bc("activeDateChange",(function(e){return a.Ec(t),a.fc().activeDate=e}))("monthSelected",(function(e){return a.Ec(t),a.fc()._monthSelectedInYearView(e)}))("selectedChange",(function(e){return a.Ec(t),a.fc()._goToDateInView(e,"month")})),a.Tb()}if(2&t){const t=a.fc();a.mc("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)}}function L(t,e){if(1&t){const t=a.Vb();a.Ub(0,"mat-multi-year-view",7),a.bc("activeDateChange",(function(e){return a.Ec(t),a.fc().activeDate=e}))("yearSelected",(function(e){return a.Ec(t),a.fc()._yearSelectedInMultiYearView(e)}))("selectedChange",(function(e){return a.Ec(t),a.fc()._goToDateInView(e,"year")})),a.Tb()}if(2&t){const t=a.fc();a.mc("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)}}const N=["button"];function U(t,e){1&t&&(a.ec(),a.Ub(0,"svg",3),a.Pb(1,"path",4),a.Tb())}const F=[[["","matDatepickerToggleIcon",""]]],B=["[matDatepickerToggleIcon]"];let z=(()=>{class t{constructor(){this.changes=new d.b,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 20 years",this.nextMultiYearLabel="Next 20 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}formatYearRange(t,e){return`${t} \u2013 ${e}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(a.Kb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();class V{constructor(t,e,n,i,r={},s=t,o){this.value=t,this.displayValue=e,this.ariaLabel=n,this.enabled=i,this.cssClasses=r,this.compareValue=s,this.rawValue=o}}let $=(()=>{class t{constructor(t,e){this._elementRef=t,this._ngZone=e,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new a.o,this.previewChange=new a.o,this._enterHandler=t=>{if(this._skipNextFocus&&"focus"===t.type)this._skipNextFocus=!1;else if(t.target&&this.isRange){const e=this._getCellFromElement(t.target);e&&this._ngZone.run(()=>this.previewChange.emit({value:e.enabled?e:null,event:t}))}},this._leaveHandler=t=>{null!==this.previewEnd&&this.isRange&&t.target&&H(t.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:t}))},e.runOutsideAngular(()=>{const e=t.nativeElement;e.addEventListener("mouseenter",this._enterHandler,!0),e.addEventListener("focus",this._enterHandler,!0),e.addEventListener("mouseleave",this._leaveHandler,!0),e.addEventListener("blur",this._leaveHandler,!0)})}_cellClicked(t,e){t.enabled&&this.selectedValueChange.emit({value:t.value,event:e})}_isSelected(t){return this.startValue===t||this.endValue===t}ngOnChanges(t){const e=t.numCols,{rows:n,numCols:i}=this;(t.rows||e)&&(this._firstRowOffset=n&&n.length&&n[0].length?i-n[0].length:0),(t.cellAspectRatio||e||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/i+"%"),!e&&this._cellWidth||(this._cellWidth=100/i+"%")}ngOnDestroy(){const t=this._elementRef.nativeElement;t.removeEventListener("mouseenter",this._enterHandler,!0),t.removeEventListener("focus",this._enterHandler,!0),t.removeEventListener("mouseleave",this._leaveHandler,!0),t.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(t,e){let n=t*this.numCols+e;return t&&(n-=this._firstRowOffset),n==this.activeCell}_focusActiveCell(t=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Object(v.a)(1)).subscribe(()=>{const e=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");e&&(t||(this._skipNextFocus=!0),e.focus())})})}_isRangeStart(t){return q(t,this.startValue,this.endValue)}_isRangeEnd(t){return Q(t,this.startValue,this.endValue)}_isInRange(t){return W(t,this.startValue,this.endValue,this.isRange)}_isComparisonStart(t){return q(t,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(t,e,n){if(!this._isComparisonStart(t)||this._isRangeStart(t)||!this._isInRange(t))return!1;let i=this.rows[e][n-1];if(!i){const t=this.rows[e-1];i=t&&t[t.length-1]}return i&&!this._isRangeEnd(i.compareValue)}_isComparisonBridgeEnd(t,e,n){if(!this._isComparisonEnd(t)||this._isRangeEnd(t)||!this._isInRange(t))return!1;let i=this.rows[e][n+1];if(!i){const t=this.rows[e+1];i=t&&t[0]}return i&&!this._isRangeStart(i.compareValue)}_isComparisonEnd(t){return Q(t,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(t){return W(t,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(t){return this.comparisonStart===this.comparisonEnd&&t===this.comparisonStart}_isPreviewStart(t){return q(t,this.previewStart,this.previewEnd)}_isPreviewEnd(t){return Q(t,this.previewStart,this.previewEnd)}_isInPreview(t){return W(t,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(t){let e;if(H(t)?e=t:H(t.parentNode)&&(e=t.parentNode),e){const t=e.getAttribute("data-mat-row"),n=e.getAttribute("data-mat-col");if(t&&n)return this.rows[parseInt(t)][parseInt(n)]}return null}}return t.\u0275fac=function(e){return new(e||t)(a.Ob(a.l),a.Ob(a.B))},t.\u0275cmp=a.Ib({type:t,selectors:[["","mat-calendar-body",""]],hostAttrs:["role","grid","aria-readonly","true",1,"mat-calendar-body"],inputs:{numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",previewStart:"previewStart",previewEnd:"previewEnd",label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[a.Ab],attrs:k,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["aria-hidden","true","class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","mat-calendar-body-range-start","mat-calendar-body-range-end","mat-calendar-body-in-range","mat-calendar-body-comparison-bridge-start","mat-calendar-body-comparison-bridge-end","mat-calendar-body-comparison-start","mat-calendar-body-comparison-end","mat-calendar-body-in-comparison-range","mat-calendar-body-preview-start","mat-calendar-body-preview-end","mat-calendar-body-in-preview","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["aria-hidden","true",1,"mat-calendar-body-label"],["role","gridcell",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],[1,"mat-calendar-body-cell-preview"]],template:function(t,e){1&t&&(a.Oc(0,E,3,6,"tr",0),a.Oc(1,A,3,2,"tr",1)),2&t&&(a.mc("ngIf",e._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}[dir=rtl] .mat-calendar-body-label{text-align:right}@media(hover: none){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:transparent}}\n'],encapsulation:2,changeDetection:0}),t})();function H(t){return"TD"===t.nodeName}function q(t,e,n){return null!==n&&e!==n&&t=e&&t===n}function W(t,e,n,i){return i&&null!==e&&null!==n&&e!==n&&t>=e&&t<=n}class G{constructor(t,e){this.start=t,this.end=e}}let Y=(()=>{class t{constructor(t,e){this.selection=t,this._adapter=e,this._selectionChanged=new d.b,this.selectionChanged=this._selectionChanged,this.selection=t}updateSelection(t,e){this.selection=t,this._selectionChanged.next({selection:t,source:e})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(t){return this._adapter.isDateInstance(t)&&this._adapter.isValid(t)}}return t.\u0275fac=function(e){return new(e||t)(a.Ob(void 0),a.Ob(h.c))},t.\u0275dir=a.Jb({type:t}),t})(),K=(()=>{class t extends Y{constructor(t){super(null,t)}add(t){super.updateSelection(t,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}}return t.\u0275fac=function(e){return new(e||t)(a.Yb(h.c))},t.\u0275prov=a.Kb({token:t,factory:t.\u0275fac}),t})();const Z={provide:Y,deps:[[new a.C,new a.L,Y],h.c],useFactory:function(t,e){return t||new K(e)}},X=new a.s("MAT_DATE_RANGE_SELECTION_STRATEGY");let J=(()=>{class t{constructor(t,e,n,i,r){this._changeDetectorRef=t,this._dateFormats=e,this._dateAdapter=n,this._dir=i,this._rangeStrategy=r,this._rerenderSubscription=p.a.EMPTY,this.selectedChange=new a.o,this._userSelection=new a.o,this.activeDateChange=new a.o,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){const e=this._activeDate,n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),this._hasSameMonthAndYear(e,this._activeDate)||this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof G?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Object(_.a)(null)).subscribe(()=>this._init())}ngOnChanges(t){const e=t.comparisonStart||t.comparisonEnd;e&&!e.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(t){const e=t.value,n=this._dateAdapter.getYear(this.activeDate),i=this._dateAdapter.getMonth(this.activeDate),r=this._dateAdapter.createDate(n,i,e);let s,o;this._selected instanceof G?(s=this._getDateInCurrentMonth(this._selected.start),o=this._getDateInCurrentMonth(this._selected.end)):s=o=this._getDateInCurrentMonth(this._selected),s===e&&o===e||this.selectedChange.emit(r),this._userSelection.emit({value:r,event:t.event})}_handleCalendarBodyKeydown(t){const e=this._activeDate,n=this._isRtl();switch(t.keyCode){case g.h:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?1:-1);break;case g.l:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?-1:1);break;case g.o:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case g.c:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case g.g:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case g.d:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case g.k:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case g.j:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case g.e:case g.m:return void(this.dateFilter&&!this.dateFilter(this._activeDate)||(this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:t}),t.preventDefault()));case g.f:return void(null!=this._previewEnd&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:t}),t.preventDefault(),t.stopPropagation()));default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(t)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(t){this._matCalendarBody._focusActiveCell(t)}_previewChanged({event:t,value:e}){if(this._rangeStrategy){const n=this._rangeStrategy.createPreview(e?e.rawValue:null,this.selected,t);this._previewStart=this._getCellCompareValue(n.start),this._previewEnd=this._getCellCompareValue(n.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const t=this._dateAdapter.getFirstDayOfWeek(),e=this._dateAdapter.getDayOfWeekNames("narrow");let n=this._dateAdapter.getDayOfWeekNames("long").map((t,n)=>({long:t,narrow:e[n]}));this._weekdays=n.slice(t).concat(n.slice(0,t))}_createWeekCells(){const t=this._dateAdapter.getNumDaysInMonth(this.activeDate),e=this._dateAdapter.getDateNames();this._weeks=[[]];for(let n=0,i=this._firstWeekOffset;n=0)&&(!this.maxDate||this._dateAdapter.compareDate(t,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(t))}_getDateInCurrentMonth(t){return t&&this._hasSameMonthAndYear(t,this.activeDate)?this._dateAdapter.getDate(t):null}_hasSameMonthAndYear(t,e){return!(!t||!e||this._dateAdapter.getMonth(t)!=this._dateAdapter.getMonth(e)||this._dateAdapter.getYear(t)!=this._dateAdapter.getYear(e))}_getCellCompareValue(t){if(t){const e=this._dateAdapter.getYear(t),n=this._dateAdapter.getMonth(t),i=this._dateAdapter.getDate(t);return new Date(e,n,i).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(t){t instanceof G?(this._rangeStart=this._getCellCompareValue(t.start),this._rangeEnd=this._getCellCompareValue(t.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(t),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}}return t.\u0275fac=function(e){return new(e||t)(a.Ob(a.h),a.Ob(h.e,8),a.Ob(h.c,8),a.Ob(m.b,8),a.Ob(X,8))},t.\u0275cmp=a.Ib({type:t,selectors:[["mat-month-view"]],viewQuery:function(t,e){var n;1&t&&a.Wc($,!0),2&t&&a.zc(n=a.cc())&&(e._matCalendarBody=n.first)},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[a.Ab],decls:7,vars:13,consts:[["role","presentation",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["colspan","7","aria-hidden","true",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keydown"],["scope","col"]],template:function(t,e){1&t&&(a.Ub(0,"table",0),a.Ub(1,"thead",1),a.Ub(2,"tr"),a.Oc(3,I,2,2,"th",2),a.Tb(),a.Ub(4,"tr"),a.Pb(5,"th",3),a.Tb(),a.Tb(),a.Ub(6,"tbody",4),a.bc("selectedValueChange",(function(t){return e._dateSelected(t)}))("previewChange",(function(t){return e._previewChanged(t)}))("keydown",(function(t){return e._handleCalendarBodyKeydown(t)})),a.Tb(),a.Tb()),2&t&&(a.Cb(3),a.mc("ngForOf",e._weekdays),a.Cb(3),a.mc("label",e._monthLabel)("rows",e._weeks)("todayValue",e._todayDate)("startValue",e._rangeStart)("endValue",e._rangeEnd)("comparisonStart",e._comparisonRangeStart)("comparisonEnd",e._comparisonRangeEnd)("previewStart",e._previewStart)("previewEnd",e._previewEnd)("isRange",e._isRange)("labelMinRequiredCells",3)("activeCell",e._dateAdapter.getDate(e.activeDate)-1))},directives:[o.m,$],encapsulation:2,changeDetection:0}),t})(),tt=(()=>{class t{constructor(t,e,n){this._changeDetectorRef=t,this._dateAdapter=e,this._dir=n,this._rerenderSubscription=p.a.EMPTY,this.selectedChange=new a.o,this.yearSelected=new a.o,this.activeDateChange=new a.o,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){let e=this._activeDate;const n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),et(this._dateAdapter,e,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof G?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedYear(t)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Object(_.a)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const t=this._dateAdapter.getYear(this._activeDate)-nt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let e=0,n=[];e<24;e++)n.push(t+e),4==n.length&&(this._years.push(n.map(t=>this._createCellForYear(t))),n=[]);this._changeDetectorRef.markForCheck()}_yearSelected(t){const e=t.value;this.yearSelected.emit(this._dateAdapter.createDate(e,0,1));let n=this._dateAdapter.getMonth(this.activeDate),i=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,n,1));this.selectedChange.emit(this._dateAdapter.createDate(e,n,Math.min(this._dateAdapter.getDate(this.activeDate),i)))}_handleCalendarBodyKeydown(t){const e=this._activeDate,n=this._isRtl();switch(t.keyCode){case g.h:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n?1:-1);break;case g.l:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n?-1:1);break;case g.o:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case g.c:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case g.g:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-nt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case g.d:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-nt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case g.k:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-240:-24);break;case g.j:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?240:24);break;case g.e:case g.m:this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:t});break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_getActiveCell(){return nt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(t){const e=this._dateAdapter.createDate(t,0,1),n=this._dateAdapter.getYearName(e),i=this.dateClass?this.dateClass(e,"multi-year"):void 0;return new V(t,n,n,this._shouldEnableYear(t),i)}_shouldEnableYear(t){if(null==t||this.maxDate&&t>this._dateAdapter.getYear(this.maxDate)||this.minDate&&t{class t{constructor(t,e,n,i){this._changeDetectorRef=t,this._dateFormats=e,this._dateAdapter=n,this._dir=i,this._rerenderSubscription=p.a.EMPTY,this.selectedChange=new a.o,this.monthSelected=new a.o,this.activeDateChange=new a.o,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){let e=this._activeDate;const n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),this._dateAdapter.getYear(e)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof G?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedMonth(t)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Object(_.a)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(t){const e=t.value,n=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1);this.monthSelected.emit(n);const i=this._dateAdapter.getNumDaysInMonth(n);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),i)))}_handleCalendarBodyKeydown(t){const e=this._activeDate,n=this._isRtl();switch(t.keyCode){case g.h:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,n?1:-1);break;case g.l:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,n?-1:1);break;case g.o:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case g.c:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case g.g:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case g.d:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case g.k:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-10:-1);break;case g.j:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?10:1);break;case g.e:case g.m:this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:t});break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let t=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(e=>e.map(e=>this._createCellForMonth(e,t[e]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(t){return t&&this._dateAdapter.getYear(t)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(t):null}_createCellForMonth(t,e){const n=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1),i=this._dateAdapter.format(n,this._dateFormats.display.monthYearA11yLabel),r=this.dateClass?this.dateClass(n,"year"):void 0;return new V(t,e.toLocaleUpperCase(),i,this._shouldEnableMonth(t),r)}_shouldEnableMonth(t){const e=this._dateAdapter.getYear(this.activeDate);if(null==t||this._isYearAndMonthAfterMaxDate(e,t)||this._isYearAndMonthBeforeMinDate(e,t))return!1;if(!this.dateFilter)return!0;for(let n=this._dateAdapter.createDate(e,t,1);this._dateAdapter.getMonth(n)==t;n=this._dateAdapter.addCalendarDays(n,1))if(this.dateFilter(n))return!0;return!1}_isYearAndMonthAfterMaxDate(t,e){if(this.maxDate){const n=this._dateAdapter.getYear(this.maxDate),i=this._dateAdapter.getMonth(this.maxDate);return t>n||t===n&&e>i}return!1}_isYearAndMonthBeforeMinDate(t,e){if(this.minDate){const n=this._dateAdapter.getYear(this.minDate),i=this._dateAdapter.getMonth(this.minDate);return t{class t{constructor(t,e,n,i,r){this._intl=t,this.calendar=e,this._dateAdapter=n,this._dateFormats=i,this.calendar.stateChanges.subscribe(()=>r.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const t=this._dateAdapter.getYear(this.calendar.activeDate)-nt(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),e=t+24-1,n=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1)),i=this._dateAdapter.getYearName(this._dateAdapter.createDate(e,0,1));return this._intl.formatYearRange(n,i)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(t,e){return"month"==this.calendar.currentView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(e)&&this._dateAdapter.getMonth(t)==this._dateAdapter.getMonth(e):"year"==this.calendar.currentView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(e):et(this._dateAdapter,t,e,this.calendar.minDate,this.calendar.maxDate)}}return t.\u0275fac=function(e){return new(e||t)(a.Ob(z),a.Ob(Object(a.V)(()=>ot)),a.Ob(h.c,8),a.Ob(h.e,8),a.Ob(a.h))},t.\u0275cmp=a.Ib({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:M,decls:9,vars:8,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","cdkAriaLive","polite",1,"mat-calendar-period-button",3,"click"],[1,"mat-calendar-arrow"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(t,e){1&t&&(a.lc(),a.Ub(0,"div",0),a.Ub(1,"div",1),a.Ub(2,"button",2),a.bc("click",(function(){return e.currentPeriodClicked()})),a.Qc(3),a.Pb(4,"div",3),a.Tb(),a.Pb(5,"div",4),a.kc(6),a.Ub(7,"button",5),a.bc("click",(function(){return e.previousClicked()})),a.Tb(),a.Ub(8,"button",6),a.bc("click",(function(){return e.nextClicked()})),a.Tb(),a.Tb(),a.Tb()),2&t&&(a.Cb(2),a.Db("aria-label",e.periodButtonLabel),a.Cb(1),a.Sc(" ",e.periodButtonText," "),a.Cb(1),a.Gb("mat-calendar-invert","month"!=e.calendar.currentView),a.Cb(3),a.mc("disabled",!e.previousEnabled()),a.Db("aria-label",e.prevButtonLabel),a.Cb(1),a.mc("disabled",!e.nextEnabled()),a.Db("aria-label",e.nextButtonLabel))},directives:[c.b,i.d],encapsulation:2,changeDetection:0}),t})(),ot=(()=>{class t{constructor(t,e,n,i){this._dateAdapter=e,this._dateFormats=n,this._changeDetectorRef=i,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new a.o,this.yearSelected=new a.o,this.monthSelected=new a.o,this._userSelection=new a.o,this.stateChanges=new d.b,this._intlChanges=t.changes.subscribe(()=>{i.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get selected(){return this._selected}set selected(t){this._selected=t instanceof G?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get activeDate(){return this._clampedActiveDate}set activeDate(t){this._clampedActiveDate=this._dateAdapter.clampDate(t,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(t){this._currentView=t,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck()}ngAfterContentInit(){this._calendarHeaderPortal=new s.d(this.headerComponent||st),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(t){const e=t.minDate||t.maxDate||t.dateFilter;if(e&&!e.firstChange){const t=this._getCurrentViewComponent();t&&(this._changeDetectorRef.detectChanges(),t._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){const t=this.currentView;let e;e="month"===t?this.monthView:"year"===t?this.yearView:this.multiYearView,e._init()}_dateSelected(t){const e=t.value;(this.selected instanceof G||e&&!this._dateAdapter.sameDate(e,this.selected))&&this.selectedChange.emit(e),this._userSelection.emit(t)}_yearSelectedInMultiYearView(t){this.yearSelected.emit(t)}_monthSelectedInYearView(t){this.monthSelected.emit(t)}_goToDateInView(t,e){this.activeDate=t,this.currentView=e}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return t.\u0275fac=function(e){return new(e||t)(a.Ob(z),a.Ob(h.c,8),a.Ob(h.e,8),a.Ob(a.h))},t.\u0275cmp=a.Ib({type:t,selectors:[["mat-calendar"]],viewQuery:function(t,e){var n;1&t&&(a.Wc(J,!0),a.Wc(rt,!0),a.Wc(tt,!0)),2&t&&(a.zc(n=a.cc())&&(e.monthView=n.first),a.zc(n=a.cc())&&(e.yearView=n.first),a.zc(n=a.cc())&&(e.multiYearView=n.first))},hostAttrs:[1,"mat-calendar"],inputs:{startView:"startView",startAt:"startAt",selected:"selected",minDate:"minDate",maxDate:"maxDate",headerComponent:"headerComponent",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[a.Bb([Z]),a.Ab],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(t,e){1&t&&(a.Oc(0,D,0,0,"ng-template",0),a.Ub(1,"div",1),a.Oc(2,R,1,8,"mat-month-view",2),a.Oc(3,j,1,6,"mat-year-view",3),a.Oc(4,L,1,6,"mat-multi-year-view",4),a.Tb()),2&t&&(a.mc("cdkPortalOutlet",e._calendarHeaderPortal),a.Cb(1),a.mc("ngSwitch",e.currentView),a.Cb(1),a.mc("ngSwitchCase","month"),a.Cb(1),a.mc("ngSwitchCase","year"),a.Cb(1),a.mc("ngSwitchCase","multi-year"))},directives:[s.c,i.e,o.p,o.q,J,rt,tt],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(33% / 7 - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top-width:5px;border-top-style:solid;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}\n'],encapsulation:2,changeDetection:0}),t})();const at={transformPanel:Object(C.n)("transformPanel",[Object(C.k)("void",Object(C.l)({opacity:0,transform:"scale(1, 0.8)"})),Object(C.m)("void => enter",Object(C.e)("120ms cubic-bezier(0, 0, 0.2, 1)",Object(C.l)({opacity:1,transform:"scale(1, 1)"}))),Object(C.m)("* => void",Object(C.e)("100ms linear",Object(C.l)({opacity:0})))]),fadeInCalendar:Object(C.n)("fadeInCalendar",[Object(C.k)("void",Object(C.l)({opacity:0})),Object(C.k)("enter",Object(C.l)({opacity:1})),Object(C.m)("void => *",Object(C.e)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let ct=0;const lt=new a.s("mat-datepicker-scroll-strategy"),ut={provide:lt,deps:[r.c],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class ht{constructor(t){this._elementRef=t}}const dt=Object(h.w)(ht);let pt=(()=>{class t extends dt{constructor(t,e,n,i,r){super(t),this._changeDetectorRef=e,this._model=n,this._dateAdapter=i,this._rangeSelectionStrategy=r,this._subscriptions=new p.a,this._animationState="enter",this._animationDone=new d.b}ngAfterViewInit(){this._changeDetectorRef&&this._subscriptions.add(this.datepicker._stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(t){if(this._model&&this._dateAdapter){const e=this._model.selection,n=t.value,i=e instanceof G;if(i&&this._rangeSelectionStrategy){const i=this._rangeSelectionStrategy.selectionFinished(n,e,t.event);this._model.updateSelection(i,this)}else!n||!i&&this._dateAdapter.sameDate(n,e)||this._model.add(n)}this._model&&!this._model.isComplete()||this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef&&this._changeDetectorRef.markForCheck()}_getSelected(){return this._model?this._model.selection:null}}return t.\u0275fac=function(e){return new(e||t)(a.Ob(a.l),a.Ob(a.h),a.Ob(Y),a.Ob(h.c),a.Ob(X,8))},t.\u0275cmp=a.Ib({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(t,e){var n;1&t&&a.Wc(ot,!0),2&t&&a.zc(n=a.cc())&&(e._calendar=n.first)},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(t,e){1&t&&a.Mc("@transformPanel.done",(function(){return e._animationDone.next()})),2&t&&(a.Nc("@transformPanel",e._animationState),a.Gb("mat-datepicker-content-touch",e.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[a.zb],decls:1,vars:13,consts:[["cdkTrapFocus","",3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","_userSelection"]],template:function(t,e){1&t&&(a.Ub(0,"mat-calendar",0),a.bc("yearSelected",(function(t){return e.datepicker._selectYear(t)}))("monthSelected",(function(t){return e.datepicker._selectMonth(t)}))("_userSelection",(function(t){return e._handleUserSelection(t)})),a.Tb()),2&t&&a.mc("id",e.datepicker.id)("ngClass",e.datepicker.panelClass)("startAt",e.datepicker.startAt)("startView",e.datepicker.startView)("minDate",e.datepicker._getMinDate())("maxDate",e.datepicker._getMaxDate())("dateFilter",e.datepicker._getDateFilter())("headerComponent",e.datepicker.calendarHeaderComponent)("selected",e._getSelected())("dateClass",e.datepicker.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("@fadeInCalendar","enter")},directives:[ot,i.f,o.l],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content-touch{display:block;max-height:80vh;overflow:auto;margin:-24px}.mat-datepicker-content-touch .mat-calendar{min-width:250px;min-height:312px;max-width:750px;max-height:788px}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-calendar{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-calendar{width:80vw;height:100vw}}\n"],encapsulation:2,data:{animation:[at.transformPanel,at.fadeInCalendar]},changeDetection:0}),t})(),ft=(()=>{class t{constructor(t,e,n,i,r,s,o,c,l){this._dialog=t,this._overlay=e,this._ngZone=n,this._viewContainerRef=i,this._dateAdapter=s,this._dir=o,this._document=c,this._model=l,this._inputStateChanges=p.a.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this.yearSelected=new a.o,this.monthSelected=new a.o,this.openedStream=new a.o,this.closedStream=new a.o,this._opened=!1,this.id="mat-datepicker-"+ct++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=this.id+"-backdrop",this._stateChanges=new d.b,this._scrollStrategy=r}get startAt(){return this._startAt||(this._datepickerInput?this._datepickerInput.getStartValue():null)}set startAt(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get color(){return this._color||(this._datepickerInput?this._datepickerInput.getThemePalette():void 0)}set color(t){this._color=t}get touchUi(){return this._touchUi}set touchUi(t){this._touchUi=Object(O.c)(t)}get disabled(){return void 0===this._disabled&&this._datepickerInput?this._datepickerInput.disabled:!!this._disabled}set disabled(t){const e=Object(O.c)(t);e!==this._disabled&&(this._disabled=e,this._stateChanges.next(void 0))}get opened(){return this._opened}set opened(t){Object(O.c)(t)?this.open():this.close()}_getMinDate(){return this._datepickerInput&&this._datepickerInput.min}_getMaxDate(){return this._datepickerInput&&this._datepickerInput.max}_getDateFilter(){return this._datepickerInput&&this._datepickerInput.dateFilter}ngOnChanges(t){const e=t.xPosition||t.yPosition;e&&!e.firstChange&&this._popupRef&&(this._setConnectedPositions(this._popupRef.getConfig().positionStrategy),this.opened&&this._popupRef.updatePosition()),this._stateChanges.next(void 0)}ngOnDestroy(){this._destroyPopup(),this.close(),this._inputStateChanges.unsubscribe(),this._stateChanges.complete()}select(t){this._model.add(t)}_selectYear(t){this.yearSelected.emit(t)}_selectMonth(t){this.monthSelected.emit(t)}_registerInput(t){return this._inputStateChanges.unsubscribe(),this._datepickerInput=t,this._inputStateChanges=t._stateChanges.subscribe(()=>this._stateChanges.next(void 0)),this._model}open(){this._opened||this.disabled||(this._document&&(this._focusedElementBeforeOpen=this._document.activeElement),this.touchUi?this._openAsDialog():this._openAsPopup(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;if(this._popupComponentRef&&this._popupRef){const t=this._popupComponentRef.instance;t._startExitAnimation(),t._animationDone.pipe(Object(v.a)(1)).subscribe(()=>this._destroyPopup())}this._dialogRef&&(this._dialogRef.close(),this._dialogRef=null);const t=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(t)):t()}_openAsDialog(){this._dialogRef&&this._dialogRef.close(),this._dialogRef=this._dialog.open(pt,{direction:this._dir?this._dir.value:"ltr",viewContainerRef:this._viewContainerRef,panelClass:"mat-datepicker-dialog",hasBackdrop:!0,disableClose:!1,backdropClass:["cdk-overlay-dark-backdrop",this._backdropHarnessClass],width:"",height:"",minWidth:"",minHeight:"",maxWidth:"80vw",maxHeight:"",position:{},autoFocus:!0,restoreFocus:!1}),this._dialogRef.afterClosed().subscribe(()=>this.close()),this._forwardContentValues(this._dialogRef.componentInstance)}_openAsPopup(){const t=new s.d(pt,this._viewContainerRef);this._destroyPopup(),this._createPopup(),this._popupComponentRef=this._popupRef.attach(t),this._forwardContentValues(this._popupComponentRef.instance),this._ngZone.onStable.pipe(Object(v.a)(1)).subscribe(()=>{this._popupRef.updatePosition()})}_forwardContentValues(t){t.datepicker=this,t.color=this.color}_createPopup(){const t=this._overlay.position().flexibleConnectedTo(this._datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition(),e=new r.d({positionStrategy:this._setConnectedPositions(t),hasBackdrop:!0,backdropClass:["mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:this._scrollStrategy(),panelClass:"mat-datepicker-popup"});this._popupRef=this._overlay.create(e),this._popupRef.overlayElement.setAttribute("role","dialog"),Object(f.a)(this._popupRef.backdropClick(),this._popupRef.detachments(),this._popupRef.keydownEvents().pipe(Object(y.a)(t=>t.keyCode===g.f||this._datepickerInput&&t.altKey&&t.keyCode===g.o))).subscribe(t=>{t&&t.preventDefault(),this.close()})}_destroyPopup(){this._popupRef&&(this._popupRef.dispose(),this._popupRef=this._popupComponentRef=null)}_setConnectedPositions(t){const e="end"===this.xPosition?"end":"start",n="start"===e?"end":"start",i="above"===this.yPosition?"bottom":"top",r="top"===i?"bottom":"top";return t.withPositions([{originX:e,originY:r,overlayX:e,overlayY:i},{originX:e,originY:i,overlayX:e,overlayY:r},{originX:n,originY:r,overlayX:n,overlayY:i},{originX:n,originY:i,overlayX:n,overlayY:r}])}}return t.\u0275fac=function(e){return new(e||t)(a.Ob(l.b),a.Ob(r.c),a.Ob(a.B),a.Ob(a.R),a.Ob(lt),a.Ob(h.c,8),a.Ob(m.b,8),a.Ob(o.d,8),a.Ob(Y))},t.\u0275dir=a.Jb({type:t,inputs:{startView:"startView",xPosition:"xPosition",yPosition:"yPosition",startAt:"startAt",color:"color",touchUi:"touchUi",disabled:"disabled",opened:"opened",calendarHeaderComponent:"calendarHeaderComponent",panelClass:"panelClass",dateClass:"dateClass"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",openedStream:"opened",closedStream:"closed"},features:[a.Ab]}),t})(),bt=(()=>{class t extends ft{}return t.\u0275fac=function(e){return gt(e||t)},t.\u0275cmp=a.Ib({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[a.Bb([Z]),a.zb],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),t})();const gt=a.Wb(bt);class mt{constructor(t,e){this.target=t,this.targetElement=e,this.value=this.target.value}}let vt=(()=>{class t{constructor(t,e,n){this._elementRef=t,this._dateAdapter=e,this._dateFormats=n,this.dateChange=new a.o,this.dateInput=new a.o,this._valueChange=new a.o,this._stateChanges=new d.b,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=p.a.EMPTY,this._localeSubscription=p.a.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=t=>{const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t.value)),n=this._getDateFilter();return n&&e&&!n(e)?{matDatepickerFilter:!0}:null},this._minValidator=t=>{const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t.value)),n=this._getMinDate();return!n||!e||this._dateAdapter.compareDate(n,e)<=0?null:{matDatepickerMin:{min:n,actual:e}}},this._maxValidator=t=>{const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t.value)),n=this._getMaxDate();return!n||!e||this._dateAdapter.compareDate(n,e)>=0?null:{matDatepickerMax:{max:n,actual:e}}},this._lastValueValid=!1,this._localeSubscription=e.localeChanges.subscribe(()=>{this.value=this.value})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(t){t=this._dateAdapter.deserialize(t),this._lastValueValid=this._isValidValue(t),t=this._dateAdapter.getValidDateOrNull(t);const e=this.value;this._assignValue(t),this._formatValue(t),this._dateAdapter.sameDate(e,t)||this._valueChange.emit(t)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(t){const e=Object(O.c)(t),n=this._elementRef.nativeElement;this._disabled!==e&&(this._disabled=e,this._stateChanges.next(void 0)),e&&this._isInitialized&&n.blur&&n.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(t){this._model=t,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(t=>{if(t.source!==this){const e=this._getValueFromModel(t.selection);this._lastValueValid=this._isValidValue(e),this._cvaOnChange(e),this._onTouched(),this._formatValue(e),this._canEmitChangeEvent(t)&&(this.dateInput.emit(new mt(this,this._elementRef.nativeElement)),this.dateChange.emit(new mt(this,this._elementRef.nativeElement))),this._outsideValueChanged&&this._outsideValueChanged()}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(){this._stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this._valueChange.complete(),this._stateChanges.complete()}registerOnValidatorChange(t){this._validatorOnChange=t}validate(t){return this._validator?this._validator(t):null}writeValue(t){this.value=t}registerOnChange(t){this._cvaOnChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_onKeydown(t){t.altKey&&t.keyCode===g.c&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),t.preventDefault())}_onInput(t){const e=this._lastValueValid;let n=this._dateAdapter.parse(t,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(n),n=this._dateAdapter.getValidDateOrNull(n),this._dateAdapter.sameDate(n,this.value)?(t&&!this.value&&this._cvaOnChange(n),e!==this._lastValueValid&&this._validatorOnChange()):(this._assignValue(n),this._cvaOnChange(n),this._valueChange.emit(n),this.dateInput.emit(new mt(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new mt(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(t){this._elementRef.nativeElement.value=t?this._dateAdapter.format(t,this._dateFormats.display.dateInput):""}_assignValue(t){this._model?(this._assignValueToModel(t),this._pendingValue=null):this._pendingValue=t}_isValidValue(t){return!t||this._dateAdapter.isValid(t)}_parentDisabled(){return!1}}return t.\u0275fac=function(e){return new(e||t)(a.Ob(a.l),a.Ob(h.c,8),a.Ob(h.e,8))},t.\u0275dir=a.Jb({type:t,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[a.Ab]}),t})();const _t={provide:w.m,useExisting:Object(a.V)(()=>Ot),multi:!0},yt={provide:w.l,useExisting:Object(a.V)(()=>Ot),multi:!0};let Ot=(()=>{class t extends vt{constructor(t,e,n,i){super(t,e,n),this._formField=i,this._validator=w.x.compose(super._getValidators())}set matDatepicker(t){t&&(this._datepicker=t,this._registerModel(t._registerInput(this)))}get min(){return this._min}set min(t){this._min=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._validatorOnChange()}get max(){return this._max}set max(t){this._max=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._validatorOnChange()}get dateFilter(){return this._dateFilter}set dateFilter(t){this._dateFilter=t,this._validatorOnChange()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}getPopupConnectionElementRef(){return this.getConnectedOverlayOrigin()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(t){return t}_assignValueToModel(t){this._model&&this._model.updateSelection(t,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_canEmitChangeEvent(){return!0}}return t.\u0275fac=function(e){return new(e||t)(a.Ob(a.l),a.Ob(h.c,8),a.Ob(h.e,8),a.Ob(T.a,8))},t.\u0275dir=a.Jb({type:t,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(t,e){1&t&&a.bc("input",(function(t){return e._onInput(t.target.value)}))("change",(function(){return e._onChange()}))("blur",(function(){return e._onBlur()}))("keydown",(function(t){return e._onKeydown(t)})),2&t&&(a.Xb("disabled",e.disabled),a.Db("aria-haspopup",e._datepicker?"dialog":null)("aria-owns",(null==e._datepicker?null:e._datepicker.opened)&&e._datepicker.id||null)("min",e.min?e._dateAdapter.toIso8601(e.min):null)("max",e.max?e._dateAdapter.toIso8601(e.max):null)("data-mat-calendar",e._datepicker?e._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[a.Bb([_t,yt,{provide:S.a,useExisting:t}]),a.zb]}),t})(),Ct=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=a.Jb({type:t,selectors:[["","matDatepickerToggleIcon",""]]}),t})(),wt=(()=>{class t{constructor(t,e,n){this._intl=t,this._changeDetectorRef=e,this._stateChanges=p.a.EMPTY;const i=Number(n);this.tabIndex=i||0===i?i:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(t){this._disabled=Object(O.c)(t)}ngOnChanges(t){t.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(t){this.datepicker&&!this.disabled&&(this.datepicker.open(),t.stopPropagation())}_watchStateChanges(){const t=this.datepicker?this.datepicker._stateChanges:Object(b.a)(),e=this.datepicker&&this.datepicker._datepickerInput?this.datepicker._datepickerInput._stateChanges:Object(b.a)(),n=this.datepicker?Object(f.a)(this.datepicker.openedStream,this.datepicker.closedStream):Object(b.a)();this._stateChanges.unsubscribe(),this._stateChanges=Object(f.a)(this._intl.changes,t,e,n).subscribe(()=>this._changeDetectorRef.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(a.Ob(z),a.Ob(a.h),a.Zb("tabindex"))},t.\u0275cmp=a.Ib({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(t,e,n){var i;1&t&&a.Hb(n,Ct,!0),2&t&&a.zc(i=a.cc())&&(e._customIcon=i.first)},viewQuery:function(t,e){var n;1&t&&a.Wc(N,!0),2&t&&a.zc(n=a.cc())&&(e._button=n.first)},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(t,e){1&t&&a.bc("focus",(function(){return e._button.focus()})),2&t&&(a.Db("tabindex",e.disabled?null:-1)("data-mat-calendar",e.datepicker?e.datepicker.id:null),a.Gb("mat-datepicker-toggle-active",e.datepicker&&e.datepicker.opened)("mat-accent",e.datepicker&&"accent"===e.datepicker.color)("mat-warn",e.datepicker&&"warn"===e.datepicker.color))},inputs:{tabIndex:"tabIndex",disabled:"disabled",datepicker:["for","datepicker"],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[a.Ab],ngContentSelectors:B,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple","click"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(t,e){1&t&&(a.lc(F),a.Ub(0,"button",0,1),a.bc("click",(function(t){return e._open(t)})),a.Oc(2,U,2,0,"svg",2),a.kc(3),a.Tb()),2&t&&(a.mc("disabled",e.disabled)("disableRipple",e.disableRipple),a.Db("aria-haspopup",e.datepicker?"dialog":null)("aria-label",e._intl.openCalendarLabel)("tabindex",e.disabled?-1:e.tabIndex),a.Cb(2),a.mc("ngIf",!e._customIcon))},directives:[c.b,o.n],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),t})(),Tt=(()=>{class t{}return t.\u0275mod=a.Mb({type:t}),t.\u0275inj=a.Lb({factory:function(e){return new(e||t)},providers:[z,ut],imports:[[o.c,c.c,l.c,r.f,i.a,s.g],u.c]}),t})()},"87BI":function(t,e,n){"use strict";n.r(e),n.d(e,"FiatDepositDetailsComponent",(function(){return O}));var i=n("zqNl"),r=n("J/3c"),s=n("lE9u"),o=n("kZht"),a=n("rfPA"),c=n("bBQR"),l=n("An66"),u=n("yPvj"),h=n("anSm"),d=n("aDqW"),p=n("1eaT"),f=n("scAs"),b=n("B6Vo"),g=n("YC1o"),m=n("NxuZ"),v=n("7J2L");function _(t,e){if(1&t&&(o.Sb(0),o.Ub(1,"section"),o.Ub(2,"div",3),o.Pb(3,"market-icon",4),o.Ub(4,"p",5),o.Qc(5,"DIALOG.FIAT_DEPOSIT.DESCRIPTION"),o.Tb(),o.Tb(),o.Ub(6,"nutritional-info"),o.Ub(7,"span"),o.Qc(8),o.gc(9,"translate"),o.Tb(),o.Ub(10,"span"),o.Qc(11),o.Tb(),o.Tb(),o.Ub(12,"nutritional-info"),o.Ub(13,"span"),o.Qc(14),o.gc(15,"translate"),o.Tb(),o.Ub(16,"span"),o.Qc(17),o.Tb(),o.Tb(),o.Ub(18,"nutritional-info"),o.Ub(19,"span"),o.Qc(20),o.gc(21,"translate"),o.Tb(),o.Ub(22,"span"),o.Qc(23),o.Tb(),o.Tb(),o.Ub(24,"nutritional-info"),o.Ub(25,"span"),o.Qc(26),o.gc(27,"translate"),o.Tb(),o.Ub(28,"span"),o.Qc(29),o.Tb(),o.Tb(),o.Ub(30,"nutritional-info"),o.Ub(31,"span"),o.Qc(32),o.gc(33,"translate"),o.Tb(),o.Ub(34,"span"),o.Qc(35),o.Tb(),o.Tb(),o.Ub(36,"nutritional-info"),o.Ub(37,"span"),o.Qc(38),o.gc(39,"translate"),o.Tb(),o.Ub(40,"span"),o.Qc(41),o.Tb(),o.Tb(),o.Ub(42,"nutritional-info"),o.Ub(43,"span"),o.Qc(44),o.gc(45,"translate"),o.Tb(),o.Ub(46,"span"),o.Qc(47),o.Tb(),o.Tb(),o.Ub(48,"nutritional-info"),o.Ub(49,"span"),o.Qc(50),o.gc(51,"translate"),o.Tb(),o.Ub(52,"span",6),o.Pb(53,"fa-icon",7),o.Qc(54),o.Tb(),o.Tb(),o.Ub(55,"p",8),o.Pb(56,"fa-icon",9),o.Qc(57),o.gc(58,"translate"),o.Tb(),o.Tb(),o.Rb()),2&t){const t=e.ngIf;o.Cb(3),o.mc("base","eur"),o.Cb(5),o.Rc(o.hc(9,19,"LABEL.BENEFICIARY_NAME")),o.Cb(3),o.Sc(" ",t.beneficiaryName," "),o.Cb(3),o.Rc(o.hc(15,21,"LABEL.ACCOUNT_NUMBER")),o.Cb(3),o.Sc(" ",t.accountNumber," "),o.Cb(3),o.Rc(o.hc(21,23,"LABEL.SORT_CODE")),o.Cb(3),o.Sc(" ",t.sortCode," "),o.Cb(3),o.Rc(o.hc(27,25,"LABEL.IBAN")),o.Cb(3),o.Sc(" ",t.iban," "),o.Cb(3),o.Rc(o.hc(33,27,"LABEL.BIC_SWIFT")),o.Cb(3),o.Sc(" ",t.bicSwift," "),o.Cb(3),o.Rc(o.hc(39,29,"LABEL.ADDRESS")),o.Cb(3),o.Sc(" ",t.address," "),o.Cb(3),o.Rc(o.hc(45,31,"LABEL.CURRENCY_UNIT")),o.Cb(3),o.Sc(" ",t.currencyUnit," "),o.Cb(3),o.Rc(o.hc(51,33,"LABEL.DEPOSIT_REF")),o.Cb(2),o.mc("clipboard",t.depositReference),o.Cb(2),o.Sc(" ",t.depositReference," "),o.Cb(3),o.Sc(" ",o.hc(58,35,"DIALOG.FIAT_DEPOSIT.REFERENCE_WARNING")," ")}}function y(t,e){1&t&&o.Pb(0,"kraken-loading")}let O=(()=>{class t{constructor(t){this.store=t,this.fiatDepositAddress$=this.store.pipe(Object(i.m)(r.c))}ngOnInit(){this.store.dispatch(Object(s.k)())}}return t.\u0275fac=function(e){return new(e||t)(o.Ob(i.b))},t.\u0275cmp=o.Ib({type:t,selectors:[["fiat-deposit-details"]],decls:5,vars:4,consts:[["heading","HEADING.DEPOSIT_DETAILS"],[4,"ngIf","ngIfElse"],["loading",""],[1,"header"],[3,"base"],["body","","translate",""],["bold","","sbTooltip","TOOLTIP.COPY_REFERENCE",1,"global__text--accent","copy-ref",3,"clipboard"],["icon","copy","size","lg"],["body","",1,"global__text--warn"],["icon","warning","size","2x",1,"warning-ref"]],template:function(t,e){if(1&t&&(o.Ub(0,"pro-dialog",0),o.Oc(1,_,59,37,"ng-container",1),o.gc(2,"async"),o.Tb(),o.Oc(3,y,1,0,"ng-template",null,2,o.Pc)),2&t){const t=o.Ac(4);o.Cb(1),o.mc("ngIf",o.hc(2,2,e.fiatDepositAddress$))("ngIfElse",t)}},directives:[a.a,c.a,l.n,u.a,h.a,d.a,p.a,f.a,b.a,g.a,m.b,v.a],pipes:[l.b,d.d],styles:[".header[_ngcontent-%COMP%]{text-align:center;margin-bottom:var(--spacing)}.header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:var(--spacing-l) 0}.header[_ngcontent-%COMP%] market-icon[_ngcontent-%COMP%]{font-size:3em}.warning-ref[_ngcontent-%COMP%]{margin-right:var(--spacing-s);vertical-align:middle}.copy-ref[_ngcontent-%COMP%]{cursor:pointer}"],changeDetection:0}),t})()},"8AhB":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("q+cW"),r=n("vI0g"),s=n("oCyE"),o=n("pAln"),a=n("Rby2"),c=n("mQN4"),l=n("wjKt"),u=n("sPys");e.default=function(){function t(){this.rsDecoder=new s.default(r.default.QR_CODE_FIELD_256)}return t.prototype.decodeBooleanArray=function(t,e){return this.decodeBitMatrix(i.default.parseFromBooleanArray(t),e)},t.prototype.decodeBitMatrix=function(t,e){var n=new o.default(t),i=null;try{return this.decodeBitMatrixParser(n,e)}catch(s){i=s}try{n.remask(),n.setMirror(!0),n.readVersion(),n.readFormatInformation(),n.mirror();var r=this.decodeBitMatrixParser(n,e);return r.setOther(new a.default(!0)),r}catch(s){if(null!==i)throw i;throw s}},t.prototype.decodeBitMatrixParser=function(t,e){for(var n=t.readVersion(),i=t.readFormatInformation().getErrorCorrectionLevel(),r=t.readCodewords(),s=c.default.getDataBlocks(r,n,i),o=0,a=0,u=s;a{class t{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(t){this._vertical=Object(i.c)(t)}get inset(){return this._inset}set inset(t){this._inset=Object(i.c)(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Ib({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(t,e){2&t&&(s.Db("aria-orientation",e.vertical?"vertical":"horizontal"),s.Gb("mat-divider-vertical",e.vertical)("mat-divider-horizontal",!e.vertical)("mat-divider-inset",e.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(t,e){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),t})(),a=(()=>{class t{}return t.\u0275mod=s.Mb({type:t}),t.\u0275inj=s.Lb({factory:function(e){return new(e||t)},imports:[[r.j],r.j]}),t})()},"8j5Y":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("5uGe"),r=n("kgbq"),s=n("IJgj");function o(t,e,n){return function(i){return i.lift(new a(t,e,n))}}class a{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new c(t,this.nextOrObserver,this.error,this.complete))}}class c extends i.a{constructor(t,e,n,i){super(t),this._tapNext=r.a,this._tapError=r.a,this._tapComplete=r.a,this._tapError=n||r.a,this._tapComplete=i||r.a,Object(s.a)(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||r.a,this._tapError=e.error||r.a,this._tapComplete=e.complete||r.a)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}},"8lHc":function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("IdLP"),r=n("Efrr"),s=n("KRZI"),o=n("gBlb");function a(t=0,e,n){let a=-1;return Object(s.a)(e)?a=Number(e)<1?1:Number(e):Object(o.a)(e)&&(n=e),Object(o.a)(n)||(n=r.a),new i.a(e=>{const i=Object(s.a)(t)?t:+t-n.now();return n.schedule(c,i,{index:0,period:a,subscriber:e})})}function c(t){const{index:e,period:n,subscriber:i}=t;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}},"8spT":function(t,e,n){"use strict";n.d(e,"a",(function(){return T})),n.d(e,"b",(function(){return _})),n.d(e,"c",(function(){return S}));var i=n("kZht"),r=n("pTnX"),s=n("jL3B"),o=n("5XID"),a=n("sBeF"),c=n("3kIJ"),l=n("FxgA");const u=["input"],h=function(){return{enterDuration:150}},d=["*"],p=new i.s("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent"}}});let f=0;const b={provide:c.m,useExisting:Object(i.V)(()=>_),multi:!0};class g{constructor(t,e){this.source=t,this.value=e}}const m=new i.s("MatRadioGroup");let v=(()=>{class t{constructor(t){this._changeDetector=t,this._value=null,this._name="mat-radio-group-"+f++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new i.o}get name(){return this._name}set name(t){this._name=t,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(t){this._labelPosition="before"===t?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(t){this._selected=t,this.value=t?t.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(t){this._disabled=Object(o.c)(t),this._markRadiosForCheck()}get required(){return this._required}set required(t){this._required=Object(o.c)(t),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(t=>{t.name=this.name,t._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(t=>{t.checked=this.value===t.value,t.checked&&(this._selected=t)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new g(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(t=>t._markForCheck())}writeValue(t){this.value=t,this._changeDetector.markForCheck()}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetector.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.h))},t.\u0275dir=i.Jb({type:t,inputs:{name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"}}),t})(),_=(()=>{class t extends v{}return t.\u0275fac=function(e){return y(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["mat-radio-group"]],contentQueries:function(t,e,n){var r;1&t&&i.Hb(n,T,!0),2&t&&i.zc(r=i.cc())&&(e._radios=r)},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[i.Bb([b,{provide:m,useExisting:t}]),i.zb]}),t})();const y=i.Wb(_);class O{constructor(t){this._elementRef=t}}const C=Object(r.x)(Object(r.B)(O));let w=(()=>{class t extends C{constructor(t,e,n,r,s,o,a){super(e),this._changeDetector=n,this._focusMonitor=r,this._radioDispatcher=s,this._animationMode=o,this._providerOverride=a,this._uniqueId="mat-radio-"+ ++f,this.id=this._uniqueId,this.change=new i.o,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=t,this._removeUniqueSelectionListener=s.listen((t,e)=>{t!==this.id&&e===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(t){const e=Object(o.c)(t);this._checked!==e&&(this._checked=e,e&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!e&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),e&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===t),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(t){this._labelPosition=t}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(t){this._setDisabled(Object(o.c)(t))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(t){this._required=Object(o.c)(t)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(t){this._color=t}get inputId(){return(this.id||this._uniqueId)+"-input"}focus(t){this._focusMonitor.focusVia(this._inputElement,"keyboard",t)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.name=this.radioGroup.name)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{!t&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new g(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(t){t.stopPropagation()}_onInputChange(t){t.stopPropagation();const e=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),e&&this.radioGroup._emitChangeEvent())}_setDisabled(t){this._disabled!==t&&(this._disabled=t,this._changeDetector.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(v),i.Ob(i.l),i.Ob(i.h),i.Ob(s.h),i.Ob(a.d),i.Ob(String),i.Ob(void 0))},t.\u0275dir=i.Jb({type:t,viewQuery:function(t,e){var n;1&t&&i.Wc(u,!0),2&t&&i.zc(n=i.cc())&&(e._inputElement=n.first)},inputs:{id:"id",checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{change:"change"},features:[i.zb]}),t})(),T=(()=>{class t extends w{constructor(t,e,n,i,r,s,o){super(t,e,n,i,r,s,o)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(m,8),i.Ob(i.l),i.Ob(i.h),i.Ob(s.h),i.Ob(a.d),i.Ob(l.a,8),i.Ob(p,8))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(t,e){1&t&&i.bc("focus",(function(){return e._inputElement.nativeElement.focus()})),2&t&&(i.Db("tabindex",-1)("id",e.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),i.Gb("mat-radio-checked",e.checked)("mat-radio-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-primary","primary"===e.color)("mat-accent","accent"===e.color)("mat-warn","warn"===e.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[i.zb],ngContentSelectors:d,decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(t,e){if(1&t&&(i.lc(),i.Ub(0,"label",0,1),i.Ub(2,"div",2),i.Pb(3,"div",3),i.Pb(4,"div",4),i.Ub(5,"input",5,6),i.bc("change",(function(t){return e._onInputChange(t)}))("click",(function(t){return e._onInputClick(t)})),i.Tb(),i.Ub(7,"div",7),i.Pb(8,"div",8),i.Tb(),i.Tb(),i.Ub(9,"div",9),i.Ub(10,"span",10),i.Qc(11,"\xa0"),i.Tb(),i.kc(12),i.Tb(),i.Tb()),2&t){const t=i.Ac(1);i.Db("for",e.inputId),i.Cb(5),i.mc("id",e.inputId)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex)("required",e.required),i.Db("name",e.name)("value",e.value)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby)("aria-describedby",e.ariaDescribedby),i.Cb(2),i.mc("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",i.qc(18,h)),i.Cb(2),i.Gb("mat-radio-label-before","before"==e.labelPosition)}},directives:[r.r],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;height:20px;left:0;position:absolute;top:0;transition:transform ease 280ms,background-color ease 280ms;width:20px;transform:scale(0.001)}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5)}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),t})(),S=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},imports:[[r.s,r.j],r.j]}),t})()},"8vcT":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t[t.ERROR_CORRECTION=0]="ERROR_CORRECTION",t[t.CHARACTER_SET=1]="CHARACTER_SET",t[t.DATA_MATRIX_SHAPE=2]="DATA_MATRIX_SHAPE",t[t.MIN_SIZE=3]="MIN_SIZE",t[t.MAX_SIZE=4]="MAX_SIZE",t[t.MARGIN=5]="MARGIN",t[t.PDF417_COMPACT=6]="PDF417_COMPACT",t[t.PDF417_COMPACTION=7]="PDF417_COMPACTION",t[t.PDF417_DIMENSIONS=8]="PDF417_DIMENSIONS",t[t.AZTEC_LAYERS=9]="AZTEC_LAYERS",t[t.QR_VERSION=10]="QR_VERSION",t}({})},"94ty":function(t,e,n){"use strict";n.d(e,"u",(function(){return r})),n.d(e,"a",(function(){return s})),n.d(e,"f",(function(){return o})),n.d(e,"C",(function(){return a})),n.d(e,"D",(function(){return c})),n.d(e,"l",(function(){return l})),n.d(e,"B",(function(){return u})),n.d(e,"t",(function(){return h})),n.d(e,"i",(function(){return d})),n.d(e,"d",(function(){return p})),n.d(e,"c",(function(){return f})),n.d(e,"b",(function(){return b})),n.d(e,"j",(function(){return g})),n.d(e,"n",(function(){return m})),n.d(e,"y",(function(){return v})),n.d(e,"m",(function(){return _})),n.d(e,"p",(function(){return y})),n.d(e,"k",(function(){return O})),n.d(e,"r",(function(){return C})),n.d(e,"o",(function(){return w})),n.d(e,"e",(function(){return T})),n.d(e,"w",(function(){return S})),n.d(e,"x",(function(){return k})),n.d(e,"A",(function(){return E})),n.d(e,"z",(function(){return x})),n.d(e,"s",(function(){return P})),n.d(e,"v",(function(){return A})),n.d(e,"h",(function(){return I})),n.d(e,"g",(function(){return M})),n.d(e,"q",(function(){return D}));var i=n("zqNl");const r=Object(i.g)("Reset Auth State"),s="Sign In",o=Object(i.g)("Check Session",Object(i.l)()),a=Object(i.g)("Sign Up",Object(i.l)()),c=Object(i.g)("Signed In"),l=Object(i.g)("Demo Sign In",Object(i.l)()),u=Object(i.g)("Sign Out",Object(i.l)()),h=Object(i.g)("Request Reset Password",Object(i.l)()),d=Object(i.g)("Request Reset Confirm",Object(i.l)()),p=Object(i.g)("Change Password",Object(i.l)()),f=Object(i.g)("Activate User",Object(i.l)()),b=Object(i.g)("Activate TOTP Auth",Object(i.l)()),g=Object(i.g)("Deactivate TOTP Auth",Object(i.l)()),m=Object(i.g)("Get Hardware Auth Devices"),v=Object(i.g)("Set Hardware Auth Devices",Object(i.l)()),_=Object(i.g)("Deregister Hardware Auth Devices",Object(i.l)()),y=Object(i.g)("Get Active Sessions"),O=Object(i.g)("Delete Session",Object(i.l)()),C=Object(i.g)("Replenish Session"),w=Object(i.g)("Fetch Account Default Session Length"),T=Object(i.g)("Change Session Length",Object(i.l)()),S=Object(i.g)("Set Active Sessions",Object(i.l)()),k=Object(i.g)("Set Default Session Length",Object(i.l)()),E=Object(i.g)("Set Mobile QR Code",Object(i.l)()),x=Object(i.g)("Set Mobile Confirmation Code",Object(i.l)()),P=Object(i.g)("Request Mobile Token",Object(i.l)()),A=Object(i.g)("Scan Mobile Token",Object(i.l)()),I=Object(i.g)("Confirm Mobile Session",Object(i.l)()),M=Object(i.g)("Check Status Mobile Token",Object(i.l)()),D=Object(i.g)("Password compromised",Object(i.l)())},"98H0":function(t,e,n){"use strict";n.r(e),n.d(e,"PasswordResetConfirmComponent",(function(){return x}));var i=n("D57K"),r=n("3kIJ"),s=n("mcff"),o=n("gxtV"),a=n("zqNl"),c=n("94ty"),l=n("9Ccw"),u=n("bjK4"),h=n("jIqt"),d=n("Ohay"),p=n("kZht"),f=n("rfPA"),b=n("bBQR"),g=n("afE0"),m=n("An66"),v=n("anSm"),_=n("eGwX"),y=n("TzY9"),O=n("hCLc"),C=n("scAs"),w=n("i9Na"),T=n("UDV5"),S=n("aDqW");function k(t,e){1&t&&(p.Ub(0,"div",9),p.Ub(1,"p",10),p.Qc(2),p.gc(3,"translate"),p.Tb(),p.Ub(4,"p",11),p.Qc(5),p.gc(6,"translate"),p.Tb(),p.Ub(7,"p",12),p.Pb(8,"markdown",13),p.gc(9,"translate"),p.Tb(),p.Tb()),2&t&&(p.Cb(2),p.Sc(" ",p.hc(3,3,"ERROR.PASSWORD_COMPROMISED")," "),p.Cb(3),p.Sc(" ",p.hc(6,5,"SUPPORT.HAVE_I_BEEN_PWNED")," "),p.Cb(3),p.mc("data",p.hc(9,7,"SUPPORT.PWNED_URL")))}function E(t,e){1&t&&(p.Ub(0,"mat-checkbox",14),p.Qc(1),p.gc(2,"translate"),p.Tb()),2&t&&(p.Cb(1),p.Sc(" ",p.hc(2,1,"FORM.USE_COMPROMISED_PASSWORD_CONFIRM")," "))}let x=(()=>{let t=class{constructor(t,e,n){this.inputs=t,this.store=e,this.formBuilder=n,this.isPasswordCompromised=!1,this.loading$=this.store.pipe(Object(a.m)(u.m,{filter:c.i.type})),this.passwordCompromised$=this.store.select(l.h)}ngOnInit(){this.form=this.buildForm(),this.passwordCompromised$.pipe(Object(h.a)(!1),Object(d.a)(),Object(o.b)(this)).subscribe(t=>{var e,n;this.isPasswordCompromised=t,t?null===(n=this.form.get("allowPwnedPassword"))||void 0===n||n.enable():null===(e=this.form.get("allowPwnedPassword"))||void 0===e||e.disable()})}ngOnDestroy(){this.reset()}buildForm(){return this.formBuilder.group({code:[this.inputs.code],password:["",[r.x.required]],otp:[""],allowPwnedPassword:[!1,[r.x.requiredTrue]]})}submitForm(){const t={code:this.form.value.code,newPassword:this.form.value.password,newPasswordVerify:this.form.value.password,allowPwned:this.isPasswordCompromised,totp:this.form.value.otp?this.form.value.otp:void 0};this.store.dispatch(Object(c.i)(t))}updatePassword(t){this.store.dispatch(Object(c.q)({passwordCompromised:!1})),this.form.get("password").setValue(t)}reset(){this.form.reset(),Object.keys(this.form.controls).forEach(t=>this.form.get(t).setErrors(null)),this.store.dispatch(Object(c.q)({passwordCompromised:!1}))}};return t.\u0275fac=function(e){return new(e||t)(p.Ob(s.a),p.Ob(a.b),p.Ob(r.d))},t.\u0275cmp=p.Ib({type:t,selectors:[["password-reset-confirm"]],decls:15,vars:17,consts:[["heading","DIALOG.RESET_PASSWORD.TITLE",3,"loading"],[1,"password-reset"],["icon","shield-full"],["class","warning",4,"ngIf"],["body","",3,"formGroup","ngSubmit"],[3,"passwordUpdate"],[3,"form"],["class","no-border","formControlName","allowPwnedPassword",4,"ngIf"],["mat-raised-button","","color","positive",3,"disabled"],[1,"warning"],["body","","bold","",1,"global__text--warn"],["body","","bold",""],["body",""],[3,"data"],["formControlName","allowPwnedPassword",1,"no-border"]],template:function(t,e){1&t&&(p.Ub(0,"pro-dialog",0),p.gc(1,"async"),p.Ub(2,"div",1),p.Pb(3,"dialog-badge",2),p.Oc(4,k,10,9,"div",3),p.gc(5,"async"),p.Ub(6,"form",4),p.bc("ngSubmit",(function(){return e.submitForm()})),p.Ub(7,"input-password-confirm",5),p.bc("passwordUpdate",(function(t){return e.updatePassword(t)})),p.Tb(),p.Pb(8,"input-otp-entry",6),p.Oc(9,E,3,3,"mat-checkbox",7),p.gc(10,"async"),p.Ub(11,"button",8),p.gc(12,"async"),p.Qc(13),p.gc(14,"translate"),p.Tb(),p.Tb(),p.Tb(),p.Tb()),2&t&&(p.mc("loading",p.hc(1,7,e.loading$)),p.Cb(4),p.mc("ngIf",p.hc(5,9,e.passwordCompromised$)),p.Cb(2),p.mc("formGroup",e.form),p.Cb(2),p.mc("form",e.form),p.Cb(1),p.mc("ngIf",p.hc(10,11,e.passwordCompromised$)),p.Cb(2),p.mc("disabled",e.form.invalid||p.hc(12,13,e.loading$)),p.Cb(2),p.Sc(" ",p.hc(14,15,"BUTTON.SET_NEW_PASSWORD")," "))},directives:[f.a,b.a,g.a,m.n,r.z,r.p,v.a,r.h,_.a,y.a,O.b,C.a,w.a,T.a,r.o,r.g],pipes:[m.b,S.d],styles:[".password-reset[_ngcontent-%COMP%]{width:40ch;text-align:center}.password-reset[_ngcontent-%COMP%] dialog-badge[_ngcontent-%COMP%]{margin-bottom:var(--spacing-l)}.password-reset[_ngcontent-%COMP%] .warning[_ngcontent-%COMP%]{border:solid var(--warn-colour);text-align:center;padding:var(--spacing);margin:var(--spacing) 0}.password-reset[_ngcontent-%COMP%] form[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{margin-top:var(--spacing)}.password-reset[_ngcontent-%COMP%] > button[_ngcontent-%COMP%], .password-reset[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin-bottom:var(--spacing)}.password-reset[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .password-reset[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%}.password-reset[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:var(--spacing) 0;width:100%}markdown[_ngcontent-%COMP%] a{color:var(--link-colour)}"],changeDetection:0}),t=Object(i.d)([Object(o.a)()],t),t})()},"9BXW":function(t,e,n){"use strict";n.d(e,"a",(function(){return v}));var i=n("vYTc"),r=n("kZht"),s=n("1etq"),o=n("yPvj"),a=n("1o0v"),c=n("za3o"),l=n("BeMo"),u=n("anSm"),h=n("LbKT"),d=n("An66"),p=n("rUBT"),f=n("aDqW"),b=n("DpwM"),g=n("FUqb");function m(t,e){if(1&t&&r.Pb(0,"div",10),2&t){const t=r.fc();r.Lc("transform","scaleX("+t.ticker.volumeQuote/t.maxVol+")")}}let v=(()=>{class t{constructor(){this.mid=i.j}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Ib({type:t,selectors:[["market-preview-compact"]],inputs:{ticker:"ticker",maxVol:"maxVol"},decls:21,vars:23,consts:[["subheading","",1,"grid-min-1","gap-m","vcenter","symbol"],[3,"pair"],[1,"pair"],["ghost","","capitalize","",1,"maturity"],[3,"market"],["body","",1,"price"],[1,"mid"],[1,"amount"],["pnlZero","",1,"change",3,"pnl"],["class","volprop",3,"transform",4,"ngIf"],[1,"volprop"]],template:function(t,e){1&t&&(r.Ub(0,"h2",0),r.Pb(1,"market-icon",1),r.Ub(2,"div"),r.Ub(3,"div",2),r.Qc(4),r.gc(5,"pair"),r.Tb(),r.Ub(6,"div",3),r.Qc(7),r.gc(8,"translate"),r.gc(9,"maturityMonth"),r.Tb(),r.Tb(),r.Tb(),r.Pb(10,"sparkline",4),r.Ub(11,"div",5),r.Ub(12,"div",6),r.Ub(13,"span",7),r.Qc(14),r.gc(15,"sato"),r.Tb(),r.Tb(),r.Ub(16,"div",8),r.Qc(17),r.gc(18,"change"),r.gc(19,"percent"),r.Tb(),r.Tb(),r.Oc(20,m,1,2,"div",9)),2&t&&(r.Cb(1),r.mc("pair",e.ticker.pair),r.Cb(3),r.Rc(r.hc(5,8,e.ticker.product_id)),r.Cb(3),r.Sc(" ",r.hc(8,10,r.ic(9,12,e.ticker.product_id,"short")||"")," "),r.Cb(3),r.mc("market",e.ticker.product_id),r.Cb(4),r.Rc(r.ic(15,15,e.mid(e.ticker),e.ticker)),r.Cb(2),r.mc("pnl",e.ticker.change/100),r.Cb(1),r.Sc(" ",r.hc(18,18,r.ic(19,20,e.ticker.change/100,"1.2-2"))," "),r.Cb(3),r.mc("ngIf",e.maxVol))},directives:[s.a,o.a,a.a,c.a,l.a,u.a,h.a,d.n],pipes:[p.e,f.d,p.d,b.c,g.b,d.u],styles:['[_nghost-%COMP%]{display:grid;grid-template:"symbol spark price" auto "volprop volprop volprop" auto/5fr 4fr 4fr;gap:var(--spacing-s) var(--spacing);align-items:center;padding:var(--spacing-s)}[_nghost-%COMP%]:hover{background-color:rgba(var(--text-colour-rgb),.1);cursor:pointer}.price[_ngcontent-%COMP%], .symbol[_ngcontent-%COMP%], .volprop[_ngcontent-%COMP%], .volume[_ngcontent-%COMP%]{z-index:1}.symbol[_ngcontent-%COMP%]{grid-area:symbol}.symbol[_ngcontent-%COMP%] .pair[_ngcontent-%COMP%]{color:var(--symbol-color,var(--text-colour))}.symbol[_ngcontent-%COMP%] .maturity[_ngcontent-%COMP%]{margin-top:var(--spacing-s);font-size:.8em}.price[_ngcontent-%COMP%]{grid-area:price;text-align:right}.price[_ngcontent-%COMP%] .mid[_ngcontent-%COMP%]{margin-bottom:var(--spacing-s)}.price[_ngcontent-%COMP%] .mid[_ngcontent-%COMP%] .amount[_ngcontent-%COMP%]{font-size:1.25em}.volprop[_ngcontent-%COMP%]{grid-area:volprop;height:2px;background-color:var(--b300);transform-origin:bottom left}sparkline[_ngcontent-%COMP%]{grid-area:spark}'],changeDetection:0}),t})()},"9Ccw":function(t,e,n){"use strict";n.d(e,"c",(function(){return h})),n.d(e,"d",(function(){return p})),n.d(e,"j",(function(){return f})),n.d(e,"i",(function(){return b})),n.d(e,"f",(function(){return g})),n.d(e,"g",(function(){return m})),n.d(e,"e",(function(){return v})),n.d(e,"h",(function(){return _})),n.d(e,"a",(function(){return y})),n.d(e,"b",(function(){return O}));var i=n("zqNl"),r=n("VmIW"),s=n("9hG1"),o=n("p5wL"),a=n("94ty"),c=n("rxqU");const l={sessions:[],devices:[],tokenLifespan:0,mtrQrCode:Object(r.None)(),mtrConfirmation:Object(r.None)(),passwordCompromised:!1},u=Object(i.i)(l,Object(i.k)(a.u,()=>l),Object(i.k)(a.y,(t,{devices:e})=>Object(o.b)(e,t,"devices")),Object(i.k)(a.w,(t,{sessions:e})=>Object(o.b)(e.filter(t=>null===t.revokedAt),t,"sessions")),Object(i.k)(a.x,(t,{lifespan:e})=>Object(o.b)(e,t,"tokenLifespan")),Object(i.k)(a.A,(t,{qr:e})=>{const n=r.Maybe.fromNull(e).map(t=>[t,s.DateTime.local()]);return Object(o.b)(n,t,"mtrQrCode")}),Object(i.k)(a.z,(t,{code:e})=>Object(o.b)(r.Maybe.fromNull(e),t,"mtrConfirmation")),Object(i.k)(a.q,(t,{passwordCompromised:e})=>Object(o.b)(e,t,"passwordCompromised")));function h(t,e){return u(t,e)}const d=Object(i.h)("authentication"),p=Object(i.j)(c.i,t=>{var e,n;return null!==(n=null===(e=t.summary)||void 0===e?void 0:e.mfa_priority)&&void 0!==n?n:[]}),f=Object(i.j)(d,t=>t.tokenLifespan),b=Object(i.j)(d,t=>t.sessions),g=Object(i.j)(d,t=>t.devices),m=Object(i.j)(d,t=>t.mtrQrCode),v=Object(i.j)(d,t=>t.mtrConfirmation),_=Object(i.j)(d,t=>t.passwordCompromised),y=Object(i.j)(p,t=>t.length>0),O=Object(i.j)(p,y,t=>t.includes("totp"));Object(i.j)(p,t=>t.includes("fido2"))},"9GlW":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){function t(t,e,n,i,r,s,o,a,c){this.a11=t,this.a21=e,this.a31=n,this.a12=i,this.a22=r,this.a32=s,this.a13=o,this.a23=a,this.a33=c}return t.quadrilateralToQuadrilateral=function(e,n,i,r,s,o,a,c,l,u,h,d,p,f,b,g){var m=t.quadrilateralToSquare(e,n,i,r,s,o,a,c);return t.squareToQuadrilateral(l,u,h,d,p,f,b,g).times(m)},t.prototype.transformPoints=function(t){for(var e=t.length,n=this.a11,i=this.a12,r=this.a13,s=this.a21,o=this.a22,a=this.a23,c=this.a31,l=this.a32,u=this.a33,h=0;h=0}(e)||(t[e.config.name]=e)},b=function(t,e){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function g(t,e){function n(){this.constructor=t}b(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function m(t,e,n,i){return new(n||(n=Promise))((function(r,s){function o(t){try{c(i.next(t))}catch(e){s(e)}}function a(t){try{c(i.throw(t))}catch(e){s(e)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,a)}c((i=i.apply(t,e||[])).next())}))}function v(t,e){var n,i,r,s,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(r=2&s[0]?i.return:s[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,s[1])).done)return r;switch(i=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,i=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]=0?n.split(",")[1]:n},[4,this.dbRequest("put",[u])];case 5:return h.sent(),[2,{uri:u.path}]}}))}))},e.prototype.appendFile=function(t){return m(this,void 0,void 0,(function(){var e,n,i,r,s,o,a,c;return v(this,(function(l){switch(l.label){case 0:return e=this.getPath(t.directory,t.path),n=t.data,i=e.substr(0,e.lastIndexOf("/")),r=Date.now(),s=r,[4,this.dbRequest("get",[e])];case 1:if((o=l.sent())&&"directory"===o.type)throw"The supplied path is a directory.";return[4,this.dbRequest("get",[i])];case 2:return void 0!==l.sent()?[3,4]:(a=i.indexOf("/",1),c=-1!==a?i.substr(a):"/",[4,this.mkdir({path:c,directory:t.directory,recursive:!0})]);case 3:l.sent(),l.label=4;case 4:return void 0!==o&&(n=o.content+n,s=o.ctime),[4,this.dbRequest("put",[{path:e,folder:i,type:"file",size:n.length,ctime:s,mtime:r,content:n}])];case 5:return l.sent(),[2,{}]}}))}))},e.prototype.deleteFile=function(t){return m(this,void 0,void 0,(function(){var e;return v(this,(function(n){switch(n.label){case 0:return e=this.getPath(t.directory,t.path),[4,this.dbRequest("get",[e])];case 1:if(void 0===n.sent())throw Error("File does not exist.");return[4,this.dbIndexRequest("by_folder","getAllKeys",[IDBKeyRange.only(e)])];case 2:if(0!==n.sent().length)throw Error("Folder is not empty.");return[4,this.dbRequest("delete",[e])];case 3:return n.sent(),[2,{}]}}))}))},e.prototype.mkdir=function(t){return m(this,void 0,void 0,(function(){var e,n,i,r,s,o,a,c;return v(this,(function(l){switch(l.label){case 0:return e=this.getPath(t.directory,t.path),n=t.recursive,i=e.substr(0,e.lastIndexOf("/")),r=(e.match(/\//g)||[]).length,[4,this.dbRequest("get",[i])];case 1:return s=l.sent(),[4,this.dbRequest("get",[e])];case 2:if(o=l.sent(),1===r)throw Error("Cannot create Root directory");if(void 0!==o)throw Error("Current directory does already exist.");if(!n&&2!==r&&void 0===s)throw Error("Parent directory must exist");return n&&2!==r&&void 0===s?(a=i.substr(i.indexOf("/",1)),[4,this.mkdir({path:a,directory:t.directory,recursive:n})]):[3,4];case 3:l.sent(),l.label=4;case 4:return c=Date.now(),[4,this.dbRequest("put",[{path:e,folder:i,type:"directory",size:0,ctime:c,mtime:c}])];case 5:return l.sent(),[2,{}]}}))}))},e.prototype.rmdir=function(t){return m(this,void 0,void 0,(function(){var e,n,i,r,s,o,a,c,l;return v(this,(function(u){switch(u.label){case 0:return i=t.recursive,r=this.getPath(n=t.directory,e=t.path),[4,this.dbRequest("get",[r])];case 1:if(void 0===(s=u.sent()))throw Error("Folder does not exist.");if("directory"!==s.type)throw Error("Requested path is not a directory");return[4,this.readdir({path:e,directory:n})];case 2:if(0!==(o=u.sent()).files.length&&!i)throw Error("Folder is not empty");a=0,c=o.files,u.label=3;case 3:return a0?[4,this.stat({path:u,directory:s})]:[3,5];case 4:if("directory"!==O.sent().type)throw new Error("Parent directory of the to path is a file");O.label=5;case 5:return[3,6];case 6:if(c&&"directory"===c.type)throw new Error("Cannot overwrite a directory with a file");return[4,this.stat({path:i,directory:r})];case 7:switch(h=O.sent(),d=function(t,e,n){return m(y,void 0,void 0,(function(){var i,r;return v(this,(function(o){switch(o.label){case 0:return i=this.getPath(s,t),[4,this.dbRequest("get",[i])];case 1:return(r=o.sent()).ctime=e,r.mtime=n,[4,this.dbRequest("put",[r])];case 2:return o.sent(),[2]}}))}))},h.type){case"file":return[3,8];case"directory":return[3,15]}return[3,28];case 8:return[4,this.readFile({path:i,directory:r})];case 9:return p=O.sent(),e?[4,this.deleteFile({path:i,directory:r})]:[3,11];case 10:O.sent(),O.label=11;case 11:return[4,this.writeFile({path:n,directory:s,data:p.data})];case 12:return O.sent(),e?[4,d(n,h.ctime,h.mtime)]:[3,14];case 13:O.sent(),O.label=14;case 14:return[2,{}];case 15:if(c)throw Error("Cannot move a directory over an existing object");O.label=16;case 16:return O.trys.push([16,20,,21]),[4,this.mkdir({path:n,directory:s,recursive:!1})];case 17:return O.sent(),e?[4,d(n,h.ctime,h.mtime)]:[3,19];case 18:O.sent(),O.label=19;case 19:return[3,21];case 20:return O.sent(),[3,21];case 21:return[4,this.readdir({path:i,directory:r})];case 22:f=O.sent().files,b=0,g=f,O.label=23;case 23:return bt.length)&&(e=t.length);for(var n=0,i=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[e++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(e=t[Symbol.iterator]()).next.bind(e)}Object.defineProperty(e,"__esModule",{value:!0});var p=function(t){function e(){return t.apply(this,arguments)||this}return s(e,t),e}(u(Error)),f=function(t){function e(e){return t.call(this,"Invalid DateTime: "+e.toMessage())||this}return s(e,t),e}(p),b=function(t){function e(e){return t.call(this,"Invalid Interval: "+e.toMessage())||this}return s(e,t),e}(p),g=function(t){function e(e){return t.call(this,"Invalid Duration: "+e.toMessage())||this}return s(e,t),e}(p),m=function(t){function e(){return t.apply(this,arguments)||this}return s(e,t),e}(p),v=function(t){function e(e){return t.call(this,"Invalid unit "+e)||this}return s(e,t),e}(p),_=function(t){function e(){return t.apply(this,arguments)||this}return s(e,t),e}(p),y=function(t){function e(){return t.call(this,"Zone is an abstract class")||this}return s(e,t),e}(p),O="numeric",C="short",w="long",T={year:O,month:O,day:O},S={year:O,month:C,day:O},k={year:O,month:C,day:O,weekday:C},E={year:O,month:w,day:O},x={year:O,month:w,day:O,weekday:w},P={hour:O,minute:O},A={hour:O,minute:O,second:O},I={hour:O,minute:O,second:O,timeZoneName:C},M={hour:O,minute:O,second:O,timeZoneName:w},D={hour:O,minute:O,hour12:!1},R={hour:O,minute:O,second:O,hour12:!1},j={hour:O,minute:O,second:O,hour12:!1,timeZoneName:C},L={hour:O,minute:O,second:O,hour12:!1,timeZoneName:w},N={year:O,month:O,day:O,hour:O,minute:O},U={year:O,month:O,day:O,hour:O,minute:O,second:O},F={year:O,month:C,day:O,hour:O,minute:O},B={year:O,month:C,day:O,hour:O,minute:O,second:O},z={year:O,month:C,day:O,weekday:C,hour:O,minute:O},V={year:O,month:w,day:O,hour:O,minute:O,timeZoneName:C},$={year:O,month:w,day:O,hour:O,minute:O,second:O,timeZoneName:C},H={year:O,month:w,day:O,weekday:w,hour:O,minute:O,timeZoneName:w},q={year:O,month:w,day:O,weekday:w,hour:O,minute:O,second:O,timeZoneName:w};function Q(t){return void 0===t}function W(t){return"number"==typeof t}function G(t){return"number"==typeof t&&t%1==0}function Y(){try{return"undefined"!=typeof Intl&&Intl.DateTimeFormat}catch(t){return!1}}function K(){return!Q(Intl.DateTimeFormat.prototype.formatToParts)}function Z(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(t){return!1}}function X(t,e,n){if(0!==t.length)return t.reduce((function(t,i){var r=[e(i),i];return t&&n(t[0],r[0])===t[0]?t:r}),null)[1]}function J(t,e){return e.reduce((function(e,n){return e[n]=t[n],e}),{})}function tt(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function et(t,e,n){return G(t)&&t>=e&&t<=n}function nt(t,e){return void 0===e&&(e=2),t.toString().length=0&&(e=new Date(e)).setUTCFullYear(e.getUTCFullYear()-1900),+e}function ut(t){var e=(t+Math.floor(t/4)-Math.floor(t/100)+Math.floor(t/400))%7,n=t-1,i=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return 4===e||3===i?53:52}function ht(t){return t>99?t:t>60?1900+t:2e3+t}function dt(t,e,n,i){void 0===i&&(i=null);var r=new Date(t),s={hour12:!1,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};i&&(s.timeZone=i);var o=Object.assign({timeZoneName:e},s),a=Y();if(a&&K()){var c=new Intl.DateTimeFormat(n,o).formatToParts(r).find((function(t){return"timezonename"===t.type.toLowerCase()}));return c?c.value:null}if(a){var l=new Intl.DateTimeFormat(n,s).format(r);return new Intl.DateTimeFormat(n,o).format(r).substring(l.length).replace(/^[, \u200e]+/,"")}return null}function pt(t,e){var n=parseInt(t,10);Number.isNaN(n)&&(n=0);var i=parseInt(e,10)||0;return 60*n+(n<0||Object.is(n,-0)?-i:i)}function ft(t){var e=Number(t);if("boolean"==typeof t||""===t||Number.isNaN(e))throw new _("Invalid unit value "+t);return e}function bt(t,e,n){var i={};for(var r in t)if(tt(t,r)){if(n.indexOf(r)>=0)continue;var s=t[r];if(null==s)continue;i[e(r)]=ft(s)}return i}function gt(t,e){var n=Math.trunc(Math.abs(t/60)),i=Math.trunc(Math.abs(t%60)),r=t>=0?"+":"-";switch(e){case"short":return""+r+nt(n,2)+":"+nt(i,2);case"narrow":return""+r+n+(i>0?":"+i:"");case"techie":return""+r+nt(n,2)+nt(i,2);default:throw new RangeError("Value format "+e+" is out of range for property format")}}function mt(t){return J(t,["hour","minute","second","millisecond"])}var vt=/[A-Za-z_+-]{1,256}(:?\/[A-Za-z_+-]{1,256}(\/[A-Za-z_+-]{1,256})?)?/;function _t(t){return JSON.stringify(t,Object.keys(t).sort())}var yt=["January","February","March","April","May","June","July","August","September","October","November","December"],Ot=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Ct=["J","F","M","A","M","J","J","A","S","O","N","D"];function wt(t){switch(t){case"narrow":return Ct;case"short":return Ot;case"long":return yt;case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var Tt=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],St=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],kt=["M","T","W","T","F","S","S"];function Et(t){switch(t){case"narrow":return kt;case"short":return St;case"long":return Tt;case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var xt=["AM","PM"],Pt=["Before Christ","Anno Domini"],At=["BC","AD"],It=["B","A"];function Mt(t){switch(t){case"narrow":return It;case"short":return At;case"long":return Pt;default:return null}}function Dt(t,e){for(var n,i="",r=d(t);!(n=r()).done;){var s=n.value;i+=s.literal?s.val:e(s.val)}return i}var Rt={D:T,DD:S,DDD:E,DDDD:x,t:P,tt:A,ttt:I,tttt:M,T:D,TT:R,TTT:j,TTTT:L,f:N,ff:F,fff:V,ffff:H,F:U,FF:B,FFF:$,FFFF:q},jt=function(){function t(t,e){this.opts=e,this.loc=t,this.systemLoc=null}t.create=function(e,n){return void 0===n&&(n={}),new t(e,n)},t.parseFormat=function(t){for(var e=null,n="",i=!1,r=[],s=0;s0&&r.push({literal:i,val:n}),e=null,n="",i=!i):i||o===e?n+=o:(n.length>0&&r.push({literal:!1,val:n}),n=o,e=o)}return n.length>0&&r.push({literal:i,val:n}),r},t.macroTokenToFormatOpts=function(t){return Rt[t]};var e=t.prototype;return e.formatWithSystemDefault=function(t,e){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,Object.assign({},this.opts,e)).format()},e.formatDateTime=function(t,e){return void 0===e&&(e={}),this.loc.dtFormatter(t,Object.assign({},this.opts,e)).format()},e.formatDateTimeParts=function(t,e){return void 0===e&&(e={}),this.loc.dtFormatter(t,Object.assign({},this.opts,e)).formatToParts()},e.resolvedOptions=function(t,e){return void 0===e&&(e={}),this.loc.dtFormatter(t,Object.assign({},this.opts,e)).resolvedOptions()},e.num=function(t,e){if(void 0===e&&(e=0),this.opts.forceSimple)return nt(t,e);var n=Object.assign({},this.opts);return e>0&&(n.padTo=e),this.loc.numberFormatter(n).format(t)},e.formatDateTimeFromString=function(e,n){var i=this,r="en"===this.loc.listingMode(),s=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar&&K(),o=function(t,n){return i.loc.extract(e,t,n)},a=function(t){return e.isOffsetFixed&&0===e.offset&&t.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,t.format):""},c=function(t,n){return r?function(t,e){return wt(e)[t.month-1]}(e,t):o(n?{month:t}:{month:t,day:"numeric"},"month")},l=function(t,n){return r?function(t,e){return Et(e)[t.weekday-1]}(e,t):o(n?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday")},u=function(t){return r?function(t,e){return Mt(e)[t.year<0?0:1]}(e,t):o({era:t},"era")};return Dt(t.parseFormat(n),(function(n){switch(n){case"S":return i.num(e.millisecond);case"u":case"SSS":return i.num(e.millisecond,3);case"s":return i.num(e.second);case"ss":return i.num(e.second,2);case"m":return i.num(e.minute);case"mm":return i.num(e.minute,2);case"h":return i.num(e.hour%12==0?12:e.hour%12);case"hh":return i.num(e.hour%12==0?12:e.hour%12,2);case"H":return i.num(e.hour);case"HH":return i.num(e.hour,2);case"Z":return a({format:"narrow",allowZ:i.opts.allowZ});case"ZZ":return a({format:"short",allowZ:i.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:i.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:i.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:i.loc.locale});case"z":return e.zoneName;case"a":return r?function(t){return xt[t.hour<12?0:1]}(e):o({hour:"numeric",hour12:!0},"dayperiod");case"d":return s?o({day:"numeric"},"day"):i.num(e.day);case"dd":return s?o({day:"2-digit"},"day"):i.num(e.day,2);case"c":return i.num(e.weekday);case"ccc":return l("short",!0);case"cccc":return l("long",!0);case"ccccc":return l("narrow",!0);case"E":return i.num(e.weekday);case"EEE":return l("short",!1);case"EEEE":return l("long",!1);case"EEEEE":return l("narrow",!1);case"L":return s?o({month:"numeric",day:"numeric"},"month"):i.num(e.month);case"LL":return s?o({month:"2-digit",day:"numeric"},"month"):i.num(e.month,2);case"LLL":return c("short",!0);case"LLLL":return c("long",!0);case"LLLLL":return c("narrow",!0);case"M":return s?o({month:"numeric"},"month"):i.num(e.month);case"MM":return s?o({month:"2-digit"},"month"):i.num(e.month,2);case"MMM":return c("short",!1);case"MMMM":return c("long",!1);case"MMMMM":return c("narrow",!1);case"y":return s?o({year:"numeric"},"year"):i.num(e.year);case"yy":return s?o({year:"2-digit"},"year"):i.num(e.year.toString().slice(-2),2);case"yyyy":return s?o({year:"numeric"},"year"):i.num(e.year,4);case"yyyyyy":return s?o({year:"numeric"},"year"):i.num(e.year,6);case"G":return u("short");case"GG":return u("long");case"GGGGG":return u("narrow");case"kk":return i.num(e.weekYear.toString().slice(-2),2);case"kkkk":return i.num(e.weekYear,4);case"W":return i.num(e.weekNumber);case"WW":return i.num(e.weekNumber,2);case"o":return i.num(e.ordinal);case"ooo":return i.num(e.ordinal,3);case"q":return i.num(e.quarter);case"qq":return i.num(e.quarter,2);case"X":return i.num(Math.floor(e.ts/1e3));case"x":return i.num(e.ts);default:return function(n){var r=t.macroTokenToFormatOpts(n);return r?i.formatWithSystemDefault(e,r):n}(n)}}))},e.formatDurationFromString=function(e,n){var i,r=this,s=function(t){switch(t[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"M":return"month";case"y":return"year";default:return null}},o=t.parseFormat(n),a=o.reduce((function(t,e){return e.literal?t:t.concat(e.val)}),[]),c=e.shiftTo.apply(e,a.map(s).filter((function(t){return t})));return Dt(o,(i=c,function(t){var e=s(t);return e?r.num(i.get(e),t.length):t}))},t}(),Lt=function(){function t(t,e){this.reason=t,this.explanation=e}return t.prototype.toMessage=function(){return this.explanation?this.reason+": "+this.explanation:this.reason},t}(),Nt=function(){function t(){}var e=t.prototype;return e.offsetName=function(t,e){throw new y},e.formatOffset=function(t,e){throw new y},e.offset=function(t){throw new y},e.equals=function(t){throw new y},r(t,[{key:"type",get:function(){throw new y}},{key:"name",get:function(){throw new y}},{key:"universal",get:function(){throw new y}},{key:"isValid",get:function(){throw new y}}]),t}(),Ut=null,Ft=function(t){function e(){return t.apply(this,arguments)||this}s(e,t);var n=e.prototype;return n.offsetName=function(t,e){return dt(t,e.format,e.locale)},n.formatOffset=function(t,e){return gt(this.offset(t),e)},n.offset=function(t){return-new Date(t).getTimezoneOffset()},n.equals=function(t){return"local"===t.type},r(e,[{key:"type",get:function(){return"local"}},{key:"name",get:function(){return Y()?(new Intl.DateTimeFormat).resolvedOptions().timeZone:"local"}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return!0}}],[{key:"instance",get:function(){return null===Ut&&(Ut=new e),Ut}}]),e}(Nt),Bt=RegExp("^"+vt.source+"$"),zt={},Vt={year:0,month:1,day:2,hour:3,minute:4,second:5},$t={},Ht=function(t){function e(n){var i;return(i=t.call(this)||this).zoneName=n,i.valid=e.isValidZone(n),i}s(e,t),e.create=function(t){return $t[t]||($t[t]=new e(t)),$t[t]},e.resetCache=function(){$t={},zt={}},e.isValidSpecifier=function(t){return!(!t||!t.match(Bt))},e.isValidZone=function(t){try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch(e){return!1}},e.parseGMTOffset=function(t){if(t){var e=t.match(/^Etc\/GMT([+-]\d{1,2})$/i);if(e)return-60*parseInt(e[1])}return null};var n=e.prototype;return n.offsetName=function(t,e){return dt(t,e.format,e.locale,this.name)},n.formatOffset=function(t,e){return gt(this.offset(t),e)},n.offset=function(t){var e,n=new Date(t),i=(zt[e=this.name]||(zt[e]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),zt[e]),r=i.formatToParts?function(t,e){for(var n=t.formatToParts(e),i=[],r=0;r=0?a:1e3+a))/6e4},n.equals=function(t){return"iana"===t.type&&t.name===this.name},r(e,[{key:"type",get:function(){return"iana"}},{key:"name",get:function(){return this.zoneName}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return this.valid}}]),e}(Nt),qt=null,Qt=function(t){function e(e){var n;return(n=t.call(this)||this).fixed=e,n}s(e,t),e.instance=function(t){return 0===t?e.utcInstance:new e(t)},e.parseSpecifier=function(t){if(t){var n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new e(pt(n[1],n[2]))}return null},r(e,null,[{key:"utcInstance",get:function(){return null===qt&&(qt=new e(0)),qt}}]);var n=e.prototype;return n.offsetName=function(){return this.name},n.formatOffset=function(t,e){return gt(this.fixed,e)},n.offset=function(){return this.fixed},n.equals=function(t){return"fixed"===t.type&&t.fixed===this.fixed},r(e,[{key:"type",get:function(){return"fixed"}},{key:"name",get:function(){return 0===this.fixed?"UTC":"UTC"+gt(this.fixed,"narrow")}},{key:"universal",get:function(){return!0}},{key:"isValid",get:function(){return!0}}]),e}(Nt),Wt=function(t){function e(e){var n;return(n=t.call(this)||this).zoneName=e,n}s(e,t);var n=e.prototype;return n.offsetName=function(){return null},n.formatOffset=function(){return""},n.offset=function(){return NaN},n.equals=function(){return!1},r(e,[{key:"type",get:function(){return"invalid"}},{key:"name",get:function(){return this.zoneName}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return!1}}]),e}(Nt);function Gt(t,e){var n;if(Q(t)||null===t)return e;if(t instanceof Nt)return t;if("string"==typeof t){var i=t.toLowerCase();return"local"===i?e:"utc"===i||"gmt"===i?Qt.utcInstance:null!=(n=Ht.parseGMTOffset(t))?Qt.instance(n):Ht.isValidSpecifier(i)?Ht.create(t):Qt.parseSpecifier(i)||new Wt(t)}return W(t)?Qt.instance(t):"object"==typeof t&&t.offset&&"number"==typeof t.offset?t:new Wt(t)}var Yt=function(){return Date.now()},Kt=null,Zt=null,Xt=null,Jt=null,te=!1,ee=function(){function t(){}return t.resetCaches=function(){he.resetCache(),Ht.resetCache()},r(t,null,[{key:"now",get:function(){return Yt},set:function(t){Yt=t}},{key:"defaultZoneName",get:function(){return t.defaultZone.name},set:function(t){Kt=t?Gt(t):null}},{key:"defaultZone",get:function(){return Kt||Ft.instance}},{key:"defaultLocale",get:function(){return Zt},set:function(t){Zt=t}},{key:"defaultNumberingSystem",get:function(){return Xt},set:function(t){Xt=t}},{key:"defaultOutputCalendar",get:function(){return Jt},set:function(t){Jt=t}},{key:"throwOnInvalid",get:function(){return te},set:function(t){te=t}}]),t}(),ne={};function ie(t,e){void 0===e&&(e={});var n=JSON.stringify([t,e]),i=ne[n];return i||(i=new Intl.DateTimeFormat(t,e),ne[n]=i),i}var re={},se={},oe=null;function ae(t,e,n,i,r){var s=t.listingMode(n);return"error"===s?null:"en"===s?i(e):r(e)}var ce=function(){function t(t,e,n){if(this.padTo=n.padTo||0,this.floor=n.floor||!1,!e&&Y()){var i={useGrouping:!1};n.padTo>0&&(i.minimumIntegerDigits=n.padTo),this.inf=function(t,e){void 0===e&&(e={});var n=JSON.stringify([t,e]),i=re[n];return i||(i=new Intl.NumberFormat(t,e),re[n]=i),i}(t,i)}}return t.prototype.format=function(t){if(this.inf){var e=this.floor?Math.floor(t):t;return this.inf.format(e)}return nt(this.floor?Math.floor(t):st(t,3),this.padTo)},t}(),le=function(){function t(t,e,n){var i;if(this.opts=n,this.hasIntl=Y(),t.zone.universal&&this.hasIntl?(i="UTC",this.dt=n.timeZoneName||0===t.offset?t:si.fromMillis(t.ts+60*t.offset*1e3)):"local"===t.zone.type?this.dt=t:(this.dt=t,i=t.zone.name),this.hasIntl){var r=Object.assign({},this.opts);i&&(r.timeZone=i),this.dtf=ie(e,r)}}var e=t.prototype;return e.format=function(){if(this.hasIntl)return this.dtf.format(this.dt.toJSDate());var t=function(t){switch(_t(J(t,["weekday","era","year","month","day","hour","minute","second","timeZoneName","hour12"]))){case _t(T):return"M/d/yyyy";case _t(S):return"LLL d, yyyy";case _t(k):return"EEE, LLL d, yyyy";case _t(E):return"LLLL d, yyyy";case _t(x):return"EEEE, LLLL d, yyyy";case _t(P):return"h:mm a";case _t(A):return"h:mm:ss a";case _t(I):case _t(M):return"h:mm a";case _t(D):return"HH:mm";case _t(R):return"HH:mm:ss";case _t(j):case _t(L):return"HH:mm";case _t(N):return"M/d/yyyy, h:mm a";case _t(F):return"LLL d, yyyy, h:mm a";case _t(V):return"LLLL d, yyyy, h:mm a";case _t(H):return"EEEE, LLLL d, yyyy, h:mm a";case _t(U):return"M/d/yyyy, h:mm:ss a";case _t(B):return"LLL d, yyyy, h:mm:ss a";case _t(z):return"EEE, d LLL yyyy, h:mm a";case _t($):return"LLLL d, yyyy, h:mm:ss a";case _t(q):return"EEEE, LLLL d, yyyy, h:mm:ss a";default:return"EEEE, LLLL d, yyyy, h:mm a"}}(this.opts),e=he.create("en-US");return jt.create(e).formatDateTimeFromString(this.dt,t)},e.formatToParts=function(){return this.hasIntl&&K()?this.dtf.formatToParts(this.dt.toJSDate()):[]},e.resolvedOptions=function(){return this.hasIntl?this.dtf.resolvedOptions():{locale:"en-US",numberingSystem:"latn",outputCalendar:"gregory"}},t}(),ue=function(){function t(t,e,n){this.opts=Object.assign({style:"long"},n),!e&&Z()&&(this.rtf=function(t,e){void 0===e&&(e={});var n=function(t,e){if(null==t)return{};var n,i,r={},s=Object.keys(t);for(i=0;i=0||(r[n]=t[n]);return r}(e,["base"]),i=JSON.stringify([t,n]),r=se[i];return r||(r=new Intl.RelativeTimeFormat(t,e),se[i]=r),r}(t,n))}var e=t.prototype;return e.format=function(t,e){return this.rtf?this.rtf.format(t,e):function(t,e,n,i){void 0===n&&(n="always"),void 0===i&&(i=!1);var r={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},s=-1===["hours","minutes","seconds"].indexOf(t);if("auto"===n&&s){var o="days"===t;switch(e){case 1:return o?"tomorrow":"next "+r[t][0];case-1:return o?"yesterday":"last "+r[t][0];case 0:return o?"today":"this "+r[t][0]}}var a=Object.is(e,-0)||e<0,c=Math.abs(e),l=1===c,u=r[t],h=i?l?u[1]:u[2]||u[1]:l?r[t][0]:t;return a?c+" "+h+" ago":"in "+c+" "+h}(e,t,this.opts.numeric,"long"!==this.opts.style)},e.formatToParts=function(t,e){return this.rtf?this.rtf.formatToParts(t,e):[]},t}(),he=function(){function t(t,e,n,i){var r=function(t){var e=t.indexOf("-u-");if(-1===e)return[t];var n,i=t.substring(0,e);try{n=ie(t).resolvedOptions()}catch(r){n=ie(i).resolvedOptions()}return[i,n.numberingSystem,n.calendar]}(t),s=r[1],o=r[2];this.locale=r[0],this.numberingSystem=e||s||null,this.outputCalendar=n||o||null,this.intl=function(t,e,n){return Y()?n||e?(t+="-u",n&&(t+="-ca-"+n),e&&(t+="-nu-"+e),t):t:[]}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}t.fromOpts=function(e){return t.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)},t.create=function(e,n,i,r){void 0===r&&(r=!1);var s=e||ee.defaultLocale;return new t(s||(r?"en-US":function(){if(oe)return oe;if(Y()){var t=(new Intl.DateTimeFormat).resolvedOptions().locale;return oe=t&&"und"!==t?t:"en-US"}return oe="en-US"}()),n||ee.defaultNumberingSystem,i||ee.defaultOutputCalendar,s)},t.resetCache=function(){oe=null,ne={},re={},se={}},t.fromObject=function(e){var n=void 0===e?{}:e;return t.create(n.locale,n.numberingSystem,n.outputCalendar)};var e=t.prototype;return e.listingMode=function(t){void 0===t&&(t=!0);var e=Y()&&K(),n=this.isEnglish(),i=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return e||n&&i||t?!e||n&&i?"en":"intl":"error"},e.clone=function(e){return e&&0!==Object.getOwnPropertyNames(e).length?t.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1):this},e.redefaultToEN=function(t){return void 0===t&&(t={}),this.clone(Object.assign({},t,{defaultToEN:!0}))},e.redefaultToSystem=function(t){return void 0===t&&(t={}),this.clone(Object.assign({},t,{defaultToEN:!1}))},e.months=function(t,e,n){var i=this;return void 0===e&&(e=!1),void 0===n&&(n=!0),ae(this,t,n,wt,(function(){var n=e?{month:t,day:"numeric"}:{month:t},r=e?"format":"standalone";return i.monthsCache[r][t]||(i.monthsCache[r][t]=function(t){for(var e=[],n=1;n<=12;n++){var i=si.utc(2016,n,1);e.push(t(i))}return e}((function(t){return i.extract(t,n,"month")}))),i.monthsCache[r][t]}))},e.weekdays=function(t,e,n){var i=this;return void 0===e&&(e=!1),void 0===n&&(n=!0),ae(this,t,n,Et,(function(){var n=e?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},r=e?"format":"standalone";return i.weekdaysCache[r][t]||(i.weekdaysCache[r][t]=function(t){for(var e=[],n=1;n<=7;n++){var i=si.utc(2016,11,13+n);e.push(t(i))}return e}((function(t){return i.extract(t,n,"weekday")}))),i.weekdaysCache[r][t]}))},e.meridiems=function(t){var e=this;return void 0===t&&(t=!0),ae(this,void 0,t,(function(){return xt}),(function(){if(!e.meridiemCache){var t={hour:"numeric",hour12:!0};e.meridiemCache=[si.utc(2016,11,13,9),si.utc(2016,11,13,19)].map((function(n){return e.extract(n,t,"dayperiod")}))}return e.meridiemCache}))},e.eras=function(t,e){var n=this;return void 0===e&&(e=!0),ae(this,t,e,Mt,(function(){var e={era:t};return n.eraCache[t]||(n.eraCache[t]=[si.utc(-40,1,1),si.utc(2017,1,1)].map((function(t){return n.extract(t,e,"era")}))),n.eraCache[t]}))},e.extract=function(t,e,n){var i=this.dtFormatter(t,e).formatToParts().find((function(t){return t.type.toLowerCase()===n}));return i?i.value:null},e.numberFormatter=function(t){return void 0===t&&(t={}),new ce(this.intl,t.forceSimple||this.fastNumbers,t)},e.dtFormatter=function(t,e){return void 0===e&&(e={}),new le(t,this.intl,e)},e.relFormatter=function(t){return void 0===t&&(t={}),new ue(this.intl,this.isEnglish(),t)},e.isEnglish=function(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||Y()&&new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")},e.equals=function(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar},r(t,[{key:"fastNumbers",get:function(){return null==this.fastNumbersCached&&(this.fastNumbersCached=(!this.numberingSystem||"latn"===this.numberingSystem)&&("latn"===this.numberingSystem||!this.locale||this.locale.startsWith("en")||Y()&&"latn"===new Intl.DateTimeFormat(this.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}}]),t}();function de(){for(var t=arguments.length,e=new Array(t),n=0;n1?e-1:0),i=1;i3?Tt.indexOf(t)+1:St.indexOf(t)+1),a}var De=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Re(t){var e,n=t[8],i=t[9],r=t[10],s=t[11],o=Me(t[1],t[4],t[3],t[2],t[5],t[6],t[7]);return e=n?Ie[n]:i?0:pt(r,s),[o,new Qt(e)]}var je=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Le=/^(Monday|Tuesday|Wedsday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Ne=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Ue(t){return[Me(t[1],t[4],t[3],t[2],t[5],t[6],t[7]),Qt.utcInstance]}function Fe(t){return[Me(t[1],t[7],t[2],t[3],t[4],t[5],t[6]),Qt.utcInstance]}var Be=de(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,_e),ze=de(/(\d{4})-?W(\d\d)(?:-?(\d))?/,_e),Ve=de(/(\d{4})-?(\d{3})/,_e),$e=de(ve),He=pe(Se,ke,Ee),qe=pe(ye,ke,Ee),Qe=pe(Oe,ke),We=pe(ke,Ee),Ge=de(/(\d{4})-(\d\d)-(\d\d)/,we),Ye=de(Ce),Ke=pe(Se,ke,Ee,xe),Ze=pe(ke,Ee,xe),Xe={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},Je=Object.assign({years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6}},Xe),tn=Object.assign({years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:30.436875/7,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3}},Xe),en=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],nn=en.slice(0).reverse();function rn(t,e,n){void 0===n&&(n=!1);var i={values:n?e.values:Object.assign({},t.values,e.values||{}),loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy};return new on(i)}function sn(t,e,n,i,r){var s=t[r][n],o=e[n]/s,a=Math.sign(o)!==Math.sign(i[r])&&0!==i[r]&&Math.abs(o)<=1?function(t){return t<0?Math.floor(t):Math.ceil(t)}(o):Math.trunc(o);i[r]+=a,e[n]-=a*s}var on=function(){function t(t){var e="longterm"===t.conversionAccuracy||!1;this.values=t.values,this.loc=t.loc||he.create(),this.conversionAccuracy=e?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=e?tn:Je,this.isLuxonDuration=!0}t.fromMillis=function(e,n){return t.fromObject(Object.assign({milliseconds:e},n))},t.fromObject=function(e){if(null==e||"object"!=typeof e)throw new _("Duration.fromObject: argument expected to be an object, got "+(null===e?"null":typeof e));return new t({values:bt(e,t.normalizeUnit,["locale","numberingSystem","conversionAccuracy","zone"]),loc:he.fromObject(e),conversionAccuracy:e.conversionAccuracy})},t.fromISO=function(e,n){var i=function(t){return fe(t,[Pe,Ae])}(e)[0];if(i){var r=Object.assign(i,n);return t.fromObject(r)}return t.invalid("unparsable",'the input "'+e+"\" can't be parsed as ISO 8601")},t.invalid=function(e,n){if(void 0===n&&(n=null),!e)throw new _("need to specify a reason the Duration is invalid");var i=e instanceof Lt?e:new Lt(e,n);if(ee.throwOnInvalid)throw new g(i);return new t({invalid:i})},t.normalizeUnit=function(t){var e={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t?t.toLowerCase():t];if(!e)throw new v(t);return e},t.isDuration=function(t){return t&&t.isLuxonDuration||!1};var e=t.prototype;return e.toFormat=function(t,e){void 0===e&&(e={});var n=Object.assign({},e,{floor:!1!==e.round&&!1!==e.floor});return this.isValid?jt.create(this.loc,n).formatDurationFromString(this,t):"Invalid Duration"},e.toObject=function(t){if(void 0===t&&(t={}),!this.isValid)return{};var e=Object.assign({},this.values);return t.includeConfig&&(e.conversionAccuracy=this.conversionAccuracy,e.numberingSystem=this.loc.numberingSystem,e.locale=this.loc.locale),e},e.toISO=function(){if(!this.isValid)return null;var t="P";return 0!==this.years&&(t+=this.years+"Y"),0===this.months&&0===this.quarters||(t+=this.months+3*this.quarters+"M"),0!==this.weeks&&(t+=this.weeks+"W"),0!==this.days&&(t+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(t+="T"),0!==this.hours&&(t+=this.hours+"H"),0!==this.minutes&&(t+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(t+=st(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===t&&(t+="T0S"),t},e.toJSON=function(){return this.toISO()},e.toString=function(){return this.toISO()},e.valueOf=function(){return this.as("milliseconds")},e.plus=function(t){if(!this.isValid)return this;for(var e,n=an(t),i={},r=d(en);!(e=r()).done;){var s=e.value;(tt(n.values,s)||tt(this.values,s))&&(i[s]=n.get(s)+this.get(s))}return rn(this,{values:i},!0)},e.minus=function(t){if(!this.isValid)return this;var e=an(t);return this.plus(e.negate())},e.mapUnits=function(t){if(!this.isValid)return this;for(var e={},n=0,i=Object.keys(this.values);n=0){r=u;var h=0;for(var p in a)h+=this.matrix[p][u]*a[p],a[p]=0;W(c[u])&&(h+=c[u]);var f=Math.trunc(h);for(var b in o[u]=f,a[u]=h-f,c)en.indexOf(b)>en.indexOf(u)&&sn(this.matrix,c,b,o,u)}else W(c[u])&&(a[u]=c[u])}for(var g in a)0!==a[g]&&(o[r]+=g===r?a[g]:a[g]/this.matrix[r][g]);return rn(this,{values:o},!0).normalize()},e.negate=function(){if(!this.isValid)return this;for(var t={},e=0,n=Object.keys(this.values);et},e.isBefore=function(t){return!!this.isValid&&this.e<=t},e.contains=function(t){return!!this.isValid&&this.s<=t&&this.e>t},e.set=function(e){var n=void 0===e?{}:e;return this.isValid?t.fromDateTimes(n.start||this.s,n.end||this.e):this},e.splitAt=function(){var e=this;if(!this.isValid)return[];for(var n=arguments.length,i=new Array(n),r=0;r+this.e?this.e:l;o.push(t.fromDateTimes(a,u)),a=u,c+=1}return o},e.splitBy=function(e){var n=an(e);if(!this.isValid||!n.isValid||0===n.as("milliseconds"))return[];for(var i,r,s=this.s,o=[];s+this.e?this.e:i)),s=r;return o},e.divideEqually=function(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]},e.overlaps=function(t){return this.e>t.s&&this.s=t.e},e.equals=function(t){return!(!this.isValid||!t.isValid)&&this.s.equals(t.s)&&this.e.equals(t.e)},e.intersection=function(e){if(!this.isValid)return this;var n=this.s>e.s?this.s:e.s,i=this.ei?null:t.fromDateTimes(n,i)},e.union=function(e){return this.isValid?t.fromDateTimes(this.se.e?this.e:e.e):this},t.merge=function(t){var e=t.sort((function(t,e){return t.s-e.s})).reduce((function(t,e){var n=t[0],i=t[1];return i?i.overlaps(e)||i.abutsStart(e)?[n,i.union(e)]:[n.concat([i]),e]:[n,e]}),[[],null]),n=e[0],i=e[1];return i&&n.push(i),n},t.xor=function(e){for(var n,i,r=null,s=0,o=[],a=e.map((function(t){return[{time:t.s,type:"s"},{time:t.e,type:"e"}]})),c=d((n=Array.prototype).concat.apply(n,a).sort((function(t,e){return t.time-e.time})));!(i=c()).done;){var l=i.value;1===(s+="s"===l.type?1:-1)?r=l.time:(r&&+r!=+l.time&&o.push(t.fromDateTimes(r,l.time)),r=null)}return t.merge(o)},e.difference=function(){for(var e=this,n=arguments.length,i=new Array(n),r=0;r=o&&i<=s[1]&&(e+=i-o)}}return parseInt(e,10)}return e}(t[0]))}}}var vn="( |"+String.fromCharCode(160)+")",_n=new RegExp(vn,"g");function yn(t){return t.replace(/\./g,"\\.?").replace(_n,vn)}function On(t){return t.replace(/\./g,"").replace(_n," ").toLowerCase()}function Cn(t,e){return null===t?null:{regex:RegExp(t.map(yn).join("|")),deser:function(n){var i=n[0];return t.findIndex((function(t){return On(i)===On(t)}))+e}}}function wn(t,e){return{regex:t,deser:function(t){return pt(t[1],t[2])},groups:e}}function Tn(t){return{regex:t,deser:function(t){return t[0]}}}var Sn={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}},kn=null;function En(t,e,n){var i=function(t,e){var n;return(n=Array.prototype).concat.apply(n,t.map((function(t){return function(t,e){if(t.literal)return t;var n=jt.macroTokenToFormatOpts(t.val);if(!n)return t;var i=jt.create(e,n).formatDateTimeParts((kn||(kn=si.fromMillis(1555555555555)),kn)).map((function(t){return function(t,e,n){var i=t.type;if("literal"===i)return{literal:!0,val:t.value};var r=Sn[i];return"object"==typeof r&&(r=r[n[i]]),r?{literal:!1,val:r}:void 0}(t,0,n)}));return i.includes(void 0)?t:i}(t,e)})))}(jt.parseFormat(n),t),r=i.map((function(e){return n=e,r=gn(i=t),s=gn(i,"{2}"),o=gn(i,"{3}"),a=gn(i,"{4}"),c=gn(i,"{6}"),l=gn(i,"{1,2}"),u=gn(i,"{1,3}"),h=gn(i,"{1,6}"),d=gn(i,"{1,9}"),p=gn(i,"{2,4}"),f=gn(i,"{4,6}"),b=function(t){return{regex:RegExp((e=t.val,e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:function(t){return t[0]},literal:!0};var e},(g=function(t){if(n.literal)return b(t);switch(t.val){case"G":return Cn(i.eras("short",!1),0);case"GG":return Cn(i.eras("long",!1),0);case"y":return mn(h);case"yy":return mn(p,ht);case"yyyy":return mn(a);case"yyyyy":return mn(f);case"yyyyyy":return mn(c);case"M":return mn(l);case"MM":return mn(s);case"MMM":return Cn(i.months("short",!0,!1),1);case"MMMM":return Cn(i.months("long",!0,!1),1);case"L":return mn(l);case"LL":return mn(s);case"LLL":return Cn(i.months("short",!1,!1),1);case"LLLL":return Cn(i.months("long",!1,!1),1);case"d":return mn(l);case"dd":return mn(s);case"o":return mn(u);case"ooo":return mn(o);case"HH":return mn(s);case"H":return mn(l);case"hh":return mn(s);case"h":return mn(l);case"mm":return mn(s);case"m":case"q":return mn(l);case"qq":return mn(s);case"s":return mn(l);case"ss":return mn(s);case"S":return mn(u);case"SSS":return mn(o);case"u":return Tn(d);case"a":return Cn(i.meridiems(),0);case"kkkk":return mn(a);case"kk":return mn(p,ht);case"W":return mn(l);case"WW":return mn(s);case"E":case"c":return mn(r);case"EEE":return Cn(i.weekdays("short",!1,!1),1);case"EEEE":return Cn(i.weekdays("long",!1,!1),1);case"ccc":return Cn(i.weekdays("short",!0,!1),1);case"cccc":return Cn(i.weekdays("long",!0,!1),1);case"Z":case"ZZ":return wn(new RegExp("([+-]"+l.source+")(?::("+s.source+"))?"),2);case"ZZZ":return wn(new RegExp("([+-]"+l.source+")("+s.source+")?"),2);case"z":return Tn(/[a-z_+-/]{1,256}?/i);default:return b(t)}}(n)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"}).token=n,g;var n,i,r,s,o,a,c,l,u,h,d,p,f,b,g})),s=r.find((function(t){return t.invalidReason}));if(s)return{input:e,tokens:i,invalidReason:s.invalidReason};var o=function(t){return["^"+t.map((function(t){return t.regex})).reduce((function(t,e){return t+"("+e.source+")"}),"")+"$",t]}(r),a=o[1],c=RegExp(o[0],"i"),l=function(t,e,n){var i=t.match(e);if(i){var r={},s=1;for(var o in n)if(tt(n,o)){var a=n[o],c=a.groups?a.groups+1:1;!a.literal&&a.token&&(r[a.token.val[0]]=a.deser(i.slice(s,s+c))),s+=c}return[i,r]}return[i,{}]}(e,c,a),u=l[0],h=l[1],d=h?function(t){var e;return e=Q(t.Z)?Q(t.z)?null:Ht.create(t.z):new Qt(t.Z),Q(t.q)||(t.M=3*(t.q-1)+1),Q(t.h)||(t.h<12&&1===t.a?t.h+=12:12===t.h&&0===t.a&&(t.h=0)),0===t.G&&t.y&&(t.y=-t.y),Q(t.u)||(t.S=rt(t.u)),[Object.keys(t).reduce((function(e,n){var i=function(t){switch(t){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}}(n);return i&&(e[i]=t[n]),e}),{}),e]}(h):[null,null],p=d[0],f=d[1];if(tt(h,"a")&&tt(h,"H"))throw new m("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:i,regex:c,rawMatches:u,matches:h,result:p,zone:f}}var xn=[0,31,59,90,120,151,181,212,243,273,304,334],Pn=[0,31,60,91,121,152,182,213,244,274,305,335];function An(t,e){return new Lt("unit out of range","you specified "+e+" (of type "+typeof e+") as a "+t+", which is invalid")}function In(t,e,n){var i=new Date(Date.UTC(t,e-1,n)).getUTCDay();return 0===i?7:i}function Mn(t,e,n){return n+(ot(t)?Pn:xn)[e-1]}function Dn(t,e){var n=ot(t)?Pn:xn,i=n.findIndex((function(t){return tut(n)?(e=n+1,a=1):e=n,Object.assign({weekYear:e,weekNumber:a,weekday:o},mt(t))}function jn(t){var e,n=t.weekYear,i=t.weekNumber,r=t.weekday,s=In(n,1,4),o=at(n),a=7*i+r-s-3;a<1?a+=at(e=n-1):a>o?(e=n+1,a-=at(n)):e=n;var c=Dn(e,a);return Object.assign({year:e,month:c.month,day:c.day},mt(t))}function Ln(t){var e=t.year,n=Mn(e,t.month,t.day);return Object.assign({year:e,ordinal:n},mt(t))}function Nn(t){var e=t.year,n=Dn(e,t.ordinal);return Object.assign({year:e,month:n.month,day:n.day},mt(t))}function Un(t){var e=G(t.year),n=et(t.month,1,12),i=et(t.day,1,ct(t.year,t.month));return e?n?!i&&An("day",t.day):An("month",t.month):An("year",t.year)}function Fn(t){var e=t.hour,n=t.minute,i=t.second,r=t.millisecond,s=et(e,0,23)||24===e&&0===n&&0===i&&0===r,o=et(n,0,59),a=et(i,0,59),c=et(r,0,999);return s?o?a?!c&&An("millisecond",r):An("second",i):An("minute",n):An("hour",e)}function Bn(t){return new Lt("unsupported zone",'the zone "'+t.name+'" is not supported')}function zn(t){return null===t.weekData&&(t.weekData=Rn(t.c)),t.weekData}function Vn(t,e){var n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new si(Object.assign({},n,e,{old:n}))}function $n(t,e,n){var i=t-60*e*1e3,r=n.offset(i);if(e===r)return[i,e];var s=n.offset(i-=60*(r-e)*1e3);return r===s?[i,r]:[t-60*Math.min(r,s)*1e3,Math.max(r,s)]}function Hn(t,e){var n=new Date(t+=60*e*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function qn(t,e,n){return $n(lt(t),e,n)}function Qn(t,e){var n=t.o,i=t.c.year+Math.trunc(e.years),r=t.c.month+Math.trunc(e.months)+3*Math.trunc(e.quarters),s=Object.assign({},t.c,{year:i,month:r,day:Math.min(t.c.day,ct(i,r))+Math.trunc(e.days)+7*Math.trunc(e.weeks)}),o=on.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),a=$n(lt(s),n,t.zone),c=a[0],l=a[1];return 0!==o&&(l=t.zone.offset(c+=o)),{ts:c,o:l}}function Wn(t,e,n,i,r){var s=n.setZone,o=n.zone;if(t&&0!==Object.keys(t).length){var a=si.fromObject(Object.assign(t,n,{zone:e||o,setZone:void 0}));return s?a:a.setZone(o)}return si.invalid(new Lt("unparsable",'the input "'+r+"\" can't be parsed as "+i))}function Gn(t,e,n){return void 0===n&&(n=!0),t.isValid?jt.create(he.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function Yn(t,e){var n=e.suppressSeconds,i=e.suppressMilliseconds,r=e.includeOffset,s=e.includeZone,o=void 0!==s&&s,a=e.spaceZone,c=e.format,l=void 0===c?"extended":c,u="basic"===l?"HHmm":"HH:mm";return void 0!==n&&n&&0===t.second&&0===t.millisecond||(u+="basic"===l?"ss":":ss",void 0!==i&&i&&0===t.millisecond||(u+=".SSS")),(o||r)&&void 0!==a&&a&&(u+=" "),o?u+="z":r&&(u+="basic"===l?"ZZZ":"ZZ"),Gn(t,u)}var Kn={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Zn={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Xn={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Jn=["year","month","day","hour","minute","second","millisecond"],ti=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],ei=["year","ordinal","hour","minute","second","millisecond"];function ni(t){var e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new v(t);return e}function ii(t,e){for(var n,i=d(Jn);!(n=i()).done;){var r=n.value;Q(t[r])&&(t[r]=Kn[r])}var s=Un(t)||Fn(t);if(s)return si.invalid(s);var o=ee.now(),a=qn(t,e.offset(o),e);return new si({ts:a[0],zone:e,o:a[1]})}function ri(t,e,n){var i=!!Q(n.round)||n.round,r=function(t,r){return t=st(t,i||n.calendary?0:2,!0),e.loc.clone(n).relFormatter(n).format(t,r)},s=function(i){return n.calendary?e.hasSame(t,i)?0:e.startOf(i).diff(t.startOf(i),i).get(i):e.diff(t,i).get(i)};if(n.unit)return r(s(n.unit),n.unit);for(var o,a=d(n.units);!(o=a()).done;){var c=o.value,l=s(c);if(Math.abs(l)>=1)return r(l,c)}return r(0,n.units[n.units.length-1])}var si=function(){function t(t){var e=t.zone||ee.defaultZone,n=t.invalid||(Number.isNaN(t.ts)?new Lt("invalid input"):null)||(e.isValid?null:Bn(e));this.ts=Q(t.ts)?ee.now():t.ts;var i=null,r=null;if(!n)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(e)){var s=[t.old.c,t.old.o];i=s[0],r=s[1]}else{var o=e.offset(this.ts);i=Hn(this.ts,o),i=(n=Number.isNaN(i.year)?new Lt("invalid input"):null)?null:i,r=n?null:o}this._zone=e,this.loc=t.loc||he.create(),this.invalid=n,this.weekData=null,this.c=i,this.o=r,this.isLuxonDateTime=!0}t.local=function(e,n,i,r,s,o,a){return Q(e)?new t({ts:ee.now()}):ii({year:e,month:n,day:i,hour:r,minute:s,second:o,millisecond:a},ee.defaultZone)},t.utc=function(e,n,i,r,s,o,a){return Q(e)?new t({ts:ee.now(),zone:Qt.utcInstance}):ii({year:e,month:n,day:i,hour:r,minute:s,second:o,millisecond:a},Qt.utcInstance)},t.fromJSDate=function(e,n){void 0===n&&(n={});var i="[object Date]"===Object.prototype.toString.call(e)?e.valueOf():NaN;if(Number.isNaN(i))return t.invalid("invalid input");var r=Gt(n.zone,ee.defaultZone);return r.isValid?new t({ts:i,zone:r,loc:he.fromObject(n)}):t.invalid(Bn(r))},t.fromMillis=function(e,n){if(void 0===n&&(n={}),W(e))return e<-864e13||e>864e13?t.invalid("Timestamp out of range"):new t({ts:e,zone:Gt(n.zone,ee.defaultZone),loc:he.fromObject(n)});throw new _("fromMillis requires a numerical input, but received a "+typeof e+" with value "+e)},t.fromSeconds=function(e,n){if(void 0===n&&(n={}),W(e))return new t({ts:1e3*e,zone:Gt(n.zone,ee.defaultZone),loc:he.fromObject(n)});throw new _("fromSeconds requires a numerical input")},t.fromObject=function(e){var n=Gt(e.zone,ee.defaultZone);if(!n.isValid)return t.invalid(Bn(n));var i=ee.now(),r=n.offset(i),s=bt(e,ni,["zone","locale","outputCalendar","numberingSystem"]),o=!Q(s.ordinal),a=!Q(s.year),c=!Q(s.month)||!Q(s.day),l=a||c,u=s.weekYear||s.weekNumber,h=he.fromObject(e);if((l||o)&&u)throw new m("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&o)throw new m("Can't mix ordinal dates with month/day");var p,f,b=u||s.weekday&&!l,g=Hn(i,r);b?(p=ti,f=Zn,g=Rn(g)):o?(p=ei,f=Xn,g=Ln(g)):(p=Jn,f=Kn);for(var v,_=!1,y=d(p);!(v=y()).done;){var O=v.value;Q(s[O])?s[O]=_?f[O]:g[O]:_=!0}var C=(b?function(t){var e=G(t.weekYear),n=et(t.weekNumber,1,ut(t.weekYear)),i=et(t.weekday,1,7);return e?n?!i&&An("weekday",t.weekday):An("week",t.week):An("weekYear",t.weekYear)}(s):o?function(t){var e=G(t.year),n=et(t.ordinal,1,at(t.year));return e?!n&&An("ordinal",t.ordinal):An("year",t.year)}(s):Un(s))||Fn(s);if(C)return t.invalid(C);var w=qn(b?jn(s):o?Nn(s):s,r,n),T=new t({ts:w[0],zone:n,o:w[1],loc:h});return s.weekday&&l&&e.weekday!==T.weekday?t.invalid("mismatched weekday","you can't specify both a weekday of "+s.weekday+" and a date of "+T.toISO()):T},t.fromISO=function(t,e){void 0===e&&(e={});var n=function(t){return fe(t,[Be,He],[ze,qe],[Ve,Qe],[$e,We])}(t);return Wn(n[0],n[1],e,"ISO 8601",t)},t.fromRFC2822=function(t,e){void 0===e&&(e={});var n=function(t){return fe(function(t){return t.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(t),[De,Re])}(t);return Wn(n[0],n[1],e,"RFC 2822",t)},t.fromHTTP=function(t,e){void 0===e&&(e={});var n=function(t){return fe(t,[je,Ue],[Le,Ue],[Ne,Fe])}(t);return Wn(n[0],n[1],e,"HTTP",e)},t.fromFormat=function(e,n,i){if(void 0===i&&(i={}),Q(e)||Q(n))throw new _("fromFormat requires an input string and a format");var r,s=i.locale,o=i.numberingSystem,a=[(r=En(he.fromOpts({locale:void 0===s?null:s,numberingSystem:void 0===o?null:o,defaultToEN:!0}),e,n)).result,r.zone,r.invalidReason],c=a[0],l=a[1],u=a[2];return u?t.invalid(u):Wn(c,l,i,"format "+n,e)},t.fromString=function(e,n,i){return void 0===i&&(i={}),t.fromFormat(e,n,i)},t.fromSQL=function(t,e){void 0===e&&(e={});var n=function(t){return fe(t,[Ge,Ke],[Ye,Ze])}(t);return Wn(n[0],n[1],e,"SQL",t)},t.invalid=function(e,n){if(void 0===n&&(n=null),!e)throw new _("need to specify a reason the DateTime is invalid");var i=e instanceof Lt?e:new Lt(e,n);if(ee.throwOnInvalid)throw new f(i);return new t({invalid:i})},t.isDateTime=function(t){return t&&t.isLuxonDateTime||!1};var e=t.prototype;return e.get=function(t){return this[t]},e.resolvedLocaleOpts=function(t){void 0===t&&(t={});var e=jt.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:e.locale,numberingSystem:e.numberingSystem,outputCalendar:e.calendar}},e.toUTC=function(t,e){return void 0===t&&(t=0),void 0===e&&(e={}),this.setZone(Qt.instance(t),e)},e.toLocal=function(){return this.setZone(ee.defaultZone)},e.setZone=function(e,n){var i=void 0===n?{}:n,r=i.keepLocalTime,s=void 0!==r&&r,o=i.keepCalendarTime,a=void 0!==o&&o;if((e=Gt(e,ee.defaultZone)).equals(this.zone))return this;if(e.isValid){var c=this.ts;if(s||a){var l=e.offset(this.ts);c=qn(this.toObject(),l,e)[0]}return Vn(this,{ts:c,zone:e})}return t.invalid(Bn(e))},e.reconfigure=function(t){var e=void 0===t?{}:t;return Vn(this,{loc:this.loc.clone({locale:e.locale,numberingSystem:e.numberingSystem,outputCalendar:e.outputCalendar})})},e.setLocale=function(t){return this.reconfigure({locale:t})},e.set=function(t){if(!this.isValid)return this;var e,n=bt(t,ni,[]);Q(n.weekYear)&&Q(n.weekNumber)&&Q(n.weekday)?Q(n.ordinal)?(e=Object.assign(this.toObject(),n),Q(n.day)&&(e.day=Math.min(ct(e.year,e.month),e.day))):e=Nn(Object.assign(Ln(this.c),n)):e=jn(Object.assign(Rn(this.c),n));var i=qn(e,this.o,this.zone);return Vn(this,{ts:i[0],o:i[1]})},e.plus=function(t){return this.isValid?Vn(this,Qn(this,an(t))):this},e.minus=function(t){return this.isValid?Vn(this,Qn(this,an(t).negate())):this},e.startOf=function(t){if(!this.isValid)return this;var e={},n=on.normalizeUnit(t);switch(n){case"years":e.month=1;case"quarters":case"months":e.day=1;case"weeks":case"days":e.hour=0;case"hours":e.minute=0;case"minutes":e.second=0;case"seconds":e.millisecond=0}if("weeks"===n&&(e.weekday=1),"quarters"===n){var i=Math.ceil(this.month/3);e.month=3*(i-1)+1}return this.set(e)},e.endOf=function(t){var e;return this.isValid?this.plus((e={},e[t]=1,e)).startOf(t).minus(1):this},e.toFormat=function(t,e){return void 0===e&&(e={}),this.isValid?jt.create(this.loc.redefaultToEN(e)).formatDateTimeFromString(this,t):"Invalid DateTime"},e.toLocaleString=function(t){return void 0===t&&(t=T),this.isValid?jt.create(this.loc.clone(t),t).formatDateTime(this):"Invalid DateTime"},e.toLocaleParts=function(t){return void 0===t&&(t={}),this.isValid?jt.create(this.loc.clone(t),t).formatDateTimeParts(this):[]},e.toISO=function(t){return void 0===t&&(t={}),this.isValid?this.toISODate(t)+"T"+this.toISOTime(t):null},e.toISODate=function(t){var e=(void 0===t?{}:t).format,n="basic"===(void 0===e?"extended":e)?"yyyyMMdd":"yyyy-MM-dd";return this.year>9999&&(n="+"+n),Gn(this,n)},e.toISOWeekDate=function(){return Gn(this,"kkkk-'W'WW-c")},e.toISOTime=function(t){var e=void 0===t?{}:t,n=e.suppressMilliseconds,i=e.suppressSeconds,r=e.includeOffset,s=e.format;return Yn(this,{suppressSeconds:void 0!==i&&i,suppressMilliseconds:void 0!==n&&n,includeOffset:void 0===r||r,format:void 0===s?"extended":s})},e.toRFC2822=function(){return Gn(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)},e.toHTTP=function(){return Gn(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")},e.toSQLDate=function(){return Gn(this,"yyyy-MM-dd")},e.toSQLTime=function(t){var e=void 0===t?{}:t,n=e.includeOffset,i=e.includeZone;return Yn(this,{includeOffset:void 0===n||n,includeZone:void 0!==i&&i,spaceZone:!0})},e.toSQL=function(t){return void 0===t&&(t={}),this.isValid?this.toSQLDate()+" "+this.toSQLTime(t):null},e.toString=function(){return this.isValid?this.toISO():"Invalid DateTime"},e.valueOf=function(){return this.toMillis()},e.toMillis=function(){return this.isValid?this.ts:NaN},e.toSeconds=function(){return this.isValid?this.ts/1e3:NaN},e.toJSON=function(){return this.toISO()},e.toBSON=function(){return this.toJSDate()},e.toObject=function(t){if(void 0===t&&(t={}),!this.isValid)return{};var e=Object.assign({},this.c);return t.includeConfig&&(e.outputCalendar=this.outputCalendar,e.numberingSystem=this.loc.numberingSystem,e.locale=this.loc.locale),e},e.toJSDate=function(){return new Date(this.isValid?this.ts:NaN)},e.diff=function(t,e,n){if(void 0===e&&(e="milliseconds"),void 0===n&&(n={}),!this.isValid||!t.isValid)return on.invalid(this.invalid||t.invalid,"created by diffing an invalid DateTime");var i,r=Object.assign({locale:this.locale,numberingSystem:this.numberingSystem},n),s=(i=e,Array.isArray(i)?i:[i]).map(on.normalizeUnit),o=t.valueOf()>this.valueOf(),a=function(t,e,n,i){var r,s=function(t,e,n){for(var i,r,s={},o=0,a=[["years",function(t,e){return e.year-t.year}],["months",function(t,e){return e.month-t.month+12*(e.year-t.year)}],["weeks",function(t,e){var n=dn(t,e);return(n-n%7)/7}],["days",dn]];o=0){var h;i=l;var d,p=u(t,e);(r=t.plus(((h={})[l]=p,h)))>e?(t=t.plus(((d={})[l]=p-1,d)),p-=1):t=r,s[l]=p}}return[t,s,r,i]}(t,e,n),o=s[0],a=s[1],c=s[2],l=s[3],u=e-o,h=n.filter((function(t){return["hours","minutes","seconds","milliseconds"].indexOf(t)>=0}));0===h.length&&(c0?(d=on.fromMillis(u,i)).shiftTo.apply(d,h).plus(p):p}(o?this:t,o?t:this,s,r);return o?a.negate():a},e.diffNow=function(e,n){return void 0===e&&(e="milliseconds"),void 0===n&&(n={}),this.diff(t.local(),e,n)},e.until=function(t){return this.isValid?un.fromDateTimes(this,t):this},e.hasSame=function(t,e){if(!this.isValid)return!1;if("millisecond"===e)return this.valueOf()===t.valueOf();var n=t.valueOf();return this.startOf(e)<=n&&n<=this.endOf(e)},e.equals=function(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)},e.toRelative=function(e){if(void 0===e&&(e={}),!this.isValid)return null;var n=e.base||t.fromObject({zone:this.zone});return ri(n,this.plus(e.padding?thisthis.set({month:1}).offset||this.offset>this.set({month:5}).offset)}},{key:"isInLeapYear",get:function(){return ot(this.year)}},{key:"daysInMonth",get:function(){return ct(this.year,this.month)}},{key:"daysInYear",get:function(){return this.isValid?at(this.year):NaN}},{key:"weeksInWeekYear",get:function(){return this.isValid?ut(this.weekYear):NaN}}],[{key:"DATE_SHORT",get:function(){return T}},{key:"DATE_MED",get:function(){return S}},{key:"DATE_MED_WITH_WEEKDAY",get:function(){return k}},{key:"DATE_FULL",get:function(){return E}},{key:"DATE_HUGE",get:function(){return x}},{key:"TIME_SIMPLE",get:function(){return P}},{key:"TIME_WITH_SECONDS",get:function(){return A}},{key:"TIME_WITH_SHORT_OFFSET",get:function(){return I}},{key:"TIME_WITH_LONG_OFFSET",get:function(){return M}},{key:"TIME_24_SIMPLE",get:function(){return D}},{key:"TIME_24_WITH_SECONDS",get:function(){return R}},{key:"TIME_24_WITH_SHORT_OFFSET",get:function(){return j}},{key:"TIME_24_WITH_LONG_OFFSET",get:function(){return L}},{key:"DATETIME_SHORT",get:function(){return N}},{key:"DATETIME_SHORT_WITH_SECONDS",get:function(){return U}},{key:"DATETIME_MED",get:function(){return F}},{key:"DATETIME_MED_WITH_SECONDS",get:function(){return B}},{key:"DATETIME_MED_WITH_WEEKDAY",get:function(){return z}},{key:"DATETIME_FULL",get:function(){return V}},{key:"DATETIME_FULL_WITH_SECONDS",get:function(){return $}},{key:"DATETIME_HUGE",get:function(){return H}},{key:"DATETIME_HUGE_WITH_SECONDS",get:function(){return q}}]),t}();function oi(t){if(si.isDateTime(t))return t;if(t&&t.valueOf&&W(t.valueOf()))return si.fromJSDate(t);if(t&&"object"==typeof t)return si.fromObject(t);throw new _("Unknown datetime argument: "+t+", of type "+typeof t)}e.DateTime=si,e.Duration=on,e.FixedOffsetZone=Qt,e.IANAZone=Ht,e.Info=hn,e.Interval=un,e.InvalidZone=Wt,e.LocalZone=Ft,e.Settings=ee,e.Zone=Nt},A2S1:function(t,e,n){"use strict";n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return a}));var i=n("5uGe"),r=n("ryP2");function s(t,e=0){return function(n){return n.lift(new o(t,e))}}class o{constructor(t,e=0){this.scheduler=t,this.delay=e}call(t,e){return e.subscribe(new a(t,this.scheduler,this.delay))}}class a extends i.a{constructor(t,e,n=0){super(t),this.scheduler=e,this.delay=n}static dispatch(t){const{notification:e,destination:n}=t;e.observe(n),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(a.dispatch,this.delay,new c(t,this.destination)))}_next(t){this.scheduleMessage(r.a.createNext(t))}_error(t){this.scheduleMessage(r.a.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(r.a.createComplete()),this.unsubscribe()}}class c{constructor(t,e){this.notification=t,this.destination=e}}},A9Vm:function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return o}));var i=n("TYVA"),r=n("kZht");let s=(()=>{class t{transform(t){try{return Object(i.k)(t)}catch(e){return t}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r.Nb({name:"pairBase",type:t,pure:!0}),t})(),o=(()=>{class t{transform(t){try{return Object(i.l)(t)}catch(e){return t}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r.Nb({name:"pairQuote",type:t,pure:!0}),t})()},"AD/o":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("kZht");let r=(()=>{class t{constructor(t,e){this.renderer=t,this.element=e}ngOnChanges(){this.renderer.addClass(this.element.nativeElement,"global__flash")}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.G),i.Ob(i.l))},t.\u0275dir=i.Jb({type:t,selectors:[["","flash",""]],inputs:{flash:"flash"},features:[i.Ab]}),t})()},AdKB:function(t,e,n){"use strict";n.d(e,"a",(function(){return le}));var i=n("kZht"),r=n("9baa"),s=n("zqNl"),o=n("YtkY"),a=n("xVbo"),c=n("YzTY"),l=n("94ty"),u=n("uJYd"),h=n("yN5A"),d=n("0tVE"),p=n("lE9u"),f=n("sXtk"),b=n("bjK4"),g=n("UbJG"),m=n("+Px6"),v=n("qAYy"),_=n("rxqU"),y=n("J/3c"),O=n("MUfl"),C=n("sxqi"),w=n("i67J"),T=n("vYTc"),S=n("YyhG"),k=(n("Ee7O"),n("Aey0")),E=n("6NrZ"),x=n("Asjx"),P=n("1VvW"),A=n("Eu46"),I=n("LBlH"),M=n("y1fC"),D=n("pPqe"),R=n("aaFr"),j=n("MqcE"),L=n("YC1o"),N=n("An66"),U=n("ROO/"),F=n("8EXQ"),B=n("icqo"),z=n("TADc"),V=n("hCLc"),$=n("anSm"),H=n("B6Vo"),q=n("zho4"),Q=n("o09O"),W=n("NxuZ"),G=n("1etq"),Y=n("SAoO"),K=n("rEzU"),Z=n("ykds"),X=n("AsU5"),J=n("ENxB"),tt=n("HHCP"),et=n("oiza"),nt=n("1o0v"),it=n("m6an"),rt=n("8spT"),st=n("UDV5"),ot=n("OwpI"),at=n("bo+2"),ct=n("yPvj"),lt=n("w2Kr"),ut=n("aDqW"),ht=n("DpwM"),dt=n("e7kw"),pt=n("P0Um");const ft=["workspaceTourPopper"],bt=["tabsTourPopper"],gt=["workspaceRef"],mt=["tourPositionRef"];function vt(t,e){if(1&t&&(i.Ub(0,"section",46),i.Qc(1),i.gc(2,"translate"),i.gc(3,"async"),i.Tb()),2&t){const t=i.fc(2);i.Cb(1),i.Sc(" ",i.hc(2,1,i.hc(3,3,t.pageTitle$)||"")," ")}}function _t(t,e){1&t&&(i.Ub(0,"a",52),i.Pb(1,"fa-icon",49),i.Qc(2," Multi-Collateral Futures "),i.Pb(3,"pill",53),i.Tb()),2&t&&(i.Cb(3),i.mc("label","New"))}function yt(t,e){if(1&t&&(i.Sb(0),i.Ub(1,"div",47),i.Ub(2,"a",48),i.Pb(3,"fa-icon",49),i.Qc(4," Holding Wallets "),i.Tb(),i.Ub(5,"a",50),i.Pb(6,"fa-icon",49),i.Qc(7," Single Collateral Futures "),i.Tb(),i.Oc(8,_t,4,1,"a",51),i.gc(9,"async"),i.Tb(),i.Rb()),2&t){const t=i.fc(2);i.Cb(8),i.mc("ngIf",i.hc(9,1,t.flexEnabled$))}}function Ot(t,e){if(1&t){const t=i.Vb();i.Ub(0,"fa-icon",56),i.bc("click",(function(){i.Ec(t);const n=e.ngLet,r=i.fc(2).ngLet;return i.fc().updateFavorite(r,n)})),i.Tb()}2&t&&i.mc("icon",e.ngLet?"star-filled":"star-unfilled")}function Ct(t,e){1&t&&i.Pb(0,"flex-position")}function wt(t,e){if(1&t&&(i.Sb(0),i.Ub(1,"section",54),i.Oc(2,Ot,1,1,"fa-icon",55),i.gc(3,"async"),i.Pb(4,"market-dropdowns"),i.Oc(5,Ct,1,0,"flex-position",23),i.gc(6,"async"),i.Tb(),i.Rb()),2&t){const t=i.fc(2);i.Cb(2),i.mc("ngLet",i.hc(3,2,t.isSelectedTickerFavorite$)),i.Cb(3),i.mc("ngIf",t.email&&i.hc(6,4,t.isFlexMarket$))}}function Tt(t,e){1&t&&(i.Sb(0),i.Pb(1,"dlt-banner"),i.Rb())}function St(t,e){1&t&&i.Pb(0,"fusion-banner")}function kt(t,e){if(1&t&&(i.Ub(0,"div",57),i.Ub(1,"div",58),i.Pb(2,"fa-icon",59),i.Ub(3,"div",60),i.Qc(4),i.gc(5,"translate"),i.Tb(),i.Ub(6,"div"),i.Qc(7),i.gc(8,"crypto"),i.gc(9,"async"),i.Tb(),i.Tb(),i.Tb()),2&t){const t=i.fc(2),e=i.Ac(54);i.Cb(1),i.mc("sbTooltip",e),i.Cb(3),i.Rc(i.hc(5,3,"LABEL.TOTAL_EQUITY")),i.Cb(3),i.Sc("$",i.ic(8,5,i.hc(9,8,t.totalEquity$),"USD")," USD")}}function Et(t,e){1&t&&(i.Sb(0),i.Ub(1,"div",61),i.Ub(2,"span",62),i.Qc(3),i.gc(4,"translate"),i.Tb(),i.Tb(),i.Rb()),2&t&&(i.Cb(3),i.Rc(i.hc(4,1,"LOADING.USER")))}function xt(t,e){1&t&&i.Pb(0,"div",33)}function Pt(t,e){1&t&&i.Qb(0)}function At(t,e){if(1&t&&i.Oc(0,Pt,1,0,"ng-container",63),2&t){i.fc();const t=i.Ac(26),e=i.Ac(28),n=i.fc();i.mc("ngIf",n.email)("ngIfThen",t)("ngIfElse",e)}}function It(t,e){if(1&t&&(i.Ub(0,"button",65),i.Pb(1,"fa-icon",66),i.Qc(2),i.Pb(3,"fa-icon",40),i.Tb()),2&t){i.fc(3);const t=i.Ac(6);i.mc("sbMenuTriggerFor",t),i.Cb(2),i.Sc(" "," "," ")}}function Mt(t,e){if(1&t&&i.Oc(0,It,4,2,"button",64),2&t){const t=i.fc(2);i.mc("ngIf",t.email)}}function Dt(t,e){if(1&t){const t=i.Vb();i.Ub(0,"button",69),i.bc("click",(function(){return i.Ec(t),i.fc(3).signUp()})),i.Qc(1),i.gc(2,"translate"),i.Tb()}2&t&&(i.Cb(1),i.Sc(" ",i.hc(2,1,"BUTTON.SIGNUP")," "))}function Rt(t,e){if(1&t){const t=i.Vb();i.Oc(0,Dt,3,3,"button",67),i.Ub(1,"button",68),i.bc("click",(function(){return i.Ec(t),i.fc(2).signIn()})),i.Qc(2),i.gc(3,"translate"),i.Tb()}if(2&t){const t=i.fc(2);i.mc("ngIf",!t.isMobile),i.Cb(2),i.Sc(" ",i.hc(3,2,"BUTTON.SIGNIN")," ")}}function jt(t,e){1&t&&(i.Ub(0,"div",70),i.Pb(1,"market-bar"),i.Tb())}const Lt=function(t){return{"is-trading":t}};function Nt(t,e){if(1&t&&(i.Ub(0,"section",30),i.Ub(1,"div",31),i.Oc(2,vt,4,5,"section",32),i.Oc(3,yt,10,3,"ng-container",23),i.Oc(4,wt,7,6,"ng-container",23),i.Pb(5,"div",33),i.Oc(6,Tt,2,0,"ng-container",34),i.gc(7,"async"),i.Oc(8,St,1,0,"ng-template",null,35,i.Pc),i.Pb(10,"sb-divider",36),i.Oc(11,kt,10,10,"div",37),i.gc(12,"async"),i.Pb(13,"sb-divider",36),i.Ub(14,"button",38),i.Pb(15,"fa-icon",39),i.Qc(16),i.Pb(17,"fa-icon",40),i.Tb(),i.Pb(18,"sb-divider",36),i.Oc(19,Et,5,3,"ng-container",34),i.gc(20,"async"),i.Oc(21,xt,1,0,"ng-template",null,41,i.Pc),i.Oc(23,At,1,3,"ng-template",null,42,i.Pc),i.Oc(25,Mt,1,1,"ng-template",null,43,i.Pc),i.Oc(27,Rt,4,4,"ng-template",null,44,i.Pc),i.Tb(),i.Oc(29,jt,2,0,"div",45),i.Tb()),2&t){const t=e.ngLet,n=i.Ac(9),r=i.Ac(24),s=i.fc(),o=i.Ac(3);i.mc("ngClass",i.rc(18,Lt,s.isTrading)),i.Cb(2),i.mc("ngIf",!s.isTrading),i.Cb(1),i.mc("ngIf",s.isWallets),i.Cb(1),i.mc("ngIf",s.isTrading),i.Cb(2),i.mc("ngIf",i.hc(7,12,s.isDltAccount$))("ngIfElse",n),i.Cb(5),i.mc("ngIf",s.email&&i.hc(12,14,s.displayEquity$)),i.Cb(3),i.mc("sbTriggerFor",o),i.Cb(2),i.Sc(" "," "," "),i.Cb(3),i.mc("ngIf",i.hc(20,16,s.userDetailsLoading$))("ngIfElse",r),i.Cb(10),i.mc("ngIf",t&&s.isTrading)}}function Ut(t,e){if(1&t){const t=i.Vb();i.Ub(0,"mat-checkbox",80),i.bc("change",(function(n){i.Ec(t);const r=e.$implicit;return i.fc(4).toggleComponent(n.checked,r)})),i.Qc(1),i.Tb()}if(2&t){const t=e.$implicit,n=i.fc(4);i.mc("checked",n.isUsedComponent(t)),i.Cb(1),i.Rc(t.componentName)}}function Ft(t,e){if(1&t){const t=i.Vb();i.Sb(0),i.Ub(1,"div",76),i.Oc(2,Ut,2,2,"mat-checkbox",77),i.Tb(),i.Ub(3,"button",78),i.bc("click",(function(){return i.Ec(t),i.fc(3).resetGrid()})),i.Qc(4,"Reset"),i.Tb(),i.Ub(5,"button",78),i.bc("click",(function(){return i.Ec(t),i.fc(3).toggleLayoutLock()})),i.Pb(6,"fa-icon",79),i.Qc(7),i.Tb(),i.Rb()}if(2&t){const t=i.fc(3);i.Cb(2),i.mc("ngForOf",t.allGridComponents),i.Cb(4),i.mc("icon",t.layoutUnlocked?"unlock":"lock"),i.Cb(1),i.Sc(" Layout: ",t.layoutUnlocked?"Unlocked":"Locked"," ")}}function Bt(t,e){if(1&t){const t=i.Vb();i.Ub(0,"div",87),i.Ub(1,"button",88),i.bc("click",(function(){i.Ec(t);const n=e.$implicit;return i.fc(4).setLayout(n.id)})),i.Qc(2),i.gc(3,"translate"),i.Tb(),i.Ub(4,"button",89),i.bc("click",(function(){i.Ec(t);const n=e.$implicit;return i.fc(4).openWorkspaceInTab(n.id)})),i.Tb(),i.Ub(5,"button",90),i.bc("click",(function(){i.Ec(t);const n=e.$implicit;return i.fc(4).renameWorkspace(n)})),i.Tb(),i.Ub(6,"button",91),i.bc("click",(function(){i.Ec(t);const n=e.$implicit;return i.fc(4).duplicateWorkspace(n)})),i.Tb(),i.Pb(7,"button",92),i.Ub(8,"button",93),i.bc("click",(function(){i.Ec(t);const n=e.$implicit;return i.fc(4).deleteWorkspace(n)})),i.Tb(),i.Tb()}if(2&t){const t=e.$implicit,n=i.fc(4);i.Cb(1),i.mc("sbIconColor","var(--brand)"),i.Cb(1),i.Sc(" ","WORKSPACE.__DEFAULT__"===t.name?i.hc(3,8,"WORKSPACE.__DEFAULT__"):t.name," "),i.Cb(2),i.mc("sbTooltip","TOOLTIP.WORKSPACE_NEW_TAB"),i.Cb(1),i.mc("sbTooltip","BUTTON.RENAME"),i.Cb(1),i.mc("sbTooltip","BUTTON.DUPLICATE"),i.Cb(1),i.mc("sbTooltip","BUTTON.SHARE")("clipboard",n.encodeLayout(t)),i.Cb(1),i.mc("sbTooltip","BUTTON.DELETE")}}function zt(t,e){if(1&t){const t=i.Vb();i.Ub(0,"button",94),i.bc("click",(function(){return i.Ec(t),i.fc(4).createLayout()})),i.Qc(1),i.gc(2,"translate"),i.Tb()}2&t&&(i.mc("sbIconColor","var(--brand)"),i.Cb(1),i.Sc(" ",i.hc(2,2,"LABEL.CREATE_WORKSPACE")," "))}function Vt(t,e){if(1&t){const t=i.Vb();i.Sb(0),i.Oc(1,Bt,9,10,"div",81),i.gc(2,"async"),i.Ub(3,"div",82,83),i.Oc(5,zt,3,4,"button",84),i.gc(6,"async"),i.Ub(7,"button",85),i.bc("click",(function(){return i.Ec(t),i.fc(3).loadLayout()})),i.Qc(8),i.gc(9,"translate"),i.Tb(),i.Ub(10,"button",86),i.bc("click",(function(){return i.Ec(t),i.fc(3).resetLayout()})),i.Qc(11),i.gc(12,"translate"),i.Tb(),i.Tb(),i.Rb()}if(2&t){const t=i.fc(3);var n;i.Cb(1),i.mc("ngForOf",i.hc(2,6,t.customLayouts$)),i.Cb(4),i.mc("ngIf",(null==(n=i.hc(6,8,t.customLayouts$))?null:n.length)<6),i.Cb(2),i.mc("sbIconColor","var(--brand)"),i.Cb(1),i.Sc(" ",i.hc(9,10,"BUTTON.LOAD")," "),i.Cb(2),i.mc("sbIconColor","var(--brand)"),i.Cb(1),i.Sc(" ",i.hc(12,12,"BUTTON.RESET")," ")}}function $t(t,e){if(1&t){const t=i.Vb();i.Sb(0),i.Ub(1,"mat-radio-group",73),i.bc("change",(function(e){return i.Ec(t),i.fc(2).setWorkspaceType(e)})),i.Ub(2,"mat-radio-button",74),i.Qc(3," Workspaces "),i.Tb(),i.Ub(4,"mat-radio-button",75),i.Qc(5," Draggable "),i.Tb(),i.Tb(),i.Oc(6,Ft,8,3,"ng-container",23),i.Oc(7,Vt,13,14,"ng-container",23),i.Rb()}if(2&t){const t=e.ngLet;i.Cb(1),i.mc("value",t),i.Cb(5),i.mc("ngIf","draggable"===t),i.Cb(1),i.mc("ngIf","workspaces"===t)}}function Ht(t,e){if(1&t&&(i.Ub(0,"div",71),i.Oc(1,$t,8,3,"ng-container",72),i.gc(2,"async"),i.Tb()),2&t){const t=i.fc();i.Cb(1),i.mc("ngLet",i.hc(2,1,t.layoutType$))}}function qt(t,e){if(1&t){const t=i.Vb();i.Ub(0,"button",95),i.bc("click",(function(){return i.Ec(t),i.fc().addMoney()})),i.Qc(1),i.gc(2,"translate"),i.Tb()}2&t&&(i.Cb(1),i.Sc(" ",i.hc(2,1,"NAV.ADD_MONEY")," "))}function Qt(t,e){if(1&t&&(i.Ub(0,"button",96),i.Qc(1),i.gc(2,"translate"),i.Tb()),2&t){const t=i.fc();i.mc("sbIconColor","NONE"===t.userTier||"FAILED"===t.userTier&&"NONE"===t.userClassification?"var(--warn-colour)":void 0),i.Cb(1),i.Sc(" ",i.hc(2,2,"NAV.VERIFICATION")," ")}}function Wt(t,e){1&t&&(i.Ub(0,"button",97),i.Qc(1),i.gc(2,"translate"),i.Tb()),2&t&&(i.Cb(1),i.Sc(" ",i.hc(2,1,"NAV.SUBACCOUNTS")," "))}function Gt(t,e){if(1&t){const t=i.Vb();i.Ub(0,"button",98),i.Ub(1,"language-menu",99),i.bc("updateLanguage",(function(e){return i.Ec(t),i.fc().updateLanguage$.emit(e)})),i.Qc(2),i.gc(3,"translate"),i.Tb(),i.Tb()}if(2&t){const t=i.fc();i.Cb(1),i.mc("currentLanguage",t.currentLanguage),i.Cb(1),i.Tc(" ",i.hc(3,3,"LABEL.SELECT_LANGUAGE")," (",t.currentLanguage,") ")}}function Yt(t,e){if(1&t){const t=i.Vb();i.Ub(0,"button",100),i.bc("click",(function(){return i.Ec(t),i.fc().openDemo()})),i.Qc(1),i.gc(2,"translate"),i.Tb()}2&t&&(i.Cb(1),i.Sc(" ",i.hc(2,1,"LABEL.GOTO_DEMO")," "))}function Kt(t,e){if(1&t&&(i.Ub(0,"button",101),i.Qc(1),i.gc(2,"translate"),i.Tb()),2&t){i.fc();const t=i.Ac(50);i.mc("sbMenuTriggerFor",t),i.Cb(1),i.Sc(" ",i.hc(2,2,"NAV.EXTERNAL_RESOURCES")," ")}}function Zt(t,e){if(1&t){const t=i.Vb();i.Ub(0,"button",95),i.bc("click",(function(){return i.Ec(t),i.fc().addMoney()})),i.Qc(1),i.gc(2,"translate"),i.Tb()}2&t&&(i.Cb(1),i.Sc(" ",i.hc(2,1,"NAV.ADD_MONEY")," "))}function Xt(t,e){if(1&t){const t=i.Vb();i.Ub(0,"button",19),i.bc("click",(function(){return i.Ec(t),i.fc().restartPlatform$.emit()})),i.Qc(1),i.gc(2,"translate"),i.Tb()}2&t&&(i.Cb(1),i.Sc(" ",i.hc(2,1,"BUTTON.RESTART")," "))}function Jt(t,e){if(1&t&&(i.Ub(0,"a",103),i.gc(1,"supportArticle"),i.gc(2,"supportCategory"),i.Qc(3),i.gc(4,"translate"),i.Tb()),2&t){const t=e.$implicit;i.mc("href",t.supportArticle?i.hc(1,2,t.supportArticle):t.supportCategory?i.hc(2,4,t.supportCategory):t.url,i.Gc),i.Cb(3),i.Sc(" ",i.hc(4,6,t.name)," ")}}function te(t,e){if(1&t&&(i.Sb(0),i.Oc(1,Jt,5,8,"a",102),i.Rb()),2&t){const t=e.ngIf;i.Cb(1),i.mc("ngForOf",t)}}function ee(t,e){if(1&t&&(i.Sb(0),i.Ub(1,"span",107),i.Qc(2),i.gc(3,"translate"),i.Tb(),i.Ub(4,"span",108),i.Qc(5),i.gc(6,"crypto"),i.gc(7,"async"),i.Tb(),i.Ub(8,"span",107),i.Qc(9),i.gc(10,"translate"),i.Tb(),i.Ub(11,"span",108),i.Qc(12),i.gc(13,"crypto"),i.gc(14,"async"),i.Tb(),i.Rb()),2&t){const t=i.fc(2);i.Cb(2),i.Sc("",i.hc(3,4,"Single Collateral Futures"),":"),i.Cb(3),i.Sc("$",i.ic(6,6,i.hc(7,9,t.futuresEquity$),"USD")," USD"),i.Cb(4),i.Sc("",i.hc(10,11,"Multi-Collateral Futures"),":"),i.Cb(3),i.Sc("$",i.ic(13,13,i.hc(14,16,t.flexEquity$),"USD")," USD")}}function ne(t,e){if(1&t&&(i.Ub(0,"span",107),i.Qc(1),i.gc(2,"translate"),i.Tb(),i.Ub(3,"span",108),i.Qc(4),i.gc(5,"crypto"),i.gc(6,"async"),i.Tb()),2&t){const t=i.fc(2);i.Cb(1),i.Sc("",i.hc(2,2,"LABEL.EQUITY_CLASS_FUTURES"),":"),i.Cb(3),i.Sc("$",i.ic(5,4,i.hc(6,7,t.futuresEquity$),"USD")," USD")}}function ie(t,e){if(1&t&&(i.Ub(0,"div",113),i.Pb(1,"market-icon",114),i.Ub(2,"span"),i.Qc(3),i.gc(4,"walletName"),i.Tb(),i.Ub(5,"span",108),i.Qc(6),i.gc(7,"crypto"),i.Tb(),i.Tb()),2&t){const t=e.$implicit;i.Cb(1),i.mc("base",t.name),i.Cb(2),i.Rc(i.hc(4,3,t.name)),i.Cb(3),i.Sc(" $",i.ic(7,5,t.totalNotional,"USD")," USD")}}function re(t,e){if(1&t&&(i.Ub(0,"div",111),i.Oc(1,ie,8,8,"div",112),i.Tb()),2&t){const t=e.ngIf;i.Cb(1),i.mc("ngForOf",t)("ngForTrackField","asset")}}function se(t,e){if(1&t&&(i.Sb(0),i.Oc(1,re,2,2,"div",110),i.gc(2,"async"),i.Rb()),2&t){const t=i.fc(2);i.Cb(1),i.mc("ngIf",i.hc(2,1,t.holdingWalletsWithTotalEquity$))}}function oe(t,e){if(1&t&&(i.Ub(0,"div",104),i.Ub(1,"h2",105),i.Qc(2),i.gc(3,"translate"),i.Tb(),i.Ub(4,"div",106),i.Ub(5,"span",107),i.Qc(6),i.gc(7,"translate"),i.Tb(),i.Ub(8,"span",108),i.Qc(9),i.gc(10,"crypto"),i.gc(11,"async"),i.Tb(),i.Ub(12,"span",107),i.Qc(13),i.gc(14,"translate"),i.Tb(),i.Ub(15,"span",108),i.Qc(16),i.gc(17,"crypto"),i.gc(18,"async"),i.Tb(),i.Oc(19,ee,15,18,"ng-container",34),i.Oc(20,ne,7,9,"ng-template",null,109,i.Pc),i.Tb(),i.Oc(22,se,3,3,"ng-container",23),i.Tb()),2&t){const t=i.Ac(21),e=i.fc();i.Cb(2),i.Sc("",i.hc(3,8,"HEADING.EQUITY_BREAKDOWN"),":"),i.Cb(4),i.Sc("",i.hc(7,10,"LABEL.TOTAL_EQUITY"),":"),i.Cb(3),i.Sc("$",i.ic(10,12,i.hc(11,15,e.totalEquity$),"USD")," USD"),i.Cb(4),i.Sc("",i.hc(14,17,"LABEL.EQUITY_CLASS_HOLDING"),":"),i.Cb(3),i.Sc("$",i.ic(17,19,i.hc(18,22,e.holdingEquity$),"USD")," USD"),i.Cb(3),i.mc("ngIf",e.feature.isEnabled("flex"))("ngIfElse",t),i.Cb(3),i.mc("ngIf",!e.feature.isEnabled("flex"))}}function ae(t,e){if(1&t){const t=i.Vb();i.Ub(0,"tour-step",115),i.bc("dispose",(function(){return i.Ec(t),i.fc(),i.Ac(56).dispose()}))("nextEvent",(function(){return i.Ec(t),i.fc().tourOnNextWorkspace()})),i.Ub(1,"p",116),i.Qc(2,"TOUR.WORKSPACES.1"),i.Tb(),i.Tb()}2&t&&i.mc("title","LABEL.WORKSPACES")("nextRouteTo","/futures")}function ce(t,e){if(1&t){const t=i.Vb();i.Ub(0,"tour-step",117),i.bc("dispose",(function(){return i.Ec(t),i.fc(),i.Ac(59).dispose()}))("nextEvent",(function(){return i.Ec(t),i.fc().openTabSettings()}))("previousEvent",(function(){return i.Ec(t),i.fc().tourOnNextWorkspace()})),i.Ub(1,"p",116),i.Qc(2,"TOUR.WORKSPACES.4"),i.Tb(),i.Tb()}2&t&&i.mc("title","HEADING.RESPONSIVE_COMPONENTS")("nextRouteTo","/futures")("image","tabs")}let le=(()=>{class t{constructor(t,e,n,r,a,l,u,h){this.env=t,this.feature=e,this.store=n,this.market=r,this.breakpointObserver=a,this.router=l,this.activatedRoute=u,this.layout=h,this.encodeLayout=c.f,this.isDltAccount$=this.store.pipe(Object(s.m)(_.k)),this.customLayouts$=this.store.pipe(Object(s.m)(g.f)),this.workspaceName$=this.store.pipe(Object(s.m)(g.c)),this.pageTitle$=this.store.pipe(Object(s.m)(b.h)),this.subaccounts$=this.store.pipe(Object(s.m)(_.t)),this.externalNav$=this.store.pipe(Object(s.m)(b.c)),this.selectedMarketSymbol$=this.store.pipe(Object(s.m)(m.r)),this.selectedTicker$=this.store.pipe(Object(s.m)(v.p)),this.isAlt$=this.store.pipe(Object(s.m)(b.l)),this.holdingEquity$=this.store.pipe(Object(s.m)(y.k)),this.futuresEquity$=this.store.pipe(Object(s.m)(y.i)),this.flexEquity$=this.store.pipe(Object(s.m)(y.g)),this.totalEquity$=this.store.pipe(Object(s.m)(y.p)),this.displayEquity$=this.store.pipe(Object(s.m)(_.a),Object(o.a)(t=>{var e;return null===(e=t.equityShown)||void 0===e||e})),this.layoutType$=this.store.pipe(Object(s.m)(b.e)),this.userDetailsLoading$=this.store.pipe(Object(s.m)(b.m,{filter:d.l.type})),this.userFeeVolume$=this.store.pipe(Object(s.m)(_.x)),this.holdingWalletsWithTotalEquity$=this.store.pipe(Object(s.m)(y.s)),this.displayTooltips$=this.store.pipe(Object(s.m)(_.y)),this.marketPosition$=this.store.pipe(Object(s.m)(S.g)),this.tour$=this.store.pipe(Object(s.m)(b.k)),this.leveragePrefs$=this.store.pipe(Object(s.m)(m.o)),this.pnlPrefs$=this.store.pipe(Object(s.m)(m.q)),this.isFlexMarket$=this.store.pipe(Object(s.m)(m.a)),this.isSelectedTickerFavorite$=this.store.pipe(Object(s.m)(v.b)),this.flexEnabled$=this.store.pipe(Object(s.m)(y.f)),this.toggleNavDrawer$=new i.o,this.restartPlatform$=new i.o,this.updateLanguage$=new i.o}ngAfterViewInit(){this.tour$.pipe(Object(a.a)(t=>t.inProgress),Object(a.a)(t=>"workspaces"===t.type),Object(a.a)(t=>1===t.step||4===t.step)).subscribe(({step:t})=>{1===t?(this.workspaceRef.nativeElement.click(),this.workspaceTourPopper.componentTrigger(this.tourPositionRef,"bottomStart")):4===t&&this.tabsTourPopper.centerTrigger()})}get multipleLocales(){return this.env.locales.length>1}get isTrading(){return this.market.currentMarketClass().isSome()}get isWallets(){return this.router.url.includes("wallets")}openMarketSelector(){this.store.dispatch(Object(u.g)({name:"markets-overview"}))}loadLayout(){this.store.dispatch(Object(u.g)({name:"layout-loader"}))}resetLayout(){this.store.dispatch(Object(h.i)())}duplicateWorkspace(t){const e={type:t.type,name:t.name+" (Copy)",panels:t.panels};this.store.dispatch(Object(h.c)({config:e}))}deleteWorkspace({id:t}){this.store.dispatch(Object(h.e)({id:t}))}renameWorkspace({id:t,name:e}){this.store.dispatch(Object(u.g)({name:"rename-layout",inputs:{id:t,currentName:e}}))}setLayout(t){this.router.navigate([],{relativeTo:this.activatedRoute,queryParams:{workspace:t},queryParamsHandling:"merge"})}createLayout(){this.store.dispatch(Object(u.g)({name:"create-layout"}))}openWorkspaceInTab(t){window.open(`${window.location.href.split("?")[0]}?workspace=${t}`)}openAppStore(t){window.open("ios"===t?"https://apps.apple.com/us/app/kraken-futures/id1475904904?ls=1":"https://play.google.com/store/apps/details?id=com.krakenfutures","_blank")}openDemo(){window.open("https://demo-futures.kraken.com","_blank","noopener")}signUp(){this.env.demo?this.store.dispatch(Object(u.g)({name:"sign-up-demo"})):window.open(this.env.urls.externalSignUp,"_blank","noopener")}signIn(){this.store.dispatch(this.isNative||this.isMobile?Object(u.g)({name:"mobile-login-info"}):Object(u.g)({name:"sign-in"}))}signOut(){this.store.dispatch(Object(l.B)({source:"self"}))}openCalculators(t){this.store.pipe(Object(w.n)(v.p)).subscribe(e=>{const n=Math.round(Object(T.j)(e));this.store.dispatch(Object(u.g)({name:"order-calculators",inputs:{mid:n,calculator:t}}))})}addMoney(){this.store.dispatch(Object(p.a)())}get isMobile(){return this.isNative||this.breakpointObserver.isMatched("(max-width: 599px)")}get isNative(){var t;return null!==(t=r.a.isNative)&&void 0!==t&&t}get hasLanguages(){return this.env.locales.length>1}get isSmallDesktop(){return this.breakpointObserver.isMatched("(max-width: 1024px)")}tourOnNextWorkspace(){this.store.dispatch(Object(u.g)({name:"create-layout"}))}openTabSettings(){this.store.dispatch(Object(u.g)({name:"tab-settings"}))}openFeeScheduleDialog(){this.store.dispatch(Object(u.g)({name:"fee-schedule"}))}lvg(t){return t.cross?"CROSS":`ISOLATED: ${t.maxLeverage}x`}updateFavorite(t,e){const n=Object(T.i)(t);this.store.dispatch(e?Object(d.v)({marketDescriptor:n}):Object(d.d)({marketDescriptor:n}))}get layoutUnlocked(){var t;return null===(t=this.layout.options.draggable)||void 0===t?void 0:t.enabled}toggleLayoutLock(){this.layout.toggleLayoutLock()}resetGrid(){this.layout.resetLayout()}isUsedComponent(t){return this.gridComponents.map(t=>t.id).includes(t.id)}get gridComponents(){return this.layout.currentLayoutItems}get allGridComponents(){return E.c}setWorkspaceType({value:t}){this.store.dispatch(Object(u.u)({layout:t}))}toggleComponent(t,e){t?this.layout.pushItem(e):this.layout.removeItem(e)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(f.a),i.Ob(O.a),i.Ob(s.b),i.Ob(C.a),i.Ob(x.a),i.Ob(P.d),i.Ob(P.a),i.Ob(k.a))},t.\u0275cmp=i.Ib({type:t,selectors:[["app-toolbar"]],viewQuery:function(t,e){var n;1&t&&(i.Jc(ft,!0),i.Jc(bt,!0),i.Jc(gt,!0),i.Wc(mt,!0)),2&t&&(i.zc(n=i.cc())&&(e.workspaceTourPopper=n.first),i.zc(n=i.cc())&&(e.tabsTourPopper=n.first),i.zc(n=i.cc())&&(e.workspaceRef=n.first),i.zc(n=i.cc())&&(e.tourPositionRef=n.first))},inputs:{email:"email",isAffiliate:"isAffiliate",userTier:"userTier",userClassification:"userClassification",currentLanguage:"currentLanguage",userDetails:"userDetails"},outputs:{toggleNavDrawer$:"toggleNavDrawer",restartPlatform$:"restartPlatform",updateLanguage$:"updateLanguage"},decls:61,vars:45,consts:[["class","toolbar",3,"ngClass",4,"ngLet"],["sbPlacement","bottomEnd"],["workspacePopper",""],["class","workspace-menu",4,"sbContent"],["desktopMenu","sbMenu"],["sb-menu-heading","",1,"menu-email",3,"clipboard"],["sb-menu-item","","sbIcon","deposit",3,"click",4,"ngIf"],["sb-menu-item","","sbIcon","cog","routerLink","/settings"],["sb-menu-item","","sbIcon","shield-secure","routerLink","/verification",3,"sbIconColor",4,"ngIf"],["sb-menu-item","","sbIcon","user-group","routerLink","/subaccounts",4,"ngIf"],["sb-menu-item","","sbIcon","language","type","button",4,"ngIf"],["sb-menu-item","","sbIcon","game-controller",3,"click",4,"ngIf"],["sb-menu-item","","sbIcon","spanner",3,"sbMenuTriggerFor"],["sb-menu-item","","sbIcon","book",3,"sbMenuTriggerFor",4,"ngIf"],["sb-menu-item","","sbIcon","refresh",3,"click",4,"ngIf"],["sb-menu-item","","sbIcon","close-medium",3,"click"],["layoutOptions",""],["sb-menu-heading",""],["sb-menu-item","","sbIcon","file",3,"click"],["sb-menu-item","","sbIcon","refresh",3,"click"],["toolsMenu","sbMenu"],["sb-menu-item","","sbIcon","calculator",3,"click"],["resourcesMenu","sbMenu"],[4,"ngIf"],["equityBreakdown",""],["sbPlacement","topStart"],["workspaceTourPopper",""],[3,"title","nextRouteTo","dispose","nextEvent",4,"sbContent"],["tabsTourPopper",""],[3,"title","nextRouteTo","image","dispose","nextEvent","previousEvent",4,"sbContent"],[1,"toolbar",3,"ngClass"],[1,"main"],["class","global__text title",4,"ngIf"],[1,"spacer"],[4,"ngIf","ngIfElse"],["fusionBanner",""],["vertical",""],["class","total-equity",4,"ngIf"],["body","","mat-button","","sbTooltip","TOOLTIP.MANAGE_WORKSPACES","sbTooltipPlacement","bottom","sbDelay","200",1,"menu","workspace-btn",3,"sbTriggerFor"],["icon","grid","size","lg"],["icon","chevron-down","size","lg"],["spacer",""],["notLoadingUser",""],["signedIn",""],["notSignedIn",""],["class","ticker-details",4,"ngIf"],[1,"global__text","title"],[1,"wallet-types"],["routerLink","/wallets/holding","routerLinkActive","active","subheading","",1,"wallet-type"],["icon","wallet"],["routerLink","/wallets/single-collateral","routerLinkActive","active","subheading","",1,"wallet-type"],["routerLink","/wallets/multi-collateral","routerLinkActive","active","class","wallet-type","subheading","",4,"ngIf"],["routerLink","/wallets/multi-collateral","routerLinkActive","active","subheading","",1,"wallet-type"],[3,"label"],[1,"market-details"],["class","favorite","size","2x",3,"icon","click",4,"ngLet"],["size","2x",1,"favorite",3,"icon","click"],[1,"total-equity"],["body","","sbTooltipPlacement","bottom",1,"grid-tri-left","gap-s-m","vcenter",3,"sbTooltip"],["icon","wallet","size","2x"],["uppercase","","ghost",""],[1,"loading-user"],["body",""],[4,"ngIf","ngIfThen","ngIfElse"],["body","","class","menu","mat-button","",3,"sbMenuTriggerFor",4,"ngIf"],["body","","mat-button","",1,"menu",3,"sbMenuTriggerFor"],["icon","user-full","size","lg"],["class","signup","body","","mat-button","",3,"click",4,"ngIf"],["body","","mat-raised-button","",3,"click"],["body","","mat-button","",1,"signup",3,"click"],[1,"ticker-details"],[1,"workspace-menu"],[4,"ngLet"],["body","",3,"value","change"],["value","workspaces"],["value","draggable"],[1,"grid-components"],["class","no-border",3,"checked","change",4,"ngFor","ngForOf"],["mat-button","",3,"click"],["size","lg",1,"lock-icon",3,"icon"],[1,"no-border",3,"checked","change"],["class","workspace-item",4,"ngFor","ngForOf"],[1,"workspace-actions"],["tourPositionRef",""],["sb-menu-item","","sbIcon","circle-plus",3,"sbIconColor","click",4,"ngIf"],["sb-menu-item","","sbIcon","file",3,"sbIconColor","click"],["sb-menu-item","","sbIcon","refresh",3,"sbIconColor","click"],[1,"workspace-item"],["sb-menu-item","","sbIcon","grid",3,"sbIconColor","click"],["sb-menu-item","","sbIcon","external-link","sbTooltipPlacement","bottom",3,"sbTooltip","click"],["sb-menu-item","","sbIcon","edit","sbTooltipPlacement","bottom",3,"sbTooltip","click"],["sb-menu-item","","sbIcon","duplicate","sbTooltipPlacement","bottom",3,"sbTooltip","click"],["sb-menu-item","","sbIcon","share-ios","sbTooltipPlacement","bottom","clipboardSuccessMsg","SNACKBAR.LAYOUT_COPIED",3,"sbTooltip","clipboard"],["sb-menu-item","","sbIcon","close","sbIconColor","var(--warn-colour)","sbTooltipPlacement","bottom",3,"sbTooltip","click"],["sb-menu-item","","sbIcon","circle-plus",3,"sbIconColor","click"],["sb-menu-item","","sbIcon","deposit",3,"click"],["sb-menu-item","","sbIcon","shield-secure","routerLink","/verification",3,"sbIconColor"],["sb-menu-item","","sbIcon","user-group","routerLink","/subaccounts"],["sb-menu-item","","sbIcon","language","type","button"],[3,"currentLanguage","updateLanguage"],["sb-menu-item","","sbIcon","game-controller",3,"click"],["sb-menu-item","","sbIcon","book",3,"sbMenuTriggerFor"],["sb-menu-item","","sbIcon","external-link","target","_blank",3,"href",4,"ngFor","ngForOf"],["sb-menu-item","","sbIcon","external-link","target","_blank",3,"href"],[1,"equities"],["subheading","","ghost",""],["body","",1,"equity-classes"],["label",""],[1,"value"],["noFlex",""],["body","","class","equities",4,"ngIf"],["body","",1,"equities"],["body","","class","grid-tri-left gap-s-m vcenter crypto",4,"ngFor","ngForOf","ngForTrackField"],["body","",1,"grid-tri-left","gap-s-m","vcenter","crypto"],[3,"base"],[3,"title","nextRouteTo","dispose","nextEvent"],["subheading","","translate",""],[3,"title","nextRouteTo","image","dispose","nextEvent","previousEvent"]],template:function(t,e){if(1&t&&(i.Oc(0,Nt,30,20,"section",0),i.gc(1,"async"),i.Ub(2,"sb-popper",1,2),i.Oc(4,Ht,3,3,"div",3),i.Tb(),i.Ub(5,"sb-menu",null,4),i.Ub(7,"p",5),i.Qc(8),i.Tb(),i.Oc(9,qt,3,3,"button",6),i.Ub(10,"button",7),i.Qc(11),i.gc(12,"translate"),i.Tb(),i.Oc(13,Qt,3,4,"button",8),i.Oc(14,Wt,3,3,"button",9),i.gc(15,"async"),i.Oc(16,Gt,4,5,"button",10),i.Pb(17,"mat-divider"),i.Oc(18,Yt,3,3,"button",11),i.Ub(19,"button",12),i.Qc(20),i.gc(21,"translate"),i.Tb(),i.Oc(22,Kt,3,4,"button",13),i.gc(23,"async"),i.Oc(24,Zt,3,3,"button",6),i.Pb(25,"mat-divider"),i.Oc(26,Xt,3,3,"button",14),i.Ub(27,"button",15),i.bc("click",(function(){return e.signOut()})),i.Qc(28),i.gc(29,"translate"),i.Tb(),i.Tb(),i.Ub(30,"sb-menu",null,16),i.Ub(32,"p",17),i.Qc(33),i.gc(34,"translate"),i.Tb(),i.Ub(35,"button",18),i.bc("click",(function(){return e.loadLayout()})),i.Qc(36),i.gc(37,"translate"),i.Tb(),i.Ub(38,"button",19),i.bc("click",(function(){return e.resetLayout()})),i.Qc(39),i.gc(40,"translate"),i.Tb(),i.Tb(),i.Ub(41,"sb-menu",null,20),i.Ub(43,"button",21),i.bc("click",(function(){return e.openCalculators("pnl")})),i.Qc(44),i.gc(45,"translate"),i.Tb(),i.Ub(46,"button",21),i.bc("click",(function(){return e.openCalculators("liquidation")})),i.Qc(47),i.gc(48,"translate"),i.Tb(),i.Tb(),i.Ub(49,"sb-menu",null,22),i.Oc(51,te,2,1,"ng-container",23),i.gc(52,"async"),i.Tb(),i.Oc(53,oe,23,24,"ng-template",null,24,i.Pc),i.Ub(55,"sb-popper",25,26),i.Oc(57,ae,3,2,"tour-step",27),i.Tb(),i.Ub(58,"sb-popper",25,28),i.Oc(60,ce,3,3,"tour-step",29),i.Tb()),2&t){const t=i.Ac(42);var n;i.mc("ngLet",i.hc(1,21,e.selectedTicker$)),i.Cb(7),i.mc("clipboard",e.email),i.Cb(1),i.Rc(e.email),i.Cb(1),i.mc("ngIf",e.env.demo&&e.email),i.Cb(2),i.Sc(" ",i.hc(12,23,"NAV.SETTINGS")," "),i.Cb(2),i.mc("ngIf",!(null!=e.userDetails&&e.userDetails.external)),i.Cb(1),i.mc("ngIf",null==(n=i.hc(15,25,e.subaccounts$))?null:n.length),i.Cb(2),i.mc("ngIf",e.isMobile),i.Cb(2),i.mc("ngIf",!e.env.demo),i.Cb(1),i.mc("sbMenuTriggerFor",t),i.Cb(1),i.Sc(" ",i.hc(21,27,"LABEL.TOOLS")," "),i.Cb(2),i.mc("ngIf",i.hc(23,29,e.externalNav$)),i.Cb(2),i.mc("ngIf",e.env.demo&&e.email),i.Cb(2),i.mc("ngIf",e.isNative||e.isMobile),i.Cb(2),i.Sc(" ",i.hc(29,31,"BUTTON.SIGNOUT")," "),i.Cb(5),i.Sc(" ",i.hc(34,33,"HEADING.LAYOUT_ACTIONS")," "),i.Cb(3),i.Sc(" ",i.hc(37,35,"BUTTON.LOAD")," "),i.Cb(3),i.Sc(" ",i.hc(40,37,"BUTTON.RESET")," "),i.Cb(5),i.Sc(" ",i.hc(45,39,"LABEL.PNL_CALCULATOR")," "),i.Cb(3),i.Sc(" ",i.hc(48,41,"LABEL.LIQUIDATION_CALCULATOR")," "),i.Cb(4),i.mc("ngIf",i.hc(52,43,e.externalNav$))}},directives:[A.a,I.a,M.a,D.a,R.a,j.a,L.a,N.n,U.a,P.e,F.a,B.b,N.l,z.a,V.b,$.a,H.a,q.a,Q.a,W.b,P.g,P.f,G.a,Y.a,K.a,Z.a,X.a,J.a,tt.a,et.a,nt.a,it.a,rt.b,rt.a,N.m,st.a,ot.a,at.b,ct.a,lt.a,ut.a],pipes:[N.b,ut.d,ht.a,dt.a,dt.b,pt.a],styles:["fa-icon[_ngcontent-%COMP%]{color:var(--icon-colour)!important}.toolbar[_ngcontent-%COMP%]{max-height:46px;min-height:46px;padding:0 var(--spacing);background-color:var(--toolbar-colour);border:1px solid var(--border-colour);border-radius:var(--bdrs)}@media (min-width:1025px){.toolbar.is-trading[_ngcontent-%COMP%]{max-height:100px;min-height:100px}}.ticker-details[_ngcontent-%COMP%]{padding-top:var(--spacing-s);margin-top:var(--spacing-s);border-top:1px solid var(--border-colour);display:flex;width:100%;justify-content:space-between}@media (max-width:1024px){.ticker-details[_ngcontent-%COMP%]{display:none}}.main[_ngcontent-%COMP%]{justify-content:space-between;max-height:46px;min-height:46px}.main[_ngcontent-%COMP%], .main[_ngcontent-%COMP%] > section[_ngcontent-%COMP%]{display:flex;align-items:center}@media (max-width:1024px){.main[_ngcontent-%COMP%] > mat-menu[_ngcontent-%COMP%]{display:none!important}}market-dropdowns[_ngcontent-%COMP%]{margin-left:calc(var(--spacing) * -.5);margin-right:var(--spacing)}.market-details[_ngcontent-%COMP%]{flex-direction:row;flex:1}.market-details[_ngcontent-%COMP%] .action-detail[_ngcontent-%COMP%]{background:var(--form-input-colour);border-radius:var(--bdrs);padding:var(--spacing-xs) var(--spacing);cursor:pointer}.market-details[_ngcontent-%COMP%] position-summary[_ngcontent-%COMP%]{display:none}@media (min-width:1640px){.market-details[_ngcontent-%COMP%] position-summary[_ngcontent-%COMP%]{display:block}}.workspaces[_ngcontent-%COMP%]{display:flex;flex-direction:row;padding-right:var(--spacing-l);cursor:pointer}.workspaces[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{margin-left:var(--spacing-l);font-size:12px;align-self:center}@media (min-width:1025px) and (max-width:1366px){.workspaces[_ngcontent-%COMP%] .workspace-label[_ngcontent-%COMP%]{display:none!important}}@media (min-width:1367px) and (max-width:1440px){.workspaces[_ngcontent-%COMP%] .workspace-label[_ngcontent-%COMP%]{display:none!important}}@media (min-width:1441px){.workspaces[_ngcontent-%COMP%] .workspace-label[_ngcontent-%COMP%]{display:none!important}}@media (max-width:1024px){.workspace-btn[_ngcontent-%COMP%], .workspaces[_ngcontent-%COMP%]{display:none!important}}.workspace-header[_ngcontent-%COMP%]{margin:var(--spacing) 0 0 var(--spacing)}.workspace-item[_ngcontent-%COMP%]{border-bottom:1px solid var(--border-colour);display:flex;flex-direction:row;padding:var(--spacing-xs)}.workspace-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:first-child{width:100%}.workspace-actions[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between}.workspace-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:var(--spacing-xs)}.tabs[_ngcontent-%COMP%]{height:100%;flex:1;margin:0 var(--spacing)}@media (max-width:1024px){.tabs[_ngcontent-%COMP%]{display:none!important}}.tabs__selector[_ngcontent-%COMP%]{flex:1}.tabs__selector[_ngcontent-%COMP%], .tabs__selector[_ngcontent-%COMP%] .tab[_ngcontent-%COMP%]{height:100%;display:flex;align-items:center}.tabs__selector[_ngcontent-%COMP%] .tab[_ngcontent-%COMP%]{cursor:pointer;padding:0 var(--spacing);border-bottom:2px solid transparent}.tabs__selector[_ngcontent-%COMP%] .tab[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--input-colour);margin-top:2px;font-size:14px}.tabs__selector[_ngcontent-%COMP%] .tab[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{margin-top:2px;margin-left:var(--spacing-s)}.tabs__selector[_ngcontent-%COMP%] .tab[_ngcontent-%COMP%] + .tab[_ngcontent-%COMP%]{margin-left:var(--spacing)}.tabs__selector[_ngcontent-%COMP%] .tab.active[_ngcontent-%COMP%]{border-bottom:2px solid var(--icon-colour);cursor:default}.tabs__selector[_ngcontent-%COMP%] .tab.active[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-weight:700}.tabs__selector[_ngcontent-%COMP%] .tab.show-number[_ngcontent-%COMP%]{position:relative}.tabs__selector[_ngcontent-%COMP%] .tab.show-number[_ngcontent-%COMP%]:after{content:attr(data-layout-number);display:inline-block;position:absolute;bottom:0;right:0;padding:var(--spacing);font-family:var(--typeface);font-size:.8em;line-height:.5;color:var(--text-colour);border:1px solid var(--border-colour);border-radius:var(--bdrs);background-color:rgba(0,0,0,.8)}.tabs__selector[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{cursor:pointer;color:var(--icon-colour)}.tabs__selector[_ngcontent-%COMP%] > fa-icon[_ngcontent-%COMP%]{margin-left:var(--spacing)}.tabs__options[_ngcontent-%COMP%]{cursor:pointer}.spacer[_ngcontent-%COMP%]{flex-grow:1}@media (max-width:1024px){.spacer[_ngcontent-%COMP%]{display:none}}.total-equity[_ngcontent-%COMP%]{height:100%;display:flex;align-items:center;margin-right:var(--spacing)}.total-equity[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{padding:var(--spacing);cursor:default}@media (max-width:1024px){.total-equity[_ngcontent-%COMP%]{display:none}}.equities[_ngcontent-%COMP%], .equities[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin-bottom:var(--spacing)}.equities[_ngcontent-%COMP%] .equity-classes[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:var(--spacing-s) var(--spacing);align-items:baseline;padding-bottom:var(--spacing)}.equities[_ngcontent-%COMP%] .equity-classes[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{font-size:1.2em;text-align:right}.equities[_ngcontent-%COMP%] .crypto[_ngcontent-%COMP%]{padding:var(--spacing) 0;vertical-align:middle}.equities[_ngcontent-%COMP%] .crypto[_ngcontent-%COMP%] market-icon[_ngcontent-%COMP%]{font-size:24px}.equities[_ngcontent-%COMP%] .crypto[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{font-size:1.2em}@media (max-width:1024px){button[_ngcontent-%COMP%]:not(div.mat-menu-content > button).desktop-only[_ngcontent-%COMP%]{display:none}}@media (min-width:1025px){button[_ngcontent-%COMP%]:not(div.mat-menu-content > button).mobile-only[_ngcontent-%COMP%]{display:none}}.drawer[_ngcontent-%COMP%]{display:none}@media (max-width:1024px){.drawer[_ngcontent-%COMP%]{display:block}}.logo[_ngcontent-%COMP%]{display:block;height:22px;position:relative}.logo--mobile[_ngcontent-%COMP%]{display:none}@media (max-width:1024px){.logo--desktop[_ngcontent-%COMP%]{display:none}.logo--mobile[_ngcontent-%COMP%]{display:block}}@media (max-width:1024px){fusion-banner[_ngcontent-%COMP%]{display:none!important}}nav-link[_ngcontent-%COMP%], nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{display:flex}nav-link[_ngcontent-%COMP%]{border-bottom:2px solid transparent;align-items:center;cursor:pointer;height:43px;padding:0 var(--spacing);opacity:.7}nav-link[_ngcontent-%COMP%]:focus{outline:none}nav-link--active[_ngcontent-%COMP%]{color:var(--text-colour);border-bottom-color:currentColor;font-weight:400;cursor:default;opacity:1}nav-link[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{top:0!important}@media (max-width:1024px){nav[_ngcontent-%COMP%]{display:none!important}}nav-mobile[_ngcontent-%COMP%]{display:none!important}@media (max-width:1024px){nav-mobile[_ngcontent-%COMP%]{display:flex!important}}.menu[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{right:-1px!important;top:-3px!important}@media (max-width:599px){.menu[_ngcontent-%COMP%]{text-align:right;padding-right:0}}.add-money[_ngcontent-%COMP%]{margin:0 var(--spacing)}@media (max-width:599px){.add-money[_ngcontent-%COMP%], .apps[_ngcontent-%COMP%], .email-label[_ngcontent-%COMP%]{display:none!important}}@media (max-width:599px){.signup[_ngcontent-%COMP%]{padding:0!important}}.loading-user[_ngcontent-%COMP%]{margin:0 var(--spacing)}@media (max-width:1024px){.platform-link[_ngcontent-%COMP%], .reset-layouts[_ngcontent-%COMP%], sb-divider[_ngcontent-%COMP%]{display:none!important}}@media (min-width:1367px) and (max-width:1440px){.email-label[_ngcontent-%COMP%], .server-time[_ngcontent-%COMP%]{display:none}}@media (min-width:1025px) and (max-width:1366px){.email-label[_ngcontent-%COMP%], .server-time[_ngcontent-%COMP%]{display:none}}.wallet-types[_ngcontent-%COMP%]{display:flex;flex-direction:row}@media (max-width:1024px){.wallet-types[_ngcontent-%COMP%]{display:none}}.wallet-types[_ngcontent-%COMP%] .wallet-type[_ngcontent-%COMP%]{margin:0 var(--spacing);padding:13px 13px 10px;cursor:pointer;color:var(--ghost-colour)!important}.wallet-types[_ngcontent-%COMP%] .wallet-type[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{color:var(--ghost-colour)!important;margin-right:var(--spacing-s);top:1px;position:relative}.wallet-types[_ngcontent-%COMP%] .wallet-type[_ngcontent-%COMP%]:first-child{margin-left:var(--spacing-xl)}.wallet-types[_ngcontent-%COMP%] .wallet-type.active[_ngcontent-%COMP%]{border-bottom:2px solid var(--input-colour)}.wallet-types[_ngcontent-%COMP%] .wallet-type.active[_ngcontent-%COMP%], .wallet-types[_ngcontent-%COMP%] .wallet-type.active[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{color:var(--input-colour)!important}.wallet-types[_ngcontent-%COMP%] .wallet-type.disabled[_ngcontent-%COMP%]{cursor:not-allowed}.favorite[_ngcontent-%COMP%]{cursor:pointer;margin-right:var(--spacing)}@media (max-width:1024px){.favorite[_ngcontent-%COMP%]{display:none}}.market-details[_ngcontent-%COMP%]{display:flex;width:100%}flex-position[_ngcontent-%COMP%]{margin:0 var(--spacing)}@media (max-width:1024px){flex-position[_ngcontent-%COMP%]{display:none}}.grid-components[_ngcontent-%COMP%], .workspace-menu[_ngcontent-%COMP%]{padding:var(--spacing)}.workspace-menu[_ngcontent-%COMP%]{width:400px}.workspace-menu[_ngcontent-%COMP%] mat-radio-group[_ngcontent-%COMP%]{padding:var(--spacing)}.workspace-menu[_ngcontent-%COMP%] mat-radio-button[_ngcontent-%COMP%]:first-child{margin-right:var(--spacing)}.lock-icon[_ngcontent-%COMP%]{vertical-align:baseline!important}"],changeDetection:0}),t})()},Aey0:function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var i=n("kZht"),r=n("KQpv"),s=n.n(r),o=n("yN5A"),a=n("ylpo"),c=n("NloN"),l=n("6NrZ"),u=n("zqNl");const h=s()("app:service:layout");let d=(()=>{class t{constructor(t){this.store=t,this.openPicker$=new i.o,this.setOriginal()}setOriginal(){this.options=Object(c.b)(a.i,l.b),this.currentLayoutItems=Object(c.b)(a.h,l.a),this.originalLayoutItems=l.a.map(t=>Object.assign({},t)),this.options.draggable=Object.assign(Object.assign({},this.options.draggable),{start:()=>Object(l.e)(),stop:()=>Object(l.d)()}),this.options.resizable=Object.assign(Object.assign({},this.options.resizable),{start:()=>Object(l.e)(),stop:()=>Object(l.d)()})}saveLayout(){Object(c.c)(a.i,this.options),Object(c.c)(a.h,this.currentLayoutItems)}optionsChanged(){var t;(null===(t=this.options.api)||void 0===t?void 0:t.optionsChanged)&&this.options.api.optionsChanged()}pushItem(t){this.currentLayoutItems.push(t),this.optionsChanged()}removeItem(t){this.currentLayoutItems=this.currentLayoutItems.filter(e=>e.id!==t.id),this.options=l.b,this.optionsChanged()}resetLayout(){this.currentLayoutItems=this.originalLayoutItems.map(t=>Object.assign({},t)),this.optionsChanged()}toggleLayoutLock(){const t=this.gridUnlocked;this.options=Object.assign(Object.assign({},this.options),{draggable:Object.assign(Object.assign({},this.options.draggable),{enabled:!t,dragHandleClass:"draggable",ignoreContent:!0,start:()=>Object(l.e)(),stop:()=>Object(l.d)()}),resizable:Object.assign(Object.assign({},this.options.resizable),{enabled:!t,start:()=>Object(l.e)(),stop:()=>Object(l.d)()}),editEnabled:!t})}goToIdx(t){const e=Object(c.b)(a.v,[]),n=Math.min(t,e.length-1);h("going to layout idx",n),this.store.dispatch(Object(o.j)({id:e[n].id}))}get gridUnlocked(){var t;return(null===(t=this.options.draggable)||void 0===t?void 0:t.enabled)||!1}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(u.b))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},AlFj:function(t,e,n){"use strict";n.r(e),n.d(e,"WalletTransactionComponent",(function(){return st}));var i=n("D57K"),r=n("3kIJ"),s=n("mcff"),o=n("gxtV"),a=n("zqNl"),c=n("C05f"),l=n("QQZH"),u=n("YtkY"),h=n("w0kG"),d=n("xVbo"),p=n("i67J"),f=n("rxqU"),b=n("J/3c"),g=n("sXtk"),m=n("R1aX"),v=n("MUfl"),_=n("uJYd"),y=n("bjK4"),O=n("nXdR"),C=n("qAYy"),w=n("+Px6"),T=n("+axt"),S=n("lE9u"),k=n("kZht"),E=n("rfPA"),x=n("bBQR"),P=n("anSm"),A=n("EmXI"),I=n("aDqW"),M=n("IOEv"),D=n("An66"),R=n("yPvj"),j=n("yvKM"),L=n("LBlH"),N=n("y1fC"),U=n("pPqe"),F=n("pTnX"),B=n("pbVI"),z=n("7erP"),V=n("2YH/"),$=n("ka3Y"),H=n("w2Kr"),q=n("1etq"),Q=n("fvDn");const W=["depositTourPopper"],G=["transferTourPopper"],Y=["tourPositionRef"];function K(t,e){if(1&t&&(k.Ub(0,"mat-option",22),k.Qc(1),k.gc(2,"cryptoName"),k.gc(3,"cryptoAbbreviation"),k.Tb()),2&t){const t=e.$implicit;k.mc("value",t),k.Cb(1),k.Tc(" ",k.hc(2,3,t)," (",k.hc(3,5,t),") ")}}function Z(t,e){if(1&t){const t=k.Vb();k.Ub(0,"mat-button-toggle",23),k.bc("click",(function(){return k.Ec(t),k.fc().type="crypto-transfer"})),k.Qc(1),k.gc(2,"translate"),k.Tb()}2&t&&(k.Cb(1),k.Sc(" ",k.hc(2,1,"WALLETS.FUTURES.TRANSFER")," "))}function X(t,e){if(1&t){const t=k.Vb();k.Ub(0,"mat-button-toggle",24),k.bc("click",(function(){return k.Ec(t),k.fc().type="subaccount-transfer"})),k.Qc(1),k.gc(2,"translate"),k.Tb()}2&t&&(k.Cb(1),k.Sc(" ",k.hc(2,1,"WALLETS.FUTURES.SUBACCOUNT_TRANSFER")," "))}function J(t,e){if(1&t&&(k.Pb(0,"crypto-deposit-form",25),k.gc(1,"async"),k.gc(2,"async")),2&t){const t=k.fc();k.mc("selected",k.hc(1,2,t.initialHolding$))("userDetails",k.hc(2,4,t.userDetails$))}}function tt(t,e){if(1&t&&(k.Pb(0,"crypto-withdraw-form",26),k.gc(1,"async"),k.gc(2,"async"),k.gc(3,"async")),2&t){const t=k.fc();k.mc("selected",t.withdrawEnabled?t.inputs.originWallet:k.hc(1,3,t.initialHolding$))("userDetails",k.hc(2,5,t.userDetails$))("isSubAccount",k.hc(3,7,t.isSubAccount$))}}function et(t,e){if(1&t&&(k.Pb(0,"crypto-transfer-form",27),k.gc(1,"async"),k.gc(2,"async"),k.gc(3,"async"),k.gc(4,"async"),k.gc(5,"async"),k.gc(6,"async"),k.gc(7,"async")),2&t){const t=k.fc();k.mc("selected",k.hc(1,7,t.initial$))("wallets",k.hc(2,9,t.wallets$))("flexEnabled",k.hc(3,11,t.flexEnabled$))("price",k.hc(4,13,t.initialPrice$))("ticker",k.hc(5,15,t.initialTicker$))("market",k.hc(6,17,t.initialMarket$))("loading",k.hc(7,19,t.loading$))}}function nt(t,e){if(1&t&&(k.Pb(0,"subaccount-transfer-form",28),k.gc(1,"async"),k.gc(2,"async"),k.gc(3,"async"),k.gc(4,"async"),k.gc(5,"async"),k.gc(6,"async"),k.gc(7,"async"),k.gc(8,"async")),2&t){const t=k.fc();k.mc("uid",k.hc(1,9,t.uid$))("selectedSub",t.inputs.subAccount)("selected",k.hc(2,11,t.initial$))("wallets",k.hc(3,13,t.wallets$))("subAccounts",k.hc(4,15,t.subaccounts$))("email",k.hc(5,17,t.email$))("ticker",k.hc(6,19,t.initialTicker$))("market",k.hc(7,21,t.initialMarket$))("flexEnabled",k.hc(8,23,t.flexEnabled$))}}function it(t,e){if(1&t){const t=k.Vb();k.Ub(0,"tour-step",29),k.bc("nextEvent",(function(){return k.Ec(t),k.fc().closeDialog()}))("previousEvent",(function(){return k.Ec(t),k.fc().closeDialog()}))("dispose",(function(){return k.Ec(t),k.fc(),k.Ac(27).dispose()})),k.Ub(1,"p",30),k.Qc(2,"TOUR.WALLETS.DEPOSIT.1"),k.Tb(),k.Tb()}2&t&&k.mc("title","HEADING.DEPOSITING_FUNDS")}function rt(t,e){if(1&t){const t=k.Vb();k.Ub(0,"tour-step",29),k.bc("nextEvent",(function(){return k.Ec(t),k.fc().closeDialog()}))("previousEvent",(function(){return k.Ec(t),k.fc().closeDialog()}))("dispose",(function(){return k.Ec(t),k.fc(),k.Ac(30).dispose()})),k.Ub(1,"p",30),k.Qc(2,"TOUR.WALLETS.TRANSFER.1"),k.Tb(),k.Tb()}2&t&&k.mc("title","HEADING.TRANSFERRING_BETWEEN")}let st=(()=>{let t=class{constructor(t,e,n,i,r){this.inputs=t,this.store=e,this.formBuilder=n,this.env=i,this.feature=r,this.type=this.inputs.type,this.loading$=this.store.pipe(Object(a.m)(y.m,{filter:S.y.type})),this.initial$=new c.a(this.inputs.originWallet),this.initialHolding$=new l.a(1),this.wallets$=this.store.pipe(Object(a.m)(b.r)),this.holdingWallets$=this.store.pipe(Object(a.m)(b.m)),this.assets$=this.holdingWallets$.pipe(Object(u.a)(t=>t.keySeq().toArray().sort(O.m))),this.externalUser$=this.store.pipe(Object(a.m)(f.l)),this.userDetails$=this.store.pipe(Object(a.m)(f.d)),this.subaccounts$=this.store.pipe(Object(a.m)(f.t)),this.isSubAccount$=this.store.pipe(Object(a.m)(f.n)),this.uid$=this.store.pipe(Object(a.m)(f.j)),this.email$=this.store.pipe(Object(a.m)(f.e)),this.flexEnabled$=this.store.pipe(Object(a.m)(b.f)),this.userVerification$=this.store.pipe(Object(a.m)(m.f)),this.futuresMarkets$=this.store.pipe(Object(a.m)(w.f)),this.tickers$=this.store.pipe(Object(a.m)(C.g)),this.tour$=this.store.pipe(Object(a.m)(y.k)),this.prices$=this.store.pipe(Object(a.m)(T.a)),this.initialPrice$=this.initialHolding$.pipe(Object(h.a)(this.prices$),Object(u.a)(([t,e])=>{var n;return null===(n=e.get(t.currency))||void 0===n?void 0:n.price})),this.initialTicker$=this.initialHolding$.pipe(Object(h.a)(this.tickers$),Object(u.a)(([t,e])=>e.get(`PI_${t.currency}USD`))),this.initialMarket$=this.initialHolding$.pipe(Object(h.a)(this.futuresMarkets$),Object(u.a)(([t,e])=>e.get(`PI_${t.currency}USD`)))}ngOnInit(){const t=this.inputs.originWallet.currency,e="BTC"===t?"XBT":t;this.form=this.formBuilder.group({asset:[e,r.x.required]}),this.holdingWallets$.pipe(Object(p.h)(),Object(o.b)(this)).subscribe(t=>{this.initialHolding$.next(t.get(e))})}ngAfterViewInit(){this.tour$.pipe(Object(o.b)(this),Object(d.a)(t=>t.inProgress),Object(d.a)(t=>"wallets"===t.type),Object(d.a)(({step:t})=>2===t||4===t)).subscribe(({step:t})=>{2===t?this.depositTourPopper.componentTrigger(this.tourPositionRef,"centerEnd"):4===t&&this.transferTourPopper.componentTrigger(this.tourPositionRef,"centerEnd")})}setInitial(t){this.holdingWallets$.pipe(Object(p.h)(),Object(o.b)(this)).subscribe(e=>{this.initial$.next(e.get(t)),this.initialHolding$.next(e.get(t))})}closeDialog(){this.store.dispatch(Object(_.c)())}changeTab(t){(!this.demo||"withdraw"!==t&&"deposit"!==t)&&(this.type=t)}get demo(){return this.env.demo}get withdrawEnabled(){return this.feature.isEnabled("transferDestination")}};return t.\u0275fac=function(e){return new(e||t)(k.Ob(s.a),k.Ob(a.b),k.Ob(r.d),k.Ob(g.a),k.Ob(v.a))},t.\u0275cmp=k.Ib({type:t,selectors:[["wallet-transaction"]],viewQuery:function(t,e){var n;1&t&&(k.Jc(W,!0),k.Jc(G,!0),k.Jc(Y,!0)),2&t&&(k.zc(n=k.cc())&&(e.depositTourPopper=n.first),k.zc(n=k.cc())&&(e.transferTourPopper=n.first),k.zc(n=k.cc())&&(e.tourPositionRef=n.first))},decls:32,vars:25,consts:[["heading","LABEL.FUNDS_TRANSFER",3,"loading"],["body","",3,"formGroup"],["color","accent","appearance","fill",1,"asset-select"],["translate",""],["matNativeControl","","formControlName","asset",3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],["matPrefix","",1,"form-icon",3,"base"],["body","",3,"value"],["value","deposit","translate","",3,"disabled","click"],["value","withdraw","translate","",3,"disabled","click"],["value","crypto-transfer","translate","",3,"click",4,"ngIf"],["value","subaccount-transfer","translate","",3,"click",4,"ngIf"],[1,"transaction-form"],["tourPositionRef",""],[3,"selected","userDetails",4,"ngIf"],[3,"selected","userDetails","isSubAccount",4,"ngIf"],[3,"selected","wallets","flexEnabled","price","ticker","market","loading",4,"ngIf"],[3,"uid","selectedSub","selected","wallets","subAccounts","email","ticker","market","flexEnabled",4,"ngIf"],["sbPlacement","topStart"],["depositTourPopper",""],[3,"title","nextEvent","previousEvent","dispose",4,"sbContent"],["transferTourPopper",""],[3,"value"],["value","crypto-transfer","translate","",3,"click"],["value","subaccount-transfer","translate","",3,"click"],[3,"selected","userDetails"],[3,"selected","userDetails","isSubAccount"],[3,"selected","wallets","flexEnabled","price","ticker","market","loading"],[3,"uid","selectedSub","selected","wallets","subAccounts","email","ticker","market","flexEnabled"],[3,"title","nextEvent","previousEvent","dispose"],["subheading","","translate",""]],template:function(t,e){var n;1&t&&(k.Ub(0,"pro-dialog",0),k.gc(1,"async"),k.Ub(2,"form",1),k.Ub(3,"mat-form-field",2),k.Ub(4,"mat-label",3),k.Qc(5,"LABEL.ASSET"),k.Tb(),k.Ub(6,"mat-select",4),k.bc("selectionChange",(function(t){return e.setInitial(t.value)})),k.Oc(7,K,4,7,"mat-option",5),k.gc(8,"async"),k.Tb(),k.Pb(9,"market-icon",6),k.gc(10,"async"),k.Tb(),k.Tb(),k.Ub(11,"mat-button-toggle-group",7),k.Ub(12,"mat-button-toggle",8),k.bc("click",(function(){return e.changeTab("deposit")})),k.Qc(13),k.gc(14,"translate"),k.Tb(),k.Ub(15,"mat-button-toggle",9),k.bc("click",(function(){return e.changeTab("withdraw")})),k.Qc(16),k.gc(17,"translate"),k.Tb(),k.Oc(18,Z,3,3,"mat-button-toggle",10),k.Oc(19,X,3,3,"mat-button-toggle",11),k.Tb(),k.Ub(20,"div",12,13),k.Oc(22,J,3,6,"crypto-deposit-form",14),k.Oc(23,tt,4,9,"crypto-withdraw-form",15),k.Oc(24,et,8,21,"crypto-transfer-form",16),k.Oc(25,nt,9,25,"subaccount-transfer-form",17),k.Tb(),k.Tb(),k.Ub(26,"sb-popper",18,19),k.Oc(28,it,3,1,"tour-step",20),k.Tb(),k.Ub(29,"sb-popper",18,21),k.Oc(31,rt,3,1,"tour-step",20),k.Tb()),2&t&&(k.mc("loading",k.hc(1,15,e.loading$)),k.Cb(2),k.mc("formGroup",e.form),k.Cb(5),k.mc("ngForOf",k.hc(8,17,e.assets$)),k.Cb(2),k.mc("base",null==(n=k.hc(10,19,e.initial$))?null:n.currency),k.Cb(2),k.mc("value",e.type),k.Cb(1),k.mc("disabled",e.demo),k.Cb(1),k.Sc(" ",k.hc(14,21,"WALLETS.FUTURES.DEPOSIT")," "),k.Cb(2),k.mc("disabled",e.demo),k.Cb(1),k.Sc(" ",k.hc(17,23,"WALLETS.FUTURES.WITHDRAWAL")," "),k.Cb(2),k.mc("ngIf",!e.inputs.subAccount),k.Cb(1),k.mc("ngIf",e.inputs.subAccount),k.Cb(3),k.mc("ngIf","deposit"===e.type),k.Cb(1),k.mc("ngIf","withdraw"===e.type),k.Cb(1),k.mc("ngIf","crypto-transfer"===e.type),k.Cb(1),k.mc("ngIf","subaccount-transfer"===e.type))},directives:[E.a,x.a,r.z,r.p,P.a,r.h,A.c,A.f,I.a,M.a,r.o,r.g,D.m,R.a,A.g,j.b,j.a,D.n,L.a,N.a,U.a,F.n,B.a,z.a,V.a,$.a,H.a,q.a],pipes:[D.b,I.d,Q.b,Q.a],styles:["[_nghost-%COMP%]{display:block;width:520px}@media (max-width:1024px){[_nghost-%COMP%]{height:100%;width:100%}}.asset-select[_ngcontent-%COMP%]{width:100%}.transaction-form[_ngcontent-%COMP%]{margin-top:var(--spacing)}"],changeDetection:0}),t=Object(i.d)([Object(o.a)()],t),t})()},Amke:function(t,e,n){var i=n("yBEi"),r=i.getBCHDigit(1335);e.getEncodedBits=function(t,e){for(var n=t.bit<<3|e,s=n<<10;i.getBCHDigit(s)-r>=0;)s^=1335<{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i.Kb)({factory:u,token:t,providedIn:"platform"}),t})();function u(){return Object(i.Yb)(d)}const h=new i.s("Location Initialized");let d=(()=>{class t extends l{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=s().getLocation(),this._history=s().getHistory()}getBaseHrefFromDOM(){return s().getBaseHref(this._doc)}onPopState(t){s().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){s().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,e,n){p()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){p()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(c))},t.\u0275prov=Object(i.Kb)({factory:f,token:t,providedIn:"platform"}),t})();function p(){return!!window.history.pushState}function f(){return new d(Object(i.Yb)(c))}function b(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function g(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function m(t){return t&&"?"!==t[0]?"?"+t:t}let v=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i.Kb)({factory:_,token:t,providedIn:"root"}),t})();function _(t){const e=Object(i.Yb)(c).location;return new O(Object(i.Yb)(l),e&&e.origin||"")}const y=new i.s("appBaseHref");let O=(()=>{class t extends v{constructor(t,e){if(super(),this._platformLocation=t,null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return b(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+m(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,i){const r=this.prepareExternalUrl(n+m(i));this._platformLocation.pushState(t,e,r)}replaceState(t,e,n,i){const r=this.prepareExternalUrl(n+m(i));this._platformLocation.replaceState(t,e,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(l),i.Yb(y,8))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),C=(()=>{class t extends v{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",null!=e&&(this._baseHref=e)}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=b(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,i){let r=this.prepareExternalUrl(n+m(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(t,e,r)}replaceState(t,e,n,i){let r=this.prepareExternalUrl(n+m(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(l),i.Yb(y,8))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),w=(()=>{class t{constructor(t,e){this._subject=new i.o,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=g(S(n)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+m(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,S(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",n=null){this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+m(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+m(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(v),i.Yb(l))},t.normalizeQueryParams=m,t.joinWithSlash=b,t.stripTrailingSlash=g,t.\u0275prov=Object(i.Kb)({factory:T,token:t,providedIn:"root"}),t})();function T(){return new w(Object(i.Yb)(v),Object(i.Yb)(l))}function S(t){return t.replace(/\/index.html$/,"")}var k=function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t}({}),E=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),x=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),P=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}({}),A=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}({}),I=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({});function M(t,e){return F(Object(i.mb)(t)[i.cb.DateFormat],e)}function D(t,e){return F(Object(i.mb)(t)[i.cb.TimeFormat],e)}function R(t,e){return F(Object(i.mb)(t)[i.cb.DateTimeFormat],e)}function j(t,e){const n=Object(i.mb)(t),r=n[i.cb.NumberSymbols][e];if(void 0===r){if(e===I.CurrencyDecimal)return n[i.cb.NumberSymbols][I.Decimal];if(e===I.CurrencyGroup)return n[i.cb.NumberSymbols][I.Group]}return r}function L(t,e){return Object(i.mb)(t)[i.cb.NumberFormats][e]}const N=i.pb;function U(t){if(!t[i.cb.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[i.cb.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function F(t,e){for(let n=e;n>-1;n--)if(void 0!==t[n])return t[n];throw new Error("Locale data API: locale data undefined")}function B(t){const[e,n]=t.split(":");return{hours:+e,minutes:+n}}const z=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,V={},$=/((?:[^GyMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var H=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),q=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}({}),Q=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}({});function W(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,(function(t,n){return null!=e&&n in e?e[n]:t}))),t}function G(t,e,n="-",i,r){let s="";(t<0||r&&t<=0)&&(r?t=1-t:(t=-t,s=n));let o=String(t);for(;o.length0||a>-n)&&(a+=n),t===q.Hours)0===a&&-12===n&&(a=12);else if(t===q.FractionalSeconds)return c=e,G(a,3).substr(0,c);var c;const l=j(o,I.MinusSign);return G(a,e,l,i,r)}}function K(t,e,n=x.Format,r=!1){return function(s,o){return function(t,e,n,r,s,o){switch(n){case Q.Months:return function(t,e,n){const r=Object(i.mb)(t),s=F([r[i.cb.MonthsFormat],r[i.cb.MonthsStandalone]],e);return F(s,n)}(e,s,r)[t.getMonth()];case Q.Days:return function(t,e,n){const r=Object(i.mb)(t),s=F([r[i.cb.DaysFormat],r[i.cb.DaysStandalone]],e);return F(s,n)}(e,s,r)[t.getDay()];case Q.DayPeriods:const a=t.getHours(),c=t.getMinutes();if(o){const t=function(t){const e=Object(i.mb)(t);return U(e),(e[i.cb.ExtraData][2]||[]).map(t=>"string"==typeof t?B(t):[B(t[0]),B(t[1])])}(e),n=function(t,e,n){const r=Object(i.mb)(t);U(r);const s=F([r[i.cb.ExtraData][0],r[i.cb.ExtraData][1]],e)||[];return F(s,n)||[]}(e,s,r),o=t.findIndex(t=>{if(Array.isArray(t)){const[e,n]=t,i=a>=e.hours&&c>=e.minutes,r=a0?Math.floor(r/60):Math.ceil(r/60);switch(t){case H.Short:return(r>=0?"+":"")+G(o,2,s)+G(Math.abs(r%60),2,s);case H.ShortGMT:return"GMT"+(r>=0?"+":"")+G(o,1,s);case H.Long:return"GMT"+(r>=0?"+":"")+G(o,2,s)+":"+G(Math.abs(r%60),2,s);case H.Extended:return 0===i?"Z":(r>=0?"+":"")+G(o,2,s)+":"+G(Math.abs(r%60),2,s);default:throw new Error(`Unknown zone width "${t}"`)}}}function X(t,e=!1){return function(n,i){let r;if(e){const t=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,e=n.getDate();r=1+Math.floor((e+t)/7)}else{const t=(s=n,new Date(s.getFullYear(),s.getMonth(),s.getDate()+(4-s.getDay()))),e=function(t){const e=new Date(t,0,1).getDay();return new Date(t,0,1+(e<=4?4:11)-e)}(t.getFullYear()),i=t.getTime()-e.getTime();r=1+Math.round(i/6048e5)}var s;return G(r,t,j(i,I.MinusSign))}}const J={};function tt(t,e){t=t.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function et(t){return t instanceof Date&&!isNaN(t.valueOf())}const nt=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function it(t,e,n,i,r,s,o=!1){let a="",c=!1;if(isFinite(t)){let l=function(t){let e,n,i,r,s,o=Math.abs(t)+"",a=0;for((n=o.indexOf("."))>-1&&(o=o.replace(".","")),(i=o.search(/e/i))>0?(n<0&&(n=i),n+=+o.slice(i+1),o=o.substring(0,i)):n<0&&(n=o.length),i=0;"0"===o.charAt(i);i++);if(i===(s=o.length))e=[0],n=1;else{for(s--;"0"===o.charAt(s);)s--;for(n-=i,e=[],r=0;i<=s;i++,r++)e[r]=Number(o.charAt(i))}return n>22&&(e=e.splice(0,21),a=n-1,n=1),{digits:e,exponent:a,integerLen:n}}(t);o&&(l=function(t){if(0===t.digits[0])return t;const e=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===e?t.digits.push(0,0):1===e&&t.digits.push(0),t.integerLen+=2),t}(l));let u=e.minInt,h=e.minFrac,d=e.maxFrac;if(s){const t=s.match(nt);if(null===t)throw new Error(s+" is not a valid digit info");const e=t[1],n=t[3],i=t[5];null!=e&&(u=st(e)),null!=n&&(h=st(n)),null!=i?d=st(i):null!=n&&h>d&&(d=h)}!function(t,e,n){if(e>n)throw new Error(`The minimum number of digits after fraction (${e}) is higher than the maximum (${n}).`);let i=t.digits,r=i.length-t.integerLen;const s=Math.min(Math.max(e,r),n);let o=s+t.integerLen,a=i[o];if(o>0){i.splice(Math.max(t.integerLen,o));for(let t=o;t=5)if(o-1<0){for(let e=0;e>o;e--)i.unshift(0),t.integerLen++;i.unshift(1),t.integerLen++}else i[o-1]++;for(;r=l?i.pop():c=!1),e>=10?1:0}),0);u&&(i.unshift(u),t.integerLen++)}(l,h,d);let p=l.digits,f=l.integerLen;const b=l.exponent;let g=[];for(c=p.every(t=>!t);f0?g=p.splice(f,p.length):(g=p,p=[0]);const m=[];for(p.length>=e.lgSize&&m.unshift(p.splice(-e.lgSize,p.length).join(""));p.length>e.gSize;)m.unshift(p.splice(-e.gSize,p.length).join(""));p.length&&m.unshift(p.join("")),a=m.join(j(n,i)),g.length&&(a+=j(n,r)+g.join("")),b&&(a+=j(n,I.Exponential)+"+"+b)}else a=j(n,I.Infinity);return a=t<0&&!c?e.negPre+a+e.negSuf:e.posPre+a+e.posSuf,a}function rt(t,e="-"){const n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=t.split(";"),r=i[0],s=i[1],o=-1!==r.indexOf(".")?r.split("."):[r.substring(0,r.lastIndexOf("0")+1),r.substring(r.lastIndexOf("0")+1)],a=o[0],c=o[1]||"";n.posPre=a.substr(0,a.indexOf("#"));for(let u=0;u{class t extends ot{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(N(e||this.locale)(t)){case E.Zero:return"zero";case E.One:return"one";case E.Two:return"two";case E.Few:return"few";case E.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(i.w))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();function ct(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[i,r]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(i.trim()===e)return decodeURIComponent(r)}return null}let lt=(()=>{class t{constructor(t,e,n,i){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(Object(i.sb)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Object(i.xb)(t.item));this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.u),i.Ob(i.v),i.Ob(i.l),i.Ob(i.G))},t.\u0275dir=i.Jb({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class ut{constructor(t,e,n,i){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=i}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let ht=(()=>{class t{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){Object(i.X)()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(t)}. See https://angular.io/api/common/NgForOf#change-propagation for more information.`),this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${n}' of type '${t=n,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,i)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new ut(null,this._ngForOf,-1,-1),null===i?void 0:i),r=new dt(t,n);e.push(r)}else if(null==i)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const r=this._viewContainer.get(n);this._viewContainer.move(r,i);const s=new dt(t,r);e.push(s)}});for(let n=0;n{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.R),i.Ob(i.N),i.Ob(i.u))},t.\u0275dir=i.Jb({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class dt{constructor(t,e){this.record=t,this.view=e}}let pt=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new ft,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){bt("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){bt("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.R),i.Ob(i.N))},t.\u0275dir=i.Jb({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class ft{constructor(){this.$implicit=null,this.ngIf=null}}function bt(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Object(i.xb)(e)}'.`)}class gt{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let mt=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e{class t{constructor(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new gt(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.R),i.Ob(i.N),i.Ob(mt,1))},t.\u0275dir=i.Jb({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),_t=(()=>{class t{constructor(t,e,n){n._addDefault(new gt(t,e))}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.R),i.Ob(i.N),i.Ob(mt,1))},t.\u0275dir=i.Jb({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),yt=(()=>{class t{constructor(t,e,n){this._ngEl=t,this._differs=e,this._renderer=n,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,e){const[n,i]=t.split(".");null!=(e=null!=e&&i?`${e}${i}`:e)?this._renderer.setStyle(this._ngEl.nativeElement,n,e):this._renderer.removeStyle(this._ngEl.nativeElement,n)}_applyChanges(t){t.forEachRemovedItem(t=>this._setStyle(t.key,null)),t.forEachAddedItem(t=>this._setStyle(t.key,t.currentValue)),t.forEachChangedItem(t=>this._setStyle(t.key,t.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(i.v),i.Ob(i.G))},t.\u0275dir=i.Jb({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),Ot=(()=>{class t{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(this._shouldRecreateView(t)){const t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}_shouldRecreateView(t){const e=t.ngTemplateOutletContext;return!!t.ngTemplateOutlet||e&&this._hasContextShapeChanged(e)}_hasContextShapeChanged(t){const e=Object.keys(t.previousValue||{}),n=Object.keys(t.currentValue||{});if(e.length===n.length){for(let t of n)if(-1===e.indexOf(t))return!0;return!1}return!0}_updateExistingContext(t){for(let e of Object.keys(t))this._viewRef.context[e]=this.ngTemplateOutletContext[e]}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.R))},t.\u0275dir=i.Jb({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[i.Ab]}),t})();function Ct(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${Object(i.xb)(t)}'`)}class wt{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class Tt{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const St=new Tt,kt=new wt;let Et=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(e){if(Object(i.ub)(e))return St;if(Object(i.tb)(e))return kt;throw Ct(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.h))},t.\u0275pipe=i.Nb({name:"async",type:t,pure:!1}),t})();const xt=/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D])\S*/g;let Pt=(()=>{class t{transform(e){if(!e)return e;if("string"!=typeof e)throw Ct(t,e);return e.replace(xt,t=>t[0].toUpperCase()+t.substr(1).toLowerCase())}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.Nb({name:"titlecase",type:t,pure:!0}),t})(),At=(()=>{class t{transform(e){if(!e)return e;if("string"!=typeof e)throw Ct(t,e);return e.toUpperCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.Nb({name:"uppercase",type:t,pure:!0}),t})(),It=(()=>{class t{constructor(t){this.locale=t}transform(e,n="mediumDate",r,s){if(null==e||""===e||e!=e)return null;try{return function(t,e,n,r){let s=function(t){if(et(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){t=t.trim();const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);if(/^(\d{4}-\d{1,2}-\d{1,2})$/.test(t)){const[e,n,i]=t.split("-").map(t=>+t);return new Date(e,n-1,i)}let n;if(n=t.match(z))return function(t){const e=new Date(0);let n=0,i=0;const r=t[8]?e.setUTCFullYear:e.setFullYear,s=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=Number(t[9]+t[10]),i=Number(t[9]+t[11])),r.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));const o=Number(t[4]||0)-n,a=Number(t[5]||0)-i,c=Number(t[6]||0),l=Math.round(1e3*parseFloat("0."+(t[7]||0)));return s.call(e,o,a,c,l),e}(n)}const e=new Date(t);if(!et(e))throw new Error(`Unable to convert "${t}" into a date`);return e}(t);e=function t(e,n){const r=function(t){return Object(i.mb)(t)[i.cb.LocaleId]}(e);if(V[r]=V[r]||{},V[r][n])return V[r][n];let s="";switch(n){case"shortDate":s=M(e,A.Short);break;case"mediumDate":s=M(e,A.Medium);break;case"longDate":s=M(e,A.Long);break;case"fullDate":s=M(e,A.Full);break;case"shortTime":s=D(e,A.Short);break;case"mediumTime":s=D(e,A.Medium);break;case"longTime":s=D(e,A.Long);break;case"fullTime":s=D(e,A.Full);break;case"short":const n=t(e,"shortTime"),i=t(e,"shortDate");s=W(R(e,A.Short),[n,i]);break;case"medium":const r=t(e,"mediumTime"),o=t(e,"mediumDate");s=W(R(e,A.Medium),[r,o]);break;case"long":const a=t(e,"longTime"),c=t(e,"longDate");s=W(R(e,A.Long),[a,c]);break;case"full":const l=t(e,"fullTime"),u=t(e,"fullDate");s=W(R(e,A.Full),[l,u])}return s&&(V[r][n]=s),s}(n,e)||e;let o,a=[];for(;e;){if(o=$.exec(e),!o){a.push(e);break}{a=a.concat(o.slice(1));const t=a.pop();if(!t)break;e=t}}let c=s.getTimezoneOffset();r&&(c=tt(r,c),s=function(t,e,n){const i=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(tt(e,i)-i))}(s,r));let l="";return a.forEach(t=>{const e=function(t){if(J[t])return J[t];let e;switch(t){case"G":case"GG":case"GGG":e=K(Q.Eras,P.Abbreviated);break;case"GGGG":e=K(Q.Eras,P.Wide);break;case"GGGGG":e=K(Q.Eras,P.Narrow);break;case"y":e=Y(q.FullYear,1,0,!1,!0);break;case"yy":e=Y(q.FullYear,2,0,!0,!0);break;case"yyy":e=Y(q.FullYear,3,0,!1,!0);break;case"yyyy":e=Y(q.FullYear,4,0,!1,!0);break;case"M":case"L":e=Y(q.Month,1,1);break;case"MM":case"LL":e=Y(q.Month,2,1);break;case"MMM":e=K(Q.Months,P.Abbreviated);break;case"MMMM":e=K(Q.Months,P.Wide);break;case"MMMMM":e=K(Q.Months,P.Narrow);break;case"LLL":e=K(Q.Months,P.Abbreviated,x.Standalone);break;case"LLLL":e=K(Q.Months,P.Wide,x.Standalone);break;case"LLLLL":e=K(Q.Months,P.Narrow,x.Standalone);break;case"w":e=X(1);break;case"ww":e=X(2);break;case"W":e=X(1,!0);break;case"d":e=Y(q.Date,1);break;case"dd":e=Y(q.Date,2);break;case"E":case"EE":case"EEE":e=K(Q.Days,P.Abbreviated);break;case"EEEE":e=K(Q.Days,P.Wide);break;case"EEEEE":e=K(Q.Days,P.Narrow);break;case"EEEEEE":e=K(Q.Days,P.Short);break;case"a":case"aa":case"aaa":e=K(Q.DayPeriods,P.Abbreviated);break;case"aaaa":e=K(Q.DayPeriods,P.Wide);break;case"aaaaa":e=K(Q.DayPeriods,P.Narrow);break;case"b":case"bb":case"bbb":e=K(Q.DayPeriods,P.Abbreviated,x.Standalone,!0);break;case"bbbb":e=K(Q.DayPeriods,P.Wide,x.Standalone,!0);break;case"bbbbb":e=K(Q.DayPeriods,P.Narrow,x.Standalone,!0);break;case"B":case"BB":case"BBB":e=K(Q.DayPeriods,P.Abbreviated,x.Format,!0);break;case"BBBB":e=K(Q.DayPeriods,P.Wide,x.Format,!0);break;case"BBBBB":e=K(Q.DayPeriods,P.Narrow,x.Format,!0);break;case"h":e=Y(q.Hours,1,-12);break;case"hh":e=Y(q.Hours,2,-12);break;case"H":e=Y(q.Hours,1);break;case"HH":e=Y(q.Hours,2);break;case"m":e=Y(q.Minutes,1);break;case"mm":e=Y(q.Minutes,2);break;case"s":e=Y(q.Seconds,1);break;case"ss":e=Y(q.Seconds,2);break;case"S":e=Y(q.FractionalSeconds,1);break;case"SS":e=Y(q.FractionalSeconds,2);break;case"SSS":e=Y(q.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=Z(H.Short);break;case"ZZZZZ":e=Z(H.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Z(H.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=Z(H.Long);break;default:return null}return J[t]=e,e}(t);l+=e?e(s,n,c):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}(e,n,s||this.locale,r)}catch(o){throw Ct(t,o.message)}}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.w))},t.\u0275pipe=i.Nb({name:"date",type:t,pure:!0}),t})(),Mt=(()=>{class t{transform(t){return JSON.stringify(t,null,2)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.Nb({name:"json",type:t,pure:!1}),t})(),Dt=(()=>{class t{constructor(t){this._locale=t}transform(e,n,i){if(jt(e))return null;i=i||this._locale;try{return function(t,e,n){return it(t,rt(L(e,k.Decimal),j(e,I.MinusSign)),e,I.Group,I.Decimal,n)}(Lt(e),i,n)}catch(r){throw Ct(t,r.message)}}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.w))},t.\u0275pipe=i.Nb({name:"number",type:t,pure:!0}),t})(),Rt=(()=>{class t{constructor(t){this._locale=t}transform(e,n,i){if(jt(e))return null;i=i||this._locale;try{return function(t,e,n){return it(t,rt(L(e,k.Percent),j(e,I.MinusSign)),e,I.Group,I.Decimal,n,!0).replace(new RegExp("%","g"),j(e,I.PercentSign))}(Lt(e),i,n)}catch(r){throw Ct(t,r.message)}}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.w))},t.\u0275pipe=i.Nb({name:"percent",type:t,pure:!0}),t})();function jt(t){return null==t||""===t||t!=t}function Lt(t){if("string"==typeof t&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if("number"!=typeof t)throw new Error(t+" is not a number");return t}let Nt=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},providers:[{provide:ot,useClass:at}]}),t})();const Ut="browser";function Ft(t){return t===Ut}let Bt=(()=>{class t{}return t.\u0275prov=Object(i.Kb)({token:t,providedIn:"root",factory:()=>new zt(Object(i.Yb)(c),window,Object(i.Yb)(i.n))}),t})();class zt{constructor(t,e,n){this.document=t,this.window=e,this.errorHandler=n,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.scrollX,this.window.scrollY]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(this.supportsScrolling()){const e=this.document.getElementById(t)||this.document.getElementsByName(t)[0];e&&this.scrollToElement(e)}}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,i=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(n-r[0],i-r[1])}supportScrollRestoration(){try{if(!this.window||!this.window.scrollTo)return!1;const t=Vt(this.window.history)||Vt(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window.scrollTo}catch(t){return!1}}}function Vt(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}},AsU5:function(t,e,n){"use strict";n.d(e,"a",(function(){return L}));var i=n("i67J"),r=n("zqNl"),s=n("uJYd"),o=n("+Px6"),a=n("qAYy"),c=n("YyhG"),l=n("J/3c"),u=n("HM3f"),h=n("YtkY"),d=n("kZht"),p=n("An66"),f=n("hCLc"),b=n("1etq"),g=n("B6Vo"),m=n("zho4"),v=n("NxuZ"),_=n("anSm"),y=n("1o0v"),O=n("HyYW"),C=n("TADc"),w=n("LbKT"),T=n("+I9z"),S=n("7J2L"),k=n("aDqW"),E=n("rqGg"),x=n("DpwM");function P(t,e){if(1&t&&(d.Ub(0,"section",15),d.Ub(1,"div",16),d.Ub(2,"p",8),d.Qc(3),d.gc(4,"uppercase"),d.gc(5,"translate"),d.Tb(),d.Ub(6,"p",9),d.Qc(7),d.gc(8,"percent"),d.Tb(),d.Tb(),d.Ub(9,"div",17),d.Ub(10,"div",18),d.Ub(11,"div",19),d.gc(12,"percent"),d.Tb(),d.Ub(13,"div",20),d.gc(14,"percent"),d.Tb(),d.Tb(),d.Tb(),d.Tb()),2&t){const t=d.fc(2).ngIf,e=d.fc();d.Cb(3),d.Sc(" ",d.hc(4,6,d.hc(5,8,"Health"))," "),d.Cb(4),d.Sc(" ",d.hc(8,10,e.ratioClamped(t.marginRatio))," "),d.Cb(4),d.Lc("width",d.hc(12,12,1)),d.Cb(2),d.Lc("width",d.hc(14,14,1-e.ratioClamped(t.marginRatio)))}}const A=function(){return[250,100]};function I(t,e){if(1&t){const t=d.Vb();d.Ub(0,"section",21),d.bc("click",(function(){d.Ec(t);const e=d.fc(2).ngIf;return d.fc().viewDetailed(e.position)})),d.Pb(1,"fa-icon",22),d.gc(2,"translate"),d.Ub(3,"div",23),d.Ub(4,"p",24),d.Qc(5),d.gc(6,"uppercase"),d.gc(7,"translate"),d.Tb(),d.Ub(8,"p",9),d.Pb(9,"ghost-trail",25),d.gc(10,"asset"),d.Tb(),d.Ub(11,"p",26),d.Qc(12),d.gc(13,"sato"),d.Ub(14,"span",27),d.Qc(15),d.gc(16,"asset"),d.Tb(),d.Tb(),d.Tb(),d.Tb()}if(2&t){const t=d.fc(2).ngIf;d.Cb(1),d.mc("sbTooltip",d.hc(2,9,"BUTTON.VIEW_MORE_DETAILS"))("sbDelay",d.qc(23,A)),d.Cb(3),d.mc("pnl",t.position.balance),d.Cb(1),d.Sc(" ",d.hc(6,11,d.hc(7,13,t.position.balance>0?"BUTTON.LONG":"BUTTON.SHORT"))," "),d.Cb(4),d.pc("content","\n ",t.position.displaySize,"\n ",d.hc(10,15,t.position.tradingDisplayAsset),""),d.Cb(2),d.mc("pnl",t.position.pnl),d.Cb(1),d.Sc(" ",d.jc(13,17,t.position.pnl,t.position.walletDisplayAsset,"full")," "),d.Cb(3),d.Rc(d.hc(16,21,t.position.walletDisplayAsset))}}function M(t,e){if(1&t){const t=d.Vb();d.Ub(0,"section",3),d.Ub(1,"button",4),d.bc("click",(function(){return d.Ec(t),d.fc(2).openFlexPrefDialog()})),d.Ub(2,"span"),d.Qc(3),d.gc(4,"uppercase"),d.Tb(),d.Pb(5,"fa-icon",5),d.Tb(),d.Ub(6,"section",6),d.Ub(7,"div",7),d.Ub(8,"p",8),d.Qc(9),d.gc(10,"uppercase"),d.gc(11,"translate"),d.Tb(),d.Ub(12,"p",9),d.Qc(13),d.gc(14,"number"),d.Tb(),d.Tb(),d.Pb(15,"gauge",10),d.Ub(16,"div",11),d.Ub(17,"p",8),d.Qc(18),d.gc(19,"uppercase"),d.Tb(),d.Ub(20,"p",9),d.Qc(21),d.Tb(),d.Tb(),d.Tb(),d.Pb(22,"sb-divider",12),d.Oc(23,P,15,16,"section",13),d.Oc(24,I,17,24,"section",14),d.Tb()}if(2&t){const t=d.fc().ngIf,e=d.fc();d.Cb(1),d.mc("sbTooltip","Edit Multi-Collateral Preferences")("sbDelay",d.qc(21,A)),d.Cb(2),d.Sc(" ",d.hc(4,10,e.lvg(t.selectedMarketLvgPrefs))," "),d.Cb(6),d.Rc(d.hc(10,12,d.hc(11,14,"COLUMN.LVG"))),d.Cb(4),d.Rc(d.ic(14,16,t.selectedMarketLvg,"1.2-2")+"x"),d.Cb(2),d.mc("value",t.lvgBarWidth||0),d.Cb(3),d.Rc(d.hc(19,19,"Profit")),d.Cb(3),d.Rc(t.selectedMarketPnlPrefs.pnlCurrency),d.Cb(2),d.mc("ngIf",t.position||t.selectedMarketLvgPrefs.cross&&t.crossFlexPositionOpen),d.Cb(1),d.mc("ngIf",t.position)}}function D(t,e){if(1&t&&(d.Sb(0),d.Oc(1,M,25,22,"section",2),d.Rb()),2&t){const t=e.ngIf;d.fc();const n=d.Ac(11);d.Cb(1),d.mc("ngIf",t.flexWallet)("ngIfElse",n)}}function R(t,e){1&t&&d.Pb(0,"kraken-loading")}const j=function(t,e,n,i,r,s,o,a,c){return{position:t,marginRatio:e,flexWallet:n,crossFlexPositionOpen:i,selectedMarket:r,selectedMarketPnlPrefs:s,selectedMarketLvgPrefs:o,selectedMarketLvg:a,lvgBarWidth:c}};let L=(()=>{class t{constructor(t){this.store=t,this.selectedMarketPosition$=this.store.pipe(Object(r.m)(c.g)),this.instruments$=this.store.pipe(Object(r.m)(o.f)),this.flexWallet$=this.store.pipe(Object(r.m)(l.l)),this.crossFlexPositionOpen$=this.store.pipe(Object(r.m)(c.a)),this.marginRatio$=this.store.pipe(Object(r.m)(c.p)),this.selectedMarket$=this.store.pipe(Object(r.m)(o.n)),this.selectedMarketPnlPrefs$=this.store.pipe(Object(r.m)(o.q)),this.selectedMarketLvgPrefs$=this.store.pipe(Object(r.m)(o.o)),this.selectedMarketLvg$=this.store.pipe(Object(r.m)(c.q)),this.tickerLvg$=this.store.pipe(Object(r.m)(a.q)),this.lvgBarWidth$=Object(u.a)([this.tickerLvg$,this.selectedMarketLvg$]).pipe(Object(h.a)(([t,e])=>e&&Math.min(100,Math.max(e/t*100,0))))}openDetailsDialog(t){this.instruments$.pipe(Object(i.h)()).subscribe(e=>{const n=e.get(t.instrument);this.store.dispatch(Object(s.g)({name:"position-details",inputs:{position:t,instrument:n}}))})}openFlexPrefDialog(){this.store.dispatch(Object(s.g)({name:"flex-prefs"}))}lvg(t){return(null==t?void 0:t.cross)?"Cross":"Isolated"}ratioClamped(t){return Math.max(0,Math.min(t,1))}getRiskLabel(t){return t>=15?"High":t>=5?"Medium":"Low"}getRiskBackground(t){return t>=15?"var(--warn-colour)":t>=5?"var(--y200)":"var(--accent-colour)"}getHealthBackground(t){return t<=.5?"var(--warn-colour)":t<=.75?"var(--y200)":"var(--accent-colour)"}get gaugeLabelFn(){return t=>t+"x"}viewDetailed(t){this.instruments$.pipe(Object(i.h)()).subscribe(e=>{const n=e.get(t.instrument);this.store.dispatch(Object(s.g)({name:"position-details",inputs:{position:t,instrument:n}}))})}}return t.\u0275fac=function(e){return new(e||t)(d.Ob(r.b))},t.\u0275cmp=d.Ib({type:t,selectors:[["flex-position"]],decls:12,vars:29,consts:[[4,"ngIf"],["loading",""],["class","flex-position",4,"ngIf","ngIfElse"],[1,"flex-position"],["subheading","","mat-button","",1,"pref",3,"sbTooltip","sbDelay","click"],["icon","chevron-down","size","lg"],[1,"gauge"],[1,"gauge-detail"],["body","","ghost",""],["body",""],[3,"value"],[1,"profit"],["vertical",""],["class","bar",4,"ngIf"],["class","position",3,"click",4,"ngIf"],[1,"bar"],[1,"detail"],[1,"bar-container"],[1,"progress-bar"],[1,"progress-fill"],[1,"progress-dark-fill"],[1,"position",3,"click"],["icon","file",3,"sbTooltip","sbDelay"],[1,"position-detail"],["body","",3,"pnl"],[3,"content"],["body","","pnlZero","",3,"pnl"],["ghost",""]],template:function(t,e){1&t&&(d.Oc(0,D,2,2,"ng-container",0),d.gc(1,"async"),d.gc(2,"async"),d.gc(3,"async"),d.gc(4,"async"),d.gc(5,"async"),d.gc(6,"async"),d.gc(7,"async"),d.gc(8,"async"),d.gc(9,"async"),d.Oc(10,R,1,0,"ng-template",null,1,d.Pc)),2&t&&d.mc("ngIf",d.yc(19,j,[d.hc(1,1,e.selectedMarketPosition$),d.hc(2,3,e.marginRatio$),d.hc(3,5,e.flexWallet$),d.hc(4,7,e.crossFlexPositionOpen$),d.hc(5,9,e.selectedMarket$),d.hc(6,11,e.selectedMarketPnlPrefs$),d.hc(7,13,e.selectedMarketLvgPrefs$),d.hc(8,15,e.selectedMarketLvg$),d.hc(9,17,e.lvgBarWidth$)]))},directives:[p.n,f.b,b.a,g.a,m.a,v.b,_.a,y.a,O.a,C.a,w.a,T.a,S.a],pipes:[p.b,p.x,k.d,p.f,p.u,E.a,x.c],styles:[".flex-position[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between}.bar[_ngcontent-%COMP%]{display:flex;position:relative;border-radius:var(--bdrs);flex:1;flex-direction:column;margin-right:var(--spacing-l);align-self:center;width:150px;margin-left:var(--spacing-l)}.bar[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{padding-right:var(--spacing-s);vertical-align:middle}.progress-bar[_ngcontent-%COMP%]{max-height:16px;flex:1;align-self:center;width:100%;margin:var(--spacing-xs) 0;border:1px solid var(--i400);padding:2px;border-radius:4px;position:relative}.progress-fill[_ngcontent-%COMP%]{background:linear-gradient(90deg,#e2444d,#d1a91c 50%,#6ec877);position:relative;height:10px;border-radius:2px}.progress-dark-fill[_ngcontent-%COMP%]{background:var(--toolbar-colour);height:10px;position:absolute;right:1px;top:2px}.detail[_ngcontent-%COMP%]{flex-direction:row;justify-content:space-between}.detail[_ngcontent-%COMP%], .gauge[_ngcontent-%COMP%]{display:flex;align-items:center}.gauge[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{margin-right:var(--spacing)}.gauge[_ngcontent-%COMP%] gauge[_ngcontent-%COMP%]{margin-left:var(--spacing);width:50px}.gauge[_ngcontent-%COMP%] .gauge-detail[_ngcontent-%COMP%]{margin-right:var(--spacing)}.bar-container[_ngcontent-%COMP%]{align-items:center;display:flex}.bar-container[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{font-size:18px}sb-divider[_ngcontent-%COMP%]{margin:0 var(--spacing)}fa-icon[_ngcontent-%COMP%]{color:var(--icon-colour)}.pref[_ngcontent-%COMP%]{margin-right:var(--spacing)}.profit[_ngcontent-%COMP%]{text-align:right;margin-left:var(--spacing)}.position[_ngcontent-%COMP%]{display:flex;align-items:center;cursor:pointer}.position[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{margin-right:var(--spacing)}"],changeDetection:0}),t})()},Asjx:function(t,e,n){"use strict";n.d(e,"a",(function(){return y})),n.d(e,"b",(function(){return C}));var i=n("kZht"),r=n("5XID"),s=n("ZTXN"),o=n("HM3f"),a=n("qZtG"),c=n("IdLP"),l=n("J+dc"),u=n("3mST"),h=n("mWib"),d=n("YtkY"),p=n("jIqt"),f=n("kuMc"),b=n("O1jd");const g=new Set;let m,v=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):_}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!g.has(t))try{m||(m=document.createElement("style"),m.setAttribute("type","text/css"),document.head.appendChild(m)),m.sheet&&(m.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),g.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(b.a))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(b.a))},token:t,providedIn:"root"}),t})();function _(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let y=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new s.b}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return O(Object(r.b)(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){const e=O(Object(r.b)(t)).map(t=>this._registerQuery(t).observable);let n=Object(o.a)(e);return n=Object(a.a)(n.pipe(Object(l.a)(1)),n.pipe(Object(u.a)(1),Object(h.a)(0))),n.pipe(Object(d.a)(t=>{const e={matches:!1,breakpoints:{}};return t.forEach(({matches:t,query:n})=>{e.matches=e.matches||t,e.breakpoints[n]=t}),e}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const e=this._mediaMatcher.matchMedia(t),n={observable:new c.a(t=>{const n=e=>this._zone.run(()=>t.next(e));return e.addListener(n),()=>{e.removeListener(n)}}).pipe(Object(p.a)(e),Object(d.a)(({matches:e})=>({query:t,matches:e})),Object(f.a)(this._destroySubject)),mql:e};return this._queries.set(t,n),n}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(v),i.Yb(i.B))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(v),Object(i.Yb)(i.B))},token:t,providedIn:"root"}),t})();function O(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const C={XSmall:"(max-width: 599.99px)",Small:"(min-width: 600px) and (max-width: 959.99px)",Medium:"(min-width: 960px) and (max-width: 1279.99px)",Large:"(min-width: 1280px) and (max-width: 1919.99px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.99px) and (orientation: portrait), (max-width: 959.99px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.99px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.99px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.99px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.99px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.99px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.99px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},AytR:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return r}));const i={production:!0},r=[]},B59i:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return r})),n.d(e,"c",(function(){return s}));const i=()=>[1,2,3,5,10,25,50],r=()=>[1,2,5,10,16.66,25,50],s=(t,e,n)=>e&&void 0!==e.leverage&&e.leverageSlider&&!n?{buy:t.buy*r().slice().reverse()[e.leverage],sell:t.sell*r().slice().reverse()[e.leverage]}:t},B6Vo:function(t,e,n){"use strict";n.d(e,"a",(function(){return b}));var i=n("D57K"),r=n("ZtZA"),s=n("gxtV"),o=n("KQpv"),a=n.n(o),c=n("5OT+"),l=n("TNp2"),u=n("Cc4E"),h=n("kZht"),d=n("5GZx"),p=n("jL3B");const f=a()("trace:sb:directive:tooltip");let b=(()=>{let t=class{constructor(t,e,n,i,r,s,o,a,c){this.vcr=t,this.element=e,this.injector=n,this.overlay=i,this.focusMonitor=r,this.ngZone=s,this.placement=o,this.delay=a,this.disabled=c,this.listeners=new Map}ngOnInit(){this.setupPointerEvents(),this.setupFocusMonitor()}ngOnDestroy(){var t;this.teardownPointerEvents(),this.focusMonitor.stopMonitoring(this.element),this.detachCurrent(),null===(t=this.overlayRef)||void 0===t||t.dispose()}show(t){var e,n,i,s,o,a,c;if(f("attempt to show with delay",t),(null===(e=this.disabled)||void 0===e?void 0:e.disabled)||!this.content||(null===(n=this.instance)||void 0===n?void 0:n.isVisible))return void f("will not show",this.content,null===(i=this.instance)||void 0===i?void 0:i.isVisible,null===(s=this.instance)||void 0===s?void 0:s.showDelayId,null===(o=this.instance)||void 0===o?void 0:o.hideDelayId);const u=this.createOverlay();this.detachCurrent(),this.portal=null!==(a=this.portal)&&void 0!==a?a:new r.d(l.a,this.vcr,this.injector),this.instance=u.attach(this.portal).instance,this.instance.afterHidden.subscribe(()=>this.detachCurrent()),this.instance.content=this.content,this.instance.markForCheck(),this.instance.show(null!=t?t:null===(c=this.delay)||void 0===c?void 0:c.startDelay)}hide(t){var e,n;f("hiding with delay",t),null===(e=this.instance)||void 0===e||e.hide(null!=t?t:null===(n=this.delay)||void 0===n?void 0:n.endDelay)}setupFocusMonitor(){this.focusMonitor.monitor(this.element).pipe(Object(s.b)(this)).subscribe(t=>{t?"keyboard"===t&&this.ngZone.run(()=>this.show()):this.ngZone.run(()=>this.hide(0))})}setupPointerEvents(){this.listeners.set("mouseenter",()=>this.show()),this.listeners.set("mouseleave",()=>this.hide()),this.listeners.forEach((t,e)=>{this.element.nativeElement.addEventListener(e,t,{passive:!0})})}teardownPointerEvents(){this.listeners.forEach((t,e)=>{this.element.nativeElement.removeEventListener(e,t)}),this.listeners.clear()}handleKeydown(t){var e;(null===(e=this.instance)||void 0===e?void 0:e.isVisible)&&"Escape"===t.key&&!function(t,e){return t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}(t)&&(t.preventDefault(),t.stopPropagation(),this.hide(0))}detachCurrent(){var t;f("detaching from overlay",this.overlayRef),null===(t=this.overlayRef)||void 0===t||t.detach(),this.instance=void 0}createOverlay(){var t,e;if(this.overlayRef)return this.overlayRef;const n=null!==(e=null===(t=this.placement)||void 0===t?void 0:t.connectedPositions())&&void 0!==e?e:c.c.bottomThenTop,i=this.overlay.position().flexibleConnectedTo(this.element).withPositions(n).withViewportMargin(8).withFlexibleDimensions(!1).withPush(!0);return this.overlayRef=this.overlay.create({hasBackdrop:!1,positionStrategy:i}),this.overlayRef}};return t.\u0275fac=function(e){return new(e||t)(h.Ob(h.R),h.Ob(h.l),h.Ob(h.t),h.Ob(d.c),h.Ob(p.h),h.Ob(h.B),h.Ob(c.c,9),h.Ob(c.b,9),h.Ob(u.a,9))},t.\u0275dir=h.Jb({type:t,selectors:[["","sbTooltip",""]],hostBindings:function(t,e){1&t&&h.bc("keydown",(function(t){return e.handleKeydown(t)}))},inputs:{content:["sbTooltip","content"]},exportAs:["sbTooltip"]}),t=Object(i.d)([Object(s.a)()],t),t})()},B6ip:function(t,e,n){"use strict";n.r(e),n.d(e,"AssignmentDisclaimerComponent",(function(){return y}));var i=n("zqNl"),r=n("1ONQ"),s=n("AytR"),o=n("kZht");const a=["ar","de","en","es","fr","he","it","ja","ko","nl","pl","pt","ru","tr","uk","vi","zh"],c=["wsHealth"],l=["PF_PEPEUSD","PF_SHIBUSD","PF_BONKUSD"],u="futures.kraken.com";let h=(()=>{class t{constructor(){this.platform="kraken",this.appVersion="v5.19.0",this.urls={rest:`https://${u}/derivatives/api/v4`,websocket:`wss://${u}/ws/v1`,auth:`https://${u}/api/auth/v1`,health:`https://${u}/api/health/v1`,healthWs:`wss://${u}/ws/health`,history:`https://${u}/api/history/v2`,base:`https://${u}/`,support:"https://support.kraken.com",externalSignIn:"https://www.kraken.com/login-futures",externalSignUp:"https://www.kraken.com/sign-up",fusion:"https://pro.kraken.com/app/trade/futures-btc-usd-perp#dialog/sign-in?utm_source=KF&utm_medium=banner&utm_campaign=pro_futures_launch&utm_content=banner"},this.demo=!1,this.locales=a,this.featuresEnabled=c,this.hiddenMarkets=l}get production(){return s.b.production}get localDev(){return!s.b.production}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=o.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var d=n("rxqU"),p=n("rfPA"),f=n("bBQR"),b=n("1etq"),g=n("anSm"),m=n("UDV5"),v=n("hCLc"),_=n("e7kw");let y=(()=>{class t{constructor(t,e){this.store=t,this.envService=e,this.isExternalUser$=this.store.pipe(Object(i.m)(d.l))}acceptDisclaimer(){this.store.dispatch(Object(r.a)())}get isCF(){return"cf"===this.envService.platform}}return t.\u0275fac=function(e){return new(e||t)(o.Ob(i.b),o.Ob(h))},t.\u0275cmp=o.Ib({type:t,selectors:[["assignment-disclaimer"]],decls:32,vars:14,consts:[["heading","Assignment Program Disclaimer"],[1,"assignment-disclaimer"],["subheading",""],["body",""],["body","","target","_blank",1,"global__text--link",3,"href"],["required","",1,"global__text","global__text-body","no-border"],["checkbox",""],["mat-raised-button","",3,"disabled","click"]],template:function(t,e){if(1&t&&(o.Ub(0,"pro-dialog",0),o.Ub(1,"section",1),o.Ub(2,"p",2),o.Qc(3,"Please confirm that you have understood the following:"),o.Tb(),o.Ub(4,"p",3),o.Qc(5," The Position Assignment System (PAS) is not a risk-free proposition, and you should fully familiarize yourself with the associated risks before participating. "),o.Tb(),o.Ub(6,"p",3),o.Qc(7,"Please therefore read the following documentation carefully:"),o.Tb(),o.Ub(8,"ul"),o.Ub(9,"li"),o.Ub(10,"a",4),o.gc(11,"supportArticle"),o.Qc(12," - Position assignment system description "),o.Tb(),o.Tb(),o.Ub(13,"li"),o.Ub(14,"a",4),o.gc(15,"supportArticle"),o.Qc(16," - Position assignment example "),o.Tb(),o.Tb(),o.Ub(17,"li"),o.Ub(18,"a",4),o.gc(19,"supportArticle"),o.Qc(20," - Manage your position assignment program preferences - Single-Collateral Future "),o.Tb(),o.Tb(),o.Ub(21,"li"),o.Ub(22,"a",4),o.gc(23,"supportArticle"),o.Qc(24," - Manage your position assignment program preferences - Multi-Collateral Futures "),o.Tb(),o.Tb(),o.Tb(),o.Ub(25,"p",3),o.Qc(26),o.Tb(),o.Ub(27,"mat-checkbox",5,6),o.Qc(29," I have read and understood the above material and disclaimer and proceed at my own risk. "),o.Tb(),o.Ub(30,"button",7),o.bc("click",(function(){return e.acceptDisclaimer()})),o.Qc(31," Accept "),o.Tb(),o.Tb(),o.Tb()),2&t){const t=o.Ac(28);o.Cb(10),o.mc("href",o.hc(11,6,360022631692),o.Gc),o.Cb(4),o.mc("href",o.hc(15,8,360022835231),o.Gc),o.Cb(4),o.mc("href",o.hc(19,10,360028245092),o.Gc),o.Cb(4),o.mc("href",o.hc(23,12,4819410136340),o.Gc),o.Cb(4),o.Sc(" ",e.isCF?"Crypto Facilities":"Kraken Futures"," takes no responsibility for any losses resulting from participation in the PAS under any circumstances. "),o.Cb(4),o.mc("disabled",!t.checked)}},directives:[p.a,f.a,b.a,g.a,m.a,v.b],pipes:[_.a],styles:[".assignment-disclaimer[_ngcontent-%COMP%]{width:600px}@media (max-width:599px){.assignment-disclaimer[_ngcontent-%COMP%]{width:100%}}.assignment-disclaimer[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .assignment-disclaimer[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin-bottom:var(--spacing)}.assignment-disclaimer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-top:var(--spacing)}"],changeDetection:0}),t})()},B8NW:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("5uGe");function r(t,e=!1){return n=>n.lift(new s(t,e))}class s{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new o(t,this.predicate,this.inclusive))}}class o extends i.a{constructor(t,e,n){super(t),this.predicate=e,this.inclusive=n,this.index=0}_next(t){const e=this.destination;let n;try{n=this.predicate(t,this.index++)}catch(i){return void e.error(i)}this.nextOrComplete(t,n)}nextOrComplete(t,e){const n=this.destination;Boolean(e)?n.next(t):(this.inclusive&&n.next(t),n.complete())}}},B9MG:function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},BeMo:function(t,e,n){"use strict";n.d(e,"a",(function(){return P}));var i=n("D57K"),r=n("gxtV"),s=n("KQpv"),o=n.n(s),a=n("og7C"),c=n("C05f"),l=n("8lHc"),u=n("YtkY"),h=n("wqq/"),d=n("Qbn9");const p=o()("lib:charts:sparklines");function f(t){return 0===t.length?"#67c570":t[t.length-1][1]t[1]),r=Math.max(...i),s=Math.min(...i),o=r-s;return 0===o?"M0,50H300":(n?"L":"M")+t.map(([t,e],n)=>{const i=300*t+0,r=function(t){return 100-(t-s)/o*100+0}(e);return 0===n?"0,"+r.toFixed(1):`${i.toFixed(1)},${r.toFixed(1)}`}).join("L")+"H300"}var g=n("CLaS"),m=n("kZht"),v=n("An66"),_=n("7J2L"),y=n("NxuZ");function O(t,e){if(1&t&&(m.ec(),m.Pb(0,"path",8),m.gc(1,"async"),m.gc(2,"async")),2&t){const t=m.fc(2);m.Lc("opacity",.2),m.Db("d",m.hc(1,4,t.fillData$))("fill",m.hc(2,6,t.pathColor$))}}function C(t,e){if(1&t&&(m.Ub(0,"div",4),m.ec(),m.Ub(1,"svg",5),m.Oc(2,O,3,8,"path",6),m.Pb(3,"path",7),m.gc(4,"async"),m.gc(5,"async"),m.Tb(),m.Tb()),2&t){const t=m.fc();m.Cb(2),m.mc("ngIf",t._filled),m.Cb(1),m.Db("d",m.hc(4,3,t.pathData$))("stroke",m.hc(5,5,t.pathColor$))}}function w(t,e){1&t&&(m.Ub(0,"div",9),m.Pb(1,"kraken-loading"),m.Tb())}function T(t,e){1&t&&(m.Ub(0,"div",10),m.Pb(1,"fa-icon",11),m.Tb())}const S=o()("app:sparkline"),k=o()("trace:app:sparkline"),E=30*d.e,x=Object(a.b)().asMutable();let P=(()=>{let t=class{constructor(t){this.chart=t,this._filled=!1,this.state$=new c.a("loading"),this.candlesData$=new c.a([]),this.candles$=this.candlesData$.asObservable(),this.pathData$=this.candles$.pipe(Object(u.a)(t=>b(t,this.market)),Object(h.a)(1)),this.fillData$=this.candles$.pipe(Object(u.a)(t=>function(t,e){return 0===t.length?(p("no candles for",e),"M0,50H300L300,100H0z"):"M0,100"+b(t,e,!0)+"L300,100z"}(t,this.market)),Object(h.a)(1)),this.pathColor$=this.candles$.pipe(Object(u.a)(f),Object(h.a)(1))}set filled(t){this._filled=void 0!==t&&(""===t||t)}ngOnChanges(t){var e;(null===(e=t.market)||void 0===e?void 0:e.currentValue)&&!t.market.firstChange&&this.fetchCandles()}ngAfterViewInit(){this.startFetchCandlesTimer()}ngOnDestroy(){}startFetchCandlesTimer(){Object(l.a)(0,E).pipe(Object(r.b)(this)).subscribe(t=>{this.fetchCandles(0===t)})}fetchCandles(t=!0){if(void 0===this.market)return void this.state$.next("loading");const e=this.market;if(x.has(this.market)){const[n,i]=x.get(this.market);if(Date.now()-n{const t=Math.floor(Date.now()/1e3);return[t-d.a,t]})();this.chart.fetchCandles({type:"mark",symbol:e,resolution:"5m",period:[n,i]}).subscribe(t=>{const i=t.map(t=>[(t.time/1e3-n)/d.a,t.close]);this.candlesData$.next(i),this.state$.next("done"),x.set(e,[Date.now(),i])},t=>{S("failed to load candles for",e,t),this.state$.next("error")})}};return t.\u0275fac=function(e){return new(e||t)(m.Ob(g.a))},t.\u0275cmp=m.Ib({type:t,selectors:[["sparkline"]],inputs:{market:"market",filled:"filled"},features:[m.Ab],decls:5,vars:6,consts:[[3,"ngSwitch"],["class","center done",4,"ngSwitchCase"],["class","center loading",4,"ngSwitchCase"],["class","center error",4,"ngSwitchCase"],[1,"center","done"],["height","100%","width","100%","preserveAspectRatio","none","viewBox","0 0 300 100"],["stroke","none",3,"opacity",4,"ngIf"],["fill","none","stroke-width","1","stroke-linejoin","round","vector-effect","non-scaling-stroke"],["stroke","none"],[1,"center","loading"],[1,"center","error"],["icon","warning","size","lg"]],template:function(t,e){1&t&&(m.Sb(0,0),m.gc(1,"async"),m.Oc(2,C,6,7,"div",1),m.Oc(3,w,2,0,"div",2),m.Oc(4,T,2,0,"div",3),m.Rb()),2&t&&(m.mc("ngSwitch",m.hc(1,4,e.state$)),m.Cb(2),m.mc("ngSwitchCase","done"),m.Cb(1),m.mc("ngSwitchCase","loading"),m.Cb(1),m.mc("ngSwitchCase","error"))},directives:[v.p,v.q,v.n,_.a,y.b],pipes:[v.b],styles:["[_nghost-%COMP%]{display:block;padding-bottom:33.3333%;position:relative;line-height:0}.center[_ngcontent-%COMP%]{position:absolute;width:100%;height:100%;display:grid;justify-content:center;align-items:center}.done.center[_ngcontent-%COMP%]{justify-content:stretch}svg[_ngcontent-%COMP%]{display:block}.loading[_ngcontent-%COMP%] kraken-loading[_ngcontent-%COMP%]{--loader-size:1.5em}.error[_ngcontent-%COMP%]{color:var(--warn-colour)}"],changeDetection:0}),t=Object(i.d)([Object(r.a)()],t),t})()},BfNR:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){function t(){}return t.floatToIntBits=function(t){return t},t}()},BgTU:function(t,e,n){"use strict";n.d(e,"a",(function(){return E}));var i=n("kZht"),r=n("vYTc"),s=n("An66"),o=n("anSm"),a=n("1etq"),c=n("1o0v"),l=n("BeMo"),u=n("chaP"),h=n("NxuZ"),d=n("yPvj"),p=n("+e22"),f=n("LbKT"),b=n("rUBT"),g=n("DpwM"),m=n("09eR"),v=n("aDqW"),_=n("FUqb");function y(t,e){if(1&t){const t=i.Vb();i.Ub(0,"fa-icon",14),i.bc("click",(function(e){return i.Ec(t),i.fc().updateFavorite(e)})),i.Tb()}if(2&t){const t=i.fc();i.mc("icon",t.isFavorite?"star-filled":"star-unfilled")}}function O(t,e){if(1&t&&(i.Pb(0,"market-icon",15),i.gc(1,"base")),2&t){const t=i.fc();i.mc("base",i.hc(1,1,t.ticker.product_id))}}function C(t,e){if(1&t&&(i.Sb(0),i.Qc(1),i.gc(2,"translate"),i.gc(3,"uppercase"),i.Rb()),2&t){const t=i.fc();i.Cb(1),i.Sc(" ",i.hc(2,1,i.hc(3,3,"TAG."+t.ticker.tag))," ")}}function w(t,e){if(1&t&&(i.Qc(0),i.gc(1,"translate"),i.gc(2,"maturityMonth")),2&t){const t=i.fc();i.Sc(" ",i.hc(1,1,i.ic(2,3,t.ticker,"short"))," ")}}function T(t,e){if(1&t&&i.Pb(0,"change",16),2&t){const t=i.fc();i.mc("value",t.ticker.change)}}function S(t,e){if(1&t&&(i.Ub(0,"span",17),i.Qc(1),i.gc(2,"change"),i.gc(3,"number"),i.Tb()),2&t){const t=i.fc();i.mc("pnl",t.ticker.premium),i.Cb(1),i.Sc("",i.hc(2,2,i.ic(3,4,t.ticker.premium,"1.1-1")),"%")}}const k=function(t,e){return{flex:t,favorite:e}};let E=(()=>{class t{constructor(){this.focussed=!1,this.isAlt=!1,this.isFlex=!1,this.toggleFavorite$=new i.o}get isFavorite(){if(!this.favorites)return!1;const t=Object(r.i)(this.ticker);return this.favorites.includes(t)}updateFavorite(t){t.stopPropagation();const e=Object(r.i)(this.ticker);this.toggleFavorite$.next([e,!this.isFavorite])}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["market-picker-ticker"]],inputs:{ticker:"ticker",favorites:"favorites",focussed:"focussed",isAlt:"isAlt",isFlex:"isFlex"},outputs:{toggleFavorite$:"updateFavorite"},decls:22,vars:20,consts:[[1,"market-picker-ticker",3,"ngClass"],["body","",1,"icon"],["size","2x",3,"icon","click",4,"ngIf","ngIfElse"],["mktIcon",""],["subheading","",1,"maturity"],["body","","ghost","",1,"tag"],[4,"ngIf","ngIfElse"],["maturityMonth",""],[1,"sparkline"],[3,"market"],["body","","mono","",1,"price"],["body","","mono","",1,"change"],[3,"value",4,"ngIf","ngIfElse"],["premium",""],["size","2x",3,"icon","click"],[3,"base"],[3,"value"],["pnlZero","",3,"pnl"]],template:function(t,e){if(1&t&&(i.Ub(0,"section",0),i.Ub(1,"div",1),i.Oc(2,y,1,1,"fa-icon",2),i.Oc(3,O,2,3,"ng-template",null,3,i.Pc),i.Tb(),i.Ub(5,"div",4),i.Qc(6),i.gc(7,"pair"),i.Tb(),i.Ub(8,"div",5),i.Oc(9,C,4,5,"ng-container",6),i.Oc(10,w,3,6,"ng-template",null,7,i.Pc),i.Tb(),i.Ub(12,"div",8),i.Pb(13,"sparkline",9),i.Tb(),i.Ub(14,"div",10),i.Qc(15),i.gc(16,"sato"),i.gc(17,"mid"),i.Tb(),i.Ub(18,"div",11),i.Oc(19,T,1,1,"change",12),i.Oc(20,S,4,7,"ng-template",null,13,i.Pc),i.Tb(),i.Tb()),2&t){const t=i.Ac(4),n=i.Ac(11),r=i.Ac(21);i.mc("ngClass",i.sc(17,k,e.isFlex,e.isFavorite)),i.Cb(2),i.mc("ngIf",e.focussed)("ngIfElse",t),i.Cb(4),i.Sc(" ",i.hc(7,10,e.ticker.pair)," "),i.Cb(3),i.mc("ngIf",e.isAlt)("ngIfElse",n),i.Cb(4),i.mc("market",e.ticker.product_id),i.Cb(2),i.Sc(" ",i.ic(16,12,i.hc(17,15,e.ticker),e.ticker)," "),i.Cb(4),i.mc("ngIf",e.isAlt||e.isFlex)("ngIfElse",r)}},directives:[s.l,o.a,s.n,a.a,c.a,l.a,u.a,h.b,d.a,p.a,f.a],pipes:[b.e,g.c,m.a,b.a,v.d,s.x,b.d,_.b,s.f],styles:['.market-picker-ticker[_ngcontent-%COMP%]{padding:var(--spacing-s) var(--spacing);margin:var(--spacing-s) 0;height:48px;display:grid;grid-template:"icon maturity sparkline price" auto "icon tag sparkline change" auto/38px 1fr 100px min-content;gap:var(--spacing-xs) var(--spacing);align-items:center;border-radius:var(--bdrs)}.market-picker-ticker[_ngcontent-%COMP%]:hover{background-color:var(--toolbar-colour)}.market-picker-ticker.favorite[_ngcontent-%COMP%]{background-color:var(--table-row-alt)}.market-picker-ticker.flex[_ngcontent-%COMP%]{margin-right:var(--spacing);grid-template:"icon maturity sparkline price" auto "icon tag sparkline change" auto/38px 70px 1fr min-content}fa-icon[_ngcontent-%COMP%]{color:var(--icon-colour)}.icon[_ngcontent-%COMP%]{grid-area:icon;text-align:center}.icon[_ngcontent-%COMP%] market-icon[_ngcontent-%COMP%]{font-size:32px}.icon[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{font-size:1.2em;cursor:pointer}.maturity[_ngcontent-%COMP%]{grid-area:maturity;align-self:end;font-size:13px;color:var(--market-color,var(--text-colour))}.maturity.is-tag[_ngcontent-%COMP%]{grid-row-end:tag-end;align-self:center}.tag[_ngcontent-%COMP%]{grid-area:tag;align-self:start;font-size:11px}.sparkline[_ngcontent-%COMP%]{grid-area:sparkline;margin:0 var(--spacing)}.change[_ngcontent-%COMP%], .price[_ngcontent-%COMP%]{text-align:right}.price[_ngcontent-%COMP%]{grid-area:price;align-self:end}.change[_ngcontent-%COMP%]{grid-area:change;align-self:start}'],changeDetection:0}),t})()},BpC5:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("D57K"),r=n("UorZ"),s=n("kZht"),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.Encode={TEXT_TYPE:"TEXT_TYPE",EMAIL_TYPE:"EMAIL_TYPE",PHONE_TYPE:"PHONE_TYPE",SMS_TYPE:"SMS_TYPE"},e}Object(i.e)(e,t),e.prototype.scan=function(t){return Object(r.cordova)(this,"scan",{callbackOrder:"reverse"},arguments)},e.prototype.encode=function(t,e){return Object(r.cordova)(this,"encode",{},arguments)},e.pluginName="BarcodeScanner",e.plugin="phonegap-plugin-barcodescanner",e.pluginRef="cordova.plugins.barcodeScanner",e.repo="https://github.com/phonegap/phonegap-plugin-barcodescanner",e.platforms=["Android","BlackBerry 10","Browser","iOS","Windows"],e.\u0275fac=function(t){return n(t||e)},e.\u0275prov=s.Kb({token:e,factory:function(t){return e.\u0275fac(t)}});var n=s.Wb(e);return e}(r.IonicNativePlugin)},BwBJ:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("Efrr"),r=n("iRe+"),s=n("5uGe"),o=n("ryP2");function a(t,e=i.a){const n=Object(r.a)(t)?+t-e.now():Math.abs(t);return t=>t.lift(new c(n,e))}class c{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new l(t,this.delay,this.scheduler))}}class l extends s.a{constructor(t,e,n){super(t),this.delay=e,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,n=e.queue,i=t.scheduler,r=t.destination;for(;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){const e=Math.max(0,n[0].time-i.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(l.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,n=new u(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(o.a.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(o.a.createComplete()),this.unsubscribe()}}class u{constructor(t,e){this.time=t,this.notification=e}}},C05f:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("ZTXN"),r=n("MiDb");class s extends i.b{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new r.a;return this._value}next(t){super.next(this._value=t)}}},CLaS:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var i=n("YtkY"),r=n("sXtk"),s=n("7UDb"),o=n("kZht"),a=n("6uGs");let c=(()=>{class t{constructor(t,e){this.http=t,this.env=e}fetchCandles({type:t,symbol:e,resolution:n,period:[r,o]}){const a=new URL(`${this.env.urls.rest}/charts/${t}/${e}/${n}`);return a.searchParams.set("from",r.toString()),a.searchParams.set("to",o.toString()),this.http.get(a.href,s.a).pipe(Object(i.a)(t=>t.candles.map(t=>({open:Number(t.open),high:Number(t.high),low:Number(t.low),close:Number(t.close),volume:Number(t.volume),time:t.time}))))}}return t.\u0275fac=function(e){return new(e||t)(o.Yb(a.a),o.Yb(r.a))},t.\u0275prov=o.Kb({token:t,factory:t.\u0275fac}),t})()},CW1w:function(t,e,n){"use strict";function i(t,e,n){return n?t*e:t/e}function r(t,e,n){const i=Math.abs(t);return n?i/e:i*e}function s({entry:t,exit:e,isInverse:n,quantity:i,side:r}){const s="long"===r?i:-i;return n?(1/t-1/e)*s:(e-t)*s}function o(t,e){return t+e}function a(t,e){return(e-t)/t}function c(t,e){return e>0?t/e:0}n.d(e,"a",(function(){return i})),n.d(e,"d",(function(){return r})),n.d(e,"f",(function(){return s})),n.d(e,"b",(function(){return o})),n.d(e,"e",(function(){return a})),n.d(e,"c",(function(){return c}))},Cc4E:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("kZht");let r=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","sbDisabled",""]],inputs:{disabled:["sbDisabled","disabled"]},exportAs:["sbDisabled"]}),t})()},CfRh:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("sXtk"),r=n("kZht"),s=n("NxuZ");let o=(()=>{class t{constructor(t){this.env=t}get liqPriceFaq(){return"kraken"===this.env.platform?"https://support.kraken.com/hc/en-us/articles/4402283092244-Liquidation-FAQ":"https://support.cryptofacilities.com/hc/en-us/articles/4402649576337-Liquidation-FAQ"}}return t.\u0275fac=function(e){return new(e||t)(r.Ob(i.a))},t.\u0275cmp=r.Ib({type:t,selectors:[["liq-price-faq"]],decls:2,vars:1,consts:[["target","_blank",1,"global__text--link",3,"href","click"],["icon","external-link","size","lg"]],template:function(t,e){1&t&&(r.Ub(0,"a",0),r.bc("click",(function(t){return t.stopPropagation()})),r.Pb(1,"fa-icon",1),r.Tb()),2&t&&r.mc("href",e.liqPriceFaq,r.Gc)},directives:[s.b],styles:[""],changeDetection:0}),t})()},Cucx:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("gCmX"),r=function(){function t(){}return t.installed=function(){return!0===Object(i.a)(this.pluginRef)},t.getPlugin=function(){return"undefined"!=typeof window?function(t,e){for(var n=e.split("."),i=t,r=0;r=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,n,o):r(e,n))||o);return s>3&&o&&Object.defineProperty(e,n,o),o}function a(t,e,n,i){return new(n||(n=Promise))((function(r,s){function o(t){try{c(i.next(t))}catch(e){s(e)}}function a(t){try{c(i.throw(t))}catch(e){s(e)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,a)}c((i=i.apply(t,e||[])).next())}))}function c(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function l(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},"DG/E":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));let i=(()=>{class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(t,e=0,n){return new this.SchedulerAction(this,t).schedule(n,e)}}return t.now=()=>Date.now(),t})();class r extends i{constructor(t,e=i.now){super(t,()=>r.delegate&&r.delegate!==this?r.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return r.delegate&&r.delegate!==this?r.delegate.schedule(t,e,n):super.schedule(t,e,n)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}},DTJn:function(t,e,n){"use strict";n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return l}));var i=n("kZht");const r=["*"];let s=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["sb-table"]],ngContentSelectors:r,decls:2,vars:0,consts:[[1,"table"]],template:function(t,e){1&t&&(i.lc(),i.Ub(0,"div",0),i.kc(1),i.Tb())},styles:[".table[_ngcontent-%COMP%]{height:100%}"],changeDetection:0}),t})();const o=["*"];let a=(()=>{class t{constructor(){this.header=!1,this.height=25}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["sb-table-row"]],inputs:{header:"header",height:"height"},ngContentSelectors:o,decls:2,vars:4,consts:[[1,"table-row"]],template:function(t,e){1&t&&(i.lc(),i.Ub(0,"div",0),i.kc(1),i.Tb()),2&t&&(i.Lc("height",e.height,"px"),i.Gb("header",e.header))},styles:["[_nghost-%COMP%]{display:block}.table-row[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border-colour-dark)}.table-row.header[_ngcontent-%COMP%] *{color:var(--ghost-colour);text-transform:uppercase;cursor:default}"],changeDetection:0}),t})();const c=["*"];let l=(()=>{class t{constructor(){this.align="left",this.whiteSpace=!1}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["sb-table-cell"]],inputs:{align:"align",whiteSpace:"whiteSpace"},ngContentSelectors:c,decls:2,vars:4,template:function(t,e){1&t&&(i.lc(),i.Ub(0,"div"),i.kc(1),i.Tb()),2&t&&i.Lc("text-align",e.align)("white-space",e.whiteSpace)},styles:["[_nghost-%COMP%]{display:flex;align-items:center;padding:0 var(--spacing-s)}[_nghost-%COMP%], [_nghost-%COMP%] > div[_ngcontent-%COMP%]{flex:1}"],changeDetection:0}),t})()},DduF:function(t,e,n){"use strict";n.d(e,"a",(function(){return m}));var i=n("9hG1"),r=n("TYVA"),s=n("Tjvn"),o=n("kZht"),a=n("i9Na"),c=n("1etq"),l=n("An66"),u=n("anSm"),h=n("scAs"),d=n("NxuZ"),p=n("aDqW");function f(t,e){if(1&t&&(o.Ub(0,"div",9),o.Pb(1,"fa-icon",10),o.Ub(2,"p",11),o.Qc(3),o.Tb(),o.Tb()),2&t){const t=o.fc();o.Cb(3),o.Rc(t.notificationCountdown)}}function b(t,e){if(1&t&&(o.Ub(0,"p",11),o.Qc(1),o.gc(2,"translate"),o.Ub(3,"span",7),o.Qc(4),o.Tb(),o.Tb()),2&t){const t=o.fc();o.Cb(1),o.Sc(" ",o.hc(2,2,"LABEL.EFFECTIVE_TIME"),": "),o.Cb(3),o.Rc(t.notificationDate)}}const g=/(((https?:(?:\/\/)?)(?:[\-;:&=\+\$,\w]+@)?[A-Za-z0-9\.\-]+|(?:www\.|[\-;:&=\+\$,\w]+@)[A-Za-z0-9\.\-]+)((?:\/[\+~%\/\.\w\-_]*)?\??(?:[\-\+=&;%@\.\w_]*)#?(?:[\.\!\/\\\w]*))?)/;let m=(()=>{class t{constructor(t){t.renderer.link=s.a}get notificationCountdown(){return Object(r.h)(this.notification.effective_time)}get notificationTitle(){return this.notification.type.split("_").join(" ")}get notificationDate(){return i.DateTime.fromMillis(this.notification.effective_time).toFormat("HH:mm")}get notificationMsg(){return this.notification.note.split(" ").map(t=>t.match(g)?`${t}`:t).join(" ")}}return t.\u0275fac=function(e){return new(e||t)(o.Ob(a.c))},t.\u0275cmp=o.Ib({type:t,selectors:[["notification"]],inputs:{notification:"notification"},decls:13,vars:9,consts:[[1,"notification"],[1,"notification__title"],["subheading",""],["class","notification__title-expiry",4,"ngIf"],["body","","markdown","",1,"notification__msg",3,"data"],[1,"notification__info"],["body","",1,"notification__info-priority"],["bold",""],["body","",4,"ngIf"],[1,"notification__title-expiry"],["icon","clock"],["body",""]],template:function(t,e){1&t&&(o.Ub(0,"section",0),o.Ub(1,"section",1),o.Ub(2,"p",2),o.Qc(3),o.Tb(),o.Oc(4,f,4,1,"div",3),o.Tb(),o.Pb(5,"section",4),o.Ub(6,"section",5),o.Ub(7,"p",6),o.Qc(8),o.gc(9,"translate"),o.Ub(10,"span",7),o.Qc(11),o.Tb(),o.Tb(),o.Oc(12,b,5,4,"p",8),o.Tb(),o.Tb()),2&t&&(o.Db("priority",e.notification.priority),o.Cb(3),o.Rc(e.notificationTitle),o.Cb(1),o.mc("ngIf",e.notification.effective_time),o.Cb(1),o.mc("data",e.notificationMsg),o.Cb(3),o.Sc(" ",o.hc(9,7,"LABEL.PRIORITY"),": "),o.Cb(3),o.Rc(e.notification.priority),o.Cb(1),o.mc("ngIf",e.notification.effective_time))},directives:[c.a,l.n,u.a,a.a,h.a,d.b],pipes:[p.d],styles:["[_nghost-%COMP%]{display:block;margin-bottom:var(--spacing)}.notification[_ngcontent-%COMP%]{padding:var(--spacing)}.notification[_ngcontent-%COMP%] + .system-notifications__item[_ngcontent-%COMP%]{margin-top:5px}.notification[priority=high][_ngcontent-%COMP%]{background:rgba(var(--warn-colour-rgb),.6);border-left:5px solid var(--warn-colour)}.notification[priority=medium][_ngcontent-%COMP%]{background:rgba(var(--accent-colour-rgb),.6);border-left:5px solid var(--accent-colour)}.notification[priority=low][_ngcontent-%COMP%]{background:rgba(var(--border-colour-rgb),.6);border-left:5px solid var(--border-colour)}.notification__msg[_ngcontent-%COMP%]{margin-bottom:var(--spacing-l)}.notification__msg[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{word-break:break-word!important}.notification__title[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:space-between;margin-bottom:var(--spacing)}.notification__title[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]:first-letter{text-transform:capitalize}.notification__title-expiry[_ngcontent-%COMP%]{align-items:center;color:var(--text-colour);display:flex}.notification__title-expiry[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{font-size:20px;height:20px;width:20px;margin-right:var(--spacing-s)}.notification__info[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:first-child{margin-bottom:var(--spacing-s)}.notification__info-priority[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{text-transform:capitalize}"],changeDetection:0}),t})()},Dm6q:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("kZht"),r=n("hCLc"),s=n("aDqW");let o=(()=>{class t{reload(){const t=new URL(window.location.href);t.searchParams.set("cacheBuster",Math.random().toString()),window.location.href=t.toString()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["update-banner"]],decls:6,vars:6,consts:[[1,"global__text","global__text--body"],["mat-raised-button","",1,"global_text","global_text--body",3,"click"]],template:function(t,e){1&t&&(i.Ub(0,"p",0),i.Qc(1),i.gc(2,"translate"),i.Tb(),i.Ub(3,"button",1),i.bc("click",(function(){return e.reload()})),i.Qc(4),i.gc(5,"translate"),i.Tb()),2&t&&(i.Cb(1),i.Rc(i.hc(2,2,"LABEL.UPDATE_AVAILABLE")),i.Cb(3),i.Sc(" ",i.hc(5,4,"LABEL.UPDATE_NOW"),"\n"))},directives:[r.b],pipes:[s.d],styles:["[_nghost-%COMP%]{display:contents}button[_ngcontent-%COMP%]{margin-left:var(--spacing);overflow:hidden;text-overflow:ellipsis}"],changeDetection:0}),t})()},DpwM:function(t,e,n){"use strict";n.d(e,"a",(function(){return c})),n.d(e,"b",(function(){return l})),n.d(e,"c",(function(){return h})),n.d(e,"d",(function(){return d}));var i=n("KQpv"),r=n.n(i),s=n("pjhv"),o=n("kZht"),a=n("An66");let c=(()=>{class t{constructor(t){this.decimalPipe=t}transform(t,e){const n=Object(s.a)(e,!1);return this.decimalPipe.transform(t,n)}}return t.\u0275fac=function(e){return new(e||t)(o.Ob(a.f))},t.\u0275pipe=o.Nb({name:"crypto",type:t,pure:!0}),t})(),l=(()=>{class t{constructor(t){this.decimalPipe=t}transform(t,e){const n=Object(s.a)(e,!0);return this.decimalPipe.transform(t,n)}}return t.\u0275fac=function(e){return new(e||t)(o.Ob(a.f))},t.\u0275pipe=o.Nb({name:"cryptoPrecise",type:t,pure:!0}),t})();const u=r()("app:pipe:crypto");let h=(()=>{class t{constructor(t){this.decimalPipe=t}transform(t,e,n="short"){return null==t?null:null!=e&&"numericFormat"in e?this.decimalPipe.transform(t,"full"===n?e.numericFormat.full:e.numericFormat.short):(u("no formatting available for value",t,e),this.decimalPipe.transform(t,"1.2-12"))}}return t.\u0275fac=function(e){return new(e||t)(o.Ob(a.f))},t.\u0275pipe=o.Nb({name:"sato",type:t,pure:!0}),t})(),d=(()=>{class t{constructor(t){this.decimalPipe=t}transform(t,e){return null==t?null:null!=e&&"numericFormat"in e?this.decimalPipe.transform(t,`1.${null==e?void 0:e.contractValueTradePrecision}-${null==e?void 0:e.contractValueTradePrecision}`):(u("no formatting available for value",t,e),this.decimalPipe.transform(t,"1.2-12"))}}return t.\u0275fac=function(e){return new(e||t)(o.Ob(a.f))},t.\u0275pipe=o.Nb({name:"satoSize",type:t,pure:!0}),t})()},ECQc:function(t,e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2},e.isValid=function(t){return t&&void 0!==t.bit&&t.bit>=0&&t.bit<4},e.from=function(t,n){if(e.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+t)}}(t)}catch(i){return n}}},ENSU:function(t,e,n){"use strict";n.d(e,"a",(function(){return N})),n.d(e,"b",(function(){return I})),n.d(e,"c",(function(){return F})),n.d(e,"d",(function(){return j})),n.d(e,"e",(function(){return O}));var i=n("An66"),r=n("kZht");class s extends i.A{constructor(){super()}supportsDOMEvents(){return!0}}class o extends s{static makeCurrent(){Object(i.E)(new o)}getProperty(t,e){return t[e]}log(t){window.console&&window.console.log&&window.console.log(t)}logGroup(t){window.console&&window.console.group&&window.console.group(t)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}getValue(t){return t.value}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=c||(c=document.querySelector("base"),c)?c.getAttribute("href"):null;return null==e?null:(n=e,a||(a=document.createElement("a")),a.setAttribute("href",n),"/"===a.pathname.charAt(0)?a.pathname:"/"+a.pathname);var n}resetBaseElement(){c=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(t){return Object(i.D)(document.cookie,t)}}let a,c=null;const l=new r.s("TRANSITION_ID"),u=[{provide:r.d,useFactory:function(t,e,n){return()=>{n.get(r.e).donePromise.then(()=>{const n=Object(i.C)();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[l,i.d,r.t],multi:!0}];class h{static init(){Object(r.Z)(new h)}addToWindow(t){r.rb.getAngularTestability=(e,n=!0)=>{const i=t.findTestabilityInTree(e,n);if(null==i)throw new Error("Could not find testability for element.");return i},r.rb.getAllAngularTestabilities=()=>t.getAllTestabilities(),r.rb.getAllAngularRootElements=()=>t.getAllRootElements(),r.rb.frameworkStabilizers||(r.rb.frameworkStabilizers=[]),r.rb.frameworkStabilizers.push(t=>{const e=r.rb.getAllAngularTestabilities();let n=e.length,i=!1;const s=function(e){i=i||e,n--,0==n&&t(i)};e.forEach((function(t){t.whenStable(s)}))})}findTestabilityInTree(t,e,n){if(null==e)return null;const r=t.getTestability(e);return null!=r?r:n?Object(i.C)().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const d=new r.s("EventManagerPlugins");let p=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let i=0;i{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Kb({token:t,factory:t.\u0275fac}),t})(),g=(()=>{class t extends b{constructor(t){super(),this._doc=t,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(t.head)}_addStylesToHost(t,e){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,this._styleNodes.add(e.appendChild(n))})}addHost(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)}removeHost(t){this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach(e=>this._addStylesToHost(t,e))}ngOnDestroy(){this._styleNodes.forEach(t=>Object(i.C)().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(r.Yb(i.d))},t.\u0275prov=r.Kb({token:t,factory:t.\u0275fac}),t})();const m={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},v=/%COMP%/g;function _(t,e,n){for(let i=0;i{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let O=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new C(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case r.S.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new w(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case r.S.Native:case r.S.ShadowDom:return new T(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=_(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(r.Yb(p),r.Yb(g),r.Yb(r.c))},t.\u0275prov=r.Kb({token:t,factory:t.\u0275fac}),t})();class C{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(m[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,i){if(i){e=i+":"+e;const r=m[i];r?t.setAttributeNS(r,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const i=m[n];i?t.removeAttributeNS(i,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,i){i&r.I.DashCase?t.style.setProperty(e,n,i&r.I.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&r.I.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,y(n)):this.eventManager.addEventListener(t,e,y(n))}}class w extends C{constructor(t,e,n,i){super(t),this.component=n;const r=_(i+"-"+n.id,n.styles,[]);e.addStyles(r),this.contentAttr="_ngcontent-%COMP%".replace(v,i+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(v,i+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class T extends C{constructor(t,e,n,i){super(t),this.sharedStylesHost=e,this.hostEl=n,this.component=i,this.shadowRoot=i.encapsulation===r.S.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const s=_(i.id,i.styles,[]);for(let r=0;r{class t extends f{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.\u0275fac=function(e){return new(e||t)(r.Yb(i.d))},t.\u0275prov=r.Kb({token:t,factory:t.\u0275fac}),t})();const k=["alt","control","meta","shift"],E={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},x={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},P={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let A=(()=>{class t extends f{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,r){const s=t.parseEventName(n),o=t.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Object(i.C)().onAndCancel(e,s.domEventName,o))}static parseEventName(e){const n=e.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;const r=t._normalizeKey(n.pop());let s="";if(k.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),s+=t+".")}),s+=r,0!=n.length||0===r.length)return null;const o={};return o.domEventName=i,o.fullKey=s,o}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&x.hasOwnProperty(e)&&(e=x[e]))}return E[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),k.forEach(i=>{i!=n&&(0,P[i])(t)&&(e+=i+".")}),e+=n,e}static eventCallback(e,n,i){return r=>{t.getEventFullKey(r)===e&&i.runGuarded(()=>n(r))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(r.Yb(i.d))},t.\u0275prov=r.Kb({token:t,factory:t.\u0275fac}),t})(),I=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(r.Kb)({factory:function(){return Object(r.Yb)(D)},token:t,providedIn:"root"}),t})();function M(t){return new D(t.get(i.d))}let D=(()=>{class t extends I{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case r.K.NONE:return e;case r.K.HTML:return Object(r.gb)(e,"HTML")?Object(r.yb)(e):Object(r.eb)(this._doc,String(e));case r.K.STYLE:return Object(r.gb)(e,"Style")?Object(r.yb)(e):e;case r.K.SCRIPT:if(Object(r.gb)(e,"Script"))return Object(r.yb)(e);throw new Error("unsafe value used in a script context");case r.K.URL:return Object(r.qb)(e),Object(r.gb)(e,"URL")?Object(r.yb)(e):Object(r.fb)(String(e));case r.K.RESOURCE_URL:if(Object(r.gb)(e,"ResourceURL"))return Object(r.yb)(e);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see http://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return Object(r.hb)(t)}bypassSecurityTrustStyle(t){return Object(r.kb)(t)}bypassSecurityTrustScript(t){return Object(r.jb)(t)}bypassSecurityTrustUrl(t){return Object(r.lb)(t)}bypassSecurityTrustResourceUrl(t){return Object(r.ib)(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Yb(i.d))},t.\u0275prov=Object(r.Kb)({factory:function(){return M(Object(r.Yb)(r.p))},token:t,providedIn:"root"}),t})();const R=[{provide:r.D,useValue:i.B},{provide:r.E,useValue:function(){o.makeCurrent(),h.init()},multi:!0},{provide:i.d,useFactory:function(){return Object(r.wb)(document),document},deps:[]}],j=Object(r.T)(r.Y,"browser",R),L=[[],{provide:r.bb,useValue:"root"},{provide:r.n,useFactory:function(){return new r.n},deps:[]},{provide:d,useClass:S,multi:!0,deps:[i.d,r.B,r.D]},{provide:d,useClass:A,multi:!0,deps:[i.d]},[],{provide:O,useClass:O,deps:[p,g,r.c]},{provide:r.H,useExisting:O},{provide:b,useExisting:g},{provide:g,useClass:g,deps:[i.d]},{provide:r.O,useClass:r.O,deps:[r.B]},{provide:p,useClass:p,deps:[d,r.B]},[]];let N=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:r.c,useValue:e.appId},{provide:l,useExisting:r.c},u]}}}return t.\u0275mod=r.Mb({type:t}),t.\u0275inj=r.Lb({factory:function(e){return new(e||t)(r.Yb(t,12))},providers:L,imports:[i.c,r.f]}),t})();function U(){return new F(Object(r.Yb)(i.d))}let F=(()=>{class t{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}}return t.\u0275fac=function(e){return new(e||t)(r.Yb(i.d))},t.\u0275prov=Object(r.Kb)({factory:U,token:t,providedIn:"root"}),t})();"undefined"!=typeof window&&window},ENxB:function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var i=n("sXtk"),r=n("MUfl"),s=n("kZht"),o=n("An66"),a=n("hCLc"),c=n("B6Vo"),l=n("NxuZ");function u(t,e){if(1&t&&(s.Ub(0,"a",1),s.Ub(1,"button",2),s.Ub(2,"span",3),s.Pb(3,"fa-icon",4),s.Qc(4," You must remediate or lose access to derivatives "),s.Tb(),s.Tb(),s.Tb()),2&t){const t=s.fc();s.mc("href",t.fusionUrl,s.Gc)}}let h=(()=>{class t{constructor(t,e){this.featureService=t,this.env=e}get isDltBannerEnabled(){return this.featureService.isEnabled("dltBanners")}get fusionUrl(){return this.env.urls.fusion}}return t.\u0275fac=function(e){return new(e||t)(s.Ob(r.a),s.Ob(i.a))},t.\u0275cmp=s.Ib({type:t,selectors:[["dlt-banner"]],decls:1,vars:1,consts:[[3,"href",4,"ngIf"],[3,"href"],["type","button","mat-raised-button","","color","warn","sbTooltip","Action required for Derivatives traders. In order to continue derivatives trading, clients in Germany need to provide additional information to re-verify their accounts by September 24, 2024."],[1,"banner-label"],["icon","warning","size","lg"]],template:function(t,e){1&t&&s.Oc(0,u,5,1,"a",0),2&t&&s.mc("ngIf",e.isDltBannerEnabled)},directives:[o.n,a.b,c.a,l.b],styles:[".banner-label[_ngcontent-%COMP%]{display:flex}.banner-label[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{margin-right:var(--spacing-s)}"],changeDetection:0}),t})()},EWqr:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("bwdy");class r extends i.a{constructor(t,e){super()}schedule(t,e=0){return this}}class s extends r{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(i,this.id,e),this}requestAsyncId(t,e,n=0){return setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let n=!1,i=void 0;try{this.work(t)}catch(r){n=!0,i=!!r&&r||new Error(r)}if(n)return this.unsubscribe(),i}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}},EZWv:function(t,e,n){"use strict";n.d(e,"a",(function(){return w})),n.d(e,"b",(function(){return T}));var i=n("An66"),r=n("kZht"),s=n("hCLc"),o=n("IOEv"),a=n("WYJo"),c=n("5XID"),l=n("ZTXN"),u=n("pTnX"),h=n("EmXI");function d(t,e){if(1&t&&(r.Ub(0,"mat-option",19),r.Qc(1),r.Tb()),2&t){const t=e.$implicit;r.mc("value",t),r.Cb(1),r.Sc(" ",t," ")}}function p(t,e){if(1&t){const t=r.Vb();r.Ub(0,"mat-form-field",16),r.Ub(1,"mat-select",17),r.bc("selectionChange",(function(e){return r.Ec(t),r.fc(2)._changePageSize(e.value)})),r.Oc(2,d,2,2,"mat-option",18),r.Tb(),r.Tb()}if(2&t){const t=r.fc(2);r.mc("appearance",t._formFieldAppearance)("color",t.color),r.Cb(1),r.mc("value",t.pageSize)("disabled",t.disabled)("aria-label",t._intl.itemsPerPageLabel),r.Cb(1),r.mc("ngForOf",t._displayedPageSizeOptions)}}function f(t,e){if(1&t&&(r.Ub(0,"div",20),r.Qc(1),r.Tb()),2&t){const t=r.fc(2);r.Cb(1),r.Rc(t.pageSize)}}function b(t,e){if(1&t&&(r.Ub(0,"div",12),r.Ub(1,"div",13),r.Qc(2),r.Tb(),r.Oc(3,p,3,6,"mat-form-field",14),r.Oc(4,f,2,1,"div",15),r.Tb()),2&t){const t=r.fc();r.Cb(2),r.Sc(" ",t._intl.itemsPerPageLabel," "),r.Cb(1),r.mc("ngIf",t._displayedPageSizeOptions.length>1),r.Cb(1),r.mc("ngIf",t._displayedPageSizeOptions.length<=1)}}function g(t,e){if(1&t){const t=r.Vb();r.Ub(0,"button",21),r.bc("click",(function(){return r.Ec(t),r.fc().firstPage()})),r.ec(),r.Ub(1,"svg",7),r.Pb(2,"path",22),r.Tb(),r.Tb()}if(2&t){const t=r.fc();r.mc("matTooltip",t._intl.firstPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),r.Db("aria-label",t._intl.firstPageLabel)}}function m(t,e){if(1&t){const t=r.Vb();r.ec(),r.dc(),r.Ub(0,"button",23),r.bc("click",(function(){return r.Ec(t),r.fc().lastPage()})),r.ec(),r.Ub(1,"svg",7),r.Pb(2,"path",24),r.Tb(),r.Tb()}if(2&t){const t=r.fc();r.mc("matTooltip",t._intl.lastPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),r.Db("aria-label",t._intl.lastPageLabel)}}let v=(()=>{class t{constructor(){this.changes=new l.b,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(t,e,n)=>{if(0==n||0==e)return"0 of "+n;const i=t*e;return`${i+1} \u2013 ${i<(n=Math.max(n,0))?Math.min(i+e,n):i+e} of ${n}`}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(r.Kb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const _={provide:v,deps:[[new r.C,new r.L,v]],useFactory:function(t){return t||new v}},y=new r.s("MAT_PAGINATOR_DEFAULT_OPTIONS");class O{}const C=Object(u.y)(Object(u.A)(O));let w=(()=>{class t extends C{constructor(t,e,n){if(super(),this._intl=t,this._changeDetectorRef=e,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new r.o,this._intlChanges=t.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),n){const{pageSize:t,pageSizeOptions:e,hidePageSize:i,showFirstLastButtons:r,formFieldAppearance:s}=n;null!=t&&(this._pageSize=t),null!=e&&(this._pageSizeOptions=e),null!=i&&(this._hidePageSize=i),null!=r&&(this._showFirstLastButtons=r),null!=s&&(this._formFieldAppearance=s)}}get pageIndex(){return this._pageIndex}set pageIndex(t){this._pageIndex=Math.max(Object(c.f)(t),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(t){this._length=Object(c.f)(t),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(t){this._pageSize=Math.max(Object(c.f)(t),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(t){this._pageSizeOptions=(t||[]).map(t=>Object(c.f)(t)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(t){this._hidePageSize=Object(c.c)(t)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(t){this._showFirstLastButtons=Object(c.c)(t)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex++,this._emitPageEvent(t)}previousPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex--,this._emitPageEvent(t)}firstPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}lastPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const t=this.getNumberOfPages()-1;return this.pageIndext-e),this._changeDetectorRef.markForCheck())}_emitPageEvent(t){this.page.emit({previousPageIndex:t,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return t.\u0275fac=function(e){return new(e||t)(r.Ob(v),r.Ob(r.h),r.Ob(y,8))},t.\u0275cmp=r.Ib({type:t,selectors:[["mat-paginator"]],hostAttrs:[1,"mat-paginator"],inputs:{disabled:"disabled",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},exportAs:["matPaginator"],features:[r.zb],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(t,e){1&t&&(r.Ub(0,"div",0),r.Ub(1,"div",1),r.Oc(2,b,5,3,"div",2),r.Ub(3,"div",3),r.Ub(4,"div",4),r.Qc(5),r.Tb(),r.Oc(6,g,3,5,"button",5),r.Ub(7,"button",6),r.bc("click",(function(){return e.previousPage()})),r.ec(),r.Ub(8,"svg",7),r.Pb(9,"path",8),r.Tb(),r.Tb(),r.dc(),r.Ub(10,"button",9),r.bc("click",(function(){return e.nextPage()})),r.ec(),r.Ub(11,"svg",7),r.Pb(12,"path",10),r.Tb(),r.Tb(),r.Oc(13,m,3,5,"button",11),r.Tb(),r.Tb(),r.Tb()),2&t&&(r.Cb(2),r.mc("ngIf",!e.hidePageSize),r.Cb(3),r.Sc(" ",e._intl.getRangeLabel(e.pageIndex,e.pageSize,e.length)," "),r.Cb(1),r.mc("ngIf",e.showFirstLastButtons),r.Cb(1),r.mc("matTooltip",e._intl.previousPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),r.Db("aria-label",e._intl.previousPageLabel),r.Cb(3),r.mc("matTooltip",e._intl.nextPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),r.Db("aria-label",e._intl.nextPageLabel),r.Cb(3),r.mc("ngIf",e.showFirstLastButtons))},directives:[i.n,s.b,a.a,h.c,o.a,i.m,u.n],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}\n"],encapsulation:2,changeDetection:0}),t})(),T=(()=>{class t{}return t.\u0275mod=r.Mb({type:t}),t.\u0275inj=r.Lb({factory:function(e){return new(e||t)},providers:[_],imports:[[i.c,s.c,o.b,a.b]]}),t})()},Ee7O:function(t,e,n){"use strict";n.d(e,"c",(function(){return yn})),n.d(e,"a",(function(){return ln.a})),n.d(e,"b",(function(){return _n}));var i={};n.r(i),n.d(i,"sb3DotsLargeHorizontal",(function(){return r})),n.d(i,"sb3DotsSmallHorizonal",(function(){return s})),n.d(i,"sbAndroid",(function(){return o})),n.d(i,"sbApple",(function(){return a})),n.d(i,"sbArrowDown",(function(){return c})),n.d(i,"sbArrowLeft",(function(){return l})),n.d(i,"sbArrowRight",(function(){return u})),n.d(i,"sbArrowSmallDown",(function(){return h})),n.d(i,"sbArrowSmallLeft",(function(){return d})),n.d(i,"sbArrowSmallRight",(function(){return p})),n.d(i,"sbArrowSmallUp",(function(){return f})),n.d(i,"sbArrowUp",(function(){return b})),n.d(i,"sbArrowWithLineDottedUp",(function(){return g})),n.d(i,"sbBank",(function(){return m})),n.d(i,"sbBitcoin",(function(){return v})),n.d(i,"sbBlank",(function(){return _})),n.d(i,"sbBookOpen",(function(){return y})),n.d(i,"sbBook",(function(){return O})),n.d(i,"sbBrush",(function(){return C})),n.d(i,"sbBuilding",(function(){return w})),n.d(i,"sbBullhorn",(function(){return T})),n.d(i,"sbCalculator",(function(){return S})),n.d(i,"sbCalendar",(function(){return k})),n.d(i,"sbCamera",(function(){return E})),n.d(i,"sbCaps",(function(){return x})),n.d(i,"sbCardBack",(function(){return P})),n.d(i,"sbCardFront",(function(){return A})),n.d(i,"sbCardsComfortable",(function(){return I})),n.d(i,"sbCardsCompact",(function(){return M})),n.d(i,"sbCaretDown",(function(){return D})),n.d(i,"sbCaretLeft",(function(){return R})),n.d(i,"sbCaretRight",(function(){return j})),n.d(i,"sbCaretUp",(function(){return L})),n.d(i,"sbCart",(function(){return N})),n.d(i,"sbCf",(function(){return U})),n.d(i,"sbChartCandlestick",(function(){return F})),n.d(i,"sbChartDown",(function(){return B})),n.d(i,"sbChartLine",(function(){return z})),n.d(i,"sbChartUp",(function(){return V})),n.d(i,"sbCheck1",(function(){return $})),n.d(i,"sbCheckChecked",(function(){return H})),n.d(i,"sbCheckFull",(function(){return q})),n.d(i,"sbCheckUnchecked",(function(){return Q})),n.d(i,"sbCheck",(function(){return W})),n.d(i,"sbChevronDownDouble",(function(){return G})),n.d(i,"sbChevronDown",(function(){return Y})),n.d(i,"sbChevronLeftDouble",(function(){return K})),n.d(i,"sbChevronLeft",(function(){return Z})),n.d(i,"sbChevronRightDouble",(function(){return X})),n.d(i,"sbChevronRight",(function(){return J})),n.d(i,"sbChevronUpDouble",(function(){return tt})),n.d(i,"sbChevronUp",(function(){return et})),n.d(i,"sbCircleArrowRight",(function(){return nt})),n.d(i,"sbCircleBitcoin",(function(){return it})),n.d(i,"sbCircleDollar",(function(){return rt})),n.d(i,"sbCircleEqual",(function(){return st})),n.d(i,"sbCircleExclamationmark",(function(){return ot})),n.d(i,"sbCircleMinus",(function(){return at})),n.d(i,"sbCirclePlus",(function(){return ct})),n.d(i,"sbCircleProfile",(function(){return lt})),n.d(i,"sbCircle",(function(){return ut})),n.d(i,"sbClock",(function(){return ht})),n.d(i,"sbCloseLarge",(function(){return dt})),n.d(i,"sbCloseMedium",(function(){return pt})),n.d(i,"sbClosePosition",(function(){return ft})),n.d(i,"sbCloseSmall",(function(){return bt})),n.d(i,"sbClose",(function(){return gt})),n.d(i,"sbCog",(function(){return mt})),n.d(i,"sbCommand",(function(){return vt})),n.d(i,"sbCopy",(function(){return _t})),n.d(i,"sbDeposit",(function(){return yt})),n.d(i,"sbDirectionDown",(function(){return Ot})),n.d(i,"sbDirectionUpDown",(function(){return Ct})),n.d(i,"sbDirectionUp",(function(){return wt})),n.d(i,"sbDollar",(function(){return Tt})),n.d(i,"sbDuplicate",(function(){return St})),n.d(i,"sbEdit",(function(){return kt})),n.d(i,"sbEmail",(function(){return Et})),n.d(i,"sbEuro",(function(){return xt})),n.d(i,"sbExchangeCrypto",(function(){return Pt})),n.d(i,"sbVertical",(function(){return At})),n.d(i,"sbExchange",(function(){return It})),n.d(i,"sbExternalLink",(function(){return Mt})),n.d(i,"sbFiatDollarBill",(function(){return Dt})),n.d(i,"sbFiatJpy",(function(){return Rt})),n.d(i,"sbFile",(function(){return jt})),n.d(i,"sbFolder",(function(){return Lt})),n.d(i,"sbFullscreenClose",(function(){return Nt})),n.d(i,"sbFullscreenOpen",(function(){return Ut})),n.d(i,"sbFunnel",(function(){return Ft})),n.d(i,"sbGameController",(function(){return Bt})),n.d(i,"sbGift",(function(){return zt})),n.d(i,"sbGrid",(function(){return Vt})),n.d(i,"sbHome",(function(){return $t})),n.d(i,"sbIconArrowLeft",(function(){return Ht})),n.d(i,"sbIndicatorCircle",(function(){return qt})),n.d(i,"sbInfo",(function(){return Qt})),n.d(i,"sbKey",(function(){return Wt})),n.d(i,"sbKraken",(function(){return Gt})),n.d(i,"sbLanguage",(function(){return Yt})),n.d(i,"sbList",(function(){return Kt})),n.d(i,"sbLoading",(function(){return Zt})),n.d(i,"sbLock",(function(){return Xt})),n.d(i,"sbMenuBurgerBig",(function(){return Jt})),n.d(i,"sbMenuBurgerSmall",(function(){return te})),n.d(i,"sbMenuKebap",(function(){return ee})),n.d(i,"sbMinus",(function(){return ne})),n.d(i,"sbMobile",(function(){return ie})),n.d(i,"sbNotificationFull",(function(){return re})),n.d(i,"sbNotification",(function(){return se})),n.d(i,"sbPending",(function(){return oe})),n.d(i,"sbPictureFile",(function(){return ae})),n.d(i,"sbPieChartFull",(function(){return ce})),n.d(i,"sbPieChart",(function(){return le})),n.d(i,"sbPlus",(function(){return ue})),n.d(i,"sbPrinter",(function(){return he})),n.d(i,"sbPrivacyOff",(function(){return de})),n.d(i,"sbPrivacyOn",(function(){return pe})),n.d(i,"sbQr",(function(){return fe})),n.d(i,"sbQuestion",(function(){return be})),n.d(i,"sbRadioChecked",(function(){return ge})),n.d(i,"sbRadioUnchecked",(function(){return me})),n.d(i,"sbRefresh",(function(){return ve})),n.d(i,"sbRewind",(function(){return _e})),n.d(i,"sbRocket",(function(){return ye})),n.d(i,"sbSearch",(function(){return Oe})),n.d(i,"sbSecurityKey",(function(){return Ce})),n.d(i,"sbSettle",(function(){return we})),n.d(i,"sbShareIos",(function(){return Te})),n.d(i,"sbShieldFull",(function(){return Se})),n.d(i,"sbShieldSecure",(function(){return ke})),n.d(i,"sbShield",(function(){return Ee})),n.d(i,"sbSkull",(function(){return xe})),n.d(i,"sbSort",(function(){return Pe})),n.d(i,"sbSpanner",(function(){return Ae})),n.d(i,"sbSquarePlus",(function(){return Ie})),n.d(i,"sbStakeBonding",(function(){return Me})),n.d(i,"sbStakeUnbonding",(function(){return De})),n.d(i,"sbStake",(function(){return Re})),n.d(i,"sbStakingCoins",(function(){return je})),n.d(i,"sbStarFilled",(function(){return Le})),n.d(i,"sbStarRemove",(function(){return Ne})),n.d(i,"sbStarUnfilled",(function(){return Ue})),n.d(i,"sbStop",(function(){return Fe})),n.d(i,"sbSupport",(function(){return Be})),n.d(i,"sbThumbsDownFilled",(function(){return ze})),n.d(i,"sbThumbsDown",(function(){return Ve})),n.d(i,"sbThumbsUpFilled",(function(){return $e})),n.d(i,"sbThumbsUp",(function(){return He})),n.d(i,"sbThunder",(function(){return qe})),n.d(i,"sbTimer",(function(){return Qe})),n.d(i,"sbTrade",(function(){return We})),n.d(i,"sbTransfer",(function(){return Ge})),n.d(i,"sbTrash",(function(){return Ye})),n.d(i,"sbTypeInput",(function(){return Ke})),n.d(i,"sbUnlock",(function(){return Ze})),n.d(i,"sbUnstake",(function(){return Xe})),n.d(i,"sbUserFull",(function(){return Je})),n.d(i,"sbUserGroup",(function(){return tn})),n.d(i,"sbUser",(function(){return en})),n.d(i,"sbViewHide",(function(){return nn})),n.d(i,"sbView",(function(){return rn})),n.d(i,"sbWallet",(function(){return sn})),n.d(i,"sbWarning",(function(){return on})),n.d(i,"sbWithdraw",(function(){return an})),n.d(i,"sbWorkspace",(function(){return cn}));const r={prefix:"sb",iconName:"3-dots-large-horizontal",icon:[24,24,[],null,"M12 14C13.1046 14 14 13.1046 14 12C14 10.8954 13.1046 10 12 10C10.8954 10 10 10.8954 10 12C10 13.1046 10.8954 14 12 14M6 14C7.10457 14 8 13.1046 8 12C8 10.8954 7.10457 10 6 10C4.89543 10 4 10.8954 4 12C4 13.1046 4.89543 14 6 14M18 14C19.1046 14 20 13.1046 20 12C20 10.8954 19.1046 10 18 10C16.8954 10 16 10.8954 16 12C16 13.1046 16.8954 14 18 14Z"]},s={prefix:"sb",iconName:"3-dots-large-horizonal",icon:[24,24,[],null,"M10 12a2 2 0 104 0 2 2 0 00-4 0zM10 6a2 2 0 104 0 2 2 0 00-4 0zM10 18a2 2 0 104 0 2 2 0 00-4 0z"]},o={prefix:"sb",iconName:"android",icon:[24,24,[],null,"M17 8.21a4.977 4.977 0 00-1.037-3.048l1.744-1.745-1.414-1.414-1.846 1.846A4.974 4.974 0 0012 3.21c-.832 0-1.616.203-2.306.563L8.3 2.092 6.76 3.368l1.38 1.665A4.979 4.979 0 007 8.21h10zM7 17.71v-8h10v8h-1v4h-2v-4h-4v4H8v-4H7zM4 15.71v-6h2v6H4zM18 9.71v6h2v-6h-2z"]},a={prefix:"sb",iconName:"apple",icon:[24,24,[],null,"M12.52 2.81a2.425 2.425 0 012.75-.62c.48.88.4 2-.31 2.8a2.425 2.425 0 01-2.75.62c-.48-.88-.4-2 .31-2.8zM19.21 8.88a3.738 3.738 0 00-2.72 3.59c0 1.99 1.56 3.6 3.51 3.72-.99 2.9-2.98 5.86-5.29 5.86-.64 0-1.25-.1-1.82-.29-.36-.12-.76-.12-1.12 0-.57.19-1.18.29-1.82.29-3.29 0-5.95-5.99-5.95-9.28 0-3.29 2.66-5.95 5.95-5.95.51 0 1 .07 1.47.18.6.15 1.21.15 1.81 0 .48-.12.97-.19 1.48-.19 1.8 0 3.41.81 4.5 2.07z"]},c={prefix:"sb",iconName:"arrow-down",icon:[24,24,[],null,"M12.71 18.707l5-5-1.413-1.414L13 15.589V5h-2v10.583l-3.29-3.29-1.414 1.414 5 5a1 1 0 001.414 0z"]},l={prefix:"sb",iconName:"arrow-left",icon:[24,24,[],null,"M5.293 12.71l5 5 1.414-1.414L8.411 13H19v-2H8.417l3.29-3.29-1.414-1.414-5 5a1 1 0 000 1.414z"]},u={prefix:"sb",iconName:"arrow-right",icon:[24,24,[],null,"M18.707 11.29l-5-5-1.414 1.414L15.589 11H5v2h10.583l-3.29 3.29 1.414 1.414 5-5a1 1 0 000-1.414z"]},h={prefix:"sb",iconName:"arrow-small-down",icon:[24,24,[],null,"M17.71 11.414l-5 5a1 1 0 01-1.413 0l-5-5L7.71 10l4.293 4.293L16.297 10l1.414 1.414z"]},d={prefix:"sb",iconName:"arrow-small-left",icon:[24,24,[],null,"M12.586 17.71l-5-5a1 1 0 010-1.414l5-5L14 7.71l-4.293 4.293L14 16.296l-1.414 1.414z"]},p={prefix:"sb",iconName:"arrow-small-right",icon:[24,24,[],null,"M11.414 6.29l5 5a1 1 0 010 1.414l-5 5L10 16.29l4.293-4.293L10 7.704l1.414-1.414z"]},f={prefix:"sb",iconName:"arrow-small-up",icon:[24,24,[],null,"M6.29 12.586l5-5a1 1 0 011.413 0l5 5L16.29 14l-4.293-4.293L7.703 14 6.29 12.586z"]},b={prefix:"sb",iconName:"arrow-up",icon:[24,24,[],null,"M11.29 5.293l-5 5 1.413 1.414L11 8.411V19h2V8.417l3.29 3.29 1.414-1.414-5-5a1 1 0 00-1.414 0z"]},g={prefix:"sb",iconName:"arrow-with-line-dotted-up",icon:[24,24,[],null,"M11.5 3a.5.5 0 00-.5.5v1a.5.5 0 00.5.5h1a.5.5 0 00.5-.5v-1a.5.5 0 00-.5-.5h-1zm6.146 10.354a.5.5 0 000-.708l-5.293-5.292a.5.5 0 00-.707 0l-5.293 5.292a.5.5 0 000 .708l.793.792a.5.5 0 00.707 0L11 11v9.5a.5.5 0 00.5.5h1a.5.5 0 00.5-.5V11l3.146 3.146a.5.5 0 00.707 0l.793-.792zM15 3.5a.5.5 0 01.5-.5h1a.5.5 0 01.5.5v1a.5.5 0 01-.5.5h-1a.5.5 0 01-.5-.5v-1zM7.5 3a.5.5 0 00-.5.5v1a.5.5 0 00.5.5h1a.5.5 0 00.5-.5v-1a.5.5 0 00-.5-.5h-1z"]},m={prefix:"sb",iconName:"bank",icon:[24,24,[],null,"M21.406 6.086L12 1.906l-9.406 4.18.812 1.828L12 4.094l8.594 3.82.812-1.828zM13 9v9h2V9h-2zm7 11H4v2h16v-2zM9 18V9h2v9H9zM5 9v9h2V9H5zm12 9V9h2v9h-2z"]},v={prefix:"sb",iconName:"bitcoin",icon:[24,24,[],null,"M8 4V2h2v2h2V2h2v2.061c2.103.358 3.67 2.234 3.67 4.439 0 1.19-.457 2.285-1.208 3.096A4.528 4.528 0 0118.67 15.5c0 2.454-1.94 4.5-4.4 4.5H14v2h-2v-2h-2v2H8v-2H6V4h2zm0 7h5.27c1.3 0 2.4-1.094 2.4-2.5S14.57 6 13.27 6H8v5zm0 2v5h6.27c1.3 0 2.4-1.094 2.4-2.5s-1.1-2.5-2.4-2.5H8z"]},_={prefix:"sb",iconName:"blank",icon:[24,24,[],null,""]},y={prefix:"sb",iconName:"book-open",icon:[24,24,[],null,"M17.52 19.775c.957.499 2.044 1.065 3.42 1.065h.14l.97-.03v-16l-1.03.03c-.9.02-1.73-.39-2.58-.84l-.003-.002c-1.25-.66-2.799-1.477-4.827-.648-.618.249-1.16.728-1.588 1.305-.427-.575-.967-1.053-1.582-1.305-2.03-.82-3.58-.01-4.83.65-.85.44-1.68.85-2.58.84L2 4.81v16l.98.03h.13c1.38 0 2.47-.57 3.42-1.08 1.27-.66 2.04-1.01 3.15-.56 1.11.453 1.863.344 2.333.116.47.228 1.226.351 2.347-.106 1.12-.46 1.89-.1 3.15.56l.01.005zM11.011 7.19A3.217 3.217 0 0011 7.47v10.039a1.962 1.962 0 01-.57-.159c-2.03-.82-3.58-.01-4.83.65l-.005.003c-.538.279-1.057.547-1.595.707V6.76c.97-.18 1.79-.61 2.53-1C7.8 5.1 8.57 4.75 9.67 5.2c.608.247 1.209 1.255 1.342 1.99zm2.038 10.314V7.47c0-.102-.005-.207-.016-.314.146-.732.737-1.712 1.336-1.946 1.12-.46 1.89-.1 3.15.56.74.39 1.56.82 2.53.99V18.7c-.503-.14-.988-.392-1.489-.652l-.111-.058-.049-.025c-.86-.445-1.864-.965-3.071-.965-.53 0-1.1.1-1.72.35-.253.105-.438.14-.56.155z"]},O={prefix:"sb",iconName:"book",icon:[24,24,[],null,"M15 8H9V6h6v2M7 17.828c.313.111.65.172 1 .172h11V2H8C6.348 2 5 3.348 5 5v14c0 1.652 1.348 3 3 3h11v-2H8c-.548 0-1-.452-1-1v-1.172zM8 4h9v12H8c-.548 0-1-.452-1-1V5c0-.548.452-1 1-1z"]},C={prefix:"sb",iconName:"brush",icon:[24,24,[],null,"M12.9 2.412l-.762-.416-.52.697c-1.263 1.698-2.451 2.884-3.314 3.64-.43.378-.78.648-1.017.82a8.035 8.035 0 01-.328.228l-.012.007.524.852.524.852.001-.001L8 9.089l.009-.006.028-.018.095-.062c.08-.053.192-.13.333-.233.282-.206.679-.513 1.157-.933a24.823 24.823 0 003.042-3.223c1.927 1.335 3.331 3.49 4.29 5.495a23.903 23.903 0 011.351 3.543l-3.425 3.425L5.71 7.89l-2.12 2.12c-.78.78-.78 2.05 0 2.83l2.12 2.12-2.12 2.12c-.78.78-.78 2.05 0 2.83l.71.71c.39.39.9.59 1.41.59.51 0 1.02-.2 1.41-.59l2.12-2.12 2.12 2.12c.39.39.9.59 1.41.59.51 0 1.02-.2 1.41-.59l2.12-2.12-.007-.008 4.229-4.229-.128-.541-.973.228c.973-.228.973-.23.973-.23v-.002l-.002-.006-.005-.022a7.92 7.92 0 00-.091-.347c-.064-.233-.16-.565-.292-.971a25.91 25.91 0 00-1.246-3.126c-1.136-2.377-3-5.272-5.858-6.834zm.59 16.088l-.71.7-2.12-2.12c-.39-.39-.9-.59-1.41-.59-.51 0-1.02.2-1.41.59L5.71 19.2 5 18.5l2.12-2.12c.38-.38.59-.89.59-1.42 0-.53-.21-1.04-.59-1.41L5 11.43l.71-.71 7.78 7.78z"]},w={prefix:"sb",iconName:"building",icon:[24,24,[],null,"M9 6v2h2V6H9zM13 8V6h2v2h-2zM9 10v2h2v-2H9zM13 12v-2h2v2h-2zM9 14v2h2v-2H9zM13 16v-2h2v2h-2M19 4v16h2v2H3v-2h2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2zM7 4v16h4v-2h2v2h4V4H7z"]},T={prefix:"sb",iconName:"bullhorn",icon:[24,24,[],null,"M13.926 6.06v11.88L7.59 14.796l-.923-.216a2.585 2.585 0 01-2.593-2.576A2.585 2.585 0 016.667 9.43l.923-.216 6.336-3.152zm0-2.06c-.311 0-.622.072-.923.216L6.667 7.37C4.084 7.369 2 9.439 2 12.005c0 2.565 2.084 4.636 4.667 4.636l6.336 3.143c.3.154.622.216.923.216C15.015 20 16 19.135 16 17.94v-2.066A3.997 3.997 0 0019 12a3.997 3.997 0 00-3-3.874V6.06C16 4.865 15.015 4 13.926 4zM17 12c0 .743-.401 1.389-1 1.734v-3.468c.599.345 1 .991 1 1.734zm.5-4.332A4.998 4.998 0 0120 12a4.998 4.998 0 01-2.5 4.332l1 1.731A6.998 6.998 0 0022 12a6.998 6.998 0 00-3.5-6.063l-1 1.731z"]},S={prefix:"sb",iconName:"calculator",icon:[24,24,[],null,"M17 4v4H7V4h10zM7 10h10v10H7V10zm10-8H7c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM8 14v2h2v-2H8zm3 2v-2h2v2h-2zm-3 1v2h2v-2H8zm3 0h5v2h-5v-2zm3-3v2h2v-2h-2zm-6-1v-2h2v2H8zm3-2v2h2v-2h-2zm3 2v-2h2v2h-2z"]},k={prefix:"sb",iconName:"calendar",icon:[24,24,[],null,"M6 9V7H4v4h16V7h-2v2h-2V7H8v2H6zm16 2v8c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V7c0-1.1.9-2 2-2h2V3h2v2h8V3h2v2h2c1.1 0 2 .9 2 2v4zM4 13v6h16v-6H4zm2 2v2h2v-2H6zm5 2v-2h2v2h-2zm5-2v2h2v-2h-2z"]},E={prefix:"sb",iconName:"camera",icon:[24,24,[],null,"M12 16a3 3 0 100-6 3 3 0 000 6zm0-2a1 1 0 110-2 1 1 0 010 2M10 5a2 2 0 00-2 2H6a2 2 0 00-2 2v8a2 2 0 002 2h12a2 2 0 002-2V9a2 2 0 00-2-2h-2a2 2 0 00-2-2h-4zm4 2v2h4v8H6V9h4V7h4z"]},x={prefix:"sb",iconName:"caps",icon:[24,24,[],null,"M17 4.586l4.707 4.707-1.414 1.414L17 7.414l-3.293 3.293-1.414-1.414L17 4.586M18 7v8h-2V7h2zm-8 7H5v-2h5v2M8.72 5l4 12H22v2H11.279L7.49 7.637l-4.046 11.69-1.89-.654L6.288 5H8.72z"]},P={prefix:"sb",iconName:"card-back",icon:[24,24,[],null,"M6 13h6v2H6v-2M20 5H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 6v6H4v-6h16zm0-2H4V7h16v2z"]},A={prefix:"sb",iconName:"card-front",icon:[24,24,[],null,"M20 7H4v10h16V7zM4 5h16c1.1 0 2 .9 2 2v10c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V7c0-1.1.9-2 2-2zm6 8H6v2h4v-2zm5.2-1.4a2 2 0 110-3.2 2 2 0 110 3.2z"]},I={prefix:"sb",iconName:"cards-comfortable",icon:[24,24,[],null,"M2 4a2 2 0 012-2h16a2 2 0 012 2v2a2 2 0 01-2 2H4a2 2 0 01-2-2V4zm2 0v2h16V4H4zM4 9a2 2 0 00-2 2v2a2 2 0 002 2h16a2 2 0 002-2v-2a2 2 0 00-2-2H4zm16 2v2H4v-2h16zM4 16a2 2 0 00-2 2v2a2 2 0 002 2h16a2 2 0 002-2v-2a2 2 0 00-2-2H4zm16 2v2H4v-2h16z"]},M={prefix:"sb",iconName:"cards-compact",icon:[24,24,[],null,"M2 5v14a2 2 0 002 2h16a2 2 0 002-2V5a2 2 0 00-2-2H4a2 2 0 00-2 2zm18 0v2H4V5h16zm0 6H4V9h16v2zm0 2v2H4v-2h16zm0 4v2H4v-2h16z"]},D={prefix:"sb",iconName:"caret-down",icon:[24,24,[],null,"M12.384 15.54a.5.5 0 01-.768 0l-3.933-4.72a.5.5 0 01.385-.82h7.864a.5.5 0 01.385.82l-3.933 4.72z"]},R={prefix:"sb",iconName:"caret-left",icon:[24,24,[],null,"M8.46 12.384a.5.5 0 010-.768l4.72-3.933a.5.5 0 01.82.385v7.864a.5.5 0 01-.82.385l-4.72-3.933z"]},j={prefix:"sb",iconName:"caret-right",icon:[24,24,[],null,"M15.54 11.616a.5.5 0 010 .768l-4.72 3.933a.5.5 0 01-.82-.385V8.069a.5.5 0 01.82-.385l4.72 3.933z"]},L={prefix:"sb",iconName:"caret-up",icon:[24,24,[],null,"M11.616 8.46a.5.5 0 01.768 0l3.933 4.72a.5.5 0 01-.385.82H8.069a.5.5 0 01-.385-.82l3.933-4.72z"]},N={prefix:"sb",iconName:"cart",icon:[24,24,[],null,"M14 8.586l1.293-1.293 1.414 1.414L13 12.414 9.293 8.707l1.414-1.414L12 8.586V3h2v5.586zM4.51 6H3V4h1.51C5.847 4 7 4.875 7.386 6.138l.002.005 2.138 7.145c.134.426.52.712.964.712h5.13a1 1 0 00.933-.649v-.002l2.51-6.7 1.873.702-2.509 6.698A3 3 0 0115.62 16h-5.13a3.007 3.007 0 01-2.875-2.124l-.003-.01L5.473 6.72A1.004 1.004 0 004.51 6zM16.5 20a1.5 1.5 0 100-3 1.5 1.5 0 000 3zM11 18.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0z"]},U={prefix:"sb",iconName:"cf",icon:[24,24,[],null,"M44,16.1309725 L39.0882867,16.1309725 L39.0882867,32 L32.4694056,32 L32.4694056,16.1309725 L29,16.1309725 L29,10.9134647 L32.4694056,10.9134647 L32.4694056,7.90912139 C32.4694056,3.42666232 36.1905594,0 40.5856643,0 C41.9833916,0 43.3811189,0.261944668 43.8977273,0.633478333 L43.8977273,5.90444372 L41.4143357,5.90444372 C40.0166084,5.90444372 39.0882867,6.95756787 39.0882867,8.70030087 L39.0882867,10.9134647 L44,10.9134647 L44,16.1309725 Z M18.7742813,22.2522673 C17.9192813,24.1915365 15.9833438,25.4410365 13.5880313,25.5004019 C10.2364688,25.4382096 7.80084375,23.2322673 7.80084375,19.923825 C7.80084375,16.6577865 10.1774063,14.4744596 13.4661563,14.3566712 L13.4680313,14.3529019 L18.6355313,14.3529019 L18.6355313,17.5991519 L26.4355313,17.5991519 L26.4355313,7.43165192 L13.4661563,7.43165192 C5.36896875,7.48724808 0.00084375,12.6124596 0.00084375,19.923825 C0.00084375,27.2747673 5.42240625,32.4207096 13.5880313,32.4207096 C20.8011563,32.4207096 25.7539688,28.2444019 26.8808438,22.2522673 L18.7742813,22.2522673 Z"]},F={prefix:"sb",iconName:"chart-candlestick",icon:[24,24,[],null,"M18 12h2V4h-2v8zM16 2h6v12h-2v2h-2v-2h-2V2zM6 8v8H4V8h2zm2-2H6V4H4v2H2v12h2v2h2v-2h2V6zm3 4V7.5h2V10h2v12H9V10h2zm0 10h2v-8h-2v8z"]},B={prefix:"sb",iconName:"chart-down",icon:[24,24,[],null,"M16.586 9H14v2h6V5h-2v2.586L14.414 4 13 5.414 16.586 9zM7 11.586l-3.707 3.707 1.414 1.414L7 14.414l5 5 3-3 4.293 4.293 1.414-1.414L15 13.586l-3 3-5-5z"]},z={prefix:"sb",iconName:"chart-line",icon:[24,24,[],null,"M22.707 6.707L14 15.414l-4-4-7.293 7.293-1.414-1.414L10 8.586l4 4 7.293-7.293 1.414 1.414z"]},V={prefix:"sb",iconName:"chart-up",icon:[24,24,[],null,"M14 4h6v6h-2V7.414l-3.293 3.293-1.414-1.414L16.586 6H14V4zm3 7.586l3.707 3.707-1.414 1.414L17 14.414l-5 5-3-3-4.293 4.293-1.414-1.414L9 13.586l3 3 5-5z"]},$={prefix:"sb",iconName:"check-1",icon:[24,24,[],null,"M18.594 8.478l-8.29 7.57a1 1 0 01-1.31.034l-4-3.29 1.27-1.544 3.331 2.739 7.65-6.985 1.349 1.476z"]},H={prefix:"sb",iconName:"check-checked",icon:[24,24,[],null,"M5 21.009h14c1.1 0 2-.9 2-2v-14c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2zM18.707 9.426L11 17.133l-4.707-4.707 1.414-1.414L11 14.305l6.293-6.293 1.414 1.414z"]},q={prefix:"sb",iconName:"check-full",icon:[24,24,[],null,"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10zm-1-4.586l-5.207-5.207 1.414-1.414L11 14.586l6.293-6.293 1.414 1.414L11 17.414z"]},Q={prefix:"sb",iconName:"check-unchecked",icon:[24,24,[],null,"M19 5v14H5V5h14zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"]},W={prefix:"sb",iconName:"check",icon:[24,24,[],null,"M20 12c0-4.41-3.59-8-8-8s-8 3.59-8 8 3.59 8 8 8 8-3.59 8-8zM2 12C2 6.48 6.48 2 12 2s10 4.48 10 10-4.48 10-10 10S2 17.52 2 12zm9 5.414l7.707-7.707-1.414-1.414L11 14.586l-3.793-3.793-1.414 1.414L11 17.414z"]},G={prefix:"sb",iconName:"chevron-down-double",icon:[24,24,[],null,"M20.486 12.516L19.072 11.1l-7.071 7.071-7.071-7.07-1.414 1.414L12 21l8.485-8.485M20.486 6.516L19.072 5.1l-7.071 7.071-7.071-7.07-1.414 1.414L12 15l8.485-8.485z"]},Y={prefix:"sb",iconName:"chevron-down",icon:[24,24,[],null,"M20.4862 9.4844L19.072 8.07019L12.0009 15.1413L4.92984 8.07019L3.51562 9.4844L12.0009 17.9697L20.4862 9.4844Z"]},K={prefix:"sb",iconName:"chevron-left-double",icon:[24,24,[],null,"M10.413 13.414l7.071 7.071 1.415-1.414L11.827 12 18.9 4.929l-1.415-1.414-7.07 7.07-.708.708a1 1 0 000 1.414l.707.707z"]},Z={prefix:"sb",iconName:"chevron-left",icon:[24,24,[],null,"M7.445 10.586l7.07-7.071 1.415 1.414L8.859 12l7.07 7.071-1.413 1.414-7.071-7.07-.708-.708a1 1 0 010-1.414l.708-.707z"]},X={prefix:"sb",iconName:"chevron-right-double",icon:[24,24,[],null,"M12.5147 3.51473L21 12L12.5147 20.4853L11.1005 19.0711L18.1716 12L11.1005 4.92894L12.5147 3.51473M6.51472 3.51473L15 12L6.51472 20.4853L5.1005 19.0711L12.1716 12L5.10051 4.92894L6.51472 3.51473Z"]},J={prefix:"sb",iconName:"chevron-right",icon:[24,24,[],null,"M16.555 10.586l-7.07-7.071L8.07 4.929 15.141 12l-7.07 7.071 1.413 1.414 7.071-7.07.707-.708a1 1 0 000-1.414l-.707-.707z"]},tt={prefix:"sb",iconName:"chevron-up-double",icon:[24,24,[],null,"M10.587 10.413l-7.071 7.071L4.93 18.9 12 11.827l7.072 7.072 1.414-1.415-7.07-7.07-.708-.708a1 1 0 00-1.414 0l-.707.707z"]},et={prefix:"sb",iconName:"chevron-up",icon:[24,24,[],null,"M3.516 13.516L4.93 14.93 12 7.859l7.072 7.07 1.414-1.413-8.485-8.486-8.485 8.486z"]},nt={prefix:"sb",iconName:"circle-arrow-right",icon:[24,24,[],null,"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8zm0-2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1.467 5.053L18.414 12l-4.947 4.947-1.414-1.414L14.586 13H7v-2h7.586l-2.533-2.533 1.414-1.414z"]},it={prefix:"sb",iconName:"circle-bitcoin",icon:[24,24,[],null,"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8zm0-2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M11 8V6h2v2h-2zm0 10v-2h2v2h-2M8 7h5c1.662 0 3 1.288 3 3s-1.338 3-3 3H8V7zm2 2v2h3c.578 0 1-.412 1-1 0-.588-.422-1-1-1h-3M8 11h6c1.662 0 3 1.288 3 3s-1.338 3-3 3H8v-6zm2 2v2h4c.578 0 1-.412 1-1 0-.588-.422-1-1-1h-4z"]},rt={prefix:"sb",iconName:"circle-dollar",icon:[24,24,[],null,"M20 12c0-4.41-3.59-8-8-8s-8 3.59-8 8 3.59 8 8 8 8-3.59 8-8zM2 12C2 6.48 6.48 2 12 2s10 4.48 10 10-4.48 10-10 10S2 17.52 2 12zm11-5h2v2h-3.98c-.622 0-1.02.424-1.02.93 0 .596.49 1.07 1.02 1.07h1.58c1.646 0 3.02 1.282 3.02 2.98A3.021 3.021 0 0113 16.974v.806h-2V17H9v-2h3.6c.56 0 1.02-.456 1.02-1.02 0-.542-.426-.98-1.02-.98h-1.58C9.33 13 8 11.574 8 9.93 8 8.203 9.41 7.01 11 7v-.78h2V7z"]},st={prefix:"sb",iconName:"circle-equal",icon:[24,24,[],null,"M8 11V9h8v2H8zM8 13v2h8v-2H8M12 2c-2.56 0-5.12.98-7.07 2.93-3.91 3.91-3.91 10.24 0 14.14A9.973 9.973 0 0012 22c2.56 0 5.12-.98 7.07-2.93 3.91-3.91 3.91-10.24 0-14.14A9.973 9.973 0 0012 2zm0 2c2.14 0 4.15.83 5.66 2.34 3.12 3.12 3.12 8.19 0 11.31A7.917 7.917 0 0112 20c-2.14 0-4.15-.83-5.66-2.34-3.12-3.12-3.12-8.19 0-11.31A7.917 7.917 0 0112 4z"]},ot={prefix:"sb",iconName:"circle-exclamationmark",icon:[24,24,[],null,"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8zm0-2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 12V6h2v8h-2zm0 2v2h2v-2h-2z"]},at={prefix:"sb",iconName:"circle-minus",icon:[24,24,[],null,"M20 12c0-4.41-3.59-8-8-8s-8 3.59-8 8 3.59 8 8 8 8-3.59 8-8zM2 12C2 6.48 6.48 2 12 2s10 4.48 10 10-4.48 10-10 10S2 17.52 2 12zm5 1h10v-2H7v2z"]},ct={prefix:"sb",iconName:"circle-plus",icon:[24,24,[],null,"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8zm0-2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 9V7h2v4h4v2h-4v4h-2v-4H7v-2h4z"]},lt={prefix:"sb",iconName:"circle-profile",icon:[24,24,[],null,"M12 14a4 4 0 100-8 4 4 0 000 8zm0-2a2 2 0 110-4 2 2 0 010 4M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10zm-6.036 6.95A4.992 4.992 0 0012.001 17a4.992 4.992 0 00-3.963 1.951A7.964 7.964 0 0012 20a7.963 7.963 0 003.964-1.05zm1.6-1.201a8 8 0 10-11.125.002A6.989 6.989 0 0112.002 15a6.989 6.989 0 015.561 2.749z"]},ut={prefix:"sb",iconName:"circle",icon:[24,24,[],null,"M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z"]},ht={prefix:"sb",iconName:"clock",icon:[24,24,[],null,"M13 11.5858V6H11V12.4142L14.2929 15.7071L15.7071 14.2929L13 11.5858M2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22C6.48 22 2 17.52 2 12ZM20 12C20 7.59 16.41 4 12 4C7.59 4 4 7.59 4 12C4 16.41 7.59 20 12 20C16.41 20 20 16.41 20 12Z"]},dt={prefix:"sb",iconName:"close-large",icon:[24,24,[],null,"M6.344 4.929L4.93 6.343 10.586 12 4.93 17.657l1.414 1.414L12 13.414l5.657 5.657 1.414-1.414L13.415 12l5.657-5.657-1.414-1.414L12 10.586 6.344 4.929z"]},pt={prefix:"sb",iconName:"close-medium",icon:[24,24,[],null,"M10.59 12.005l-4.55 4.552 1.413 1.414 4.552-4.552 4.551 4.552 1.414-1.414-4.551-4.552 4.551-4.551-1.414-1.414-4.551 4.551L7.453 6.04 6.04 7.454l4.552 4.551z"]},ft={prefix:"sb",iconName:"close-position",icon:[24,24,[],null,"M11 20V4H9v16h2zM15 20V4h-2v16h2zM16.45 12l3.033-3.64 1.536 1.28L19.053 12l1.966 2.36-1.536 1.28L16.449 12zM4.537 15.64L7.57 12 4.537 8.36 3 9.64 4.967 12 3 14.36l1.537 1.28z"]},bt={prefix:"sb",iconName:"close-small",icon:[24,24,[],null,"M10.59 12.005L7.048 15.55l1.414 1.414 3.544-3.544 3.543 3.544 1.415-1.414-3.544-3.544 3.544-3.543-1.415-1.415-3.543 3.544L8.46 7.047 7.047 8.462l3.544 3.543z"]},gt={prefix:"sb",iconName:"close",icon:[24,24,[],null,"M20 12c0-4.41-3.59-8-8-8s-8 3.59-8 8 3.59 8 8 8 8-3.59 8-8zM2 12C2 6.48 6.48 2 12 2s10 4.48 10 10-4.48 10-10 10S2 17.52 2 12zm5.293 3.293L10.586 12 7.293 8.707l1.414-1.414L12 10.586l3.293-3.293 1.414 1.414L13.414 12l3.293 3.293-1.414 1.414L12 13.414l-3.293 3.293-1.414-1.414z"]},mt={prefix:"sb",iconName:"cog",icon:[24,24,[],null,"M11.38 2c-1.202 0-2.18.978-2.18 2.18 0 .1-.054.144-.083.155l-.01.003-.008.004-.006.002c-.146.058-.306.122-.457.187l-.01.004-.01.005a.105.105 0 01-.067.004.233.233 0 01-.11-.059 2.183 2.183 0 00-3.076.008l-.87.87c-.85.85-.85 2.234 0 3.084a.194.194 0 01.054.096.086.086 0 01-.004.055l.907.422-.906-.423v.001a5.1 5.1 0 00-.212.525c-.015.03-.06.077-.152.077-1.202 0-2.18.978-2.18 2.18v1.24c0 1.202.978 2.18 2.18 2.18.1 0 .144.054.155.083l.003.01.004.008.002.006c.058.146.122.306.187.457l.006.014.006.014c.005.01.01.029.004.06a.158.158 0 01-.043.08l-.006.006-.005.005c-.85.85-.85 2.234 0 3.084l.707-.707-.707.707.88.88c.85.85 2.234.85 3.084 0a.194.194 0 01.096-.054.085.085 0 01.055.004l.422-.907-.423.906h.001c.158.074.327.148.515.212.03.015.077.06.077.152 0 1.202.978 2.18 2.18 2.18h1.24c1.202 0 2.18-.978 2.18-2.18 0-.1.054-.144.083-.154l.01-.004.008-.003.006-.003c.146-.058.306-.122.457-.187l.014-.006.014-.006c.01-.005.029-.01.06-.004.031.006.06.023.08.044l.006.005.005.005c.85.85 2.234.85 3.084 0l.88-.88c.85-.85.85-2.234 0-3.084a.194.194 0 01-.054-.096.085.085 0 01.004-.055c.073-.158.147-.327.211-.515.015-.03.06-.077.152-.077 1.202 0 2.18-.978 2.18-2.18v-1.24c0-1.202-.978-2.18-2.18-2.18-.1 0-.144-.054-.154-.083l-.004-.01-.003-.008-.003-.006a17.724 17.724 0 00-.187-.457l-.006-.014-.006-.014a.097.097 0 01-.004-.06.158.158 0 01.044-.08l.005-.006.005-.005c.85-.85.85-2.231.002-3.082l-.002-.002-.866-.876-.004-.004a2.183 2.183 0 00-3.084 0 .194.194 0 01-.096.054.086.086 0 01-.055-.004l-.422.907.423-.906h-.001a5.124 5.124 0 00-.522-.215.112.112 0 01-.05-.042.192.192 0 01-.03-.107c0-1.202-.978-2.18-2.18-2.18h-1.24zm8.077 13.392l-.907-.422.906.423v-.001zM11.2 4.18c0-.098.082-.18.18-.18h1.24c.098 0 .18.082.18.18 0 .865.51 1.702 1.393 2.028l.016.006.015.005c.099.033.2.075.333.137h.001c.845.394 1.8.16 2.41-.449a.182.182 0 01.254-.001l.867.877.004.004c.069.069.07.184.002.254-.617.605-.837 1.564-.46 2.394.053.122.105.254.163.399.332.864 1.165 1.366 2.022 1.366.098 0 .18.082.18.18v1.24c0 .098-.082.18-.18.18-.86 0-1.696.506-2.026 1.377l-.006.018-.007.019c-.033.099-.075.2-.137.333v.001c-.394.845-.16 1.8.449 2.41.07.069.07.185 0 .255l-.88.88a.183.183 0 01-.254.002c-.605-.617-1.564-.837-2.394-.46-.122.053-.254.105-.399.163-.864.332-1.366 1.165-1.366 2.022 0 .098-.082.18-.18.18h-1.24a.182.182 0 01-.18-.18c0-.86-.506-1.696-1.377-2.026l-.018-.006-.019-.007a3.097 3.097 0 01-.333-.137h-.001c-.845-.394-1.8-.16-2.41.449a.183.183 0 01-.255 0l-.88-.88a.183.183 0 01-.002-.254 2.136 2.136 0 00.46-2.394 19.317 19.317 0 01-.163-.399C5.87 13.302 5.037 12.8 4.18 12.8a.182.182 0 01-.18-.18v-1.24c0-.098.082-.18.18-.18.86 0 1.696-.506 2.025-1.377l.007-.018.007-.019c.037-.112.083-.226.137-.343v-.001c.394-.845.16-1.8-.449-2.41a.183.183 0 010-.255l.87-.87c.07-.07.186-.07.256 0l.005.005.006.006c.596.578 1.532.83 2.388.448.123-.053.256-.106.402-.164.864-.332 1.366-1.165 1.366-2.022zm-1.125 7.264a1.985 1.985 0 011.37-1.371 2.014 2.014 0 012.482 2.483 1.95 1.95 0 01-1.363 1.367l-.006.002a2.006 2.006 0 01-2.483-2.481zm5.786 1.623a4.014 4.014 0 00-4.928-4.928l-.006.002a3.984 3.984 0 00-2.783 2.783v.002a4.006 4.006 0 004.926 4.932 3.95 3.95 0 002.79-2.787v-.004z"]},vt={prefix:"sb",iconName:"command",icon:[24,24,[],null,"M10 8V6a4 4 0 10-4 4h2v4H6a4 4 0 104 4v-2h4v2a4 4 0 104-4h-2v-4h2a4 4 0 10-4-4v2h-4zM4 6a2 2 0 114 0v2H6a2 2 0 01-2-2zm10 8h-4v-4h4v4zm2-8a2 2 0 112 2h-2V6zM6 20a2 2 0 110-4h2v2a2 2 0 01-2 2zm12-4a2 2 0 11-2 2v-2h2z"]},_t={prefix:"sb",iconName:"copy",icon:[24,24,[],null,"M9 2c-1.102 0-2 .898-2 2v2H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2v-2h2c1.102 0 2-.898 2-2V4c0-1.102-.898-2-2-2H9zm7 14V8c0-1.1-.9-2-2-2H9V4h9v12h-2zm-2-8v12H6V8h8z"]},yt={prefix:"sb",iconName:"deposit",icon:[24,24,[],null,"M11 12.586V4h2v8.586l3.293-3.293 1.414 1.414-5 5a1 1 0 01-1.414 0l-5-5 1.414-1.414L11 12.586zM18 18v2H6v-2h12z"]},Ot={prefix:"sb",iconName:"direction-down",icon:[24,24,[],null,"M12.39 17.512a.5.5 0 01-.78 0l-2.96-3.7A.5.5 0 019.04 13h5.92a.5.5 0 01.39.812l-2.96 3.7z"]},Ct={prefix:"sb",iconName:"direction-up-down",icon:[24,24,[],null,"M9.04 11a.5.5 0 01-.39-.812l2.96-3.7a.5.5 0 01.78 0l2.96 3.7a.5.5 0 01-.39.812zm0 2a.5.5 0 00-.39.812l2.96 3.7c.2.25.58.25.78 0l2.96-3.7a.5.5 0 00-.39-.812z"]},wt={prefix:"sb",iconName:"direction-up",icon:[24,24,[],null,"M12.39 6.488a.5.5 0 00-.78 0l-2.96 3.7a.5.5 0 00.39.812h5.92a.5.5 0 00.39-.812l-2.96-3.7z"]},Tt={prefix:"sb",iconName:"dollar",icon:[24,24,[],null,"M11 4.028V2h2v2h3v2h-4.5A2.504 2.504 0 009 8.5c0 1.378 1.122 2.5 2.5 2.5h1c2.482 0 4.5 2.018 4.5 4.5a4.505 4.505 0 01-4 4.472V22h-2v-2H8v-2h4.5c1.378 0 2.5-1.122 2.5-2.5S13.878 13 12.5 13h-1A4.504 4.504 0 017 8.5a4.505 4.505 0 014-4.472z"]},St={prefix:"sb",iconName:"duplicate",icon:[24,24,[],null,"M8 4a2 2 0 012-2h5a1 1 0 01.707.293l4 4A1 1 0 0120 7v9a2 2 0 01-2 2h-2v2a2 2 0 01-2 2H6a2 2 0 01-2-2V8a2 2 0 012-2h2V4zM6 8v12h8v-8.586L10.586 8H6zm10 8h2V7.414L14.586 4H10v2h1a1 1 0 01.707.293l4 4A1 1 0 0116 11v5z"]},kt={prefix:"sb",iconName:"edit",icon:[24,24,[],null,"M19 22H5v-2h14v2zM16 2.586L21.414 8l-11 11H5v-5.414l11-11zM7 14.414V17h2.586l9-9L16 5.414l-9 9z"]},Et={prefix:"sb",iconName:"email",icon:[24,24,[],null,"M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2zm16 3.404l-7.299 7.198a1 1 0 01-1.404 0L4 7.405V18h16V7.404zM18.575 6H5.423L12 12.486 18.575 6z"]},xt={prefix:"sb",iconName:"euro",icon:[24,24,[],null,"M8.582 9a8.003 8.003 0 0111.076-4.113l.924-1.774A9.894 9.894 0 0016 2c-4.477 0-8.268 2.943-9.542 7H4v2h2.05a10.115 10.115 0 000 2H4v2h2.458c1.274 4.057 5.065 7 9.542 7 1.654 0 3.21-.4 4.589-1.111l-.918-1.778A7.966 7.966 0 0116 20a8.003 8.003 0 01-7.418-5H14v-2H8.062a8.075 8.075 0 010-2H14V9H8.582z"]},Pt={prefix:"sb",iconName:"exchange-crypto",icon:[24,24,[],null,"M16 6V4h2v2c1.853 0 3 1.678 3 3.5 0 .699-.169 1.376-.481 1.946.94.618 1.482 1.802 1.482 3.054 0 1.822-1.147 3.5-3 3.5H18v1.98h-2V18h-3.02l.12-5.957V6H16zm-.9 5H18c.387 0 1-.382 1-1.5 0-1.118-.613-1.5-1-1.5h-2.9v3zm-.02 2l-.06 3H19c.388 0 1-.382 1-1.5 0-1.118-.612-1.5-1-1.5h-3.92zM6.947 5.467L5.533 4.053 1.586 8l3.947 3.947 1.414-1.414L5.414 9H11V7H5.414l1.533-1.533zm.52 6.586L11.414 16l-3.947 3.947-1.414-1.414L7.586 17H2v-2h5.586l-1.533-1.533 1.414-1.414z"]},At={prefix:"sb",iconName:"exchange-vertical",icon:[24,24,[],null,"M17.588 9.687L15.16 7.994v10.873h-2V4.16l5.572 3.886-1.143 1.64zM6.76 14.067l2.4 1.8v-11h2v15l-5.6-4.2 1.2-1.6z"]},It={prefix:"sb",iconName:"exchange",icon:[24,24,[],null,"M10.28 6.662L8.216 9H19v2H6a1 1 0 01-.75-1.662l3.53-4 1.5 1.324zM5 15h10.796l-2.049 2.341 1.506 1.317 3.5-4A1 1 0 0018 13H5v2z"]},Mt={prefix:"sb",iconName:"external-link",icon:[24,24,[],null,"M15 3h6v6h-2V6.414l-5.828 5.829-1.414-1.415L17.586 5h-2.585V3zM6 5a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-6h-2v6H6V7h6V5H6z"]},Dt={prefix:"sb",iconName:"fiat-dollar-bill",icon:[24,24,[],null,"M20 5c1.1 0 2 .9 2 2v10c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V7c0-1.1.9-2 2-2h16zm-3.098 2A6.978 6.978 0 0119 12c0 1.96-.803 3.73-2.098 5H20V7h-3.098zM7.098 7H4v10h3.098A6.979 6.979 0 015 12c0-1.96.803-3.73 2.098-5zM11 16.9V16h-1v-2h2.71a.52.52 0 00.52-.52c0-.262-.206-.49-.52-.49h-1.19c-1.426 0-2.52-1.202-2.52-2.56 0-1.26.895-2.177 2-2.398V7.1A5.004 5.004 0 007 12a5.004 5.004 0 004 4.9zm2 0a5.004 5.004 0 004-4.9 5.004 5.004 0 00-4-4.9v.88h1v2h-2.48a.565.565 0 00-.391.14.406.406 0 00-.129.31c0 .322.266.56.52.56h1.19c1.366 0 2.52 1.072 2.52 2.49A2.52 2.52 0 0113 15.983v.917z"]},Rt={prefix:"sb",iconName:"fiat-jpy",icon:[24,24,[],null,"M3.293 3.417l1.414-1.414L12 9.296l7.293-7.293 1.414 1.414L13.124 11H17v2h-4v2h4v2h-4v5h-2v-5H7v-2h4v-2H7v-2h3.876L3.293 3.417z"]},jt={prefix:"sb",iconName:"file",icon:[24,24,[],null,"M4 4a2 2 0 012-2h9a1 1 0 01.707.293l4 4A1 1 0 0120 7v13a2 2 0 01-2 2H6a2 2 0 01-2-2V4zm2 0v16h12V7.414L14.586 4H6M8 8h8v2H8V8zM8 12h8v2H8v-2zM8 16h4v2H8v-2z"]},Lt={prefix:"sb",iconName:"folder",icon:[24,24,[],null,"M11 7V5H4v2h7zm2 0V5c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2h-7zm0 2H4v10h16V9h-7z"]},Nt={prefix:"sb",iconName:"fullscreen-close",icon:[24,24,[],null,"M20 8h-4V4h-2v6h6V8zM20 14h-6v6h2v-4h4v-2zM8 16H4v-2h6v6H8v-4zM4 10V8h4V4h2v6H4z"]},Ut={prefix:"sb",iconName:"fullscreen-open",icon:[24,24,[],null,"M18 6h-3V4h5v5h-2V6zM6 9V6h3V4H4v5h2zM4 15v5h5v-2H6v-3H4zM18 15h2v5h-5v-2h3v-3z"]},Ft={prefix:"sb",iconName:"funnel",icon:[24,24,[],null,"M9 11v7l6 4V11l6-5V3H3v3l6 5zM5 5.063V5h14v.063l-6 5v8.2l-2-1.333v-6.867l-6-5z"]},Bt={prefix:"sb",iconName:"game-controller",icon:[24,24,[],null,"M15 11c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zM16 14c0-.55.45-1 1-1s1 .45 1 1-.45 1-1 1-1-.45-1-1zM10 13a2 2 0 11-4 0 2 2 0 014 0M14 4c.548 0 1-.452 1-1h2c0 1.652-1.347 3-3 3-.547 0-1 .452-1 1h4c1.24.11 2.44.66 3.39 1.61 2.15 2.15 2.15 7.63 0 9.78-.84.84-1.88 1.2-2.96 1.2-1.7 0-3.51-.89-4.82-2.2-.23-.23-.43-.49-.61-.75-.18.26-.38.52-.61.75-1.31 1.32-3.12 2.2-4.82 2.2-1.09 0-2.12-.36-2.96-1.2-2.15-2.15-2.15-7.63 0-9.78C4.56 7.66 5.76 7.11 7 7h4c0-1.652 1.348-3 3-3zm2.9 5H7.1c-.77.09-1.5.45-2.08 1.03-1.36 1.36-1.36 5.59 0 6.95.41.41.91.61 1.54.61 1.11 0 2.42-.62 3.41-1.61.12-.12.24-.26.39-.48.38-.53.99-.85 1.64-.85.65 0 1.27.31 1.64.85.15.22.27.36.39.48 1 .99 2.3 1.61 3.41 1.61.62 0 1.13-.2 1.54-.61 1.36-1.36 1.36-5.59 0-6.95-.58-.58-1.31-.94-2.08-1.03z"]},zt={prefix:"sb",iconName:"gift",icon:[24,24,[],null,"M9.5 2c-.9 0-1.79.34-2.47 1.03A3.495 3.495 0 009.5 9H4c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-9c0-1.1-.9-2-2-2h-5.5c.9 0 1.79-.34 2.47-1.03A3.495 3.495 0 0014.5 2c-.9 0-1.79.34-2.47 1.03l-.03.03-.03-.03A3.443 3.443 0 009.5 2zm0 2A1.499 1.499 0 0111 5.5V7H9.5a1.499 1.499 0 01-1.06-2.56C8.72 4.16 9.1 4 9.5 4zm5 0c.4 0 .78.16 1.06.44.58.58.58 1.54 0 2.12-.28.28-.66.44-1.06.44H13V5.5A1.499 1.499 0 0114.5 4zm5.5 7v9h-7v-9h7zM4 20v-9h7v9H4z"]},Vt={prefix:"sb",iconName:"grid",icon:[24,24,[],null,"M7 6a1 1 0 00-1 1v3a1 1 0 001 1h3a1 1 0 001-1V7a1 1 0 00-1-1H7zM7 13a1 1 0 00-1 1v3a1 1 0 001 1h3a1 1 0 001-1v-3a1 1 0 00-1-1H7zM13 7a1 1 0 011-1h3a1 1 0 011 1v3a1 1 0 01-1 1h-3a1 1 0 01-1-1V7zM14 13a1 1 0 00-1 1v3a1 1 0 001 1h3a1 1 0 001-1v-3a1 1 0 00-1-1h-3z"]},$t={prefix:"sb",iconName:"home",icon:[24,24,[],null,"M4 10a2 2 0 01.8-1.6l6-4.5a2 2 0 012.4 0l6 4.5A2 2 0 0120 10v7a2 2 0 01-2 2h-4v-4a2 2 0 10-4 0v4H6a2 2 0 01-2-2v-7z"]},Ht={prefix:"sb",iconName:"icon-arrow-left",icon:[24,24,[],null,"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8zm0-2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1.467 5.053l1.414 1.414L9.414 11H17v2H9.414l2.533 2.533-1.414 1.414L5.586 12l4.947-4.947z"]},qt={prefix:"sb",iconName:"indicator-circle",icon:[24,24,[],null,"M16.6 11.8a4.8 4.8 0 11-9.6 0 4.8 4.8 0 019.6 0z"]},Qt={prefix:"sb",iconName:"info",icon:[24,24,[],null,"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8zm0-2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 8v8h-2v-8h2zm0-2V6h-2v2h2z"]},Wt={prefix:"sb",iconName:"key",icon:[24,24,[],null,"M9 3a5 5 0 102.757 9.172l2.817 2.817-1.92 1.912 1.412 1.418 1.923-1.916.908.908-2.825 2.833 1.416 1.412 2.823-2.83 1.002 1.001 1.414-1.414-7.555-7.556A5 5 0 009 3zM6 8a3 3 0 116 0 3 3 0 01-6 0z"]},Gt={prefix:"sb",iconName:"kraken",icon:[24,24,[],null,"M2 14.183v4.363C2 19.35 2.64 20 3.427 20c.788 0 1.43-.65 1.43-1.454v-4.363c0-.804.637-1.456 1.428-1.456.789 0 1.428.652 1.428 1.456v4.363c0 .804.64 1.454 1.428 1.454.79 0 1.43-.65 1.43-1.454v-4.363c0-.804.64-1.456 1.427-1.456.792 0 1.432.652 1.432 1.456v4.363c0 .804.64 1.454 1.426 1.454a1.44 1.44 0 001.428-1.454v-4.363c0-.804.64-1.456 1.43-1.456.789 0 1.428.652 1.428 1.456v4.363c0 .804.64 1.454 1.43 1.454A1.44 1.44 0 0022 18.546v-4.363C22 8.56 17.522 4 11.998 4 6.475 4 2 8.56 2 14.183z"]},Yt={prefix:"sb",iconName:"language",icon:[24,24,[],null,"M11.428 4h4.5V2h2v2h4.5v2H20.74a17.38 17.38 0 01-1.291 3.447 17.814 17.814 0 01-1.658 2.69c.983 1.112 2.207 2.177 3.635 2.995l-.993 1.736c-1.547-.886-2.868-2.012-3.942-3.185a17.556 17.556 0 01-4.065 3.185l-.993-1.736a15.548 15.548 0 003.783-3.014c-1.004-1.389-1.687-2.775-1.965-3.86l1.937-.496c.175.682.617 1.657 1.328 2.724A15.85 15.85 0 0018.667 6h-7.239V4zM6.251 11L2 21.629l1.857.742L5.206 19H9.65L11 22.371l1.857-.742L8.606 11H6.25zm2.6 6H6.006l1.422-3.557L8.851 17zM7.928 6.063a6.076 6.076 0 00-2.185 3.423l-1.949-.452A8.084 8.084 0 016.101 5H4.928V3h5v4h-2v-.937z"]},Kt={prefix:"sb",iconName:"list",icon:[24,24,[],null,"M9 9h11V7H9v2zm0 4h11v-2H9v2zm11 4H9v-2h11v2zM4 13h3v-2H4v2zm3-4H4V7h3v2zm-3 8h3v-2H4v2z"]},Zt={prefix:"sb",iconName:"loading",icon:[24,24,[],null,"M11 2v4h2V2h-2zm0 16v4h2v-4h-2zm11-5h-4v-2h4v2zM2 13h4v-2H2v2zm2.223 5.363l2.83-2.83 1.414 1.414-2.83 2.83-1.414-1.414zm14.14-14.14l-2.83 2.83 1.414 1.414 2.83-2.83-1.414-1.414zm0 15.554l-2.83-2.83 1.414-1.414 2.83 2.83-1.414 1.414zM4.223 5.637l2.83 2.83 1.414-1.414-2.83-2.83-1.414 1.414z"]},Xt={prefix:"sb",iconName:"lock",icon:[24,24,[],null,"M16 9c0-2.21-1.79-4-4-4S8 6.79 8 9v3h8V9zm2 5H6v6h12v-6zM6 12V9c0-3.31 2.69-6 6-6s6 2.69 6 6v3c1.1 0 2 .9 2 2v6c0 1.1-.9 2-2 2H6c-1.1 0-2-.9-2-2v-6c0-1.1.9-2 2-2z"]},Jt={prefix:"sb",iconName:"menu-burger-big",icon:[24,24,[],null,"M22 7H2V5h20v2zm0 6H2v-2h20v2zM2 17h20v2H2v-2z"]},te={prefix:"sb",iconName:"menu-burger-small",icon:[24,24,[],null,"M18 9H6V7h12v2zm0 4H6v-2h12v2zM6 17h12v-2H6v2z"]},ee={prefix:"sb",iconName:"menu-kebap",icon:[24,24,[],null,"M12 9a1 1 0 100-2 1 1 0 000 2zM12 13a1 1 0 100-2 1 1 0 000 2zM12 17a1 1 0 100-2 1 1 0 000 2z"]},ne={prefix:"sb",iconName:"minus",icon:[24,24,[],null,"M18 13H6V11H18V13Z"]},ie={prefix:"sb",iconName:"mobile",icon:[24,24,[],null,"M13 18.09a1 1 0 11-2 0 1 1 0 012 0M8 2h8c1.1 0 2 .9 2 2v16c0 1.1-.9 2-2 2H8c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2zm8 18V4H8v16h8z"]},re={prefix:"sb",iconName:"notification-full",icon:[24,24,[],null,"M12 2c2.886 0 5.222 2.31 5.222 5.17l3.535 7.01c.772 1.52-.345 3.32-2.072 3.32H5.327c-1.727 0-2.844-1.79-2.072-3.32L6.79 7.17C6.79 4.31 9.126 2 12 2zM12 22c-1.66 0-3-1.34-3-3h6c0 1.66-1.34 3-3 3z"]},se={prefix:"sb",iconName:"notification",icon:[24,24,[],null,"M6.725 7.17c0-2.86 2.3-5.17 5.13-5.17 2.84 0 5.14 2.31 5.14 5.17l3.48 8.01c.76 1.52-.34 3.32-2.04 3.32h-2.199a4.319 4.319 0 01-4.242 3.5 4.319 4.319 0 01-4.242-3.5H5.285c-1.7 0-2.8-1.79-2.04-3.32l3.48-8.01zm8.27 0c0-1.75-1.41-3.17-3.14-3.17-1.73 0-3.13 1.42-3.14 3.17l-.17.8-3.48 8.01-.04.09c-.05.1-.05.2.01.3.09.13.2.13.24.13h13.16c.04 0 .16 0 .24-.13.06-.1.06-.2.01-.3l-.04-.09-3.48-8.01-.17-.8zM9.823 18.5c.33.876 1.175 1.5 2.17 1.5.997 0 1.842-.624 2.172-1.5H9.823z"]},oe={prefix:"sb",iconName:"pending",icon:[24,24,[],null,"M10.939 7.95h2v3.586l1.707 1.707-1.414 1.414-2.293-2.293V7.95M6.31 10.745l1.53-.793.92 1.776-4.43 2.296-2.334-4.417 1.769-.934.677 1.283A7.997 7.997 0 0112.18 4c4.422 0 8 3.578 8 8 0 4.422-3.578 8-8 8a8.019 8.019 0 01-6.981-4.09l1.742-.98A6.019 6.019 0 0012.18 18c3.317 0 6-2.682 6-6s-2.683-6-6-6a5.996 5.996 0 00-5.87 4.745M10.939 7.95h2v3.586l1.707 1.707-1.414 1.414-2.293-2.293V7.95M6.31 10.745l1.53-.793.92 1.776-4.43 2.296-2.334-4.417 1.769-.934.677 1.283A7.997 7.997 0 0112.18 4c4.422 0 8 3.578 8 8 0 4.422-3.578 8-8 8a8.019 8.019 0 01-6.981-4.09l1.742-.98A6.019 6.019 0 0012.18 18c3.317 0 6-2.682 6-6s-2.683-6-6-6a5.996 5.996 0 00-5.87 4.745z"]},ae={prefix:"sb",iconName:"picture-file",icon:[24,24,[],null,"M18 7.8L14.35 4H6v9.587l.294-.294.707-.707.707.707 2.293 2.293 5.293-5.293.707-.707.707.707L18 11.585V7.8zm0 6.613l-2-1.999-5.292 5.293-.707.707-.707-.707L7 15.414 6 16.415V20h12v-5.587zM6 2h8.35c.54 0 1.06.22 1.44.61l3.65 3.8c.36.38.56.87.56 1.39V20c0 1.1-.9 2-2 2H6c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2zm3.5 7a1.5 1.5 0 100-3 1.5 1.5 0 000 3z"]},ce={prefix:"sb",iconName:"pie-chart-full",icon:[24,24,[],null,"M11 13V6.062A8 8 0 1017.938 13H11z"]},le={prefix:"sb",iconName:"pie-chart",icon:[24,24,[],null,"M11 13V6.062A8 8 0 1017.938 13H11zM9 8.083V15h6.917A6.002 6.002 0 014 14a6.002 6.002 0 015-5.917z"]},ue={prefix:"sb",iconName:"plus",icon:[24,24,[],null,"M11 13v5h2v-5h5v-2h-5V6h-2v5H6v2h5z"]},he={prefix:"sb",iconName:"printer",icon:[24,24,[],null,"M6 9H4c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-6c0-1.1-.9-2-2-2h-2V6.77c0-.49-.18-.97-.51-1.34L15 2.66c-.38-.42-.92-.66-1.49-.66H8c-1.1 0-2 .9-2 2v5zm10-2.23V9H8V4h5.51L16 6.77zM4 11h16v6H4v-6zM19 22v-2H5v2h14M7 15a1 1 0 100-2 1 1 0 000 2z"]},de={prefix:"sb",iconName:"privacy-off",icon:[24,24,[],null,"M12 6c-4.09 0-7.585 2.488-9 6 1.415 3.512 4.91 6 9 6s7.584-2.488 9-6c-1.416-3.512-4.91-6-9-6zm0 10.125A4.127 4.127 0 017.875 12 4.127 4.127 0 0112 7.875 4.127 4.127 0 0116.125 12 4.127 4.127 0 0112 16.125zm0-6.75A2.621 2.621 0 0114.625 12 2.621 2.621 0 0112 14.625 2.621 2.621 0 019.375 12 2.621 2.621 0 0112 9.375z"]},pe={prefix:"sb",iconName:"privacy-on",icon:[24,24,[],null,"M16.81 7.475l-2.466 1.423a4.127 4.127 0 00-6.765 3.906l-3.287 1.898A9.45 9.45 0 012.625 12c1.416-3.512 4.91-6 9-6 1.908 0 3.686.541 5.184 1.475zM15.71 11.417l3.388-1.956 3.225-1.862-.819-1.418L1.661 17.638l.818 1.417 4.167-2.406 2.433-1.404 1.47-.85c0 .001 0 0 0 0l3.688-2.128 1.472-.85zM11.625 18a9.815 9.815 0 01-3.652-.699l2.382-1.375a4.128 4.128 0 005.304-3.062l4.17-2.408A9.39 9.39 0 0120.625 12c-1.415 3.512-4.909 6-9 6zM9 11.983l3.925-2.266a2.618 2.618 0 00-1.3-.342A2.621 2.621 0 009 11.983z"]},fe={prefix:"sb",iconName:"qr",icon:[24,24,[],null,"M5 3H3v2h2V3M0 0h8v8H0V0zm2 2v4h4V2H2zM10 0h8v8h-8V0zm2 2v4h4V2h-4zM0 10v8h8v-8H0zm2 6v-4h4v4H2zM12 14v2h4v-2h2v4h-8v-4h2zM10 10h4v2h-4v-2zM18 10h-2v2h2v-2M13 13h2v2h-2v-2z"]},be={prefix:"sb",iconName:"question",icon:[24,24,[],null,"M8 6h4.5C13.878 6 15 7.122 15 8.5S13.878 11 12.5 11A3.5 3.5 0 009 14.5V16h2v-1.5a1.5 1.5 0 011.5-1.5c2.482 0 4.5-2.018 4.5-4.5S14.982 4 12.5 4H8v2zm1 12v2h2v-2H9z"]},ge={prefix:"sb",iconName:"radio-checked",icon:[24,24,[],null,"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 2c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8M18 12a6 6 0 11-12 0 6 6 0 0112 0z"]},me={prefix:"sb",iconName:"radio-unchecked",icon:[24,24,[],null,"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8zm0-2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2z"]},ve={prefix:"sb",iconName:"refresh",icon:[24,24,[],null,"M11.998 6a6.003 6.003 0 00-5.752 4.285l-1.917-.57a8.003 8.003 0 0114.253-2.26l.48-1.301 1.877.692-1.608 4.357-4.591-1.238.52-1.93 1.584.427A5.993 5.993 0 0011.998 6zM7.15 15.538a6.003 6.003 0 0010.598-1.823l1.918.57a8.003 8.003 0 01-14.251 2.263l-.479 1.298-1.876-.692 1.605-4.357 4.593 1.237-.521 1.932-1.587-.428z"]},_e={prefix:"sb",iconName:"rewind",icon:[24,24,[],null,"M4.443 9.957A7.997 7.997 0 0112.18 4c4.423 0 8 3.578 8 8 0 4.422-3.577 8-8 8a8.019 8.019 0 01-6.98-4.09l1.742-.98A6.019 6.019 0 0012.18 18c3.318 0 6-2.682 6-6s-2.682-6-6-6a5.996 5.996 0 00-5.869 4.745l1.53-.793.92 1.776-4.431 2.296-2.334-4.417 1.769-.934.678 1.284z"]},ye={prefix:"sb",iconName:"rocket",icon:[24,24,[],null,"M17.998 7.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0M12.797 2.523c.594.006 1.267.107 1.847.45 1.84-.907 4.052-1.358 6.471-.552l.475.158.158.475c.806 2.419.355 4.631-.553 6.471.344.58.445 1.253.451 1.847.008.798-.154 1.643-.35 2.381a17.747 17.747 0 01-.972 2.698l-.022.047-.006.013-.002.004v.002l-.905-.427.904.427-.607 1.284-3-3a17.193 17.193 0 01-.968.702l-.021.014-.007.004-.002.001h-.001l-.538-.842.538.843-.678.432-1.182-1.183c-.287.331-.656.712-1.094 1.075-1.123.93-2.902 1.889-4.982 1.191l-.473-.159-.158-.473c-.691-2.074.268-3.852 1.195-4.975a9.52 9.52 0 011.074-1.097L8.214 9.16l.432-.677.843.537-.843-.537V8.48l.002-.002.004-.007.014-.021.05-.075a17.222 17.222 0 01.649-.89L6.37 4.483l1.282-.606.427.904-.427-.904.002-.001.004-.002.013-.006.047-.022.168-.075a17.743 17.743 0 012.53-.896c.738-.197 1.583-.359 2.381-.351zm-.675 2.106l.092-.075c-.403.044-.84.134-1.282.252-.381.102-.75.22-1.08.337l.826.829c.423-.44.907-.9 1.444-1.343zm6.079 8.859l.826.826c.116-.33.234-.697.336-1.077.118-.441.208-.879.252-1.282l-.075.091c-.442.537-.9 1.02-1.34 1.442zm-7.394-1.736c-.29.245-.633.569-.95.952-.634.769-1.057 1.638-.954 2.554.92.106 1.788-.317 2.555-.952.383-.317.706-.662.95-.952l-1.601-1.602zm4.452 1.624a16.423 16.423 0 002.739-2.602c1.493-1.81 2.608-4.093 1.994-6.597-2.504-.614-4.787.501-6.596 1.994a16.425 16.425 0 00-2.603 2.739l4.466 4.466zM12.726 18.927l-2.12 2.12-1.414-1.414 2.12-2.12 1.414 1.414M3.416 15.677l3.53-3.53-1.414-1.414-3.53 3.53 1.414 1.414z"]},Oe={prefix:"sb",iconName:"search",icon:[24,24,[],null,"M17 11c0-3.31-2.69-6-6-6s-6 2.69-6 6 2.69 6 6 6 6-2.69 6-6zM3 11c0-4.42 3.58-8 8-8s8 3.58 8 8c0 1.85-.627 3.552-1.68 4.906l3.387 3.387-1.414 1.414-3.387-3.387A7.967 7.967 0 0111 19c-4.42 0-8-3.58-8-8z"]},Ce={prefix:"sb",iconName:"security-key",icon:[24,24,[],null,"M15.443 3.061a2.915 2.915 0 014.122 0l1.374 1.374a2.915 2.915 0 010 4.123l-8.184 8.183a2.916 2.916 0 01-3.092.666L7.97 19.1a.972.972 0 01-1.374 0l-1.51-1.511a.972.972 0 010-1.374l1.62-1.62a2.916 2.916 0 01.553-3.35l8.184-8.184zm2.748 1.374a.972.972 0 00-1.374 0L8.633 12.62a.972.972 0 000 1.374l1.374 1.374c.38.38.995.38 1.374 0l8.184-8.184a.972.972 0 000-1.374L18.19 4.435zm.687 2.061l-1.374-1.374-1.374 1.374 1.374 1.374 1.374-1.374z"]},we={prefix:"sb",iconName:"settle",icon:[24,24,[],null,"M20 3h-6v6h6V3zm-2 2v2h-2V5h2zM4 13h16v-2H4v2zM12 14.333L7 21h10l-5-6.667zm0 3.334L13 19h-2l1-1.333zM4 3h6v6H4V3zm4 4V5H6v2h2z"]},Te={prefix:"sb",iconName:"share-ios",icon:[24,24,[],null,"M11.293 4.293a1 1 0 011.414 0l5 5-1.414 1.414L13 7.414V16h-2V7.414l-3.293 3.293-1.414-1.414 5-5zM6 20h14v-6h-2v4H6v-4H4v6h2z"]},Se={prefix:"sb",iconName:"shield-full",icon:[24,24,[],null,"M19.826 5.482l.075.553c.07.523.099 1.975.099 2.427 0 5.169-3.056 10.26-7.58 12.345L12 21l-.42-.193C7.057 18.72 4 13.63 4 8.462c0-.468.03-1.87.074-2.371l.051-.586L11.99 2l7.837 3.482z"]},ke={prefix:"sb",iconName:"shield-secure",icon:[24,24,[],null,"M11.99 2l7.836 3.482.075.553c.07.523.099 1.975.099 2.427 0 5.169-3.056 10.26-7.58 12.345L12 21l-.42-.193C7.057 18.72 4 13.63 4 8.462c0-.468.03-1.87.074-2.371l.051-.586L11.99 2zm0 2.187L6.038 6.841A54.723 54.723 0 006 8.461c0 4.293 2.467 8.474 5.999 10.325 3.532-1.85 5.999-6.032 5.999-10.324 0-.335-.016-1.08-.042-1.623l-5.966-2.652M17.707 8.707L11 15.414l-3.707-3.707 1.414-1.414L11 12.586l5.293-5.293 1.414 1.414z"]},Ee={prefix:"sb",iconName:"shield",icon:[24,24,[],null,"M11.99 2l7.836 3.482.075.553c.07.523.099 1.975.099 2.427 0 5.169-3.056 10.26-7.58 12.345L12 21l-.42-.193C7.057 18.72 4 13.63 4 8.462c0-.468.03-1.87.074-2.371l.051-.586L11.99 2zm0 2.187L6.038 6.841A54.723 54.723 0 006 8.461c0 4.293 2.467 8.474 5.999 10.325 3.532-1.85 5.999-6.032 5.999-10.324 0-.335-.016-1.08-.042-1.623l-5.966-2.652z"]},xe={prefix:"sb",iconName:"skull",icon:[24,24,[],null,"M4.963 6.37l-.812-.848-2.149.09.066-1.737 1.664-.07.066-1.736L5.461 2l-.085 2.246.82.856-1.233 1.267zM17.702 22l1.664-.07.066-1.735 1.663-.07.067-1.736-2.15.09-1.751-1.829-.283 2.258.81.846L17.702 22zM19.037 6.369l.812-.848 2.151.09-.066-1.736-1.663-.07-.067-1.735L18.541 2l.086 2.244-.822.858 1.232 1.267zM6.232 20.264L6.298 22l-1.663-.07-.066-1.735-1.662-.07-.066-1.736 2.149.09 1.752-1.83.283 2.259-.81.846.019.51h-.002zM11.25 7.417h-2v4h2v-4zM12.919 7.417h2v4h-2v-4M18.416 14.75v-5.5a6.417 6.417 0 10-12.833 0v5.5L8 15.787V18h2v-1.416h1V18h2v-1.416h1V18h2v-2.214l2.415-1.036zm-2-1.319l-2.688 1.153h-3.457L7.583 13.43v-4.18a4.417 4.417 0 018.833 0v4.18z"]},Pe={prefix:"sb",iconName:"sort",icon:[24,24,[],null,"M2 5h20v2H2V5zm3 6h14v2H5v-2zm11 6H8v2h8v-2z"]},Ae={prefix:"sb",iconName:"spanner",icon:[24,24,[],null,"M13.947 4.053a6.976 6.976 0 00-7.961-1.364l-1.27.612 5.26 5.258L9.62 9.62l-1.06.355L3.3 4.717l-.61 1.269a6.976 6.976 0 001.363 7.961c1.972 1.981 4.83 2.514 7.291 1.641l4.729 4.73a3.004 3.004 0 004.244 0 3.004 3.004 0 000-4.245l-4.729-4.729c.873-2.46.34-5.32-1.64-7.291zm-5.65 0a4.969 4.969 0 014.234 1.412l.004.004c1.536 1.528 1.858 3.817.972 5.682l-.303.637 5.699 5.7c.39.389.39 1.025 0 1.415-.39.39-1.026.39-1.416 0l-5.699-5.7-.637.304c-1.865.886-4.154.564-5.682-.972l-.004-.004a4.969 4.969 0 01-1.413-4.235l3.969 3.969L11.2 11.2l1.065-3.18-3.969-3.968z"]},Ie={prefix:"sb",iconName:"square-plus",icon:[24,24,[],null,"M19 5V19H5V5H19ZM19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3M11 11V7H13V11H17V13H13V17H11V13H7V11H11Z"]},Me={prefix:"sb",iconName:"stake-bonding",icon:[24,24,[],null,"M8.501 6.188A5.996 5.996 0 004 12c0 2.8 1.91 5.148 4.501 5.812A7.977 7.977 0 016 12c0-2.29.96-4.354 2.501-5.812zm3.49 13.558l.002.004A8.23 8.23 0 0110 20c-4.422 0-8-3.578-8-8 0-4.422 3.578-8 8-8 .688 0 1.36.092 1.992.25v.004A8.021 8.021 0 0114 4c4.42 0 8 3.58 8 8s-3.58 8-8 8a8.02 8.02 0 01-2.008-.254zM20 12c0-3.31-2.69-6-6-6s-6 2.69-6 6 2.69 6 6 6 6-2.69 6-6zm-9.707-.707l4.24-4.24 1.414 1.414L13.414 11H18v2h-4.586l2.533 2.533-1.414 1.414-4.24-4.24L9.586 12l.707-.707z"]},De={prefix:"sb",iconName:"stake-unbonding",icon:[24,24,[],null,"M8.501 6.188A5.996 5.996 0 004 12c0 2.8 1.91 5.148 4.501 5.812A7.977 7.977 0 016 12c0-2.29.96-4.354 2.501-5.812zm3.49 13.558l.002.004A8.23 8.23 0 0110 20c-4.422 0-8-3.578-8-8 0-4.422 3.578-8 8-8 .688 0 1.36.092 1.992.25v.004A8.021 8.021 0 0114 4c4.42 0 8 3.58 8 8s-3.58 8-8 8a8.02 8.02 0 01-2.008-.254zM20 12c0-3.31-2.69-6-6-6s-6 2.69-6 6 2.69 6 6 6 6-2.69 6-6zm-6.533-4.947l4.24 4.24.707.707-.707.707-4.24 4.24-1.414-1.414L14.586 13H10v-2h4.586l-2.533-2.533 1.414-1.414z"]},Re={prefix:"sb",iconName:"stake",icon:[24,24,[],null,"M13 8.586l2.533-2.533 1.414 1.414-4.24 4.24a1 1 0 01-1.414 0l-4.24-4.24 1.414-1.414L11 8.586V3h2v5.586zM6 12.5c0-.376.326-.985 1.447-1.546l-.894-1.788C5.194 9.845 4 10.976 4 12.5v4c0 1.548 1.229 2.681 2.601 3.368C8.034 20.585 9.943 21 12 21s3.966-.415 5.399-1.132C18.77 19.181 20 18.048 20 16.5v-4c0-1.524-1.194-2.655-2.553-3.334l-.894 1.788C17.674 11.515 18 12.124 18 12.5c0 .383-.336.999-1.496 1.58-1.1.55-2.69.92-4.504.92-1.813 0-3.404-.37-4.504-.92C6.336 13.498 6 12.883 6 12.5zm0 3.03v.97c0 .382.336.999 1.496 1.58 1.1.55 2.69.92 4.504.92 1.813 0 3.404-.37 4.504-.92C17.664 17.498 18 16.881 18 16.5v-.97a7.151 7.151 0 01-.601.338C15.966 16.585 14.057 17 12 17s-3.966-.415-5.399-1.132A7.15 7.15 0 016 15.531z"]},je={prefix:"sb",iconName:"staking-coins",icon:[24,24,[],null,"M20 7.5c0-1.55-1.23-2.683-2.603-3.37C15.964 3.415 14.055 3 12 3s-3.964.414-5.397 1.13C5.23 4.818 4 5.95 4 7.5v8c0 1.548 1.229 2.681 2.601 3.368C8.034 19.585 9.943 20 12 20s3.966-.415 5.399-1.132C18.77 18.181 20 17.048 20 15.5v-8zM7.497 5.92C8.598 5.37 10.19 5 12 5s3.402.37 4.503.92C17.663 6.5 18 7.116 18 7.5c0 .384-.337 1-1.497 1.58-1.101.55-2.692.92-4.503.92s-3.402-.37-4.503-.92C6.337 8.5 6 7.884 6 7.5c0-.384.337-1 1.497-1.58zM18 10.53v.969c0 .382-.336.999-1.496 1.58-1.1.55-2.69.92-4.504.92-1.813 0-3.404-.37-4.504-.92C6.336 12.498 6 11.881 6 11.5v-.969c.195.123.398.236.603.338C8.036 11.586 9.945 12 12 12s3.964-.414 5.397-1.13c.205-.103.408-.216.603-.339zm0 4v.969c0 .382-.336.999-1.496 1.58-1.1.55-2.69.92-4.504.92-1.813 0-3.404-.37-4.504-.92C6.336 16.498 6 15.881 6 15.5v-.97c.195.123.396.236.601.338C8.034 15.585 9.943 16 12 16s3.966-.415 5.399-1.132c.205-.103.406-.215.601-.337z"]},Le={prefix:"sb",iconName:"star-filled",icon:[24,24,[],null,"M12 17.754l-4.387 2.304a1 1 0 01-1.45-1.054L7 14.126l-3.547-3.454a1 1 0 01.554-1.706l4.903-.712 2.194-4.44a1 1 0 011.793 0l2.193 4.44 4.903.712a1 1 0 01.554 1.706L17 14.126l.838 4.878a1 1 0 01-1.45 1.054L12 17.754z"]},Ne={prefix:"sb",iconName:"star-remove",icon:[24,24,[],null,"M19.0711 3.51472L20.4853 4.92893L4.92893 20.4853L3.51472 19.0711L19.0711 3.51472Z M13.9042 5.85248L12.8974 3.81461C12.5304 3.07189 11.4713 3.07189 11.1043 3.81461L8.91066 8.25445L4.00784 8.96608C3.18728 9.08518 2.8598 10.0937 3.45387 10.6722L6.30675 13.45L7.72111 12.0356L6.30213 10.654L9.57826 10.1785L10.789 8.96769L12.0008 6.51505L12.4112 7.34556L13.9042 5.85248Z M9.14839 13.4368L8.47718 17.3458L12.0008 15.4954L15.5245 17.3458L14.8516 13.4269L17.6995 10.654L13.7635 10.0827L13.3465 9.23865L14.8396 7.74557L15.091 8.25445L19.9938 8.96608C20.8144 9.08518 21.1419 10.0937 20.5478 10.6722L17.0008 14.1258L17.8384 19.0037C17.9786 19.8205 17.1216 20.4436 16.3879 20.0583L12.0008 17.7544L7.61378 20.0583C6.88009 20.4436 6.02302 19.8205 6.16326 19.0037L6.69848 15.8867L9.14839 13.4368Z"]},Ue={prefix:"sb",iconName:"star-unfilled",icon:[24,24,[],null,"M7.614 20.058L12 17.754l4.387 2.304a1 1 0 001.45-1.054l-.837-4.878 3.547-3.454a1 1 0 00-.554-1.706l-4.903-.712-2.194-4.44a1 1 0 00-1.793 0l-2.193 4.44-4.903.712a1 1 0 00-.554 1.706L7 14.126l-.838 4.878a1 1 0 001.45 1.054zm7.91-2.712l-3.523-1.85-3.524 1.85.673-3.92-2.848-2.772 3.936-.571 1.763-3.568 1.763 3.568 3.936.571-2.848 2.773.672 3.919z"]},Fe={prefix:"sb",iconName:"stop",icon:[24,24,[],null,"M16.903 5.683A7.96 7.96 0 0012 4c-4.41 0-8 3.59-8 8a7.96 7.96 0 001.683 4.903l11.22-11.22zm1.414 1.414l-11.22 11.22A7.96 7.96 0 0012 20c4.41 0 8-3.59 8-8a7.96 7.96 0 00-1.683-4.903zM2 12C2 6.48 6.48 2 12 2s10 4.48 10 10-4.48 10-10 10S2 17.52 2 12z"]},Be={prefix:"sb",iconName:"support",icon:[24,24,[],null,"M7 9c0-2.758 2.242-5 5-5s5 2.242 5 5v9h-3v-2h-4v2h2v2h7v-4h3V9h-3c0-3.862-3.138-7-7-7S5 5.138 5 9H2v7h5V9zm12 2v3h1v-3h-1zM4 11v3h1v-3H4z"]},ze={prefix:"sb",iconName:"thumbs-down-filled",icon:[24,24,[],null,"M14.09 14.691c.78 1.515.866 3.02.6 4.16-.175.741-.547 1.518-1.172 1.91-.354.22-.858.347-1.374.117-.469-.21-.734-.621-.882-.984-1.133-2.772-2.577-4.108-3.393-4.772a11.453 11.453 0 00-2.236-1.408l-.033-.016-.006-.002L5 13.432v-8.33l.528-.282C9 3.093 13.01 3.093 13.95 3.093h.024c1.248 0 2.217.103 2.963.292.74.188 1.334.477 1.747.902.736.759.646 1.62.459 2.177.48.536.67 1.151.611 1.763-.034.358-.15.671-.284.928.156.183.282.384.373.601.168.403.187.802.123 1.159-.09.494-.34.9-.562 1.18.143.366.22.76.16 1.16a1.74 1.74 0 01-.819 1.224c-.369.233-.797.342-1.18.398a7.197 7.197 0 01-1.245.053c-.704-.024-1.504-.126-2.23-.239z"]},Ve={prefix:"sb",iconName:"thumbs-down",icon:[24,24,[],null,"M14.09 14.691c.78 1.515.866 3.02.6 4.16-.175.741-.547 1.518-1.172 1.91-.354.22-.858.347-1.374.117-.469-.21-.734-.621-.882-.984-1.133-2.772-2.577-4.108-3.393-4.772a11.453 11.453 0 00-2.236-1.408l-.033-.016-.006-.002L5 13.432v-8.33l.528-.282C9 3.093 13.01 3.093 13.95 3.093h.024c1.248 0 2.217.103 2.963.292.74.188 1.334.477 1.747.902.736.759.646 1.62.459 2.177.48.536.67 1.151.611 1.763-.034.358-.15.671-.284.928.156.183.282.384.373.601.168.403.187.802.123 1.159-.09.494-.34.9-.562 1.18.143.366.22.76.16 1.16a1.74 1.74 0 01-.819 1.224c-.369.233-.797.342-1.18.398a7.197 7.197 0 01-1.245.053c-.704-.024-1.504-.126-2.23-.239zM7 12.164a13.854 13.854 0 012.131 1.406c.914.744 2.394 2.13 3.626 4.755.2-.962.03-2.549-1.426-4.077a1.336 1.336 0 01-.269-.393c-.079-.181-.18-.556.036-.95.207-.38.56-.501.734-.538a1.37 1.37 0 01.465-.012h.002c.265.037.603.098.986.167.902.164 2.056.373 3.102.409.352.012.654 0 .893-.034a1.87 1.87 0 00.268-.056 1.574 1.574 0 00-.067-.152c-.311-.601-.14-1.292.247-1.71l.005-.005c.069-.074.135-.156.187-.24a.554.554 0 00.078-.177c.004-.02.002-.024 0-.03l-.001-.001c-.005-.012-.04-.088-.193-.207a1.33 1.33 0 01-.524-.906 1.35 1.35 0 01.287-.988l.004-.005c.118-.15.183-.291.193-.386a.18.18 0 00-.015-.097.719.719 0 00-.208-.246l-.006-.006a1.435 1.435 0 01-.331-1.755c.112-.218.06-.243.047-.25h-.002c-.062-.064-.265-.22-.802-.356-.531-.134-1.322-.231-2.473-.231-.88 0-4.287.014-6.974 1.23v5.841z"]},$e={prefix:"sb",iconName:"thumbs-up-filled",icon:[24,24,[],null,"M13.899 1h-2.034v3H13.9V1zm-6.46 1.732L6 4.146l2.157 2.122 1.438-1.414-2.157-2.122zm10.887 0l1.438 1.414-2.157 2.122-1.438-1.414 2.157-2.122zm-3.637 4.51c.267 1.14.181 2.644-.598 4.16.725-.114 1.525-.215 2.229-.239a7.188 7.188 0 011.244.053c.384.055.812.164 1.181.397.4.253.734.66.82 1.225.06.4-.018.794-.161 1.16.221.28.472.686.562 1.18.064.356.045.756-.123 1.158-.09.218-.217.418-.373.602.134.256.25.57.284.927.06.613-.13 1.227-.611 1.764.187.557.277 1.418-.46 2.177-.412.425-1.005.714-1.746.901-.746.19-1.715.293-2.963.293h-.024c-.94 0-4.95 0-8.422-1.727L5 20.99v-8.33l.594-.263.006-.003.033-.015a11.23 11.23 0 00.664-.346A11.472 11.472 0 007.87 10.97c.816-.664 2.26-2 3.393-4.772.148-.363.413-.775.882-.984.516-.23 1.02-.104 1.374.117.625.391.997 1.168 1.171 1.91z"]},He={prefix:"sb",iconName:"thumbs-up",icon:[24,24,[],null,"M13.899 1h-2.034v3H13.9V1zm-6.46 1.732L6 4.146l2.157 2.122 1.438-1.414-2.157-2.122zm10.887 0l1.438 1.414-2.157 2.122-1.438-1.414 2.157-2.122zm-3.637 4.51c.267 1.14.181 2.644-.598 4.16.725-.114 1.525-.215 2.229-.239a7.188 7.188 0 011.244.053c.384.055.812.164 1.181.397.4.253.734.66.82 1.225.06.4-.018.794-.161 1.16.221.28.472.686.562 1.18.064.356.045.756-.123 1.158-.09.218-.217.418-.373.602.134.256.25.57.284.927.06.613-.13 1.227-.611 1.764.187.557.277 1.418-.46 2.177-.412.425-1.005.714-1.746.901-.746.19-1.715.293-2.963.293h-.024c-.94 0-4.95 0-8.422-1.727L5 20.99v-8.33l.594-.263.006-.003.033-.015a11.23 11.23 0 00.664-.346A11.472 11.472 0 007.87 10.97c.816-.664 2.26-2 3.393-4.772.148-.363.413-.775.882-.984.516-.23 1.02-.104 1.374.117.625.391.997 1.168 1.171 1.91zM7.28 13.774c-.1.057-.194.109-.28.155v5.841C9.687 20.986 13.093 21 13.974 21c1.151 0 1.942-.097 2.473-.232.537-.136.74-.292.802-.355l.002-.001c.012-.006.065-.032-.047-.25a1.435 1.435 0 01.33-1.755l.007-.005a.72.72 0 00.207-.247.18.18 0 00.016-.096c-.01-.095-.075-.237-.193-.387l-.004-.005a1.35 1.35 0 01-.287-.988c.045-.385.253-.699.524-.906.154-.119.188-.194.193-.206v-.002c.003-.005.005-.009 0-.029a.554.554 0 00-.077-.178 1.55 1.55 0 00-.187-.24l-.005-.004c-.387-.418-.558-1.11-.247-1.71.03-.061.052-.112.067-.152a1.853 1.853 0 00-.268-.056 5.241 5.241 0 00-.893-.034c-1.046.035-2.2.244-3.102.408-.383.07-.721.131-.986.167h-.002c-.112.016-.279.027-.465-.012a1.084 1.084 0 01-.734-.538 1.077 1.077 0 01-.036-.949c.078-.18.19-.311.27-.393 1.456-1.529 1.626-3.115 1.425-4.078-1.232 2.626-2.712 4.012-3.626 4.755-.671.546-1.347.968-1.85 1.252z"]},qe={prefix:"sb",iconName:"thunder",icon:[24,24,[],null,"M15.55 4l-2.29 4.01L11.55 11h3.35l-5.73 5.32.79-3.93.48-2.39H6.95l2.4-6h6.2zM19 2H8L4 12h4L6 22 20 9h-5l4-7z"]},Qe={prefix:"sb",iconName:"timer",icon:[24,24,[],null,"M17.66 6.34A7.949 7.949 0 0012 4c-2.14 0-4.15.83-5.66 2.35-3.12 3.12-3.12 8.19 0 11.31A7.949 7.949 0 0012 20c2.14 0 4.15-.83 5.66-2.35 3.12-3.12 3.12-8.19 0-11.31zM4.93 4.93A9.973 9.973 0 0112 2c2.56 0 5.12.98 7.07 2.93 3.91 3.9 3.91 10.23 0 14.14A9.973 9.973 0 0112 22c-2.56 0-5.12-.98-7.07-2.93-3.91-3.9-3.91-10.23 0-14.14zm2.123 3.537l4.24 4.24 1.415-1.414-4.24-4.24-1.415 1.414z"]},We={prefix:"sb",iconName:"trade",icon:[24,24,[],null,"M10.5 5L12 6.5 6.5 12H11v2H3V6h2v4.5L10.5 5zM21 10v8h-2v-4.5L13.5 19 12 17.5l5.5-5.5H13v-2h8z"]},Ge={prefix:"sb",iconName:"transfer",icon:[24,24,[],null,"M8.293 12.707l-4-4a1 1 0 010-1.414l4-4 1.414 1.414L7.414 7H16v2H7.414l2.293 2.293-1.414 1.414zm11.414 2.586l-4-4-1.414 1.414L16.586 15H8v2h8.586l-2.293 2.293 1.414 1.414 4-4a1 1 0 000-1.414z"]},Ye={prefix:"sb",iconName:"trash",icon:[24,24,[],null,"M11 10v8H9v-8h2zm4 8h-2v-8h2v8M16 6a4 4 0 00-8 0H4v2h1v12c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V8h1V6h-4zm-4-2a2 2 0 012 2h-4a2 2 0 012-2zm5 4v12H7V8h10z"]},Ke={prefix:"sb",iconName:"type-input",icon:[24,24,[],null,"M18 4h-6v2h2v12h-2v2h6v-2h-2V6h2V4zM4 8h8v2H4v4h8v2H4a2 2 0 01-2-2v-4a2 2 0 012-2zM20 14h-2v2h2a2 2 0 002-2v-4a2 2 0 00-2-2h-2v2h2v4z"]},Ze={prefix:"sb",iconName:"unlock",icon:[24,24,[],null,"M12 3C8.705 3 6 5.629 6 8.907h2C8 6.768 9.775 5 12 5s4 1.768 4 3.907V12H6c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-6a2 2 0 00-2-2V8.907C18 5.63 15.295 3 12 3zM7 14H6v6h12v-6H7z"]},Xe={prefix:"sb",iconName:"unstake",icon:[24,24,[],null,"M11.293 3.293a1 1 0 011.414 0l4.24 4.24-1.414 1.414L13 6.414V12h-2V6.414L8.467 8.947 7.053 7.533l4.24-4.24zM6 12.5c0-.376.326-.985 1.447-1.546l-.894-1.788C5.194 9.845 4 10.976 4 12.5v4c0 1.548 1.229 2.681 2.601 3.368C8.034 20.585 9.943 21 12 21s3.966-.415 5.399-1.132C18.77 19.181 20 18.048 20 16.5v-4c0-1.524-1.194-2.655-2.553-3.334l-.894 1.788C17.674 11.515 18 12.124 18 12.5c0 .382-.336.999-1.496 1.58-1.1.55-2.69.92-4.504.92-1.813 0-3.404-.37-4.504-.92C6.336 13.498 6 12.881 6 12.5zm0 3.03v.97c0 .382.336.999 1.496 1.58 1.1.55 2.69.92 4.504.92 1.813 0 3.404-.37 4.504-.92C17.664 17.498 18 16.881 18 16.5v-.97a7.151 7.151 0 01-.601.338C15.966 16.585 14.057 17 12 17s-3.966-.415-5.399-1.132A7.15 7.15 0 016 15.531z"]},Je={prefix:"sb",iconName:"user-full",icon:[24,24,[],null,"M12 12a5 5 0 100-10 5 5 0 000 10zm8.928 7.628L20 20l.928-.371A1 1 0 0120 21H4a1 1 0 01-.928-1.371L4 20a90.042 90.042 0 01-.928-.372v-.002l.001-.002.003-.007.008-.018a3.715 3.715 0 01.114-.25c.078-.161.193-.383.35-.645.315-.523.8-1.217 1.495-1.911C6.444 15.39 8.688 14 12 14s5.556 1.391 6.957 2.793a9.995 9.995 0 011.494 1.911 8.36 8.36 0 01.44.837c.01.024.02.043.025.058l.008.018.003.007.001.004zm-16.001.747l.001-.003v.002l-.001.001z"]},tn={prefix:"sb",iconName:"user-group",icon:[24,24,[],null,"M9.54 2c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.23-5-5-5zm0 2c1.65 0 3 1.35 3 3s-1.35 3-3 3-3-1.35-3-3 1.35-3 3-3M16.54 7c0-1.91-.76-3.64-2-4.9a5 5 0 010 9.8c1.23-1.26 2-2.99 2-4.9M9.55 14c3.48 0 5.64 2.17 7.4 5.46.37.68-.05 1.54-.76 1.54H2.91c-.68 0-1.14-.83-.79-1.48C3.88 16.2 6.05 14 9.55 14zm.01 2c-1.95 0-3.41.89-4.81 3h9.61c-1.4-2.11-2.86-3-4.8-3M18.91 21h1.27c.72 0 1.13-.86.77-1.54-1.4-2.61-3.04-4.51-5.4-5.19 1.43 1.27 2.42 2.87 3.16 4.24.42.77.48 1.68.2 2.49z"]},en={prefix:"sb",iconName:"user",icon:[24,24,[],null,"M17 8A5 5 0 117 8a5 5 0 0110 0zm-2 0a3 3 0 10-6 0 3 3 0 006 0zM20.98 19.802v.002A1 1 0 0120 21H4a1 1 0 01-.98-1.196v-.006l.002-.008.005-.022.015-.064a6.184 6.184 0 01.306-.883 7.373 7.373 0 011.284-1.99C5.955 15.361 8.23 14 12 14c3.77 0 6.045 1.36 7.368 2.831a7.373 7.373 0 011.284 1.99 6.173 6.173 0 01.306.883l.015.064.005.022.001.008.001.005zM6.118 18.17a5.46 5.46 0 00-.616.831h12.996a5.457 5.457 0 00-.616-.831C16.955 17.139 15.23 16 12 16c-3.23 0-4.955 1.14-5.882 2.169z"]},nn={prefix:"sb",iconName:"view-hide",icon:[24,24,[],null,"M19.071 3.515l1.414 1.414L4.93 20.485l-1.414-1.414 2.856-2.857 1.453-1.453 1.468-1.467v-.001l4.001-4 .937-.937L15.785 6.8l3.286-3.285zm-7.784 7.784a.69.69 0 01.012-.012l-.012.012zm-.374 4.616A7.05 7.05 0 0012 16c3.39 0 6.12-2.5 7.45-4a14.896 14.896 0 00-2.42-2.202l1.431-1.432C20.696 10.045 22 12 22 12s-4 6-10 6a9.327 9.327 0 01-2.75-.422l1.663-1.663zM12 6c.972 0 1.891.157 2.75.421l-1.664 1.664A7.048 7.048 0 0012 8c-3.39 0-6.11 2.49-7.45 4 .57.642 1.395 1.467 2.42 2.201l-1.432 1.432C3.303 13.955 2 12 2 12s4-6 10-6zm0 9a3.11 3.11 0 01-.168-.005l3.163-3.163A3 3 0 0112 15zm.166-5.995a3 3 0 00-3.162 3.162l3.162-3.162z"]},rn={prefix:"sb",iconName:"view",icon:[24,24,[],null,"M19.45 12c-1.33-1.5-4.06-4-7.45-4-3.39 0-6.11 2.5-7.45 4 1.33 1.5 4.06 4 7.45 4 3.39 0 6.12-2.5 7.45-4zM2 12s4-6 10-6 10 6 10 6-4 6-10 6-10-6-10-6zm9 0a1 1 0 112 0 1 1 0 01-2 0zm1-3a3 3 0 100 6 3 3 0 000-6z"]},sn={prefix:"sb",iconName:"wallet",icon:[24,24,[],null,"M18 14a1 1 0 100-2 1 1 0 000 2M4 3a2 2 0 00-2 2v13c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2V5a2 2 0 00-2-2H4zm14 3H4V5h14v1M4 8h16v1h-4c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h4v1H4V8zm12 7v-4h4v4h-4z"]},on={prefix:"sb",iconName:"warning",icon:[24,24,[],null,"M13.06 4.66c-.3-.6-.84-.66-1.06-.66-.22 0-.76.06-1.06.66L4.13 18.29c-.27.54-.05.99.05 1.16.11.17.41.56 1.01.56h13.62c.6 0 .91-.39 1.01-.56.1-.17.32-.63.05-1.16L13.06 4.66zm-3.91-.9A3.16 3.16 0 0112 2c1.13 0 2.26.59 2.85 1.76l6.81 13.63c1.06 2.12-.48 4.61-2.85 4.61H5.19c-2.37 0-3.91-2.49-2.85-4.61L9.15 3.76zM11 14V8h2v6h-2zm0 4v-2h2v2h-2z"]},an={prefix:"sb",iconName:"withdraw",icon:[24,24,[],null,"M12.707 4.293a1 1 0 00-1.414 0l-5 5 1.414 1.414L11 7.414V16h2V7.414l3.293 3.293 1.414-1.414-5-5zM17.711 20h-12v-2h12v2z"]},cn={prefix:"sb",iconName:"workspace",icon:[24,24,[],null,"M5.333 4C4.597 4 4 4.597 4 5.333v13.334C4 19.403 4.597 20 5.333 20h4c.737 0 1.334-.597 1.334-1.333V5.333C10.667 4.597 10.07 4 9.333 4h-4zM13.333 5.333c0-.736.597-1.333 1.334-1.333h4C19.403 4 20 4.597 20 5.333v4c0 .737-.597 1.334-1.333 1.334h-4a1.333 1.333 0 01-1.334-1.334v-4zM14.667 13.333c-.737 0-1.334.597-1.334 1.334v4c0 .736.597 1.333 1.334 1.333h4c.736 0 1.333-.597 1.333-1.333v-4c0-.737-.597-1.334-1.333-1.334h-4z"]};n("5OT+"),n("2Xgx");var ln=n("LBlH"),un=(n("aaFr"),n("ROO/"),n("icqo")),hn=(n("2yS1"),n("hvMX"),n("bW1x"),n("MqcE"),n("bvVZ"),n("TADc"),n("kZht")),dn=n("An66"),pn=n("NxuZ"),fn=n("ZtZA"),bn=n("aDqW"),gn=n("og7C");n("Cc4E"),n("B6Vo"),n("TNp2");const mn=[dn.c,fn.g,pn.d,bn.c],vn=[];let _n=(()=>{class t{constructor(t,e,n){if(e.defaultPrefix="sb",t.addIconPacks(i),null!=n&&"prod"!==n){const t=Object(gn.f)();for(const e of Object.values(i))t.has(e.iconName)&&console.error("duplicate icon named "+e.iconName),"sb"!==e.prefix&&console.error(`icon ${e.iconName} is not prefixed correctly`)}}}return t.\u0275mod=hn.Mb({type:t}),t.\u0275inj=hn.Lb({factory:function(e){return new(e||t)(hn.Yb(pn.c),hn.Yb(pn.a),hn.Yb("env",8))},providers:[un.a],imports:[[...mn,...vn]]}),t})();const yn=i},Efrr:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("EWqr");const r=new(n("DG/E").a)(i.a)},EmXI:function(t,e,n){"use strict";n.d(e,"a",(function(){return Z})),n.d(e,"b",(function(){return N})),n.d(e,"c",(function(){return X})),n.d(e,"d",(function(){return F})),n.d(e,"e",(function(){return J})),n.d(e,"f",(function(){return z})),n.d(e,"g",(function(){return H})),n.d(e,"h",(function(){return Q}));var i=n("s2U3"),r=n("An66"),s=n("kZht"),o=n("pTnX"),a=n("vE5V"),c=n("5XID"),l=n("ZTXN"),u=n("g6G6"),h=n("KTx3"),d=n("jIqt"),p=n("kuMc"),f=n("J+dc"),b=n("+6xv"),g=n("O1jd"),m=n("FxgA");const v=["underline"],_=["connectionContainer"],y=["inputContainer"],O=["label"];function C(t,e){1&t&&(s.Sb(0),s.Ub(1,"div",14),s.Pb(2,"div",15),s.Pb(3,"div",16),s.Pb(4,"div",17),s.Tb(),s.Ub(5,"div",18),s.Pb(6,"div",15),s.Pb(7,"div",16),s.Pb(8,"div",17),s.Tb(),s.Rb())}function w(t,e){1&t&&(s.Ub(0,"div",19),s.kc(1,1),s.Tb())}function T(t,e){if(1&t&&(s.Sb(0),s.kc(1,2),s.Ub(2,"span"),s.Qc(3),s.Tb(),s.Rb()),2&t){const t=s.fc(2);s.Cb(3),s.Rc(t._control.placeholder)}}function S(t,e){1&t&&s.kc(0,3,["*ngSwitchCase","true"])}function k(t,e){1&t&&(s.Ub(0,"span",23),s.Qc(1," *"),s.Tb())}function E(t,e){if(1&t){const t=s.Vb();s.Ub(0,"label",20,21),s.bc("cdkObserveContent",(function(){return s.Ec(t),s.fc().updateOutlineGap()})),s.Oc(2,T,4,1,"ng-container",12),s.Oc(3,S,1,0,"ng-content",12),s.Oc(4,k,2,0,"span",22),s.Tb()}if(2&t){const t=s.fc();s.Gb("mat-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-form-field-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-accent","accent"==t.color)("mat-warn","warn"==t.color),s.mc("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),s.Db("for",t._control.id)("aria-owns",t._control.id),s.Cb(2),s.mc("ngSwitchCase",!1),s.Cb(1),s.mc("ngSwitchCase",!0),s.Cb(1),s.mc("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function x(t,e){1&t&&(s.Ub(0,"div",24),s.kc(1,4),s.Tb())}function P(t,e){if(1&t&&(s.Ub(0,"div",25,26),s.Pb(2,"span",27),s.Tb()),2&t){const t=s.fc();s.Cb(2),s.Gb("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function A(t,e){if(1&t&&(s.Ub(0,"div"),s.kc(1,5),s.Tb()),2&t){const t=s.fc();s.mc("@transitionMessages",t._subscriptAnimationState)}}function I(t,e){if(1&t&&(s.Ub(0,"div",31),s.Qc(1),s.Tb()),2&t){const t=s.fc(2);s.mc("id",t._hintLabelId),s.Cb(1),s.Rc(t.hintLabel)}}function M(t,e){if(1&t&&(s.Ub(0,"div",28),s.Oc(1,I,2,2,"div",29),s.kc(2,6),s.Pb(3,"div",30),s.kc(4,7),s.Tb()),2&t){const t=s.fc();s.mc("@transitionMessages",t._subscriptAnimationState),s.Cb(1),s.mc("ngIf",t.hintLabel)}}const D=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],R=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let j=0;const L=new s.s("MatError");let N=(()=>{class t{constructor(){this.id="mat-error-"+j++}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Jb({type:t,selectors:[["mat-error"]],hostAttrs:["role","alert",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&s.Db("id",e.id)},inputs:{id:"id"},features:[s.Bb([{provide:L,useExisting:t}])]}),t})();const U={transitionMessages:Object(b.n)("transitionMessages",[Object(b.k)("enter",Object(b.l)({opacity:1,transform:"translateY(0%)"})),Object(b.m)("void => enter",[Object(b.l)({opacity:0,transform:"translateY(-100%)"}),Object(b.e)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let F=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Jb({type:t}),t})();const B=new s.s("MatHint");let z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Jb({type:t,selectors:[["mat-label"]]}),t})(),V=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Jb({type:t,selectors:[["mat-placeholder"]]}),t})();const $=new s.s("MatPrefix");let H=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Jb({type:t,selectors:[["","matPrefix",""]],features:[s.Bb([{provide:$,useExisting:t}])]}),t})();const q=new s.s("MatSuffix");let Q=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Jb({type:t,selectors:[["","matSuffix",""]],features:[s.Bb([{provide:q,useExisting:t}])]}),t})(),W=0;class G{constructor(t){this._elementRef=t}}const Y=Object(o.w)(G,"primary"),K=new s.s("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Z=new s.s("MatFormField");let X=(()=>{class t extends Y{constructor(t,e,n,i,r,s,o,a){super(t),this._elementRef=t,this._changeDetectorRef=e,this._dir=i,this._defaults=r,this._platform=s,this._ngZone=o,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new l.b,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+W++,this._labelId="mat-form-field-label-"+W++,this._labelOptions=n||{},this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=r&&r.appearance?r.appearance:"legacy",this._hideRequiredMarker=!(!r||null==r.hideRequiredMarker)&&r.hideRequiredMarker}get appearance(){return this._appearance}set appearance(t){const e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=Object(c.c)(t)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(t){this._explicitFormFieldControl=t}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-"+t.controlType),t.stateChanges.pipe(Object(d.a)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(Object(p.a)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Object(p.a)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),Object(u.a)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Object(d.a)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Object(d.a)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Object(p.a)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(t){const e=this._control?this._control.ngControl:null;return e&&e[t]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Object(h.a)(this._label.nativeElement,"transitionend").pipe(Object(f.a)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||this._labelOptions.float||"auto"}_syncDescribedByIds(){if(this._control){let t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const e=this._hintChildren?this._hintChildren.find(t=>"start"===t.align):null,n=this._hintChildren?this._hintChildren.find(t=>"end"===t.align):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),n&&t.push(n.id)}else this._errorChildren&&t.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(t)}}_validateControlChild(){}updateOutlineGap(){const t=this._label?this._label.nativeElement:null;if("outline"!==this.appearance||!t||!t.children.length||!t.textContent.trim())return;if(!this._platform.isBrowser)return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let e=0,n=0;const i=this._connectionContainerRef.nativeElement,r=i.querySelectorAll(".mat-form-field-outline-start"),s=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const r=i.getBoundingClientRect();if(0===r.width&&0===r.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const s=this._getStartEnd(r),o=t.children,a=this._getStartEnd(o[0].getBoundingClientRect());let c=0;for(let t=0;t0?.75*c+10:0}for(let o=0;o{class t{}return t.\u0275mod=s.Mb({type:t}),t.\u0275inj=s.Lb({factory:function(e){return new(e||t)},imports:[[r.c,o.j,i.c],o.j]}),t})()},EnH0:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("oggm"),r=n("4Pxi"),s=n("oznm");e.default=function(){function t(){}return t.prototype.encode=function(t,e,n,o,a){var c;switch(e){case r.default.QR_CODE:c=new i.default;break;default:throw new s.default("No encoder available for format "+e)}return c.encode(t,e,n,o,a)},t}()},Eo3p:function(t,e,n){"use strict";n.d(e,"a",(function(){return E}));var i=n("kZht"),r=n("1etq"),s=n("yPvj"),o=n("anSm"),a=n("NxuZ"),c=n("WYJo"),l=n("1o0v"),u=n("oiza"),h=n("+I9z"),d=n("chaP"),p=n("An66"),f=n("scAs"),b=n("B6Vo"),g=n("zho4"),m=n("CfRh"),v=n("IkSM"),_=n("rUBT"),y=n("aDqW"),O=n("rqGg"),C=n("DpwM");function w(t,e){if(1&t&&(i.Sb(0),i.Ub(1,"span"),i.Ub(2,"span",19),i.Qc(3),i.gc(4,"sato"),i.Tb(),i.Ub(5,"span",12),i.Qc(6),i.gc(7,"quote"),i.Tb(),i.Tb(),i.Rb()),2&t){const t=i.fc();i.Cb(3),i.Rc(i.ic(4,2,t.position.liquidation_threshold,t.position)),i.Cb(3),i.Sc(" ",i.hc(7,5,t.position.instrument),"")}}const T=function(){return[250,100]};function S(t,e){1&t&&(i.Ub(0,"span",20),i.Qc(1,"N/A"),i.Tb()),2&t&&i.mc("sbDelay",i.qc(1,T))}const k=function(t,e){return{"global__text--accent":t,"global__text--warn":e}};let E=(()=>{class t{constructor(){this.selectTicker=new i.o,this.marketClose=new i.o,this.limitClose=new i.o,this.viewDetailed=new i.o}get direction(){return this.position.balance>0?"BUTTON.LONG":"BUTTON.SHORT"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["open-positions-mobile"]],inputs:{position:"position"},outputs:{selectTicker:"selectTicker",marketClose:"marketClose",limitClose:"limitClose",viewDetailed:"viewDetailed"},decls:72,vars:86,consts:[[1,"card",3,"click"],[1,"row"],["subheading",""],[3,"pair"],["body","",1,"buttons"],["icon","file","size","2x",1,"info-button",3,"click"],["icon","close-position","primary","","size","2x",1,"limit-button",3,"matTooltip","click"],["icon","circle-minus","primary","","size","2x",1,"market-button",3,"matTooltip","click"],[1,"block-cell"],["body","","ghost","","uppercase",""],["body",""],[3,"content"],["ghost",""],["body","","mono",""],["body","",1,"row"],[3,"ngClass"],["body","","bold","","ghost","","uppercase","","sbTooltip","TOOLTIP.LIQ_PRICE",3,"sbDelay"],[4,"ngIf","ngIfElse"],["naLiq",""],["mono",""],["tooltip","","sbTooltip","TOOLTIP.NA_LIQ_PRICE",3,"sbDelay"]],template:function(t,e){if(1&t&&(i.Ub(0,"div",0),i.bc("click",(function(){return e.selectTicker.emit({symbol:e.position.instrument,replaceUrl:!1})})),i.Ub(1,"div",1),i.Ub(2,"div",2),i.Pb(3,"market-icon",3),i.gc(4,"pair"),i.Qc(5),i.gc(6,"uppercase"),i.gc(7,"contractFamily"),i.gc(8,"pair"),i.gc(9,"translate"),i.gc(10,"maturityMonth"),i.Tb(),i.Ub(11,"div",4),i.Ub(12,"fa-icon",5),i.bc("click",(function(t){return e.viewDetailed.emit({position:e.position}),t.stopPropagation()})),i.Tb(),i.Ub(13,"fa-icon",6),i.bc("click",(function(t){return e.limitClose.emit({position:e.position}),t.stopPropagation()})),i.gc(14,"translate"),i.Tb(),i.Ub(15,"fa-icon",7),i.bc("click",(function(t){return e.marketClose.emit({position:e.position}),t.stopPropagation()})),i.gc(16,"translate"),i.Tb(),i.Tb(),i.Tb(),i.Ub(17,"div",1),i.Ub(18,"div",8),i.Ub(19,"span",9),i.Qc(20),i.gc(21,"translate"),i.Tb(),i.Ub(22,"span",10),i.Ub(23,"span"),i.Ub(24,"span"),i.Qc(25),i.gc(26,"translate"),i.Tb(),i.Pb(27,"ghost-trail",11),i.Tb(),i.Ub(28,"span",12),i.Qc(29),i.gc(30,"asset"),i.Tb(),i.Tb(),i.Tb(),i.Ub(31,"div",8),i.Ub(32,"span",9),i.Qc(33),i.gc(34,"translate"),i.gc(35,"translate"),i.Tb(),i.Ub(36,"span"),i.Ub(37,"span",13),i.Qc(38),i.gc(39,"sato"),i.Ub(40,"span",12),i.Qc(41),i.gc(42,"quote"),i.Tb(),i.Tb(),i.Ub(43,"span",13),i.Qc(44),i.gc(45,"sato"),i.Ub(46,"span",12),i.Qc(47),i.gc(48,"quote"),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(49,"div",14),i.Ub(50,"div",8),i.Ub(51,"span",9),i.Qc(52),i.gc(53,"translate"),i.gc(54,"translate"),i.Tb(),i.Ub(55,"span",10),i.Qc(56),i.gc(57,"sato"),i.Ub(58,"span",12),i.Qc(59),i.gc(60,"asset"),i.Tb(),i.Ub(61,"span",15),i.Qc(62),i.gc(63,"percent"),i.Tb(),i.Tb(),i.Tb(),i.Ub(64,"div",8),i.Ub(65,"span",16),i.Qc(66),i.gc(67,"translate"),i.Pb(68,"liq-price-faq"),i.Tb(),i.Oc(69,w,8,7,"ng-container",17),i.Oc(70,S,2,2,"ng-template",null,18,i.Pc),i.Tb(),i.Tb(),i.Tb()),2&t){const t=i.Ac(71);i.Cb(3),i.mc("pair",i.hc(4,30,e.position.instrument)),i.Cb(2),i.Uc(" ",i.hc(6,32,i.hc(7,34,e.position.instrument))," ",i.hc(8,36,e.position.instrument)," ",i.hc(9,38,i.ic(10,40,e.position.instrument,"short")),". "),i.Cb(8),i.mc("matTooltip",i.hc(14,43,"DIALOG.CONFIRM_CLOSE_AT_PRICE.TITLE")),i.Cb(2),i.mc("matTooltip",i.hc(16,45,"DIALOG.CONFIRM_CLOSE_POSITION.TITLE")),i.Cb(5),i.Sc(" ",i.hc(21,47,"COLUMN.SIZE")," "),i.Cb(4),i.Gb("global__text--accent",e.position.balance>0)("global__text--warn",e.position.balance<0),i.Cb(1),i.Sc(" ",i.hc(26,49,e.position.balance>0?"BUTTON.LONG":"BUTTON.SHORT")," "),i.Cb(2),i.nc("content",e.position.displaySize),i.Cb(2),i.Rc(i.hc(30,51,e.position.tradingDisplayAsset)),i.Cb(4),i.Tc(" ",i.hc(34,53,"COLUMN.ENTRY")," / ",i.hc(35,55,"COLUMN.MARK_PRICE")," "),i.Cb(5),i.Sc(" ",i.ic(39,57,e.position.entry_price,e.position)," "),i.Cb(3),i.Rc(i.hc(42,60,e.position.instrument)),i.Cb(3),i.Sc(" ",i.ic(45,62,e.position.mark_price,e.position)," "),i.Cb(3),i.Rc(i.hc(48,65,e.position.instrument)),i.Cb(5),i.Tc(" ",i.hc(53,67,"COLUMN.PROFIT_LOSS")," / ",i.hc(54,69,"COLUMN.ROE")," "),i.Cb(4),i.Sc(" ",i.jc(57,71,e.position.pnl,e.position.walletDisplayAsset,"full")," "),i.Cb(3),i.Rc(i.hc(60,75,e.position.walletDisplayAsset)),i.Cb(2),i.mc("ngClass",i.sc(82,k,100*e.position.return_on_equity>0,100*e.position.return_on_equity<0)),i.Cb(1),i.Sc(" (",i.ic(63,77,e.position.return_on_equity,"1.2-2"),") "),i.Cb(3),i.mc("sbDelay",i.qc(85,T)),i.Cb(1),i.Sc(" ",i.hc(67,80,"COLUMN.EST_LIQ_PRICE")," "),i.Cb(3),i.mc("ngIf",e.position.liquidation_threshold>0)("ngIfElse",t)}},directives:[r.a,s.a,o.a,a.b,c.a,l.a,u.a,h.a,d.a,p.l,f.a,b.a,g.a,m.a,p.n,v.a],pipes:[_.e,p.x,_.c,y.d,_.d,O.a,C.c,_.f,p.u],styles:["market-icon[_ngcontent-%COMP%]{font-size:20px}[_nghost-%COMP%]{display:block;border-bottom:1px solid var(--border-colour);margin-bottom:var(--spacing);padding-bottom:var(--spacing)}market-icon[_ngcontent-%COMP%]{margin-right:var(--spacing-s);vertical-align:middle}.row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding:0 var(--spacing-s)}.row[_ngcontent-%COMP%] + .row[_ngcontent-%COMP%]{margin-top:var(--spacing)}.buttons[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{cursor:pointer}.buttons[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]:not(:last-of-type){margin-right:var(--spacing)}.buttons[_ngcontent-%COMP%] .copy-button[_ngcontent-%COMP%], .buttons[_ngcontent-%COMP%] .edit-button[_ngcontent-%COMP%], .buttons[_ngcontent-%COMP%] .info-button[_ngcontent-%COMP%], .buttons[_ngcontent-%COMP%] .limit-button[_ngcontent-%COMP%], .buttons[_ngcontent-%COMP%] .market-button[_ngcontent-%COMP%]{color:var(--brand)}.buttons[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%]{color:var(--warn-colour)}.type-cell[_ngcontent-%COMP%]{display:flex;align-items:center;flex:0.5}.direction-cell[_ngcontent-%COMP%], .size-cell[_ngcontent-%COMP%]{display:flex;align-items:center;flex:0.25}.price-cell[_ngcontent-%COMP%]{display:flex;flex-direction:column;text-align:right;flex:0.5}.price-cell[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:first-of-type{margin-bottom:var(--spacing-s)}.progress-cell[_ngcontent-%COMP%]{text-align:right;flex:0.75}.progress-cell[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:first-of-type{margin-bottom:var(--spacing-s)}.block-cell[_ngcontent-%COMP%]:nth-of-type(2n) > span[_ngcontent-%COMP%]{text-align:right}.block-cell[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:block}.block-cell[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]:first-of-type{margin-bottom:var(--spacing-s)}"],changeDetection:0}),t})()},Eu46:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("kZht");class r{constructor(){this.$implicit=null,this.ngLet=null}}let s=(()=>{class t{constructor(t,e){this.vcr=t,this.templateRef=e,this.context=new r}set ngLet(t){this.context.$implicit=this.context.ngLet=t}ngOnInit(){this.vcr.createEmbeddedView(this.templateRef,this.context)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.R),i.Ob(i.N))},t.\u0275dir=i.Jb({type:t,selectors:[["","ngLet",""]],inputs:{ngLet:"ngLet"}}),t})()},EzKQ:function(t,e,n){"use strict";n.d(e,"a",(function(){return S}));var i=n("D57K"),r=n("gxtV"),s=n("zqNl"),o=n("xVbo"),a=n("bjK4"),c=n("0tVE"),l=n("rxqU"),u=n("kZht"),h=n("LBlH"),d=n("y1fC"),p=n("pPqe"),f=n("w2Kr"),b=n("1etq"),g=n("aDqW");const m=["tourStep"];function v(t,e){if(1&t){const t=u.Vb();u.Ub(0,"tour-step",6),u.bc("dispose",(function(){return u.Ec(t),u.fc().disposePopper(1)})),u.Ub(1,"p",7),u.Qc(2,"TOUR.TRADING.ORDERBOOK.1"),u.Tb(),u.Pb(3,"br"),u.Ub(4,"p",7),u.Qc(5,"TOUR.TRADING.ORDERBOOK.2"),u.Tb(),u.Tb()}2&t&&u.mc("image","orderbook")("title","HEADING.ORDERBOOK")("nextRouteTo","/futures")("videoUrl","https://www.youtube.com/watch?v=wBJffX1LAiY")("minHeight","300px")}function _(t,e){if(1&t){const t=u.Vb();u.Ub(0,"tour-step",8),u.bc("dispose",(function(){return u.Ec(t),u.fc().disposePopper(2)})),u.Ub(1,"p",7),u.Qc(2,"TOUR.TRADING.HISTORY.1"),u.Tb(),u.Tb()}2&t&&u.mc("image","history")("title","HEADING.TRADE_HISTORY")("minHeight","300px")}function y(t,e){if(1&t){const t=u.Vb();u.Ub(0,"tour-step",8),u.bc("dispose",(function(){return u.Ec(t),u.fc().disposePopper(3)})),u.Ub(1,"p",7),u.Qc(2,"TOUR.TRADING.CHART.1"),u.Tb(),u.Pb(3,"br"),u.Ub(4,"p",7),u.Qc(5,"TOUR.TRADING.CHART.2"),u.Tb(),u.Tb()}2&t&&u.mc("image","chart")("title","HEADING.MARKET_CHART")("minHeight","300px")}function O(t,e){if(1&t){const t=u.Vb();u.Ub(0,"tour-step",8),u.bc("dispose",(function(){return u.Ec(t),u.fc().disposePopper(4)})),u.Ub(1,"p",7),u.Qc(2,"TOUR.TRADING.ORDER_FORM.1"),u.Tb(),u.Pb(3,"br"),u.Ub(4,"p",7),u.Qc(5,"TOUR.TRADING.ORDER_FORM.2"),u.Tb(),u.Tb()}2&t&&u.mc("image","form")("title","HEADING.ORDER_FORM")("minHeight","300px")}function C(t,e){if(1&t){const t=u.Vb();u.Ub(0,"tour-step",9),u.bc("dispose",(function(){return u.Ec(t),u.fc().disposePopper(5)})),u.Ub(1,"p",7),u.Qc(2,"TOUR.TRADING.MARKET_ORDER.1"),u.Tb(),u.Pb(3,"br"),u.Ub(4,"p",7),u.Qc(5,"TOUR.TRADING.MARKET_ORDER.2"),u.Tb(),u.Tb()}2&t&&u.mc("image","market")("title","BUTTON.MARKET_ORDER")("videoUrl","https://www.youtube.com/watch?v=wBJffX1LAiY")("minHeight","300px")}function w(t,e){if(1&t){const t=u.Vb();u.Ub(0,"tour-step",9),u.bc("dispose",(function(){return u.Ec(t),u.fc().disposePopper(6)})),u.Ub(1,"p",7),u.Qc(2,"TOUR.TRADING.LIMIT_ORDER.1"),u.Tb(),u.Pb(3,"br"),u.Ub(4,"p",7),u.Qc(5,"TOUR.TRADING.LIMIT_ORDER.2"),u.Tb(),u.Tb()}2&t&&u.mc("image","form")("title","BUTTON.LIMIT_ORDER")("videoUrl","https://www.youtube.com/watch?v=wBJffX1LAiY")("minHeight","300px")}function T(t,e){if(1&t){const t=u.Vb();u.Ub(0,"tour-step",8),u.bc("dispose",(function(){return u.Ec(t),u.fc().disposePopper(7)})),u.Ub(1,"p",7),u.Qc(2,"TOUR.TRADING.OPEN_POSITIONS.1"),u.Tb(),u.Tb()}2&t&&u.mc("image","positions")("title","HEADING.OPEN_POSITIONS")("minHeight","300px")}let S=(()=>{let t=class{constructor(t){this.store=t,this.tour$=this.store.pipe(Object(s.m)(a.k)),this.quantityUnits$=this.store.pipe(Object(s.m)(l.r))}ngAfterViewInit(){this.tour$.pipe(Object(r.b)(this),Object(o.a)(t=>t.inProgress),Object(o.a)(t=>"trading-dashboard"===t.type),Object(o.a)(({step:t})=>t>0&&t<8)).subscribe(({step:t})=>{this.steps.toArray()[t-1].centerTrigger()})}disposePopper(t){this.steps.toArray()[t-1].dispose()}toggleUnit(t){this.store.dispatch(Object(c.D)({trading:t}))}};return t.\u0275fac=function(e){return new(e||t)(u.Ob(s.b))},t.\u0275cmp=u.Ib({type:t,selectors:[["trading-tour"]],viewQuery:function(t,e){var n;1&t&&u.Wc(m,!0),2&t&&u.zc(n=u.cc())&&(e.steps=n)},decls:21,vars:0,consts:[["sbPlacement","topStart"],["tourStep",""],[3,"image","title","nextRouteTo","videoUrl","minHeight","dispose",4,"sbContent"],[3,"image","title","minHeight","dispose",4,"sbContent"],["sbPlacement","centerEnd"],[3,"image","title","videoUrl","minHeight","dispose",4,"sbContent"],[3,"image","title","nextRouteTo","videoUrl","minHeight","dispose"],["subheading","","translate",""],[3,"image","title","minHeight","dispose"],[3,"image","title","videoUrl","minHeight","dispose"]],template:function(t,e){1&t&&(u.Ub(0,"sb-popper",0,1),u.Oc(2,v,6,5,"tour-step",2),u.Tb(),u.Ub(3,"sb-popper",0,1),u.Oc(5,_,3,3,"tour-step",3),u.Tb(),u.Ub(6,"sb-popper",0,1),u.Oc(8,y,6,3,"tour-step",3),u.Tb(),u.Ub(9,"sb-popper",4,1),u.Oc(11,O,6,3,"tour-step",3),u.Tb(),u.Ub(12,"sb-popper",0,1),u.Oc(14,C,6,4,"tour-step",5),u.Tb(),u.Ub(15,"sb-popper",0,1),u.Oc(17,w,6,4,"tour-step",5),u.Tb(),u.Ub(18,"sb-popper",0,1),u.Oc(20,T,3,3,"tour-step",3),u.Tb())},directives:[h.a,d.a,p.a,f.a,b.a,g.a],styles:[""],changeDetection:0}),t=Object(i.d)([Object(r.a)()],t),t})()},"F+Yz":function(t,e,n){"use strict";n.d(e,"a",(function(){return x}));var i=n("kZht"),r=n("An66"),s=n("yPvj"),o=n("1etq"),a=n("anSm"),c=n("1o0v"),l=n("aDqW"),u=n("chaP"),h=n("BeMo"),d=n("LbKT"),p=n("+e22"),f=n("7J2L"),b=n("rUBT"),g=n("DpwM"),m=n("Knqz"),v=n("rqGg"),_=n("FUqb");function y(t,e){if(1&t&&(i.Sb(0),i.Ub(1,"p",7),i.Qc(2,"LABEL.PREMIUM"),i.Tb(),i.Ub(3,"p",19),i.Qc(4),i.gc(5,"change"),i.gc(6,"number"),i.Tb(),i.Rb()),2&t){const t=i.fc(2);i.Cb(3),i.mc("pnl",t.ticker.premium),i.Cb(1),i.Sc("",i.hc(5,2,i.ic(6,4,t.ticker.premium,"1.1-1")),"%")}}function O(t,e){if(1&t&&(i.Ub(0,"p",7),i.Qc(1,"COLUMN.CHANGE"),i.Tb(),i.Ub(2,"p",8),i.Pb(3,"change",20),i.Tb()),2&t){const t=i.fc(2);i.Cb(3),i.mc("value",t.ticker.change)}}function C(t,e){if(1&t&&(i.Sb(0),i.Qc(1),i.gc(2,"percent"),i.gc(3,"translate"),i.Rb()),2&t){const t=i.fc(2);i.Cb(1),i.Tc(" ",i.ic(2,2,t.ticker.relative_funding_rate,"1.4-4")," / ",i.hc(3,5,"UNIT.HOUR_SHORT")," ")}}const w=function(t){return{days:t}};function T(t,e){if(1&t&&(i.Qc(0),i.gc(1,"translate"),i.gc(2,"date")),2&t){const t=i.fc(2);i.Sc(" ",t.isAlt?i.ic(1,1,"UNIT.X_DAYS",i.rc(7,w,t.ticker.dtm)):i.ic(2,4,t.ticker.maturityTime,"dd/MMM/yyyy")," ")}}const S=function(t){return{flex:t}};function k(t,e){if(1&t&&(i.Sb(0),i.Ub(1,"div",2),i.Pb(2,"market-icon",3),i.gc(3,"base"),i.Ub(4,"div",4),i.Qc(5),i.gc(6,"pair"),i.Tb(),i.Ub(7,"div",5),i.Qc(8),i.gc(9,"translate"),i.gc(10,"maturityMonth"),i.Tb(),i.Tb(),i.Ub(11,"div",6),i.Ub(12,"p",7),i.Qc(13,"LABEL.MARK_PRICE"),i.Tb(),i.Ub(14,"p",8),i.Qc(15),i.gc(16,"sato"),i.Tb(),i.Tb(),i.Ub(17,"div",9),i.Ub(18,"p",7),i.Qc(19,"LABEL.24H_VOLUME"),i.Tb(),i.Ub(20,"p",8),i.Qc(21),i.gc(22,"humanNumber"),i.gc(23,"asset"),i.Tb(),i.Tb(),i.Ub(24,"div",10),i.Oc(25,y,7,7,"ng-container",0),i.Oc(26,O,4,1,"ng-template",null,11,i.Pc),i.Tb(),i.Ub(28,"div",12),i.Ub(29,"p",7),i.Qc(30,"LABEL.OPEN_INTEREST"),i.Tb(),i.Ub(31,"p",8),i.Qc(32),i.gc(33,"humanNumber"),i.gc(34,"asset"),i.Tb(),i.Tb(),i.Ub(35,"div",13),i.Ub(36,"p",14),i.Qc(37),i.gc(38,"translate"),i.Tb(),i.Ub(39,"p",8),i.Oc(40,C,4,7,"ng-container",0),i.Oc(41,T,3,9,"ng-template",null,15,i.Pc),i.Tb(),i.Tb(),i.Ub(43,"div",16),i.Pb(44,"sparkline",17),i.Tb(),i.Pb(45,"div",18),i.Rb()),2&t){const t=i.Ac(27),e=i.Ac(42),n=i.fc();i.Cb(2),i.mc("base",i.hc(3,18,n.ticker.product_id)),i.Cb(3),i.Sc(" ",i.hc(6,20,n.ticker.pair)," "),i.Cb(3),i.Sc(" ",i.hc(9,22,i.hc(10,24,n.ticker.product_id))," "),i.Cb(7),i.Sc(" ",i.ic(16,26,n.ticker.markPrice,n.ticker)," "),i.Cb(6),i.Uc(" ",i.hc(22,29,n.ticker.displayVolume)," "," "," ",i.hc(23,31,n.ticker.tradingDisplayAsset)," "),i.Cb(4),i.mc("ngIf",n.isAlt)("ngIfElse",t),i.Cb(7),i.Uc(" ",i.hc(33,33,n.ticker.displayOpenInterest)," "," "," ",i.hc(34,35,n.ticker.tradingDisplayAsset)," "),i.Cb(5),i.Sc(" ",i.hc(38,37,"perpetual"===n.ticker.tag?"LABEL.FUNDING_RATE":n.isAlt?"LABEL.DAYS_TO_MATURITY":"LABEL.MATURITY_DATE")," "),i.Cb(3),i.mc("ngIf","perpetual"===n.ticker.tag)("ngIfElse",e),i.Cb(3),i.mc("ngClass",i.rc(39,S,n.isFlex)),i.Cb(1),i.mc("market",n.ticker.product_id),i.Cb(1),i.mc("ngClass",i.rc(41,S,n.isFlex))}}function E(t,e){1&t&&(i.Ub(0,"div",21),i.Pb(1,"kraken-loading"),i.Tb())}let x=(()=>{class t{constructor(){this.isAlt=!1,this.isFlex=!1}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["market-picker-preview"]],inputs:{ticker:"ticker",isAlt:"isAlt",isFlex:"isFlex"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["loading",""],[1,"market"],[3,"base"],["subheading","",1,"pair"],["body","","ghost","",1,"maturity"],[1,"price-1"],["body","","translate","",1,"label"],["body","","mono",""],[1,"stat-1"],[1,"price-2"],["change",""],[1,"stat-2"],[1,"stat-3"],["body","",1,"label"],["fixed",""],[1,"spark",3,"ngClass"],["filled","",3,"market"],[1,"fade",3,"ngClass"],["body","","mono","",3,"pnl"],[3,"value"],[1,"loading"]],template:function(t,e){if(1&t&&(i.Oc(0,k,46,43,"ng-container",0),i.Oc(1,E,2,0,"ng-template",null,1,i.Pc)),2&t){const t=i.Ac(2);i.mc("ngIf",e.ticker)("ngIfElse",t)}},directives:[r.n,s.a,o.a,a.a,c.a,l.a,u.a,r.l,h.a,d.a,p.a,f.a],pipes:[b.a,b.e,l.d,b.d,g.c,m.a,v.a,_.b,r.f,r.u,r.e],styles:['[_nghost-%COMP%]{display:grid;grid-template:"market price-1" auto "stat-1 price-2" auto "stat-2 stat-3" auto ". ." 1fr "spark spark" auto/min-content auto;gap:var(--spacing);align-items:center}.label[_ngcontent-%COMP%]{margin-bottom:var(--spacing-s);color:var(--ghost-colour);font-size:10px}.market[_ngcontent-%COMP%]{grid-area:market;display:grid;grid-template:"icon pair " auto "icon maturity" auto/min-content 1fr;gap:var(--spacing-s) var(--spacing);align-items:center;white-space:nowrap}.market[_ngcontent-%COMP%] market-icon[_ngcontent-%COMP%]{grid-area:icon;font-size:32px}.market[_ngcontent-%COMP%] .pair[_ngcontent-%COMP%]{grid-area:pair}.market[_ngcontent-%COMP%] .maturity[_ngcontent-%COMP%]{grid-area:maturity}.price-1[_ngcontent-%COMP%], .price-2[_ngcontent-%COMP%], .stat-3[_ngcontent-%COMP%]{text-align:right}.price-1[_ngcontent-%COMP%]{grid-area:price-1}.price-2[_ngcontent-%COMP%]{grid-area:price-2}.stat-1[_ngcontent-%COMP%]{grid-area:stat-1}.stat-2[_ngcontent-%COMP%]{grid-area:stat-2}.stat-3[_ngcontent-%COMP%]{grid-area:stat-3}.fade[_ngcontent-%COMP%], .spark[_ngcontent-%COMP%]{grid-area:spark;margin:0 calc(var(--spacing) * -1);z-index:-1;transform:translateY(-32px)}.fade.flex[_ngcontent-%COMP%], .spark.flex[_ngcontent-%COMP%]{transform:none}.fade[_ngcontent-%COMP%]{width:calc(100% + 2 * var(--spacing));height:100%;z-index:2;background-image:linear-gradient(0deg,rgba(0,0,0,.5),transparent);mix-blend-mode:overlay;pointer-events:none}.fade.flex[_ngcontent-%COMP%]{transform:none}.loading[_ngcontent-%COMP%]{grid-area:1/1/-1/-1}'],changeDetection:0}),t})()},F6wS:function(t,e,n){"use strict";n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return c})),n.d(e,"c",(function(){return h})),n.d(e,"d",(function(){return l}));var i=n("FxgA"),r=n("pTnX"),s=n("kZht");const o=["*",[["mat-card-footer"]]],a=["*","mat-card-footer"];let c=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Jb({type:t,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),t})(),l=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Jb({type:t,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),t})(),u=(()=>{class t{constructor(t){this._animationMode=t}}return t.\u0275fac=function(e){return new(e||t)(s.Ob(i.a,8))},t.\u0275cmp=s.Ib({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(t,e){2&t&&s.Gb("_mat-animation-noopable","NoopAnimations"===e._animationMode)},exportAs:["matCard"],ngContentSelectors:a,decls:2,vars:0,template:function(t,e){1&t&&(s.lc(o),s.kc(0),s.kc(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions .mat-button:first-child,.mat-card-actions .mat-raised-button:first-child,.mat-card-actions .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),t})(),h=(()=>{class t{}return t.\u0275mod=s.Mb({type:t}),t.\u0275inj=s.Lb({factory:function(e){return new(e||t)},imports:[[r.j],r.j]}),t})()},FEHI:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("ekTi"),r=n("oznm"),s=e.ErrorCorrectionLevelValues=function(t){return t[t.L=0]="L",t[t.M=1]="M",t[t.Q=2]="Q",t[t.H=3]="H",t}(e.ErrorCorrectionLevelValues||{});e.default=function(){function t(e,n,i){this.value=e,this.stringValue=n,this.bits=i,t.FOR_BITS.set(i,this),t.FOR_VALUE.set(e,this)}return t.prototype.getValue=function(){return this.value},t.prototype.getBits=function(){return this.bits},t.fromString=function(e){switch(e){case"L":return t.L;case"M":return t.M;case"Q":return t.Q;case"H":return t.H;default:throw new i.default(e+"not available")}},t.prototype.toString=function(){return this.stringValue},t.prototype.equals=function(e){return e instanceof t&&this.value===e.value},t.forBits=function(e){if(e<0||e>=t.FOR_BITS.size)throw new r.default;return t.FOR_BITS.get(e)},t.FOR_BITS=new Map,t.FOR_VALUE=new Map,t.L=new t(s.L,"L",1),t.M=new t(s.M,"M",0),t.Q=new t(s.Q,"Q",3),t.H=new t(s.H,"H",2),t}()},FQF6:function(t,e,n){"use strict";n.d(e,"a",(function(){return P}));var i=n("zqNl"),r=n("uJYd"),s=n("J/3c"),o=n("nXdR"),a=n("YtkY"),c=n("i67J"),l=n("kZht"),u=n("An66"),h=n("anSm"),d=n("1o0v"),p=n("aDqW"),f=n("1etq"),b=n("LbKT"),g=n("yPvj"),m=n("chaP"),v=n("B6Vo"),_=n("+I9z"),y=n("NxuZ"),O=n("7J2L"),C=n("P0Um"),w=n("DpwM");function T(t,e){if(1&t){const t=l.Vb();l.Ub(0,"div",10),l.Ub(1,"div",11),l.Pb(2,"market-icon",12),l.Tb(),l.Ub(3,"p",13),l.Qc(4),l.gc(5,"walletName"),l.Tb(),l.Ub(6,"div",14),l.gc(7,"translate"),l.Pb(8,"ghost-trail",15),l.gc(9,"cryptoPrecise"),l.Ub(10,"span",16),l.Qc(11),l.Tb(),l.Tb(),l.Ub(12,"div",17),l.gc(13,"translate"),l.Qc(14),l.gc(15,"crypto"),l.Ub(16,"span",16),l.Qc(17,"USD"),l.Tb(),l.Tb(),l.Ub(18,"div",18),l.Ub(19,"fa-icon",19),l.bc("click",(function(){l.Ec(t);const n=e.$implicit;return l.fc(3).transfer(n)})),l.Tb(),l.Tb(),l.Tb()}if(2&t){const t=e.$implicit;l.Cb(2),l.mc("base",t.currency),l.Cb(2),l.Rc(l.hc(5,7,t.currency)),l.Cb(2),l.mc("sbTooltip",l.hc(7,9,"WALLETS.TRADING.AVAILABLE_MARGIN")),l.Cb(2),l.nc("content",l.ic(9,11,t.balance,t.currency)),l.Cb(3),l.Rc(t.currency),l.Cb(1),l.mc("sbTooltip",l.hc(13,14,"LABEL.COLLATERAL_VALUE")),l.Cb(2),l.Sc(" ",l.ic(15,16,t.cv,"usd")," ")}}function S(t,e){if(1&t&&(l.Sb(0),l.Ub(1,"section",4),l.Ub(2,"span"),l.Ub(3,"p",5),l.Qc(4,"LABEL.PORTFOLIO_VALUE"),l.Tb(),l.Ub(5,"p",6),l.Qc(6),l.gc(7,"number"),l.Ub(8,"span",7),l.Qc(9,"USD"),l.Tb(),l.Tb(),l.Tb(),l.Tb(),l.Ub(10,"section",4),l.Ub(11,"span"),l.Ub(12,"p",5),l.Qc(13,"LABEL.BALANCE"),l.Tb(),l.Ub(14,"p",6),l.Qc(15),l.gc(16,"number"),l.Ub(17,"span",7),l.Qc(18,"USD"),l.Tb(),l.Tb(),l.Tb(),l.Ub(19,"span"),l.Ub(20,"p",5),l.Qc(21,"LABEL.PNL"),l.Tb(),l.Ub(22,"span",8),l.Qc(23),l.gc(24,"number"),l.Ub(25,"span",7),l.Qc(26,"USD"),l.Tb(),l.Tb(),l.Tb(),l.Tb(),l.Ub(27,"section"),l.Oc(28,T,20,19,"div",9),l.Tb(),l.Rb()),2&t){const t=l.fc().ngIf;l.Cb(6),l.Sc("",l.hc(7,5,t.wallet.pv)," "),l.Cb(9),l.Sc("",l.hc(16,7,t.wallet.balance)," "),l.Cb(7),l.mc("pnl",t.wallet.pnl),l.Cb(1),l.Sc("",l.ic(24,9,t.wallet.pnl,"1.2-2")," "),l.Cb(5),l.mc("ngForOf",t.currencies)}}function k(t,e){if(1&t&&(l.Ub(0,"section",2),l.Oc(1,S,29,12,"ng-container",3),l.Tb()),2&t){const t=e.ngIf;l.fc();const n=l.Ac(4);l.Cb(1),l.mc("ngIf",t.wallet&&t.currencies)("ngIfElse",n)}}function E(t,e){1&t&&l.Pb(0,"kraken-loading")}const x=function(t,e){return{wallet:t,currencies:e}};let P=(()=>{class t{constructor(t){this.store=t,this.holdingWallets$=this.store.pipe(Object(i.m)(s.j)),this.flexWallet$=this.store.pipe(Object(i.m)(s.l)),this.flexCurrencies$=this.flexWallet$.pipe(Object(a.a)(t=>{var e;return null===(e=null==t?void 0:t.flexAssets)||void 0===e?void 0:e.valueSeq().toArray().sort(o.n)}))}transfer(t){this.holdingWallets$.pipe(Object(c.h)()).subscribe(e=>{const n=e.find(e=>e.currency===(null==t?void 0:t.currency));this.store.dispatch(Object(r.g)({name:"wallet-transaction",inputs:{type:"crypto-transfer",originWallet:n||t}}))})}}return t.\u0275fac=function(e){return new(e||t)(l.Ob(i.b))},t.\u0275cmp=l.Ib({type:t,selectors:[["flex-wallet"]],decls:5,vars:8,consts:[["class","flex-wallet",4,"ngIf"],["loading",""],[1,"flex-wallet"],[4,"ngIf","ngIfElse"],[1,"heading"],["body","","ghost","","translate",""],["subheading",""],["ghost",""],["subheading","",3,"pnl"],["class","wallet",4,"ngFor","ngForOf"],[1,"wallet"],[1,"icon"],[1,"icon",3,"base"],["body","",1,"name"],["body","","mono","",1,"balance",3,"sbTooltip"],[3,"content"],["ghost","",1,"unit"],["body","","ghost","","mono","",1,"notional",3,"sbTooltip"],[1,"transfer"],["icon","transfer","size","2x",3,"click"]],template:function(t,e){1&t&&(l.Oc(0,k,2,2,"section",0),l.gc(1,"async"),l.gc(2,"async"),l.Oc(3,E,1,0,"ng-template",null,1,l.Pc)),2&t&&l.mc("ngIf",l.sc(5,x,l.hc(1,1,e.flexWallet$),l.hc(2,3,e.flexCurrencies$)))},directives:[u.n,h.a,d.a,p.a,f.a,b.a,u.m,g.a,m.a,v.a,_.a,y.b,O.a],pipes:[u.b,u.f,C.a,p.d,w.b,w.a],styles:['.flex-wallet[_ngcontent-%COMP%]{padding:var(--spacing)}.heading[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;padding-bottom:var(--spacing-s);border-bottom:1px solid var(--border-colour);margin-bottom:var(--spacing-s);position:sticky;top:0;background:var(--card-colour);z-index:10}.wallet[_ngcontent-%COMP%]{display:grid;grid-template:"icon name balance transfer" 16px "icon name notional transfer"/25px 1fr;padding:var(--spacing-xs) 0;gap:0 var(--spacing-xs)}.wallet[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{grid-area:icon;align-self:center}.wallet[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{grid-area:name;align-self:center}.wallet[_ngcontent-%COMP%] .balance[_ngcontent-%COMP%]{grid-area:balance;display:flex;flex-direction:row;text-align:right;justify-content:flex-end}.wallet[_ngcontent-%COMP%] .transfer[_ngcontent-%COMP%]{grid-area:transfer;align-self:center}.wallet[_ngcontent-%COMP%] .transfer[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{cursor:pointer;color:var(--brand)}.wallet[_ngcontent-%COMP%] .currency[_ngcontent-%COMP%]{grid-area:currency}.wallet[_ngcontent-%COMP%] .notional[_ngcontent-%COMP%]{grid-area:notional;display:flex;flex-direction:row;text-align:right;justify-content:flex-end}market-icon[_ngcontent-%COMP%]{font-size:20px}.unit[_ngcontent-%COMP%]{text-transform:uppercase;margin-left:var(--spacing-s)}'],changeDetection:0}),t})()},FTWg:function(t,e,n){"use strict";n.d(e,"a",(function(){return k}));var i=n("3kIJ"),r=n("YzTY"),s=n("yN5A"),o=n("kZht"),a=n("zqNl"),c=n("mcff"),l=n("anSm"),u=n("An66"),h=n("EmXI"),d=n("Tcl6"),p=n("hCLc"),f=n("scAs"),b=n("NxuZ"),g=n("WYJo"),m=n("aDqW");function v(t,e){if(1&t){const t=o.Vb();o.Ub(0,"div",11),o.bc("dragstart",(function(n){o.Ec(t);const i=e.$implicit;return o.fc().dragstartTab(n,i)}))("dragend",(function(){return o.Ec(t),o.fc().dragging=!1})),o.Ub(1,"span"),o.Pb(2,"fa-icon",12),o.Qc(3),o.gc(4,"uppercase"),o.gc(5,"translate"),o.Tb(),o.Tb()}if(2&t){const t=e.$implicit,n=o.fc();o.mc("hidden",n.usedComponent(t)),o.Cb(3),o.Sc(" ",o.hc(4,2,o.hc(5,4,"HEADING."+n.CID[t]))," ")}}const _=function(t,e){return{selected:t,taken:e}},y=function(t){return{"grid-area":t}};function O(t,e){if(1&t){const t=o.Vb();o.Ub(0,"section",13),o.bc("mousedown",(function(){o.Ec(t);const n=e.$implicit,i=o.fc();return i.gridMouseDown=!0,i.selectGridCell(n)}))("mouseup",(function(){o.Ec(t);const n=e.$implicit,i=o.fc();return i.gridMouseDown=!1,i.selectGridCell(n),i.saveArea()}))("mouseover",(function(){o.Ec(t);const n=e.$implicit;return o.fc().selectGridCell(n)})),o.Tb()}if(2&t){const t=e.$implicit,n=o.fc();o.Lc("cursor",n.gridMouseDown?"grabbing":"grab"),o.mc("ngClass",o.sc(4,_,n.isSelected(t),n.isTaken(t)))("ngStyle",o.rc(7,y,n.getCellGridArea(t)))}}function C(t,e){if(1&t){const t=o.Vb();o.Ub(0,"div",19),o.bc("dragstart",(function(n){o.Ec(t);const i=e.$implicit;return o.fc(2).dragstartTab(n,i)}))("dragend",(function(n){o.Ec(t);const i=e.$implicit,r=o.fc().$implicit;return o.fc().dragendTab(n,i,r.id)})),o.Ub(1,"span"),o.Pb(2,"fa-icon",12),o.Qc(3),o.gc(4,"uppercase"),o.gc(5,"translate"),o.Tb(),o.Tb()}if(2&t){const t=e.$implicit,n=o.fc(2);o.Cb(3),o.Sc(" ",o.hc(4,1,o.hc(5,3,"HEADING."+n.CID[t]))," ")}}const w=function(t,e){return{valid:t,invalid:e}};function T(t,e){if(1&t){const t=o.Vb();o.Ub(0,"section",14),o.bc("dragover",(function(e){return o.Ec(t),o.fc().dragoverTab(e)}))("drop",(function(n){o.Ec(t);const i=e.$implicit;return o.fc().dropTab(n,i.id)})),o.Ub(1,"div",15),o.Ub(2,"fa-icon",16),o.bc("click",(function(){o.Ec(t);const n=e.index;return o.fc().deleteSelection(n)})),o.gc(3,"translate"),o.Tb(),o.Tb(),o.Ub(4,"div",17),o.Oc(5,C,6,5,"div",18),o.Tb(),o.Tb()}if(2&t){const t=e.$implicit,n=o.fc();o.mc("ngStyle",o.rc(6,y,n.getSelectionGridArea(t.cells)))("ngClass",o.sc(8,w,n.selectionValid(t)&&n.dragging,!n.selectionValid(t)&&n.dragging)),o.Cb(2),o.mc("matTooltip",o.hc(3,4,"BUTTON.DELETE")),o.Cb(3),o.mc("ngForOf",t.components)}}const S=[r.a.BRACKET_ORDER,r.a.ACCOUNT_ACTIVITY];let k=(()=>{class t{constructor(t,e,n){this.store=t,this.fb=e,this.dialog=n,this.form=this.buildForm(),this.gridCells=["00","01","02","03","04","10","11","12","13","14","20","21","22","23","24","30","31","32","33","34","40","41","42","43","44"],this.gridSelections=[],this.currentlySelected=[],this.dragging=!1,this.gridMouseDown=!1,this.CID=r.a,this.components=r.i}buildForm(){return this.fb.group({type:["custom",[i.x.required]],name:["",[i.x.required]]})}selectGridCell(t){if(!this.isTaken(t)&&this.gridMouseDown)if(this.currentlySelected.length){if(this.start===t)return this.start="",void(this.currentlySelected=[]);this.currentlySelected=[],this.end=t,this.gridCells.forEach(t=>{const e=t[0],n=t[1];(this.end[1]>=this.start[1]?n<=this.end[1]&&n>=this.start[1]:n>=this.end[1]&&n<=this.start[1])&&(this.end[0]>=this.start[0]?e<=this.end[0]&&e>=this.start[0]:e>=this.end[0]&&e<=this.start[0])&&this.currentlySelected.push(`${e}${n}`)})}else this.currentlySelected=[t],this.start=t}isSelected(t){return this.currentlySelected.some((e,n)=>e===t)}isTaken(t){return this.gridSelections.some(e=>e.cells.includes(t))}reset(){this.gridSelections=[],this.resetSelected()}resetSelected(){this.currentlySelected=[],this.start="",this.end=""}deleteSelection(t){this.gridSelections.splice(t,1),this.resetSelected()}isLastInSelected(t){return this.currentlySelected[this.currentlySelected.length-1]===t}saveArea(){this.currentlySelected.length&&(this.gridSelections.push({id:this.currentlySelected[0],cells:this.currentlySelected,components:[]}),this.resetSelected())}getSelectionGridArea(t){const e=t[0],n=t[t.length-1],i=Number(e[0]),r=Number(e[1]);return`${i+1} / ${r+1} / span ${Number(n[0])-i+1} / span ${Number(n[1])-r+1}`}getCellGridArea(t){return`${Number(t[0])+1} / ${Number(t[1])+1}`}createLayout(){var t;const e={};this.gridSelections.forEach(t=>{const n=t.cells[0],i=t.cells[t.cells.length-1],r=Number(n[0]),s=Number(n[1]),o=Number(i[0]),a=Number(i[1]);e[`c${r}${s}`]={components:t.components,size:[2*(a-s+1),2*(o-r+1)]}}),this.store.dispatch(Object(s.c)({config:{name:this.form.get("name").value||"Custom",type:"custom",panels:e}})),null===(t=this.dialog)||void 0===t||t.close()}dragstartTab(t,e){this.draggingComponent=this.components[e],this.dragging=!0,t.dataTransfer.setData("text/plain",JSON.stringify(e)),t.dataTransfer.dropEffect="move"}dragendTab(t,e,n){this.draggingComponent=void 0,this.dragging=!1;const i=this.gridSelections.findIndex(t=>t.id===n),r=this.gridSelections[i];if(r){const t=r.components.findIndex(t=>t===e.id),n=r.components;n.splice(t,1),-1!==t&&(this.gridSelections[i]=Object.assign(Object.assign({},r),{components:n}))}}dragoverTab(t){t.preventDefault(),t.dataTransfer.dropEffect="move"}dropTab(t,e){const n=JSON.parse(t.dataTransfer.getData("text/plain")),i=this.gridSelections.findIndex(t=>t.id===e),r=this.gridSelections[i].components.includes(n),s=this.gridSelections[i],o=s.cells[0],a=s.cells[s.cells.length-1],c=Number(o[0]),l=Number(o[1]),u=2*(Number(a[0])-c+1),h=2*(Number(a[1])-l+1),d=this.components[Number(n)];this.draggingComponent=void 0,this.dragging=!1,(null==d?void 0:d.lowerBounds)&&((null==d?void 0:d.lowerBounds[0])>h||(null==d?void 0:d.lowerBounds[1])>u)||(null==d?void 0:d.upperBounds)&&((null==d?void 0:d.upperBounds[0])e.components.includes(Number(t)))}selectionValid(t){if(!this.draggingComponent)return;const e=t.cells[0],n=t.cells[t.cells.length-1],i=Number(e[0]),r=Number(e[1]),s=2*(Number(n[0])-i+1),o=2*(Number(n[1])-r+1),a=this.draggingComponent;return!((null==a?void 0:a.lowerBounds)&&((null==a?void 0:a.lowerBounds[0])>o||(null==a?void 0:a.lowerBounds[1])>s)||(null==a?void 0:a.upperBounds)&&((null==a?void 0:a.upperBounds[0])!S.includes(Number(t)))}}return t.\u0275fac=function(e){return new(e||t)(o.Ob(a.b),o.Ob(i.d),o.Ob(c.d,8))},t.\u0275cmp=o.Ib({type:t,selectors:[["custom-layout"]],decls:18,vars:14,consts:[[1,"custom-layout"],["body","",1,"description"],[1,"components","main"],["class","component main","bold","","draggable","true",3,"hidden","dragstart","dragend",4,"ngFor","ngForOf"],[1,"grid",3,"mouseup"],["class","grid-cell",3,"ngClass","ngStyle","cursor","mousedown","mouseup","mouseover",4,"ngFor","ngForOf"],["class","grid-selection",3,"ngStyle","ngClass","dragover","drop",4,"ngFor","ngForOf"],["body","",3,"formGroup"],["color","accent","appearance","fill","body",""],["formControlName","name","required","","matInput","","maxlength","24","autocomplete","off"],["mat-raised-button","","body","",3,"disabled","click"],["bold","","draggable","true",1,"component","main",3,"hidden","dragstart","dragend"],["icon","menu-burger-small"],[1,"grid-cell",3,"ngClass","ngStyle","mousedown","mouseup","mouseover"],[1,"grid-selection",3,"ngStyle","ngClass","dragover","drop"],[1,"cell-controls"],["icon","close-medium","size","2x",1,"delete-icon","container",3,"matTooltip","click"],[1,"components","tab"],["class","component tab","draggable","true","bold","",3,"dragstart","dragend",4,"ngFor","ngForOf"],["draggable","true","bold","",1,"component","tab",3,"dragstart","dragend"]],template:function(t,e){1&t&&(o.Ub(0,"section",0),o.Ub(1,"p",1),o.Qc(2),o.gc(3,"translate"),o.Tb(),o.Ub(4,"section",2),o.Oc(5,v,6,6,"div",3),o.Tb(),o.Ub(6,"section",4),o.bc("mouseup",(function(){return e.gridMouseDown=!1,e.saveArea()})),o.Oc(7,O,1,9,"section",5),o.Oc(8,T,6,11,"section",6),o.Tb(),o.Ub(9,"form",7),o.Ub(10,"mat-form-field",8),o.Ub(11,"mat-label"),o.Qc(12),o.gc(13,"translate"),o.Tb(),o.Pb(14,"input",9),o.Tb(),o.Ub(15,"button",10),o.bc("click",(function(){return e.createLayout()})),o.Qc(16),o.gc(17,"translate"),o.Tb(),o.Tb(),o.Tb()),2&t&&(o.Cb(2),o.Rc(o.hc(3,8,"DIALOG.CUSTOM_LAYOUT.DESCRIPTION")),o.Cb(3),o.mc("ngForOf",e.componentIds),o.Cb(2),o.mc("ngForOf",e.gridCells),o.Cb(1),o.mc("ngForOf",e.gridSelections),o.Cb(1),o.mc("formGroup",e.form),o.Cb(3),o.Rc(o.hc(13,10,"FORM.LAYOUT_NAME")),o.Cb(3),o.mc("disabled",!e.gridSelections.length),o.Cb(1),o.Sc(" ",o.hc(17,12,"BUTTON.CREATE_LAYOUT")," "))},directives:[l.a,u.m,i.z,i.p,i.h,h.c,h.f,i.c,d.b,i.o,i.g,i.v,i.k,p.b,f.a,b.b,u.l,u.o,g.a],pipes:[m.d,u.x],styles:[".custom-layout[_ngcontent-%COMP%]{padding:var(--spacing-l);width:1000px}.custom-layout[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{display:flex;flex-direction:row;width:100%}.custom-layout[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%]{flex:1;margin-bottom:-1.34385em}.custom-layout[_ngcontent-%COMP%] form[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:var(--spacing)}.description[_ngcontent-%COMP%]{padding-bottom:var(--spacing-l)}.components[_ngcontent-%COMP%]{background:var(--border-colour-bright);border-radius:var(--bdrs);flex-direction:row;flex-flow:row wrap;padding:var(--spacing-s);margin-bottom:var(--spacing)}.components.tab[_ngcontent-%COMP%]{display:flex;height:45px;padding-bottom:var(--spacing)}.components.main[_ngcontent-%COMP%]{display:flex;background:var(--border-colour-bright);border:1px solid var(--border-colour-bright)}.icon[_ngcontent-%COMP%]{margin-right:var(--spacing)}.component[_ngcontent-%COMP%]{background:var(--ghost-colour);transform:translate(0);opacity:.999;color:var(--form-input-colour);cursor:grab;padding:var(--spacing);border-radius:500px;margin-bottom:var(--spacing);height:-moz-fit-content;height:fit-content}.component.tab[_ngcontent-%COMP%]{max-height:37px;width:-moz-fit-content;width:fit-content}.component[_ngcontent-%COMP%]:not(:last-child){margin-right:var(--spacing)}.controls[_ngcontent-%COMP%]{text-align:right;margin-bottom:var(--spacing);width:100%}.controls[_ngcontent-%COMP%] button[_ngcontent-%COMP%] + button[_ngcontent-%COMP%]{margin-left:var(--spacing)}.grid[_ngcontent-%COMP%]{padding:var(--spacing) 0;gap:var(--spacing);display:grid;grid-template-rows:repeat(5,50px);grid-template-columns:repeat(5,1fr);width:100%;border-radius:var(--bdrs);margin-bottom:var(--spacing)}.grid[_ngcontent-%COMP%] .grid-cell[_ngcontent-%COMP%]{border:1px solid var(--border-colour-bright);border-radius:var(--bdrs);color:var(--text-colour);cursor:pointer;position:relative}.grid[_ngcontent-%COMP%] .grid-cell.selected[_ngcontent-%COMP%], .grid[_ngcontent-%COMP%] .grid-cell[_ngcontent-%COMP%]:hover{background-color:var(--border-colour-bright)}.grid[_ngcontent-%COMP%] .save-icon[_ngcontent-%COMP%]{left:5px;bottom:5px}.grid[_ngcontent-%COMP%] .delete-icon[_ngcontent-%COMP%], .grid[_ngcontent-%COMP%] .save-icon[_ngcontent-%COMP%]{color:var(--icon-colour);position:absolute;cursor:pointer}.grid[_ngcontent-%COMP%] .delete-icon.selection[_ngcontent-%COMP%]{right:5px;bottom:5px}.grid[_ngcontent-%COMP%] .delete-icon.container[_ngcontent-%COMP%]{right:5px;top:5px}.grid[_ngcontent-%COMP%] .grid-selection[_ngcontent-%COMP%]{background-color:var(--border-colour-bright);border-radius:var(--bdrs);position:relative;border:3px dashed transparent}.grid[_ngcontent-%COMP%] .grid-selection.valid[_ngcontent-%COMP%]{border-color:var(--accent-colour)}.grid[_ngcontent-%COMP%] .grid-selection.invalid[_ngcontent-%COMP%]{border-color:var(--warn-colour)}"],changeDetection:0}),t})()},FU6l:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))()},FUfi:function(t,e,n){"use strict";n.d(e,"a",(function(){return g}));var i=n("D57K"),r=n("kZht"),s=n("zqNl"),o=n("gxtV"),a=n("QQZH"),c=n("ROBh"),l=n("TLy2"),u=n("YtkY"),h=n("anSm"),d=n("zW++"),p=n("NxuZ"),f=n("An66"),b=n("aDqW");let g=(()=>{let t=class{constructor(t){this.store=t,this.closeTab$=new r.o,this.badgeSelector$=new a.a(1),this.badge$=this.badgeSelector$.pipe(Object(l.a)(t=>t?this.store.pipe(Object(s.m)(t)).pipe(Object(u.a)(t=>0===t?void 0:t)):Object(c.a)(void 0)))}ngOnChanges(t){var e,n;this.badgeSelector$.next(null!==(n=null===(e=t.badgeSelector)||void 0===e?void 0:e.currentValue)&&void 0!==n?n:void 0)}};return t.\u0275fac=function(e){return new(e||t)(r.Ob(s.b))},t.\u0275cmp=r.Ib({type:t,selectors:[["tab-label"]],inputs:{heading:"heading",badgeSelector:"badgeSelector"},outputs:{closeTab$:"closeTab"},features:[r.Ab],decls:7,vars:13,consts:[["body","","matBadgeColor","accent","matBadgeOverlap","false",3,"matBadge","matBadgeHidden"],["icon","close-medium","size","lg",3,"click"]],template:function(t,e){1&t&&(r.Ub(0,"p",0),r.gc(1,"async"),r.gc(2,"async"),r.Qc(3),r.gc(4,"translate"),r.Tb(),r.Ub(5,"fa-icon",1),r.bc("click",(function(t){return t.stopPropagation(),e.closeTab$.emit()})),r.gc(6,"async"),r.Tb()),2&t&&(r.mc("matBadge",r.hc(1,5,e.badge$))("matBadgeHidden",void 0===r.hc(2,7,e.badge$)),r.Cb(3),r.Sc(" ",r.hc(4,9,e.heading),"\n"),r.Cb(2),r.Lc("margin-left",r.hc(6,11,e.badge$)?32:0,"px"))},directives:[h.a,d.a,p.b],pipes:[f.b,b.d],styles:["[_nghost-%COMP%]{display:flex;align-items:center}fa-icon[_ngcontent-%COMP%], p[_ngcontent-%COMP%]{color:var(--ghost-colour)}fa-icon[_ngcontent-%COMP%]{cursor:pointer;margin-left:10px;z-index:2}fa-icon[_ngcontent-%COMP%]:hover{color:var(--icon-colour)}[active=true][_nghost-%COMP%] fa-icon[_ngcontent-%COMP%]{color:var(--icon-colour)!important}[active=true][_nghost-%COMP%] p[_ngcontent-%COMP%]{color:var(--input-colour)!important}.mat-badge-content[_ngcontent-%COMP%]{right:-25px!important;top:-6px!important}"],changeDetection:0}),t=Object(i.d)([Object(o.a)()],t),t})()},FUqb:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return s}));var i=n("kZht");let r=(()=>{class t{transform(t){return null==t?t:parseFloat(t)>=0?"+"+t:t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.Nb({name:"change",type:t,pure:!0}),t})(),s=(()=>{class t{transform(t){return t>0?"arrow-small-up":"arrow-small-down"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.Nb({name:"changeIcon",type:t,pure:!0}),t})()},FoZF:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s=n("w6/c");e.default=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e}(s.default)},FpF2:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s=n("Qkwj");e.default=function(t){function e(e,n,i,r){var s=t.call(this,e,n)||this;return s.estimatedModuleSize=i,s.count=r,void 0===r&&(s.count=1),s}return r(e,t),e.prototype.getEstimatedModuleSize=function(){return this.estimatedModuleSize},e.prototype.getCount=function(){return this.count},e.prototype.aboutEquals=function(t,e,n){if(Math.abs(e-this.getY())<=t&&Math.abs(n-this.getX())<=t){var i=Math.abs(t-this.estimatedModuleSize);return i<=1||i<=this.estimatedModuleSize}return!1},e.prototype.combineEstimate=function(t,n,i){var r=this.count+1;return new e((this.count*this.getX()+n)/r,(this.count*this.getY()+t)/r,(this.count*this.estimatedModuleSize+i)/r,r)},e}(s.default)},FxgA:function(t,e,n){"use strict";n.d(e,"a",(function(){return be})),n.d(e,"b",(function(){return me}));var i=n("kZht"),r=n("ENSU"),s=n("+6xv");function o(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function a(t){switch(t.length){case 0:return new s.d;case 1:return t[0];default:return new s.o(t)}}function c(t,e,n,i,r={},o={}){const a=[],c=[];let l=-1,u=null;if(i.forEach(t=>{const n=t.offset,i=n==l,h=i&&u||{};Object.keys(t).forEach(n=>{let i=n,c=t[n];if("offset"!==n)switch(i=e.normalizePropertyName(i,a),c){case s.p:c=r[n];break;case s.a:c=o[n];break;default:c=e.normalizeStyleValue(n,i,c,a)}h[i]=c}),i||c.push(h),u=h,l=n}),a.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${a.join(t)}`)}return c}function l(t,e,n,i){switch(e){case"start":t.onStart(()=>i(n&&u(n,"start",t)));break;case"done":t.onDone(()=>i(n&&u(n,"done",t)));break;case"destroy":t.onDestroy(()=>i(n&&u(n,"destroy",t)))}}function u(t,e,n){const i=n.totalTime,r=h(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==i?t.totalTime:i,!!n.disabled),s=t._data;return null!=s&&(r._data=s),r}function h(t,e,n,i,r="",s=0,o){return{element:t,triggerName:e,fromState:n,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function d(t,e,n){let i;return t instanceof Map?(i=t.get(e),i||t.set(e,i=n)):(i=t[e],i||(i=t[e]=n)),i}function p(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let f=(t,e)=>!1,b=(t,e)=>!1,g=(t,e,n)=>[];const m=o();(m||"undefined"!=typeof Element)&&(f=(t,e)=>t.contains(e),b=(()=>{if(m||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,n)=>e.apply(t,[n]):b}})(),g=(t,e,n)=>{let i=[];if(n)i.push(...t.querySelectorAll(e));else{const n=t.querySelector(e);n&&i.push(n)}return i});let v=null,_=!1;function y(t){v||(v=("undefined"!=typeof document?document.body:null)||{},_=!!v.style&&"WebkitAppearance"in v.style);let e=!0;return v.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in v.style,!e&&_)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in v.style),e}const O=b,C=f,w=g;function T(t){const e={};return Object.keys(t).forEach(n=>{const i=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[i]=t[n]}),e}let S=(()=>{class t{validateStyleProperty(t){return y(t)}matchesElement(t,e){return O(t,e)}containsElement(t,e){return C(t,e)}query(t,e,n){return w(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,i,r,o=[],a){return new s.d(n,i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),k=(()=>{class t{}return t.NOOP=new S,t})();function E(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:x(parseFloat(e[1]),e[2])}function x(t,e){switch(e){case"s":return 1e3*t;default:return t}}function P(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let i,r=0,s="";if("string"==typeof t){const n=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};i=x(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(r=x(parseFloat(o),n[4]));const a=n[5];a&&(s=a)}else i=t;if(!n){let n=!1,s=e.length;i<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),r<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(s,0,`The provided timing value "${t}" is invalid.`)}return{duration:i,delay:r,easing:s}}(t,e,n)}function A(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function I(t,e,n={}){if(e)for(let i in t)n[i]=t[i];else A(t,n);return n}function M(t,e,n){return n?e+":"+n+";":""}function D(t){let e="";for(let n=0;n{const r=V(i);n&&!n.hasOwnProperty(i)&&(n[i]=t.style[r]),t.style[r]=e[i]}),o()&&D(t))}function j(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=V(e);t.style[n]=""}),o()&&D(t))}function L(t){return Array.isArray(t)?1==t.length?t[0]:Object(s.j)(t):t}const N=new RegExp("{{\\s*(.+?)\\s*}}","g");function U(t){let e=[];if("string"==typeof t){let n;for(;n=N.exec(t);)e.push(n[1]);N.lastIndex=0}return e}function F(t,e,n){const i=t.toString(),r=i.replace(N,(t,i)=>{let r=e[i];return e.hasOwnProperty(i)||(n.push("Please provide a value for the animation param "+i),r=""),r.toString()});return r==i?t:r}function B(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const z=/-+([a-z0-9])/g;function V(t){return t.replace(z,(...t)=>t[1].toUpperCase())}function $(t,e){return 0===t||0===e}function H(t,e,n){const i=Object.keys(n);if(i.length&&e.length){let s=e[0],o=[];if(i.forEach(t=>{s.hasOwnProperty(t)||o.push(t),s[t]=n[t]}),o.length)for(var r=1;rfunction(t,e,n){if(":"==t[0]){const i=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e) *"}}(t,n);if("function"==typeof i)return void e.push(i);t=i}const i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const r=i[1],s=i[2],o=i[3];e.push(K(r,o)),"<"!=s[0]||"*"==r&&"*"==o||e.push(K(o,r))}(t,n,e)):n.push(t),n}const G=new Set(["true","1"]),Y=new Set(["false","0"]);function K(t,e){const n=G.has(t)||Y.has(t),i=G.has(e)||Y.has(e);return(r,s)=>{let o="*"==t||t==r,a="*"==e||e==s;return!o&&n&&"boolean"==typeof r&&(o=r?G.has(t):Y.has(t)),!a&&i&&"boolean"==typeof s&&(a=s?G.has(e):Y.has(e)),o&&a}}const Z=new RegExp("s*:selfs*,?","g");function X(t,e,n){return new J(t).build(e,n)}class J{constructor(t){this._driver=t}build(t,e){const n=new tt(e);return this._resetContextStyleTimingState(n),q(this,L(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,i=e.depCount=0;const r=[],s=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const n=t,i=n.name;i.toString().split(/\s*,\s*/).forEach(t=>{n.name=t,r.push(this.visitState(n,e))}),n.name=i}else if(1==t.type){const r=this.visitTransition(t,e);n+=r.queryCount,i+=r.depCount,s.push(r)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:r,transitions:s,queryCount:n,depCount:i,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),i=t.options&&t.options.params||null;if(n.containsDynamicStyles){const r=new Set,s=i||{};if(n.styles.forEach(t=>{if(et(t)){const e=t;Object.keys(e).forEach(t=>{U(e[t]).forEach(t=>{s.hasOwnProperty(t)||r.add(t)})})}}),r.size){const n=B(r.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:t.name,style:n,options:i?{params:i}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=q(this,L(t.animation),e);return{type:1,matchers:W(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:nt(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>q(this,t,e)),options:nt(t.options)}}visitGroup(t,e){const n=e.currentTime;let i=0;const r=t.steps.map(t=>{e.currentTime=n;const r=q(this,t,e);return i=Math.max(i,e.currentTime),r});return e.currentTime=i,{type:3,steps:r,options:nt(t.options)}}visitAnimate(t,e){const n=function(t,e){let n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return it(P(t,e).duration,0,"");const i=t;if(i.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=it(0,0,"");return t.dynamic=!0,t.strValue=i,t}return n=n||P(i,e),it(n.duration,n.delay,n.easing)}(t.timings,e.errors);let i;e.currentAnimateTimings=n;let r=t.styles?t.styles:Object(s.l)({});if(5==r.type)i=this.visitKeyframes(r,e);else{let r=t.styles,o=!1;if(!r){o=!0;const t={};n.easing&&(t.easing=n.easing),r=Object(s.l)(t)}e.currentTime+=n.duration+n.delay;const a=this.visitStyle(r,e);a.isEmptyStep=o,i=a}return e.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}visitStyle(t,e){const n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}_makeStyleAst(t,e){const n=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?t==s.a?n.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):n.push(t)}):n.push(t.styles);let i=!1,r=null;return n.forEach(t=>{if(et(t)){const e=t,n=e.easing;if(n&&(r=n,delete e.easing),!i)for(let t in e)if(e[t].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:r,offset:t.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let i=e.currentTime,r=e.currentTime;n&&r>0&&(r-=n.duration+n.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void e.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const s=e.collectedStyles[e.currentQuerySelector],o=s[n];let a=!0;o&&(r!=i&&r>=o.startTime&&i<=o.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${r}ms" and "${i}ms"`),a=!1),r=o.startTime),a&&(s[n]={startTime:r,endTime:i}),e.options&&function(t,e,n){const i=e.params||{},r=U(t);r.length&&r.forEach(t=>{i.hasOwnProperty(t)||n.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[n],e.options,e.errors)})})}visitKeyframes(t,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),n;let i=0;const r=[];let s=!1,o=!1,a=0;const c=t.steps.map(t=>{const n=this._makeStyleAst(t,e);let c=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(et(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(et(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),l=0;return null!=c&&(i++,l=n.offset=c),o=o||l<0||l>1,s=s||l0&&i{const s=u>0?i==h?1:u*i:r[i],o=s*f;e.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(t,e),t.offset=s,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:q(this,L(t.animation),e),options:nt(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:nt(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:nt(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;const[r,s]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(Z,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,".ng-animating"),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+r:r,d(e.collectedStyles,e.currentQuerySelector,{});const o=q(this,L(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:r,limit:i.limit||0,optional:!!i.optional,includeSelf:s,animation:o,originalSelector:t.selector,options:nt(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const n="full"===t.timings?{duration:0,delay:0,easing:"full"}:P(t.timings,e.errors,!0);return{type:12,animation:q(this,L(t.animation),e),timings:n,options:null}}}class tt{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function et(t){return!Array.isArray(t)&&"object"==typeof t}function nt(t){var e;return t?(t=A(t)).params&&(t.params=(e=t.params)?A(e):null):t={},t}function it(t,e,n){return{duration:t,delay:e,easing:n}}function rt(t,e,n,i,r,s,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}class st{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const ot=new RegExp(":enter","g"),at=new RegExp(":leave","g");function ct(t,e,n,i,r,s={},o={},a,c,l=[]){return(new lt).buildKeyframes(t,e,n,i,r,s,o,a,c,l)}class lt{buildKeyframes(t,e,n,i,r,s,o,a,c,l=[]){c=c||new st;const u=new ht(t,e,c,i,r,l,[]);u.options=a,u.currentTimeline.setStyles([s],null,u.errors,a),q(this,n,u);const h=u.timelines.filter(t=>t.containsAnimation());if(h.length&&Object.keys(o).length){const t=h[h.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,u.errors,a)}return h.length?h.map(t=>t.buildKeyframes()):[rt(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const n=e.subInstructions.consume(e.element);if(n){const i=e.createSubContext(t.options),r=e.currentTimeline.currentTime,s=this._visitSubInstructions(n,i,i.options);r!=s&&e.transformIntoNewTimeline(s)}e.previousNode=t}visitAnimateRef(t,e){const n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,n){let i=e.currentTimeline.currentTime;const r=null!=n.duration?E(n.duration):null,s=null!=n.delay?E(n.delay):null;return 0!==r&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,r,s);i=Math.max(i,n.duration+n.delay)}),i}visitReference(t,e){e.updateOptions(t.options,!0),q(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let i=e;const r=t.options;if(r&&(r.params||r.delay)&&(i=e.createSubContext(r),i.transformIntoNewTimeline(),null!=r.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=ut);const t=E(r.delay);i.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>q(this,t,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let i=e.currentTimeline.currentTime;const r=t.options&&t.options.delay?E(t.options.delay):0;t.steps.forEach(s=>{const o=e.createSubContext(t.options);r&&o.delayNextStep(r),q(this,s,o),i=Math.max(i,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(i),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return P(e.params?F(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const n=e.currentAnimateTimings=this._visitTiming(t.timings,e),i=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),i.snapshotCurrentStyles());const r=t.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(n.duration),this.visitStyle(r,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,i=e.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();const r=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(r):n.setStyles(t.styles,r,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,i=e.currentTimeline.duration,r=n.duration,s=e.createSubContext().currentTimeline;s.easing=n.easing,t.styles.forEach(t=>{s.forwardTime((t.offset||0)*r),s.setStyles(t.styles,t.easing,e.errors,e.options),s.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(i+r),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,i=t.options||{},r=i.delay?E(i.delay):0;r&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=ut);let s=n;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((n,i)=>{e.currentQueryIndex=i;const o=e.createSubContext(t.options,n);r&&o.delayNextStep(r),n===e.element&&(a=o.currentTimeline),q(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,i=e.currentTimeline,r=t.timings,s=Math.abs(r.duration),o=s*(e.currentQueryTotal-1);let a=s*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const c=e.currentTimeline;a&&c.delayNextStep(a);const l=c.currentTime;q(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-l+(i.startTime-n.currentTimeline.startTime)}}const ut={};class ht{constructor(t,e,n,i,r,s,o,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=r,this.errors=s,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ut,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new dt(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let i=this.options;null!=n.duration&&(i.duration=E(n.duration)),null!=n.delay&&(i.delay=E(n.delay));const r=n.params;if(r){let t=i.params;t||(t=this.options.params={}),Object.keys(r).forEach(n=>{e&&t.hasOwnProperty(n)||(t[n]=F(r[n],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const n=t.params={};Object.keys(e).forEach(t=>{n[t]=e[t]})}}return t}createSubContext(t=null,e,n){const i=e||this.element,r=new ht(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(t),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(t){return this.previousNode=ut,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const i={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},r=new pt(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(r),i}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,i,r,s){let o=[];if(i&&o.push(this.element),t.length>0){t=(t=t.replace(ot,"."+this._enterClassName)).replace(at,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=n);0!==n&&(e=n<0?e.slice(e.length+n,e.length):e.slice(0,n)),o.push(...e)}return r||0!=o.length||s.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class dt{constructor(t,e,n,i){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new dt(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||s.a,this._currentKeyframe[t]=s.a}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,i){e&&(this._previousKeyframe.easing=e);const r=i&&i.params||{},o=function(t,e){const n={};let i;return t.forEach(t=>{"*"===t?(i=i||Object.keys(e),i.forEach(t=>{n[t]=s.a})):I(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(o).forEach(t=>{const e=F(o[t],r,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:s.a),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const n=this._styleSummary[e],i=t._styleSummary[e];(!n||i.time>n.time)&&this._updateStyle(e,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((r,o)=>{const a=I(r,!0);Object.keys(a).forEach(n=>{const i=a[n];i==s.p?t.add(n):i==s.a&&e.add(n)}),n||(a.offset=o/this.duration),i.push(a)});const r=t.size?B(t.values()):[],o=e.size?B(e.values()):[];if(n){const t=i[0],e=A(t);t.offset=0,e.offset=1,i=[t,e]}return rt(this.element,i,r,o,this.duration,this.startTime,this.easing,!1)}}class pt extends dt{constructor(t,e,n,i,r,s,o=!1){super(t,e,s.delay),this.element=e,this.keyframes=n,this.preStyleProps=i,this.postStyleProps=r,this._stretchStartingKeyframe=o,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&e){const r=[],s=n+e,o=e/s,a=I(t[0],!1);a.offset=0,r.push(a);const c=I(t[0],!1);c.offset=ft(o),r.push(c);const l=t.length-1;for(let i=1;i<=l;i++){let o=I(t[i],!1);o.offset=ft((e+o.offset*n)/s),r.push(o)}n=s,e=0,i="",t=r}return rt(this.element,t,this.preStyleProps,this.postStyleProps,n,e,i,!0)}}function ft(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class bt{}class gt extends bt{normalizePropertyName(t,e){return V(t)}normalizeStyleValue(t,e,n,i){let r="";const s=n.toString().trim();if(mt[e]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&i.push(`Please provide a CSS unit value for ${t}:${n}`)}return s+r}}const mt=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function vt(t,e,n,i,r,s,o,a,c,l,u,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:r,fromState:n,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:c,preStyleProps:l,postStyleProps:u,totalTime:h,errors:d}}const _t={};class yt{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,i){return function(t,e,n,i,r){return t.some(t=>t(e,n,i,r))}(this.ast.matchers,t,e,n,i)}buildStyles(t,e,n){const i=this._stateStyles["*"],r=this._stateStyles[t],s=i?i.buildStyles(e,n):{};return r?r.buildStyles(e,n):s}build(t,e,n,i,r,s,o,a,c,l){const u=[],h=this.ast.options&&this.ast.options.params||_t,p=this.buildStyles(n,o&&o.params||_t,u),f=a&&a.params||_t,b=this.buildStyles(i,f,u),g=new Set,m=new Map,v=new Map,_="void"===i,y={params:Object.assign(Object.assign({},h),f)},O=l?[]:ct(t,e,this.ast.animation,r,s,p,b,y,c,u);let C=0;if(O.forEach(t=>{C=Math.max(t.duration+t.delay,C)}),u.length)return vt(e,this._triggerName,n,i,_,p,b,[],[],m,v,C,u);O.forEach(t=>{const n=t.element,i=d(m,n,{});t.preStyleProps.forEach(t=>i[t]=!0);const r=d(v,n,{});t.postStyleProps.forEach(t=>r[t]=!0),n!==e&&g.add(n)});const w=B(g.values());return vt(e,this._triggerName,n,i,_,p,b,O,w,m,v,C)}}class Ot{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const n={},i=A(this.defaultParams);return Object.keys(t).forEach(e=>{const n=t[e];null!=n&&(i[e]=n)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const r=t;Object.keys(r).forEach(t=>{let s=r[t];s.length>1&&(s=F(s,i,e)),n[t]=s})}}),n}}class Ct{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new Ot(t.style,t.options&&t.options.params||{})}),wt(this.states,"true","1"),wt(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new yt(t,e,this.states))}),this.fallbackTransition=new yt(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,i){return this.transitionFactories.find(r=>r.match(t,e,n,i))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function wt(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const Tt=new st;class St{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],i=X(this._driver,e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[t]=i}_buildPlayer(t,e,n){const i=t.element,r=c(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(i,r,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const i=[],r=this._animations[t];let o;const c=new Map;if(r?(o=ct(this._driver,e,r,"ng-enter","ng-leave",{},{},n,Tt,i),o.forEach(t=>{const e=d(c,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(i.push("The requested animation doesn't exist or has already been destroyed"),o=[]),i.length)throw new Error("Unable to create the animation due to the following errors: "+i.join("\n"));c.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,s.a)})});const l=a(o.map(t=>{const e=c.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=l,l.onDestroy(()=>this.destroy(t)),this.players.push(l),l}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e}listen(t,e,n,i){const r=h(e,"","","");return l(this._getPlayer(t),n,r,i),()=>{}}command(t,e,n,i){if("register"==n)return void this.register(t,i[0]);if("create"==n)return void this.create(t,e,i[0]||{});const r=this._getPlayer(t);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t)}}}const kt=[],Et={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},xt={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class Pt{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=null!=(i=n?t.value:t)?i:null,n){const e=A(t);delete e.value,this.options=e}else this.options={};var i;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(n=>{null==t[n]&&(t[n]=e[n])})}}}const At=new Pt("void");class It{constructor(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Ut(e,this._hostClassName)}listen(t,e,n,i){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${e}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(r=n)&&"done"!=r)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);var r;const s=d(this._elementListeners,t,[]),o={name:e,phase:n,callback:i};s.push(o);const a=d(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Ut(t,"ng-trigger"),Ut(t,"ng-trigger-"+e),a[e]=At),()=>{this._engine.afterFlush(()=>{const t=s.indexOf(o);t>=0&&s.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,n,i=!0){const r=this._getTrigger(e),s=new Dt(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(Ut(t,"ng-trigger"),Ut(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const c=new Pt(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&c.absorbOptions(a.options),o[e]=c,a||(a=At),"void"!==c.value&&a.value===c.value){if(!function(t,e){const n=Object.keys(t),i=Object.keys(e);if(n.length!=i.length)return!1;for(let r=0;r{j(t,n),R(t,i)})}return}const l=d(this._engine.playersByElement,t,[]);l.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let u=r.matchTransition(a.value,c.value,t,c.params),h=!1;if(!u){if(!i)return;u=r.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:u,fromState:a,toState:c,player:s,isFallbackTransition:h}),h||(Ut(t,"ng-animate-queued"),s.onStart(()=>{Ft(t,"ng-animate-queued")})),s.onDone(()=>{let e=this.players.indexOf(s);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(s);t>=0&&n.splice(t,1)}}),this.players.push(s),l.push(s),s}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,n)=>{delete e[t]}),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const n=this._engine.driver.query(t,".ng-trigger",!0);n.forEach(t=>{if(t.__ng_removed)return;const n=this._engine.fetchNamespacesByElement(t);n.size?n.forEach(n=>n.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,n,i){const r=this._engine.statesByElement.get(t);if(r){const s=[];if(Object.keys(r).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,"void",i);n&&s.push(n)}}),s.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&a(s).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t);if(e){const n=new Set;e.forEach(e=>{const i=e.name;if(n.has(i))return;n.add(i);const r=this._triggers[i].fallbackTransition,s=this._engine.statesByElement.get(t)[i]||At,o=new Pt("void"),a=new Dt(this.id,i,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:i,transition:r,fromState:s,toState:o,player:a,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let i=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)i=!0;else{let e=t;for(;e=e.parentNode;)if(n.statesByElement.get(e)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(t),i)n.markElementAsRemoved(this.id,t,!1,e);else{const i=t.__ng_removed;i&&i!==Et||(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){Ut(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const i=n.player;if(i.destroyed)return;const r=n.element,s=this._elementListeners.get(r);s&&s.forEach(e=>{if(e.name==n.triggerName){const i=h(r,n.triggerName,n.fromState.value,n.toState.value);i._data=t,l(n.player,e.phase,i,e.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):e.push(n)}),this._queue=[],e.sort((t,e)=>{const n=t.transition.ast.depCount,i=e.transition.ast.depCount;return 0==n||0==i?n-i:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class Mt{constructor(t,e,n){this.bodyNode=t,this.driver=e,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const n=new It(t,e,this);return e.parentNode?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}_balanceNamespaceList(t,e){const n=this._namespaceList.length-1;if(n>=0){let i=!1;for(let r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,e)){this._namespaceList.splice(r+1,0,t),i=!0;break}i||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}registerTrigger(t,e,n){let i=this._namespaceLookup[t];i&&i.register(e,n)&&this.totalAnimations++}destroy(t,e){if(!t)return;const n=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(n);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,n=this.statesByElement.get(t);if(n){const t=Object.keys(n);for(let i=0;i=0&&this.collectedLeaveElements.splice(t,1)}if(t){const i=this._fetchNamespace(t);i&&i.insertNode(e,n)}i&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Ut(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Ft(t,"ng-animate-disabled"))}removeNode(t,e,n,i){if(Rt(e)){const r=t?this._fetchNamespace(t):null;if(r?r.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,i)}}else this._onRemovalComplete(e,i)}markElementAsRemoved(t,e,n,i){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,i,r){return Rt(e)?this._fetchNamespace(t).listen(e,n,i,r):()=>{}}_buildInstruction(t,e,n,i,r){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,i,t.fromState.options,t.toState.options,e,r)}destroyInnerAnimations(t){let e=this.driver.query(t,".ng-trigger",!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,".ng-animating",!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return a(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=Et,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?a(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error("Unable to process animations due to the following failed trigger transitions\n "+t.join("\n"))}_flushAnimations(t,e){const n=new st,i=[],r=new Map,o=[],c=new Map,l=new Map,u=new Map,h=new Set;this.disabledNodes.forEach(t=>{h.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let n=0;n{const n="ng-enter"+m++;g.set(e,n),t.forEach(t=>Ut(t,n))});const v=[],_=new Set,y=new Set;for(let s=0;s_.add(t)):y.add(t))}const O=new Map,C=Nt(f,Array.from(_));C.forEach((t,e)=>{const n="ng-leave"+m++;O.set(e,n),t.forEach(t=>Ut(t,n))}),t.push(()=>{b.forEach((t,e)=>{const n=g.get(e);t.forEach(t=>Ft(t,n))}),C.forEach((t,e)=>{const n=O.get(e);t.forEach(t=>Ft(t,n))}),v.forEach(t=>{this.processLeaveNode(t)})});const w=[],T=[];for(let s=this._namespaceList.length-1;s>=0;s--)this._namespaceList[s].drainQueuedTransitions(e).forEach(t=>{const e=t.player,r=t.element;if(w.push(e),this.collectedEnterElements.length){const t=r.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const s=!p||!this.driver.containsElement(p,r),a=O.get(r),h=g.get(r),f=this._buildInstruction(t,n,h,a,s);if(f.errors&&f.errors.length)T.push(f);else{if(s)return e.onStart(()=>j(r,f.fromStyles)),e.onDestroy(()=>R(r,f.toStyles)),void i.push(e);if(t.isFallbackTransition)return e.onStart(()=>j(r,f.fromStyles)),e.onDestroy(()=>R(r,f.toStyles)),void i.push(e);f.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(r,f.timelines),o.push({instruction:f,player:e,element:r}),f.queriedElements.forEach(t=>d(c,t,[]).push(e)),f.preStyleProps.forEach((t,e)=>{const n=Object.keys(t);if(n.length){let t=l.get(e);t||l.set(e,t=new Set),n.forEach(e=>t.add(e))}}),f.postStyleProps.forEach((t,e)=>{const n=Object.keys(t);let i=u.get(e);i||u.set(e,i=new Set),n.forEach(t=>i.add(t))})}});if(T.length){const t=[];T.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),w.forEach(t=>t.destroy()),this.reportError(t)}const S=new Map,k=new Map;o.forEach(t=>{const e=t.element;n.has(e)&&(k.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,S))}),i.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{d(S,e,[]).push(t),t.destroy()})});const E=v.filter(t=>zt(t,l,u)),x=new Map;Lt(x,this.driver,y,u,s.a).forEach(t=>{zt(t,l,u)&&E.push(t)});const P=new Map;b.forEach((t,e)=>{Lt(P,this.driver,new Set(t),l,s.p)}),E.forEach(t=>{const e=x.get(t),n=P.get(t);x.set(t,Object.assign(Object.assign({},e),n))});const A=[],I=[],M={};o.forEach(t=>{const{element:e,player:s,instruction:o}=t;if(n.has(e)){if(h.has(e))return s.onDestroy(()=>R(e,o.toStyles)),s.disabled=!0,s.overrideTotalTime(o.totalTime),void i.push(s);let t=M;if(k.size>1){let n=e;const i=[];for(;n=n.parentNode;){const e=k.get(n);if(e){t=e;break}i.push(n)}i.forEach(e=>k.set(e,t))}const n=this._buildAnimation(s.namespaceId,o,S,r,P,x);if(s.setRealPlayer(n),t===M)A.push(s);else{const e=this.playersByElement.get(t);e&&e.length&&(s.parentPlayer=a(e)),i.push(s)}}else j(e,o.fromStyles),s.onDestroy(()=>R(e,o.toStyles)),I.push(s),h.has(e)&&i.push(s)}),I.forEach(t=>{const e=r.get(t.element);if(e&&e.length){const n=a(e);t.setRealPlayer(n)}}),i.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let s=0;s!t.destroyed);i.length?Bt(this,t,i):this.processLeaveNode(t)}return v.length=0,A.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),A}elementContainsData(t,e){let n=!1;const i=e.__ng_removed;return i&&i.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,i,r){let s=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(s=e)}else{const e=this.playersByElement.get(t);if(e){const t=!r||"void"==r;e.forEach(e=>{e.queued||(t||e.triggerName==i)&&s.push(e)})}}return(n||i)&&(s=s.filter(t=>!(n&&n!=t.namespaceId||i&&i!=t.triggerName))),s}_beforeAnimationBuild(t,e,n){const i=e.element,r=e.isRemovalTransition?void 0:t,s=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,a=t!==i,c=d(n,t,[]);this._getPreviousPlayers(t,a,r,s,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),c.push(t)})}j(i,e.fromStyles)}_buildAnimation(t,e,n,i,r,o){const l=e.triggerName,u=e.element,h=[],p=new Set,f=new Set,b=e.timelines.map(e=>{const a=e.element;p.add(a);const d=a.__ng_removed;if(d&&d.removedBeforeQueried)return new s.d(e.duration,e.delay);const b=a!==u,g=function(t){const e=[];return function t(e,n){for(let i=0;it.getRealPlayer())).filter(t=>!!t.element&&t.element===a),m=r.get(a),v=o.get(a),_=c(0,this._normalizer,0,e.keyframes,m,v),y=this._buildPlayer(e,_,g);if(e.subTimeline&&i&&f.add(a),b){const e=new Dt(t,l,a);e.setRealPlayer(y),h.push(e)}return y});h.forEach(t=>{d(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,n){let i;if(t instanceof Map){if(i=t.get(e),i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&t.delete(e)}}else if(i=t[e],i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&delete t[e]}return i}(this.playersByQueriedElement,t.element,t))}),p.forEach(t=>Ut(t,"ng-animating"));const g=a(b);return g.onDestroy(()=>{p.forEach(t=>Ft(t,"ng-animating")),R(u,e.toStyles)}),f.forEach(t=>{d(i,t,[]).push(g)}),g}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new s.d(t.duration,t.delay)}}class Dt{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new s.d,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(n=>l(t,e,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){d(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Rt(t){return t&&1===t.nodeType}function jt(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function Lt(t,e,n,i,r){const s=[];n.forEach(t=>s.push(jt(t)));const o=[];i.forEach((n,i)=>{const s={};n.forEach(t=>{const n=s[t]=e.computeStyle(i,t,r);n&&0!=n.length||(i.__ng_removed=xt,o.push(i))}),t.set(i,s)});let a=0;return n.forEach(t=>jt(t,s[a++])),o}function Nt(t,e){const n=new Map;if(t.forEach(t=>n.set(t,[])),0==e.length)return n;const i=new Set(e),r=new Map;return e.forEach(t=>{const e=function t(e){if(!e)return 1;let s=r.get(e);if(s)return s;const o=e.parentNode;return s=n.has(o)?o:i.has(o)?1:t(o),r.set(e,s),s}(t);1!==e&&n.get(e).push(t)}),n}function Ut(t,e){if(t.classList)t.classList.add(e);else{let n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function Ft(t,e){if(t.classList)t.classList.remove(e);else{let n=t.$$classes;n&&delete n[e]}}function Bt(t,e,n){a(n).onDone(()=>t.processLeaveNode(e))}function zt(t,e,n){const i=n.get(t);if(!i)return!1;let r=e.get(t);return r?i.forEach(t=>r.add(t)):e.set(t,i),n.delete(t),!0}class Vt{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new Mt(t,e,n),this._timelineEngine=new St(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,i,r){const s=t+"-"+i;let o=this._triggerCache[s];if(!o){const t=[],e=X(this._driver,r,t);if(t.length)throw new Error(`The animation trigger "${i}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e){return new Ct(t,e)}(i,e),this._triggerCache[s]=o}this._transitionEngine.registerTrigger(e,i,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,i){this._transitionEngine.insertNode(t,e,n,i)}onRemove(t,e,n,i){this._transitionEngine.removeNode(t,e,i||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,i){if("@"==n.charAt(0)){const[t,r]=p(n);this._timelineEngine.command(t,e,r,i)}else this._transitionEngine.trigger(t,e,n,i)}listen(t,e,n,i,r){if("@"==n.charAt(0)){const[t,i]=p(n);return this._timelineEngine.listen(t,e,i,r)}return this._transitionEngine.listen(t,e,n,i,r)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function $t(t,e){let n=null,i=null;return Array.isArray(e)&&e.length?(n=qt(e[0]),e.length>1&&(i=qt(e[e.length-1]))):e&&(n=qt(e)),n||i?new Ht(t,n,i):null}let Ht=(()=>{class t{constructor(e,n,i){this._element=e,this._startStyles=n,this._endStyles=i,this._state=0;let r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r={}),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&R(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(R(this._element,this._initialStyles),this._endStyles&&(R(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(j(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(j(this._element,this._endStyles),this._endStyles=null),R(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function qt(t){let e=null;const n=Object.keys(t);for(let i=0;ithis._handleCallback(t)}apply(){!function(t,e){const n=Jt(t,"").trim();n.length&&(function(t,e){let n=0;for(let i=0;i=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Zt(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=Jt(t,"").split(","),i=Kt(n,e);i>=0&&(n.splice(i,1),Xt(t,"",n.join(",")))}(this._element,this._name))}}function Gt(t,e,n){Xt(t,"PlayState",n,Yt(t,e))}function Yt(t,e){const n=Jt(t,"");return n.indexOf(",")>0?Kt(n.split(","),e):Kt([n],e)}function Kt(t,e){for(let n=0;n=0)return n;return-1}function Zt(t,e,n){n?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function Xt(t,e,n,i){const r="animation"+e;if(null!=i){const e=t.style[r];if(e.length){const t=e.split(",");t[i]=n,n=t.join(",")}}t.style[r]=n}function Jt(t,e){return t.style["animation"+e]}class te{constructor(t,e,n,i,r,s,o,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=i,this._delay=r,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=s||"linear",this.totalTime=i+r,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Wt(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(t[n]=e?this._finalStyles[n]:Q(this.element,n))})}this.currentSnapshot=t}}class ee extends s.d{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=T(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class ne{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(t){return y(t)}matchesElement(t,e){return O(t,e)}containsElement(t,e){return C(t,e)}query(t,e,n){return w(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(t=>T(t));let i=`@keyframes ${e} {\n`,r="";n.forEach(t=>{r=" ";const e=parseFloat(t.offset);i+=`${r}${100*e}% {\n`,r+=" ",Object.keys(t).forEach(e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(i+=`${r}animation-timing-function: ${n};\n`));default:return void(i+=`${r}${e}: ${n};\n`)}}),i+=r+"}\n"}),i+="}\n";const s=document.createElement("style");return s.innerHTML=i,s}animate(t,e,n,i,r,s=[],o){o&&this._notifyFaultyScrubber();const a=s.filter(t=>t instanceof te),c={};$(n,i)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>c[t]=e[t])});const l=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(n=>{"offset"!=n&&"easing"!=n&&(e[n]=t[n])})}),e}(e=H(t,e,c));if(0==n)return new ee(t,l);const u="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,u,e);document.querySelector("head").appendChild(h);const d=$t(t,e),p=new te(t,e,u,n,i,r,l,d);return p.onDestroy(()=>{var t;(t=h).parentNode.removeChild(t)}),p}_notifyFaultyScrubber(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}class ie{constructor(t,e,n,i){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,n){return t.animate(e,n)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:Q(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class re{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(se().toString()),this._cssKeyframesDriver=new ne}validateStyleProperty(t){return y(t)}matchesElement(t,e){return O(t,e)}containsElement(t,e){return C(t,e)}query(t,e,n){return w(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,i,r,s=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,i,r,s);const a={duration:n,delay:i,fill:0==i?"both":"forwards"};r&&(a.easing=r);const c={},l=s.filter(t=>t instanceof ie);$(n,i)&&l.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>c[t]=e[t])});const u=$t(t,e=H(t,e=e.map(t=>I(t,!1)),c));return new ie(t,e,a,u)}}function se(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var oe=n("An66");let ae=(()=>{class t extends s.b{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:i.S.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?Object(s.j)(t):t;return ue(this._renderer,null,e,"register",[n]),new ce(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(i.H),i.Yb(oe.d))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();class ce extends s.c{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new le(this._id,t,e||{},this._renderer)}}class le{constructor(t,e,n,i){this.id=t,this.element=e,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return ue(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset")}setPosition(t){this._command("setPosition",t)}getPosition(){return 0}}function ue(t,e,n,i,r){return t.setProperty(e,`@@${n}:${i}`,r)}let he=(()=>{class t{constructor(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const n=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(n);return t||(t=new de("",n,this.engine),this._rendererCache.set(n,t)),t}const i=e.id,r=e.id+"-"+this._currentId;this._currentId++,this.engine.register(r,t);const s=e=>{Array.isArray(e)?e.forEach(s):this.engine.registerTrigger(i,r,t,e.name,e)};return e.data.animation.forEach(s),new pe(this,r,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,n){t>=0&&te(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,n]=t;e(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(i.H),i.Yb(Vt),i.Yb(i.B))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();class de{constructor(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,n){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,!0)}removeChild(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,n,i){this.delegate.setAttribute(t,e,n,i)}removeAttribute(t,e,n){this.delegate.removeAttribute(t,e,n)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,n,i){this.delegate.setStyle(t,e,n,i)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){"@"==e.charAt(0)&&"@.disabled"==e?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n){return this.delegate.listen(t,e,n)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class pe extends de{constructor(t,e,n,i){super(e,n,i),this.factory=t,this.namespaceId=e}setProperty(t,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&"@.disabled"==e?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}listen(t,e,n){if("@"==e.charAt(0)){const i=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let r=e.substr(1),s="";return"@"!=r.charAt(0)&&([r,s]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(r)),this.engine.listen(this.namespaceId,i,r,s,t=>{this.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}let fe=(()=>{class t extends Vt{constructor(t,e,n){super(t.body,e,n)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(oe.d),i.Yb(k),i.Yb(bt))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();const be=new i.s("AnimationModuleType"),ge=[{provide:k,useFactory:function(){return"function"==typeof se()?new re:new ne}},{provide:be,useValue:"BrowserAnimations"},{provide:s.b,useClass:ae},{provide:bt,useFactory:function(){return new gt}},{provide:Vt,useClass:fe},{provide:i.H,useFactory:function(t,e,n){return new he(t,e,n)},deps:[r.e,Vt,i.B]}];let me=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},providers:ge,imports:[r.a]}),t})()},Fy0W:function(t,e,n){"use strict";n.r(e),n.d(e,"SgBrokerTermsComponent",(function(){return A}));var i=n("zqNl"),r=n("0tVE"),s=n("R1aX"),o=n("rxqU"),a=n("kZht"),c=n("mcff"),l=n("rfPA"),u=n("bBQR"),h=n("Eu46"),d=n("1etq"),p=n("An66"),f=n("anSm"),b=n("3W1Y"),g=n("8spT"),m=n("hCLc"),v=n("aDqW");function _(t,e){1&t&&(a.Ub(0,"p",6),a.Qc(1," In order to trade on Kraken Futures, you must have an account on Kraken.com. Please "),a.Ub(2,"a",12),a.Qc(3,"contact support"),a.Tb(),a.Qc(4," and our team will be able to assist with this. "),a.Tb())}function y(t,e){1&t&&(a.Ub(0,"li"),a.Qc(1," In order to trade on Kraken Futures, you must become a client of Payward Brokers by accepting the "),a.Ub(2,"a",13),a.Qc(3,"Terms and Conditions"),a.Tb(),a.Qc(4,". "),a.Tb())}function O(t,e){1&t&&(a.Ub(0,"li"),a.Qc(1," In order to continue trading, you must become a client of Payward Brokers by accepting the "),a.Ub(2,"a",13),a.Qc(3,"Terms and Conditions"),a.Tb(),a.Qc(4," below. "),a.Tb())}function C(t,e){1&t&&(a.Ub(0,"li"),a.Qc(1," By accepting you can continue trading as normal, your open positions and balances will be moved to Payward Brokers automatically. "),a.Tb())}function w(t,e){1&t&&(a.Sb(0),a.Qc(1," This means that certain regulatory protections such as the UK Financial Services Ombudsman no longer apply to you. "),a.Rb())}function T(t,e){1&t&&(a.Ub(0,"p",6),a.Qc(1," Please "),a.Ub(2,"a",12),a.Qc(3,"contact support"),a.Tb(),a.Qc(4," in order to set up your account on Kraken.com "),a.Tb())}function S(t,e){if(1&t){const t=a.Vb();a.Ub(0,"div",14),a.Ub(1,"mat-radio-group",15),a.bc("change",(function(e){return a.Ec(t),a.fc(2).setResponse(e)})),a.Ub(2,"mat-radio-button",16),a.Qc(3," I wish to continue trading on Kraken Futures. I accept the "),a.Ub(4,"a",17),a.Qc(5," Terms & Conditions "),a.Tb(),a.Qc(6," of Payward Brokers PTE Ltd. "),a.Tb(),a.Tb(),a.Tb()}if(2&t){const t=a.fc(2);a.Cb(1),a.mc("value",t.response)}}function k(t,e){if(1&t){const t=a.Vb();a.Ub(0,"button",18),a.bc("click",(function(){return a.Ec(t),a.fc(2).submitResponse()})),a.Qc(1),a.gc(2,"translate"),a.Tb()}if(2&t){const t=a.fc(2);a.mc("disabled",void 0===t.response),a.Cb(1),a.Sc(" ",a.hc(2,2,"BUTTON.SUBMIT")," ")}}function E(t,e){1&t&&(a.Ub(0,"p",6),a.Qc(1," If you are interested in exploring becoming a direct member of the Crypto Facilities MTF, please contact "),a.Ub(2,"a",19),a.Qc(3,"support@cryptofacilities.com"),a.Tb(),a.Tb())}function x(t,e){if(1&t){const t=a.Vb();a.Ub(0,"section",2),a.Ub(1,"p",3),a.Qc(2,' Access to Kraken Futures is now provided through a new legal entity, Payward Brokers PTE Ltd ("Payward Brokers"), a subsidiary of the Payward Group (known as Kraken). '),a.Tb(),a.Pb(3,"br"),a.Oc(4,_,5,0,"p",4),a.Pb(5,"br"),a.Ub(6,"div",5),a.Ub(7,"p",6),a.Qc(8,"What does this mean for me?"),a.Tb(),a.Ub(9,"ul",6),a.Oc(10,y,5,0,"li",7),a.Oc(11,O,5,0,"li",7),a.Oc(12,C,2,0,"li",7),a.Ub(13,"li"),a.Qc(14," Payward Brokers is not regulated by the FCA. "),a.Oc(15,w,2,0,"ng-container",7),a.Tb(),a.Ub(16,"li"),a.Qc(17," Going forward, Payward Brokers will provide you access to new features and innovative products. Watch out for new announcements. "),a.Tb(),a.Tb(),a.Tb(),a.Oc(18,T,5,0,"p",4),a.Oc(19,S,7,1,"div",8),a.Oc(20,k,3,4,"button",9),a.Oc(21,E,4,0,"p",4),a.Ub(22,"div",10),a.bc("click",(function(){return a.Ec(t),a.fc().closeDialog()})),a.Ub(23,"small",11),a.Qc(24,"Dismiss"),a.Tb(),a.Tb(),a.Tb()}if(2&t){const t=e.ngLet;a.Cb(4),a.mc("ngIf",!t.userDetails.external),a.Cb(6),a.mc("ngIf",!t.userDetails.external),a.Cb(1),a.mc("ngIf",t.userDetails.external),a.Cb(1),a.mc("ngIf",t.userDetails.external),a.Cb(3),a.mc("ngIf","RETAIL"===t.persona),a.Cb(3),a.mc("ngIf",!t.userDetails.external),a.Cb(1),a.mc("ngIf",t.userDetails.external),a.Cb(1),a.mc("ngIf",t.userDetails.external),a.Cb(1),a.mc("ngIf","PROFESSIONAL"===t.persona&&"corporate"===t.accountType)}}const P=function(t,e,n){return{persona:t,accountType:e,userDetails:n}};let A=(()=>{class t{constructor(t,e){this.store=t,this.dialogRef=e,this.persona$=this.store.pipe(Object(i.m)(s.d)),this.accountType$=this.store.pipe(Object(i.m)(s.b)),this.userDetails$=this.store.pipe(Object(i.m)(o.d))}closeDialog(){this.dialogRef.close()}setResponse(t){this.response=t.value}submitResponse(){if(void 0!==this.response){const t={documentName:"sgb_terms_and_conditions",response:this.response};this.store.dispatch(Object(r.y)(t)),this.closeDialog()}}}return t.\u0275fac=function(e){return new(e||t)(a.Ob(i.b),a.Ob(c.d))},t.\u0275cmp=a.Ib({type:t,selectors:[["sg-broker-terms"]],decls:5,vars:11,consts:[["heading","Change in Terms & Conditions"],["class","sg-broker-terms",4,"ngLet"],[1,"sg-broker-terms"],["subheading",""],["body","",4,"ngIf"],[1,"details"],["body",""],[4,"ngIf"],["class","checkboxes",4,"ngIf"],["body","","mat-raised-button","",3,"disabled","click",4,"ngIf"],[1,"remind-later",3,"click"],["caption",""],["href","https://support.kraken.com/hc/en-us/requests/new?ticket_form_id=360000286871","target","_blank"],["href","https://support.kraken.com/hc/en-us/articles/360047047031-Payward-Brokers-Pte-Ltd-Terms-Conditions","target","_blank"],[1,"checkboxes"],["body","",3,"value","change"],["value","true"],["href","https://support.kraken.com/hc/en-us/articles/360047047031","target","_blank"],["body","","mat-raised-button","",3,"disabled","click"],["href","mailto:support@cryptofacilities.com"]],template:function(t,e){1&t&&(a.Ub(0,"pro-dialog",0),a.Oc(1,x,25,9,"section",1),a.gc(2,"async"),a.gc(3,"async"),a.gc(4,"async"),a.Tb()),2&t&&(a.Cb(1),a.mc("ngLet",a.tc(7,P,a.hc(2,1,e.persona$),a.hc(3,3,e.accountType$),a.hc(4,5,e.userDetails$))))},directives:[l.a,u.a,h.a,d.a,p.n,f.a,b.a,g.b,g.a,m.b],pipes:[p.b,v.d],styles:[".sg-broker-terms[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:600px}.sg-broker-terms[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:var(--spacing-l) 0}.sg-broker-terms[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{list-style:disc;padding-left:var(--spacing);margin:var(--spacing) 0 var(--spacing) var(--spacing)}.sg-broker-terms[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:not(:last-of-type){padding-bottom:var(--spacing-s)}.sg-broker-terms[_ngcontent-%COMP%] .details[_ngcontent-%COMP%]{margin-bottom:var(--spacing-s)}.sg-broker-terms[_ngcontent-%COMP%] .checkboxes[_ngcontent-%COMP%]{margin:var(--spacing-l) 0 var(--spacing) 0}.sg-broker-terms[_ngcontent-%COMP%] .remind-later[_ngcontent-%COMP%]{text-align:right;cursor:pointer}.sg-broker-terms[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--brand)}.sg-broker-terms[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .sg-broker-terms[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{line-height:1.3em}"],changeDetection:0}),t})()},G0l2:function(t,e,n){"use strict";n.r(e),n.d(e,"MobileLoginInfoComponent",(function(){return x}));var i=n("D57K"),r=n("zqNl"),s=n("BpC5"),o=n("9baa"),a=n("YtkY"),c=n("lx5p"),l=n("uJYd"),u=n("94ty"),h=n("9Ccw"),d=n("kZht"),p=n("mcff"),f=n("rfPA"),b=n("bBQR"),g=n("anSm"),m=n("Eu46"),v=n("An66"),_=n("hCLc"),y=n("EmXI"),O=n("Tcl6"),C=n("YC1o"),w=n("NxuZ"),T=n("aDqW");function S(t,e){if(1&t){const t=d.Vb();d.Ub(0,"button",6),d.bc("click",(function(){return d.Ec(t),d.fc(2).openScanner()})),d.Qc(1),d.gc(2,"translate"),d.Tb()}2&t&&(d.Cb(1),d.Sc(" ",d.hc(2,1,"BUTTON.NEXT")," "))}function k(t,e){if(1&t&&(d.Ub(0,"mat-form-field",7),d.Ub(1,"mat-label"),d.Qc(2),d.gc(3,"translate"),d.Tb(),d.Pb(4,"input",8),d.Ub(5,"button",9),d.Pb(6,"fa-icon",10),d.Tb(),d.Tb()),2&t){const t=d.fc().ngLet;d.Cb(2),d.Rc(d.hc(3,3,"FORM.CONFIRMATION_CODE")),d.Cb(2),d.mc("value",t),d.Cb(1),d.mc("clipboard",t)}}function E(t,e){if(1&t&&(d.Sb(0),d.Oc(1,S,3,3,"button",4),d.Oc(2,k,7,5,"mat-form-field",5),d.Rb()),2&t){const t=e.ngLet;d.Cb(1),d.mc("ngIf",!t),d.Cb(1),d.mc("ngIf",t)}}let x=(()=>{class t{constructor(t,e,n){this.dialogRef=t,this.store=e,this.scanner=n,this.confirmationCode$=this.store.pipe(Object(r.m)(h.e),Object(a.a)(c.O))}openScanner(){o.a.isNative?this.openNativeScanner():(this.dialogRef.close(),this.store.dispatch(Object(l.g)({name:"mobile-scan"})))}openNativeScanner(){return Object(i.a)(this,void 0,void 0,(function*(){try{const t=yield this.scanner.scan({preferFrontCamera:!1,showFlipCameraButton:!1,showTorchButton:!1,formats:"QR_CODE"});this.store.dispatch(Object(u.v)({serializedPayload:t.text})),this.store.dispatch(Object(l.g)({name:"mobile-scan"})),this.dialogRef.close()}catch(t){console.error(t),"string"==typeof t&&this.store.dispatch(Object(l.l)(`${t.charAt(0).toUpperCase()}${t.slice(1)}`))}}))}}return t.\u0275fac=function(e){return new(e||t)(d.Ob(p.d),d.Ob(r.b),d.Ob(s.a))},t.\u0275cmp=d.Ib({type:t,selectors:[["mobile-login-info"]],decls:20,vars:18,consts:[["heading","MOBILE_LOGIN_INFO.TITLE"],[1,"mobile-login-info"],["body",""],[4,"ngLet"],["mat-raised-button","",3,"click",4,"ngIf"],["color","accent","appearance","fill",4,"ngIf"],["mat-raised-button","",3,"click"],["color","accent","appearance","fill"],["matInput","","readonly","","inputmode","numeric","autocomplete","off",3,"value"],["type","button","mat-button","","matSuffix","","mat-icon-button","",3,"clipboard"],["icon","copy","size","2x"]],template:function(t,e){1&t&&(d.Ub(0,"pro-dialog",0),d.Ub(1,"section",1),d.Ub(2,"ul"),d.Ub(3,"li",2),d.Qc(4),d.gc(5,"translate"),d.Tb(),d.Ub(6,"li",2),d.Qc(7),d.gc(8,"translate"),d.Tb(),d.Ub(9,"li",2),d.Qc(10),d.gc(11,"translate"),d.Tb(),d.Ub(12,"li",2),d.Qc(13),d.gc(14,"translate"),d.Tb(),d.Ub(15,"li",2),d.Qc(16),d.gc(17,"translate"),d.Tb(),d.Tb(),d.Oc(18,E,3,2,"ng-container",3),d.gc(19,"async"),d.Tb(),d.Tb()),2&t&&(d.Cb(4),d.Sc("- ",d.hc(5,6,"MOBILE_LOGIN_INFO.BODY_1"),""),d.Cb(3),d.Sc("- ",d.hc(8,8,"MOBILE_LOGIN_INFO.BODY_2"),""),d.Cb(3),d.Sc("- ",d.hc(11,10,"MOBILE_LOGIN_INFO.BODY_3"),""),d.Cb(3),d.Sc("- ",d.hc(14,12,"MOBILE_LOGIN_INFO.BODY_4"),""),d.Cb(3),d.Sc("- ",d.hc(17,14,"MOBILE_LOGIN_INFO.BODY_5"),""),d.Cb(2),d.mc("ngLet",d.hc(19,16,e.confirmationCode$)))},directives:[f.a,b.a,g.a,m.a,v.n,_.b,y.c,y.f,O.b,y.h,C.a,w.b],pipes:[T.d,v.b],styles:[".mobile-login-info[_ngcontent-%COMP%] [_ngcontent-%COMP%]:not(:first-child){margin:var(--spacing) 0}.mobile-login-info[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{border:1px solid var(--border-colour)}.mobile-login-info[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .mobile-login-info[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%}"],changeDetection:0}),t})()},GGXD:function(t,e,n){"use strict";n.d(e,"c",(function(){return r})),n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return o})),n.d(e,"e",(function(){return a})),n.d(e,"d",(function(){return c}));var i=n("zqNl");const r=Object(i.g)("Reset Private Notifications State"),s=Object(i.g)("Open Public Notifications Feed"),o=Object(i.g)("Open Private Notifications Feed"),a=Object(i.g)("Set Public Notifications",Object(i.l)()),c=Object(i.g)("Set Private Notifications",Object(i.l)())},GJJ8:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=e.DataMaskValues=function(t){return t[t.DATA_MASK_000=0]="DATA_MASK_000",t[t.DATA_MASK_001=1]="DATA_MASK_001",t[t.DATA_MASK_010=2]="DATA_MASK_010",t[t.DATA_MASK_011=3]="DATA_MASK_011",t[t.DATA_MASK_100=4]="DATA_MASK_100",t[t.DATA_MASK_101=5]="DATA_MASK_101",t[t.DATA_MASK_110=6]="DATA_MASK_110",t[t.DATA_MASK_111=7]="DATA_MASK_111",t}(e.DataMaskValues||{}),r=function(){function t(t,e){this.value=t,this.isMasked=e}return t.prototype.unmaskBitMatrix=function(t,e){for(var n=0;n{const i=new s.a;return i.add(e.schedule(()=>{const r=t[o.a]();i.add(r.subscribe({next(t){i.add(e.schedule(()=>n.next(t)))},error(t){i.add(e.schedule(()=>n.error(t)))},complete(){i.add(e.schedule(()=>n.complete()))}}))})),i})}(t,e);if(Object(l.a)(t))return function(t,e){return new i.a(n=>{const i=new s.a;return i.add(e.schedule(()=>t.then(t=>{i.add(e.schedule(()=>{n.next(t),i.add(e.schedule(()=>n.complete()))}))},t=>{i.add(e.schedule(()=>n.error(t)))}))),i})}(t,e);if(Object(u.a)(t))return Object(a.a)(t,e);if(function(t){return t&&"function"==typeof t[c.a]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new i.a(n=>{const i=new s.a;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(e.schedule(()=>{r=t[c.a](),i.add(e.schedule((function(){if(n.closed)return;let t,e;try{const n=r.next();t=n.value,e=n.done}catch(i){return void n.error(i)}e?n.complete():(n.next(t),this.schedule())})))})),i})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof i.a?t:new i.a(Object(r.a)(t))}},"H0/1":function(t,e,n){"use strict";n.d(e,"c",(function(){return c})),n.d(e,"b",(function(){return l})),n.d(e,"a",(function(){return h})),n.d(e,"d",(function(){return d})),n.d(e,"e",(function(){return p})),n.d(e,"f",(function(){return f}));var i=n("9hG1"),r=n("nXdR"),s=n("lx5p"),o=n("VmIW"),a=n("TYVA");function c(t){return t.map(t=>{var e;return Object.assign(Object.assign({},t),{asset:t.asset.toUpperCase(),collateral:null===(e=t.collateral)||void 0===e?void 0:e.toUpperCase(),margin_account:("flex"===t.margin_account?"MC":t.margin_account).toUpperCase(),fee:t.fee||t.liquidation_fee?(t.fee||0)+(t.liquidation_fee||0):0,numericDateTime:i.DateTime.fromISO(t.date).toMillis()})})}function l(t){const e=Array.from(t.groupBy(t=>t.execution).keys());return t.map(t=>Object.assign(Object.assign({},t),{executionGroup:e.findIndex(e=>e===t.execution)}))}const u={numericPrecision:{short:0,full:0},numericFormat:{short:"1.0-0",full:"1.0-0"}};function h(t,e,n){if(n.asset.includes("_")){const i=e.get(n.asset);if("futures_inverse"===(null==i?void 0:i.type))return Object.assign(Object.assign({},n),{balanceFormat:u,market:i});{const{parts:e}=Object(a.u)(n.asset),r=t.get(e.currencies.base);return Object.assign(Object.assign({},n),{balanceFormat:r,market:i})}}{const e=n.margin_account.includes("-")?Object(r.d)(n.margin_account):n.margin_account,i=t.find(t=>t.name===e);return Object.assign(Object.assign({},n),{balanceFormat:i})}}function d(t){return t.map(t=>Object.assign(Object.assign({},t),{type:"DEPOSIT"}))}function p(t){return t.map(t=>Object.assign(Object.assign({},t),{type:"WITHDRAWAL",timestamp:t.lastUpdated}))}function f(t){return t.elements.map(({event:t})=>{if("OrderPlaced"in t){const{order:e,reason:n}=t.OrderPlaced,i={reason:n,timestamp:e.timestamp,symbol:e.tradeable,direction:e.direction,quantity:e.quantity,filled:e.filled,limitPrice:e.limitPrice,reduceOnly:e.reduceOnly,uid:e.uid};return Object(o.Some)(i)}if("OrderUpdated"in t){const{newOrder:e,reason:n}=t.OrderUpdated,i={reason:n,timestamp:e.timestamp,symbol:e.tradeable,direction:e.direction,quantity:e.quantity,filled:e.filled,limitPrice:e.limitPrice,reduceOnly:e.reduceOnly,uid:e.uid};return Object(o.Some)(i)}return Object(o.None)()}).filter(s.r).map(s.P)}},H0VX:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.length,n=e%4;if(!n)return t;var i=e,r=4-n,s=Buffer.alloc(e+r);for(s.write(t);r--;)s.write("=",i++);return s.toString()}},H88Z:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s=n("Qkwj");e.default=function(t){function e(e,n,i){var r=t.call(this,e,n)||this;return r.estimatedModuleSize=i,r}return r(e,t),e.prototype.aboutEquals=function(t,e,n){if(Math.abs(e-this.getY())<=t&&Math.abs(n-this.getX())<=t){var i=Math.abs(t-this.estimatedModuleSize);return i<=1||i<=this.estimatedModuleSize}return!1},e.prototype.combineEstimate=function(t,n,i){return new e((this.getX()+n)/2,(this.getY()+t)/2,(this.estimatedModuleSize+i)/2)},e}(s.default)},HGNU:function(t,e,n){"use strict";n.r(e),n.d(e,"InboundTransferPopupComponent",(function(){return l}));var i=n("kZht"),r=n("rfPA"),s=n("bBQR"),o=n("1etq"),a=n("anSm"),c=n("6D9M");let l=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["inbound-transfer-popup"]],decls:7,vars:0,consts:[["heading","Inbound transfer preference"],["subheading",""],["body",""]],template:function(t,e){1&t&&(i.Ub(0,"pro-dialog",0),i.Ub(1,"section"),i.Ub(2,"p",1),i.Qc(3,"Please select your wallet preference for new inbound transfers."),i.Tb(),i.Ub(4,"p",2),i.Qc(5," Note that any inbound transfers of currencies not supported by your preferred wallet will be sent by default to your futures collateral wallet which supports those currencies. "),i.Tb(),i.Pb(6,"transfer-preference"),i.Tb(),i.Tb())},directives:[r.a,s.a,o.a,a.a,c.a],styles:["section[_ngcontent-%COMP%]{max-width:500px}"],changeDetection:0}),t})()},HHCP:function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var i=n("sXtk"),r=n("MUfl"),s=n("kZht"),o=n("An66"),a=n("hCLc"),c=n("B6Vo"),l=n("NxuZ");function u(t,e){if(1&t&&(s.Ub(0,"a",1),s.Ub(1,"button",2),s.Ub(2,"span",3),s.Pb(3,"fa-icon",4),s.Qc(4," Trade Futures on Kraken Pro "),s.Tb(),s.Tb(),s.Tb()),2&t){const t=s.fc();s.mc("href",t.fusionUrl,s.Gc)}}let h=(()=>{class t{constructor(t,e){this.featureService=t,this.env=e}get isFusionBannerEnabled(){return this.featureService.isEnabled("fusionBanners")}get fusionUrl(){return this.env.urls.fusion}}return t.\u0275fac=function(e){return new(e||t)(s.Ob(r.a),s.Ob(i.a))},t.\u0275cmp=s.Ib({type:t,selectors:[["fusion-banner"]],decls:1,vars:1,consts:[[3,"href",4,"ngIf"],[3,"href"],["type","button","mat-button","","variant","clear","sbTooltip","Spot and futures trading in one seamless interface"],[1,"banner-label"],["icon","kraken","size","lg"]],template:function(t,e){1&t&&s.Oc(0,u,5,1,"a",0),2&t&&s.mc("ngIf",e.isFusionBannerEnabled)},directives:[o.n,a.b,c.a,l.b],styles:[".banner-label[_ngcontent-%COMP%]{display:flex}.banner-label[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{margin-right:var(--spacing-s)}"],changeDetection:0}),t})()},HM3f:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i=n("gBlb"),r=n("FU6l"),s=n("pBDD"),o=n("mW0F"),a=n("ckkg");const c={};function l(...t){let e=void 0,n=void 0;return Object(i.a)(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&Object(r.a)(t[0])&&(t=t[0]),Object(a.a)(t,n).lift(new u(e))}class u{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new h(t,this.resultSelector))}}class h extends s.a{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(c),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let n=0;n{class t{constructor(){this.currencies=s.e,this.filter=!1,this.favorites=[],this.filterFavorites=!1,this.selectTicker$=new i.o,this.addFavorite$=new i.o,this.removeFavorite$=new i.o}ngOnInit(){this.currencies=Object.keys(Object(r.b)(this.tickers).map(t=>t.map(t=>Object(s.u)(t.product_id).parts.currencies.base)).toObject())}filterCurrency(t){this.filter=t}toggleFavorite(t){const e=Object(o.i)(t);this.isFavorite(t)?this.removeFavorite$.emit(e):this.addFavorite$.emit(e)}get filteredCurrencies(){return this.filter?[this.filter]:this.currencies.filter(t=>(this.filteredTickers[t]||[]).length>0)}get filteredTickers(){if(!this.tickers)return{};if(!this.filterFavorites)return this.tickers;const t=this.favorites;return Object(r.b)(this.tickers).map(e=>e.filter(e=>t.includes(Object(o.i)(e)))).filter(t=>t.length>0).toObject()}customTag(t){var e;return null===(e=Object(s.t)(t).orUndefined())||void 0===e?void 0:e.customTag}trackByProductId(t,e){return e.product_id}mid(t){return Object(o.j)(t)||0}isFavorite(t){if(!this.favorites)return!1;const e=Object(o.i)(t);return this.favorites.includes(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["markets-overview-futures"]],inputs:{tickers:"tickers",favorites:"favorites",filterFavorites:"filterFavorites"},outputs:{selectTicker$:"selectTicker",addFavorite$:"addFavorite",removeFavorite$:"removeFavorite"},decls:3,vars:1,consts:[["class","tickers",4,"ngIf"],["noItems",""],[1,"tickers"],[4,"ngFor","ngForOf"],["subheading","",1,"base"],[3,"base"],["ghost",""],["selectable","","class","contract",3,"click",4,"ngFor","ngForOf","ngForTrackField"],["selectable","",1,"contract",3,"click"],["body","",1,"contract-tag"],[3,"pair"],[4,"ngIf","ngIfElse"],["standardTag",""],[1,"contract-detail","contract-maturity"],["caption",""],["body",""],[1,"contract-detail","contract-dtm"],[1,"contract-detail","contract-mid"],["body","","mono",""],[1,"contract-detail","contract-premium"],["body","","mono","","pnl","ticker.premium"],[1,"contract-detail","contract-volume"],["body","","ghost","",1,"contract-detail","contract-favorite",3,"click"],["size","2x",3,"icon"],["fixed",""],["label",""],["body","",1,"global__text--warn"]],template:function(t,e){1&t&&(i.Oc(0,I,2,1,"div",0),i.Oc(1,M,3,3,"ng-template",null,1,i.Pc)),2&t&&i.mc("ngIf",e.tickers)},directives:[a.n,a.m,c.a,l.a,u.a,h.b,d.a,p.a,f.a,b.a,g.a,m.b,v.a],pipes:[_.b,y.d,a.e,O.c,a.f,C.b,w.d],styles:["[_nghost-%COMP%]{display:flex;margin:var(--spacing);height:35em;max-height:100%}@media (max-width:599px){[_nghost-%COMP%]{height:40em}}.currencies[_ngcontent-%COMP%]{align-self:flex-start;background-color:var(--card-colour);border:1px solid var(--border-colour);border-left:0;margin-right:var(--spacing-l)}.currencies[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{align-items:center;border-left:solid var(--border-colour) var(--spacing-s);cursor:pointer;display:flex;padding:var(--spacing);width:250px}.currencies[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:not(:last-of-type){border-bottom:1px solid var(--border-colour)}.currencies[_ngcontent-%COMP%] li[_ngcontent-%COMP%] market-icon[_ngcontent-%COMP%]{margin-right:var(--spacing)}.currency--active[_ngcontent-%COMP%]{border-left:solid var(--icon-colour) var(--spacing-s)!important;color:var(--icon-colour)}.tickers[_ngcontent-%COMP%]{overflow:auto}@media (max-width:599px){.tickers[_ngcontent-%COMP%]{width:100%}}.base[_ngcontent-%COMP%]{padding:var(--spacing) 0}.base[_ngcontent-%COMP%]:not(:first-of-type){margin-top:var(--spacing);border-top:1px solid var(--border-colour)}.contract[_ngcontent-%COMP%]{display:flex;align-items:center;padding:var(--spacing-s)}.contract[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-transform:capitalize}.contract-detail[_ngcontent-%COMP%]{margin-left:var(--spacing-l);min-width:50px}.contract-detail[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{display:block;margin-bottom:var(--spacing-s);color:var(--ghost-colour)}.contract-favorite[_ngcontent-%COMP%]{color:var(--brand)!important}.contract-tag[_ngcontent-%COMP%]{width:17ch;white-space:nowrap;text-transform:capitalize}.contract-maturity[_ngcontent-%COMP%]{width:12ch}.contract-dtm[_ngcontent-%COMP%]{width:6ch}.contract-mid[_ngcontent-%COMP%]{width:9ch}.contract-premium[_ngcontent-%COMP%]{width:6ch}.contract-volume[_ngcontent-%COMP%]{width:10ch}@media (max-width:599px){.currencies[_ngcontent-%COMP%]{display:none}.contract-dtm[_ngcontent-%COMP%], .contract-favorite[_ngcontent-%COMP%], .contract-maturity[_ngcontent-%COMP%], .contract-premium[_ngcontent-%COMP%]{display:none!important}}"],changeDetection:0}),t})()},HgnN:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));let i=!1;const r={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else i&&console.log("RxJS: Back to a better error behavior. Thank you. <3");i=t},get useDeprecatedSynchronousErrorHandling(){return i}}},HnIH:function(t,e,n){var i=n("yBEi").getSymbolSize;e.getPositions=function(t){var e=i(t);return[[0,0],[e-7,0],[0,e-7]]}},Hq54:function(t,e,n){"use strict";n.d(e,"a",(function(){return v})),n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return b})),n.d(e,"d",(function(){return u})),n.d(e,"e",(function(){return s})),n.d(e,"f",(function(){return o})),n.d(e,"g",(function(){return h})),n.d(e,"h",(function(){return d})),n.d(e,"i",(function(){return m})),n.d(e,"j",(function(){return l})),n.d(e,"k",(function(){return c})),n.d(e,"l",(function(){return f})),n.d(e,"m",(function(){return a})),n.d(e,"n",(function(){return r})),n.d(e,"o",(function(){return p})),n.d(e,"p",(function(){return _})),n.d(e,"q",(function(){return g})),n.d(e,"r",(function(){return y}));const i=8,r=9,s=13,o=27,a=32,c=33,l=34,u=35,h=36,d=37,p=38,f=39,b=40,g=48,m=57,v=65,_=90;function y(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}},HyYW:function(t,e,n){"use strict";n.d(e,"a",(function(){return te}));const i=Math.PI,r=2*i,s=r-1e-6;function o(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function a(){return new o}o.prototype=a.prototype={constructor:o,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,i){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+i)},bezierCurveTo:function(t,e,n,i,r,s){this._+="C"+ +t+","+ +e+","+ +n+","+ +i+","+(this._x1=+r)+","+(this._y1=+s)},arcTo:function(t,e,n,r,s){var o=this._x1,a=this._y1,c=(n=+n)-(t=+t),l=(r=+r)-(e=+e),u=o-t,h=a-e,d=u*u+h*h;if((s=+s)<0)throw new Error("negative radius: "+s);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(d>1e-6)if(Math.abs(h*c-l*u)>1e-6&&s){var p=n-o,f=r-a,b=c*c+l*l,g=p*p+f*f,m=Math.sqrt(b),v=Math.sqrt(d),_=s*Math.tan((i-Math.acos((b+d-g)/(2*m*v)))/2),y=_/v,O=_/m;Math.abs(y-1)>1e-6&&(this._+="L"+(t+y*u)+","+(e+y*h)),this._+="A"+s+","+s+",0,0,"+ +(h*p>u*f)+","+(this._x1=t+O*c)+","+(this._y1=e+O*l)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,n,o,a,c){t=+t,e=+e,c=!!c;var l=(n=+n)*Math.cos(o),u=n*Math.sin(o),h=t+l,d=e+u,p=1^c,f=c?o-a:a-o;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+h+","+d:(Math.abs(this._x1-h)>1e-6||Math.abs(this._y1-d)>1e-6)&&(this._+="L"+h+","+d),n&&(f<0&&(f=f%r+r),f>s?this._+="A"+n+","+n+",0,1,"+p+","+(t-l)+","+(e-u)+"A"+n+","+n+",0,1,"+p+","+(this._x1=h)+","+(this._y1=d):f>1e-6&&(this._+="A"+n+","+n+",0,"+ +(f>=i)+","+p+","+(this._x1=t+n*Math.cos(a))+","+(this._y1=e+n*Math.sin(a))))},rect:function(t,e,n,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +i+"h"+-n+"Z"},toString:function(){return this._}};var c=a,l=function(t){return function(){return t}},u=Math.abs,h=Math.atan2,d=Math.cos,p=Math.max,f=Math.min,b=Math.sin,g=Math.sqrt,m=Math.PI,v=m/2,_=2*m;function y(t){return t>1?0:t<-1?m:Math.acos(t)}function O(t){return t>=1?v:t<=-1?-v:Math.asin(t)}function C(t){return t.innerRadius}function w(t){return t.outerRadius}function T(t){return t.startAngle}function S(t){return t.endAngle}function k(t){return t&&t.padAngle}function E(t,e,n,i,r,s,o,a){var c=n-t,l=i-e,u=o-r,h=a-s,d=h*c-u*l;if(!(d*d<1e-12))return[t+(d=(u*(e-s)-h*(t-r))/d)*c,e+d*l]}function x(t,e,n,i,r,s,o){var a=t-n,c=e-i,l=(o?s:-s)/g(a*a+c*c),u=l*c,h=-l*a,d=t+u,f=e+h,b=n+u,m=i+h,v=(d+b)/2,_=(f+m)/2,y=b-d,O=m-f,C=y*y+O*O,w=r-s,T=d*m-b*f,S=(O<0?-1:1)*g(p(0,w*w*C-T*T)),k=(T*O-y*S)/C,E=(-T*y-O*S)/C,x=(T*O+y*S)/C,P=(-T*y+O*S)/C,A=k-v,I=E-_,M=x-v,D=P-_;return A*A+I*I>M*M+D*D&&(k=x,E=P),{cx:k,cy:E,x01:-u,y01:-h,x11:k*(r/w-1),y11:E*(r/w-1)}}var P=Math.sqrt(50),A=Math.sqrt(10),I=Math.sqrt(2);function M(t,e,n){var i=(e-t)/Math.max(0,n),r=Math.floor(Math.log(i)/Math.LN10),s=i/Math.pow(10,r);return r>=0?(s>=P?10:s>=A?5:s>=I?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(s>=P?10:s>=A?5:s>=I?2:1)}var D=function(t,e){return te?1:t>=e?0:NaN},R=function(t){let e=t,n=t;function i(t,e,i,r){for(null==i&&(i=0),null==r&&(r=t.length);i>>1;n(t[s],e)<0?i=s+1:r=s}return i}return 1===t.length&&(e=(e,n)=>t(e)-n,n=function(t){return(e,n)=>D(t(e),n)}(t)),{left:i,center:function(t,n,r,s){null==r&&(r=0),null==s&&(s=t.length);const o=i(t,n,r,s-1);return o>r&&e(t[o-1],n)>-e(t[o],n)?o-1:o},right:function(t,e,i,r){for(null==i&&(i=0),null==r&&(r=t.length);i>>1;n(t[s],e)>0?r=s:i=s+1}return i}}};const j=R(D).right;R((function(t){return null===t?NaN:+t}));var L=j,N=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function U(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function F(){}var B=1/.7,z="\\s*([+-]?\\d+)\\s*",V="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",$="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",H=/^#([0-9a-f]{3,8})$/,q=new RegExp("^rgb\\("+[z,z,z]+"\\)$"),Q=new RegExp("^rgb\\("+[$,$,$]+"\\)$"),W=new RegExp("^rgba\\("+[z,z,z,V]+"\\)$"),G=new RegExp("^rgba\\("+[$,$,$,V]+"\\)$"),Y=new RegExp("^hsl\\("+[V,$,$]+"\\)$"),K=new RegExp("^hsla\\("+[V,$,$,V]+"\\)$"),Z={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function X(){return this.rgb().formatHex()}function J(){return this.rgb().formatRgb()}function tt(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=H.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?et(e):3===n?new st(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?nt(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?nt(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=q.exec(t))?new st(e[1],e[2],e[3],1):(e=Q.exec(t))?new st(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=W.exec(t))?nt(e[1],e[2],e[3],e[4]):(e=G.exec(t))?nt(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Y.exec(t))?lt(e[1],e[2]/100,e[3]/100,1):(e=K.exec(t))?lt(e[1],e[2]/100,e[3]/100,e[4]):Z.hasOwnProperty(t)?et(Z[t]):"transparent"===t?new st(NaN,NaN,NaN,0):null}function et(t){return new st(t>>16&255,t>>8&255,255&t,1)}function nt(t,e,n,i){return i<=0&&(t=e=n=NaN),new st(t,e,n,i)}function it(t){return t instanceof F||(t=tt(t)),t?new st((t=t.rgb()).r,t.g,t.b,t.opacity):new st}function rt(t,e,n,i){return 1===arguments.length?it(t):new st(t,e,n,null==i?1:i)}function st(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function ot(){return"#"+ct(this.r)+ct(this.g)+ct(this.b)}function at(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function ct(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function lt(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new ht(t,e,n,i)}function ut(t){if(t instanceof ht)return new ht(t.h,t.s,t.l,t.opacity);if(t instanceof F||(t=tt(t)),!t)return new ht;if(t instanceof ht)return t;var e=(t=t.rgb()).r/255,n=t.g/255,i=t.b/255,r=Math.min(e,n,i),s=Math.max(e,n,i),o=NaN,a=s-r,c=(s+r)/2;return a?(o=e===s?(n-i)/a+6*(n0&&c<1?0:o,new ht(o,a,c,t.opacity)}function ht(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function dt(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function pt(t,e,n,i,r){var s=t*t,o=s*t;return((1-3*t+3*s-o)*e+(4-6*s+3*o)*n+(1+3*t+3*s-3*o)*i+o*r)/6}N(F,tt,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:X,formatHex:X,formatHsl:function(){return ut(this).formatHsl()},formatRgb:J,toString:J}),N(st,rt,U(F,{brighter:function(t){return t=null==t?B:Math.pow(B,t),new st(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new st(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ot,formatHex:ot,formatRgb:at,toString:at})),N(ht,(function(t,e,n,i){return 1===arguments.length?ut(t):new ht(t,e,n,null==i?1:i)}),U(F,{brighter:function(t){return t=null==t?B:Math.pow(B,t),new ht(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new ht(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,r=2*n-i;return new st(dt(t>=240?t-240:t+120,r,i),dt(t,r,i),dt(t<120?t+240:t-120,r,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var ft=t=>()=>t;function bt(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):ft(isNaN(t)?e:t)}var gt=function t(e){var n=function(t){return 1==(t=+t)?bt:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}(e,n,t):ft(isNaN(e)?n:e)}}(e);function i(t,e){var i=n((t=rt(t)).r,(e=rt(e)).r),r=n(t.g,e.g),s=n(t.b,e.b),o=bt(t.opacity,e.opacity);return function(e){return t.r=i(e),t.g=r(e),t.b=s(e),t.opacity=o(e),t+""}}return i.gamma=t,i}(1);function mt(t){return function(e){var n,i,r=e.length,s=new Array(r),o=new Array(r),a=new Array(r);for(n=0;n=1?(n=1,e-1):Math.floor(n*e),r=t[i],s=t[i+1];return pt((n-i/e)*e,i>0?t[i-1]:2*r-s,r,s,is&&(r=e.slice(s,r),a[o]?a[o]+=r:a[++o]=r),(n=n[0])===(i=i[0])?a[o]?a[o]+=i:a[++o]=i:(a[++o]=null,c.push({i:o,x:Ot(n,i)})),s=Tt.lastIndex;return s(e=o[c-1])&&(n=t,t=e,e=n),l=function(n){return Math.max(t,Math.min(e,n))}),i=c>2?Dt:Mt,r=s=null,h}function h(e){return null==e||isNaN(e=+e)?n:(r||(r=i(o.map(t),a,c)))(t(l(e)))}return h.invert=function(n){return l(e((s||(s=i(a,o.map(t),Ot)))(n)))},h.domain=function(t){return arguments.length?(o=Array.from(t,xt),u()):o.slice()},h.range=function(t){return arguments.length?(a=Array.from(t),u()):a.slice()},h.rangeRound=function(t){return a=Array.from(t),c=Et,u()},h.clamp=function(t){return arguments.length?(l=!!t||At,u()):l!==At},h.interpolate=function(t){return arguments.length?(c=t,u()):c},h.unknown=function(t){return arguments.length?(n=t,h):n},function(n,i){return t=n,e=i,u()}}()(At,At)}function Lt(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}var Nt=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ut(t){if(!(e=Nt.exec(t)))throw new Error("invalid format: "+t);var e;return new Ft({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function Ft(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function Bt(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,i=t.slice(0,n);return[i.length>1?i[0]+i.slice(2):i,+t.slice(n+1)]}Ut.prototype=Ft.prototype,Ft.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var zt,Vt,$t,Ht,qt=function(t){return(t=Bt(Math.abs(t)))?t[1]:NaN},Qt=function(t,e){var n=Bt(t,e);if(!n)return t+"";var i=n[0],r=n[1];return r<0?"0."+new Array(-r).join("0")+i:i.length>r+1?i.slice(0,r+1)+"."+i.slice(r+1):i+new Array(r-i.length+2).join("0")},Wt={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Qt(100*t,e),r:Qt,s:function(t,e){var n=Bt(t,e);if(!n)return t+"";var i=n[0],r=n[1],s=r-(zt=3*Math.max(-8,Math.min(8,Math.floor(r/3))))+1,o=i.length;return s===o?i:s>o?i+new Array(s-o+1).join("0"):s>0?i.slice(0,s)+"."+i.slice(s):"0."+new Array(1-s).join("0")+Bt(t,Math.max(0,e+s-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)},Gt=function(t){return t},Yt=Array.prototype.map,Kt=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function Zt(t){var e=t.domain;return t.ticks=function(t){var n=e();return function(t,e,n){var i,r,s,o,a=-1;if(n=+n,(t=+t)==(e=+e)&&n>0)return[t];if((i=e0)for(t=Math.ceil(t/o),e=Math.floor(e/o),s=new Array(r=Math.ceil(e-t+1));++a=P?r*=10:s>=A?r*=5:s>=I&&(r*=2),e0;){if((r=M(c,l,n))===i)return s[o]=c,s[a]=l,e(s);if(r>0)c=Math.floor(c/r)*r,l=Math.ceil(l/r)*r;else{if(!(r<0))break;c=Math.ceil(c*r)/r,l=Math.floor(l*r)/r}i=r}return t},t}function Xt(){var t=jt();return t.copy=function(){return Rt(t,Xt())},Lt.apply(t,arguments),Zt(t)}Vt=function(t){var e,n,i=void 0===t.grouping||void 0===t.thousands?Gt:(e=Yt.call(t.grouping,Number),n=t.thousands+"",function(t,i){for(var r=t.length,s=[],o=0,a=e[0],c=0;r>0&&a>0&&(c+a+1>i&&(a=Math.max(1,i-c)),s.push(t.substring(r-=a,r+a)),!((c+=a+1)>i));)a=e[o=(o+1)%e.length];return s.reverse().join(n)}),r=void 0===t.currency?"":t.currency[0]+"",s=void 0===t.currency?"":t.currency[1]+"",o=void 0===t.decimal?".":t.decimal+"",a=void 0===t.numerals?Gt:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(Yt.call(t.numerals,String)),c=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"\u2212":t.minus+"",u=void 0===t.nan?"NaN":t.nan+"";function h(t){var e=(t=Ut(t)).fill,n=t.align,h=t.sign,d=t.symbol,p=t.zero,f=t.width,b=t.comma,g=t.precision,m=t.trim,v=t.type;"n"===v?(b=!0,v="g"):Wt[v]||(void 0===g&&(g=12),m=!0,v="g"),(p||"0"===e&&"="===n)&&(p=!0,e="0",n="=");var _="$"===d?r:"#"===d&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",y="$"===d?s:/[%p]/.test(v)?c:"",O=Wt[v],C=/[defgprs%]/.test(v);function w(t){var r,s,c,d=_,w=y;if("c"===v)w=O(t)+w,t="";else{var T=(t=+t)<0||1/t<0;if(t=isNaN(t)?u:O(Math.abs(t),g),m&&(t=function(t){t:for(var e,n=t.length,i=1,r=-1;i0&&(r=0)}return r>0?t.slice(0,r)+t.slice(e+1):t}(t)),T&&0==+t&&"+"!==h&&(T=!1),d=(T?"("===h?h:l:"-"===h||"("===h?"":h)+d,w=("s"===v?Kt[8+zt/3]:"")+w+(T&&"("===h?")":""),C)for(r=-1,s=t.length;++r(c=t.charCodeAt(r))||c>57){w=(46===c?o+t.slice(r+1):t.slice(r))+w,t=t.slice(0,r);break}}b&&!p&&(t=i(t,1/0));var S=d.length+t.length+w.length,k=S>1)+d+t+w+k.slice(S);break;default:t=k+d+t+w}return a(t)}return g=void 0===g?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),w.toString=function(){return t+""},w}return{format:h,formatPrefix:function(t,e){var n=h(((t=Ut(t)).type="f",t)),i=3*Math.max(-8,Math.min(8,Math.floor(qt(e)/3))),r=Math.pow(10,-i),s=Kt[8+i/3];return function(t){return n(r*t)+s}}}}({thousands:",",grouping:[3],currency:["$",""]}),$t=Vt.format,Ht=Vt.formatPrefix;var Jt=n("kZht");let te=(()=>{class t{constructor(){this.value=0,this.min=1,this.max=100,this.ARC_START_ANGLE=-Math.PI/2,this.ARC_END_ANGLE=Math.PI/2,this.ARC_INNER_RADIUS=.75,this.ARC_OUTER_RADIUS=1,this.ARC_CORNER_RADIUS=1,this.arc={innerRadius:this.ARC_INNER_RADIUS,outerRadius:this.ARC_OUTER_RADIUS,startAngle:this.ARC_START_ANGLE,endAngle:this.ARC_END_ANGLE,cornerRadius:this.ARC_CORNER_RADIUS},this.arcFn=function(){var t=C,e=w,n=l(0),i=null,r=T,s=S,o=k,a=null;function p(){var l,p,C=+t.apply(this,arguments),w=+e.apply(this,arguments),T=r.apply(this,arguments)-v,S=s.apply(this,arguments)-v,k=u(S-T),P=S>T;if(a||(a=l=c()),w1e-12)if(k>_-1e-12)a.moveTo(w*d(T),w*b(T)),a.arc(0,0,w,T,S,!P),C>1e-12&&(a.moveTo(C*d(S),C*b(S)),a.arc(0,0,C,S,T,P));else{var A,I,M=T,D=S,R=T,j=S,L=k,N=k,U=o.apply(this,arguments)/2,F=U>1e-12&&(i?+i.apply(this,arguments):g(C*C+w*w)),B=f(u(w-C)/2,+n.apply(this,arguments)),z=B,V=B;if(F>1e-12){var $=O(F/C*b(U)),H=O(F/w*b(U));(L-=2*$)>1e-12?(R+=$*=P?1:-1,j-=$):(L=0,R=j=(T+S)/2),(N-=2*H)>1e-12?(M+=H*=P?1:-1,D-=H):(N=0,M=D=(T+S)/2)}var q=w*d(M),Q=w*b(M),W=C*d(j),G=C*b(j);if(B>1e-12){var Y,K=w*d(D),Z=w*b(D),X=C*d(R),J=C*b(R);if(k1e-12?V>1e-12?(A=x(X,J,q,Q,w,V,P),I=x(K,Z,W,G,w,V,P),a.moveTo(A.cx+A.x01,A.cy+A.y01),V1e-12&&L>1e-12?z>1e-12?(A=x(W,G,K,Z,C,-z,P),I=x(q,Q,X,J,C,-z,P),a.lineTo(A.cx+A.x01,A.cy+A.y01),z[Math.cos(t-Math.PI/2)*e,Math.sin(t-Math.PI/2)*e]}get angleScale(){return Xt().domain([0,1]).range([-Math.PI/2,Math.PI/2]).clamp(!0)}get angle(){return this.angleScale(this.percent)}get percentScale(){return Xt().domain([this.min,this.max]).range([0,1])}get percent(){return this.percentScale(this.value)}get pointerAngleTransform(){return`rotate(${this.angle*(180/Math.PI)}) translate(-0.15, -1.25)`}get viewBox(){return[-1,-1,2,1].join(" ")}get backgroundArc(){return this.arcFn(this.arc)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Jt.Ib({type:t,selectors:[["gauge"]],inputs:{value:"value",min:"min",max:"max"},decls:10,vars:13,consts:[["id","testGradient"]],template:function(t,e){1&t&&(Jt.ec(),Jt.Ub(0,"svg"),Jt.Ub(1,"defs"),Jt.Ub(2,"linearGradient",0),Jt.Pb(3,"stop"),Jt.Pb(4,"stop"),Jt.Pb(5,"stop"),Jt.Tb(),Jt.Tb(),Jt.Pb(6,"path"),Jt.Ub(7,"g"),Jt.Pb(8,"path"),Jt.Pb(9,"path"),Jt.Tb(),Jt.Tb()),2&t&&(Jt.Db("viewBox",e.viewBox),Jt.Cb(3),Jt.Db("offset","0%")("stop-color","#6ec877"),Jt.Cb(1),Jt.Db("offset","50%")("stop-color","#d1a91c"),Jt.Cb(1),Jt.Db("offset","100%")("stop-color","#e2444d"),Jt.Cb(1),Jt.Db("d",e.backgroundArc)("fill","url(#testGradient)"),Jt.Cb(1),Jt.Db("transform",e.pointerAngleTransform)("fill","var(--text-colour)"),Jt.Cb(1),Jt.Db("d","M0.143123 0.3125L0.180213 1.2491C0.180213 1.2491 0.216505 1.2491 0.111797 1.2491C0.114232 1.17814 0.143123 0.3125 0.143123 0.3125Z"),Jt.Cb(1),Jt.Db("d","M0.234222 1.24911C0.234222 1.29574 0.196082 1.33354 0.149033 1.33354C0.101984 1.33354 0.0638428 1.29574 0.0638428 1.24911C0.0638428 1.20247 0.101984 1.16467 0.149033 1.16467C0.196082 1.16467 0.234222 1.20247 0.234222 1.24911Z"))},styles:["[_nghost-%COMP%], svg[_ngcontent-%COMP%]{width:100%}svg[_ngcontent-%COMP%]{overflow:visible}"],changeDetection:0}),t})()},"I1e+":function(t,e,n){"use strict";n.r(e),n.d(e,"RecertifyAlgoComponent",(function(){return v}));var i=n("3kIJ"),r=n("mcff"),s=n("0tVE"),o=n("kZht"),a=n("zqNl"),c=n("rfPA"),l=n("bBQR"),u=n("anSm"),h=n("1etq"),d=n("An66"),p=n("aDqW"),f=n("UDV5"),b=n("hCLc"),g=n("1o0v");function m(t,e){if(1&t&&(o.Ub(0,"p",13),o.Qc(1),o.Tb()),2&t){const t=o.fc();o.Cb(1),o.Rc(t.inputs.algo.label)}}let v=(()=>{class t{constructor(t,e,n){this.inputs=t,this.store=e,this.formBuilder=n,this.form=this.buildForm}get buildForm(){return this.formBuilder.group({conformanceTested:[!1,[i.x.requiredTrue]],pretradeRisk:[!1,[i.x.requiredTrue]],shutOff:[!1,[i.x.requiredTrue]],materialChange:[!1,[i.x.requiredTrue]]})}submitForm(){this.store.dispatch(Object(s.L)({id:this.inputs.algo.algoId})),this.form.reset(),Object.keys(this.form.controls).forEach(t=>this.form.get(t).setErrors(null))}}return t.\u0275fac=function(e){return new(e||t)(o.Ob(r.a),o.Ob(a.b),o.Ob(i.d))},t.\u0275cmp=o.Ib({type:t,selectors:[["recertify-algo"]],decls:25,vars:19,consts:[["heading","HEADING.RECERTIFY_ALGO"],["body","",3,"formGroup","ngSubmit"],[1,"algo"],["subheading",""],["subheading","","ghost","","body","",4,"ngIf"],[1,"terms"],["body","","translate",""],[1,"checkboxes"],["formControlName","conformanceTested","required","",1,"no-border"],["formControlName","pretradeRisk","required","",1,"no-border"],["formControlName","shutOff","required","",1,"no-border"],["formControlName","materialChange","required","",1,"no-border"],["mat-raised-button","","body","",3,"disabled"],["subheading","","ghost","","body",""]],template:function(t,e){1&t&&(o.Ub(0,"pro-dialog",0),o.Ub(1,"form",1),o.bc("ngSubmit",(function(){return e.submitForm()})),o.Ub(2,"div",2),o.Ub(3,"p",3),o.Qc(4),o.Tb(),o.Oc(5,m,2,1,"p",4),o.Tb(),o.Ub(6,"section",5),o.Ub(7,"p",6),o.Qc(8,"ALGOIDS.SELF_CERTIFICATION"),o.Tb(),o.Ub(9,"section",7),o.Ub(10,"mat-checkbox",8),o.Qc(11),o.gc(12,"translate"),o.Tb(),o.Ub(13,"mat-checkbox",9),o.Qc(14),o.gc(15,"translate"),o.Tb(),o.Ub(16,"mat-checkbox",10),o.Qc(17),o.gc(18,"translate"),o.Tb(),o.Ub(19,"mat-checkbox",11),o.Qc(20),o.gc(21,"translate"),o.Tb(),o.Tb(),o.Tb(),o.Ub(22,"button",12),o.Qc(23),o.gc(24,"translate"),o.Tb(),o.Tb(),o.Tb()),2&t&&(o.Cb(1),o.mc("formGroup",e.form),o.Cb(3),o.Rc(e.inputs.algo.algoId),o.Cb(1),o.mc("ngIf",e.inputs.algo.label),o.Cb(6),o.Sc(" ",o.hc(12,9,"ALGOIDS.CONFORMANCE_TESTED")," "),o.Cb(3),o.Sc(" ",o.hc(15,11,"ALGOIDS.PRETRADE_RISK")," "),o.Cb(3),o.Sc(" ",o.hc(18,13,"ALGOIDS.SHUT_OFF")," "),o.Cb(3),o.Sc(" ",o.hc(21,15,"ALGOIDS.MATERIAL_CHANGE")," "),o.Cb(2),o.mc("disabled",e.form.invalid),o.Cb(1),o.Sc(" ",o.hc(24,17,"BUTTON.RECERTIFY_ALGO")," "))},directives:[c.a,l.a,i.z,i.p,u.a,i.h,h.a,d.n,p.a,f.a,f.c,i.o,i.g,i.v,b.b,g.a],pipes:[p.d],styles:[".terms[_ngcontent-%COMP%]{margin:var(--spacing) 0}.terms[_ngcontent-%COMP%] .checkboxes[_ngcontent-%COMP%]{margin:var(--spacing) 0 var(--spacing) var(--spacing)}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:500px}@media (max-width:1024px){form[_ngcontent-%COMP%]{width:100%}}h2[_ngcontent-%COMP%]{margin-bottom:var(--spacing)}.algo[_ngcontent-%COMP%]{background:var(--border-colour);padding:var(--spacing);border-radius:var(--bdrs);align-self:center;margin-bottom:var(--spacing-l)}"],changeDetection:0}),t})()},I2Ru:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i=n("YtkY"),r=n("i67J"),s=n("rxqU"),o=n("kZht"),a=n("1VvW"),c=n("zqNl");let l=(()=>{class t{constructor(t,e){this.router=t,this.store=e,this.userDetails$=this.store.pipe(Object(r.n)(s.d))}canActivate(t,e){return this.userDetails$.pipe(Object(i.a)(e=>e.platformName===t.data.platform||(this.router.navigate(["/futures"]),!1)))}}return t.\u0275fac=function(e){return new(e||t)(o.Yb(a.d),o.Yb(c.b))},t.\u0275prov=o.Kb({token:t,factory:t.\u0275fac}),t})()},IJgj:function(t,e,n){"use strict";function i(t){return"function"==typeof t}n.d(e,"a",(function(){return i}))},IOEv:function(t,e,n){"use strict";n.d(e,"a",(function(){return H})),n.d(e,"b",(function(){return q}));var i=n("5GZx"),r=n("An66"),s=n("kZht"),o=n("pTnX"),a=n("EmXI"),c=n("VbQ3"),l=n("jL3B"),u=n("vE5V"),h=n("5XID"),d=n("sBeF"),p=n("Hq54"),f=n("3kIJ"),b=n("ZTXN"),g=n("i9xl"),m=n("g6G6"),v=n("jIqt"),_=n("TLy2"),y=n("J+dc"),O=n("xVbo"),C=n("YtkY"),w=n("Ohay"),T=n("kuMc"),S=n("+6xv");const k=["trigger"],E=["panel"];function x(t,e){if(1&t&&(s.Ub(0,"span",8),s.Qc(1),s.Tb()),2&t){const t=s.fc();s.Cb(1),s.Rc(t.placeholder||"\xa0")}}function P(t,e){if(1&t&&(s.Ub(0,"span"),s.Qc(1),s.Tb()),2&t){const t=s.fc(2);s.Cb(1),s.Rc(t.triggerValue||"\xa0")}}function A(t,e){1&t&&s.kc(0,0,["*ngSwitchCase","true"])}function I(t,e){if(1&t&&(s.Ub(0,"span",9),s.Oc(1,P,2,1,"span",10),s.Oc(2,A,1,0,"ng-content",11),s.Tb()),2&t){const t=s.fc();s.mc("ngSwitch",!!t.customTrigger),s.Cb(2),s.mc("ngSwitchCase",!0)}}function M(t,e){if(1&t){const t=s.Vb();s.Ub(0,"div",12),s.Ub(1,"div",13,14),s.bc("@transformPanel.done",(function(e){return s.Ec(t),s.fc()._panelDoneAnimatingStream.next(e.toState)}))("keydown",(function(e){return s.Ec(t),s.fc()._handleKeydown(e)})),s.kc(3,1),s.Tb(),s.Tb()}if(2&t){const t=s.fc();s.mc("@transformPanelWrap",void 0),s.Cb(1),s.Fb("mat-select-panel ",t._getPanelTheme(),""),s.Lc("transform-origin",t._transformOrigin)("font-size",t._triggerFontSize,"px"),s.mc("ngClass",t.panelClass)("@transformPanel",t.multiple?"showing-multiple":"showing"),s.Db("id",t.id+"-panel")("aria-multiselectable",t.multiple)("aria-label",t.ariaLabel||null)("aria-labelledby",t._getPanelAriaLabelledby())}}const D=[[["mat-select-trigger"]],"*"],R=["mat-select-trigger","*"],j={transformPanelWrap:Object(S.n)("transformPanelWrap",[Object(S.m)("* => void",Object(S.i)("@transformPanel",[Object(S.f)()],{optional:!0}))]),transformPanel:Object(S.n)("transformPanel",[Object(S.k)("void",Object(S.l)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Object(S.k)("showing",Object(S.l)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Object(S.k)("showing-multiple",Object(S.l)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Object(S.m)("void => *",Object(S.e)("120ms cubic-bezier(0, 0, 0.2, 1)")),Object(S.m)("* => void",Object(S.e)("100ms 25ms linear",Object(S.l)({opacity:0})))])};let L=0;const N=new s.s("mat-select-scroll-strategy"),U=new s.s("MAT_SELECT_CONFIG"),F={provide:N,deps:[i.c],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class B{constructor(t,e){this.source=t,this.value=e}}class z{constructor(t,e,n,i,r){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r}}const V=Object(o.x)(Object(o.B)(Object(o.y)(Object(o.z)(z)))),$=new s.s("MatSelectTrigger");let H=(()=>{class t extends V{constructor(t,e,n,i,r,o,a,c,l,u,h,d,p,f){super(r,i,a,c,u),this._viewportRuler=t,this._changeDetectorRef=e,this._ngZone=n,this._dir=o,this._parentFormField=l,this.ngControl=u,this._liveAnnouncer=p,this._panelOpen=!1,this._required=!1,this._scrollTop=0,this._multiple=!1,this._compareWith=(t,e)=>t===e,this._uid="mat-select-"+L++,this._triggerAriaLabelledBy=null,this._destroy=new b.b,this._triggerFontSize=0,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+L++,this._transformOrigin="top",this._panelDoneAnimatingStream=new b.b,this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],this._disableOptionCentering=!1,this._focused=!1,this.controlType="mat-select",this.ariaLabel="",this.optionSelectionChanges=Object(g.a)(()=>{const t=this.options;return t?t.changes.pipe(Object(v.a)(t),Object(_.a)(()=>Object(m.a)(...t.map(t=>t.onSelectionChange)))):this._ngZone.onStable.pipe(Object(y.a)(1),Object(_.a)(()=>this.optionSelectionChanges))}),this.openedChange=new s.o,this._openedStream=this.openedChange.pipe(Object(O.a)(t=>t),Object(C.a)(()=>{})),this._closedStream=this.openedChange.pipe(Object(O.a)(t=>!t),Object(C.a)(()=>{})),this.selectionChange=new s.o,this.valueChange=new s.o,this.ngControl&&(this.ngControl.valueAccessor=this),this._scrollStrategyFactory=d,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(h)||0,this.id=this.id,f&&(null!=f.disableOptionCentering&&(this.disableOptionCentering=f.disableOptionCentering),null!=f.typeaheadDebounceInterval&&(this.typeaheadDebounceInterval=f.typeaheadDebounceInterval))}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get required(){return this._required}set required(t){this._required=Object(h.c)(t),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(t){this._multiple=Object(h.c)(t)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(t){this._disableOptionCentering=Object(h.c)(t)}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){t!==this._value&&(this.options&&this._setSelectionByValue(t),this._value=t)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(t){this._typeaheadDebounceInterval=Object(h.f)(t)}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new d.c(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Object(w.a)(),Object(T.a)(this._destroy)).subscribe(()=>{this.panelOpen?(this._scrollTop=0,this.openedChange.emit(!0)):(this.openedChange.emit(!1),this.overlayDir.offsetX=0,this._changeDetectorRef.markForCheck())}),this._viewportRuler.change().pipe(Object(T.a)(this._destroy)).subscribe(()=>{this._panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Object(T.a)(this._destroy)).subscribe(t=>{t.added.forEach(t=>t.select()),t.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(Object(v.a)(null),Object(T.a)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const t=this._getTriggerAriaLabelledby();if(t!==this._triggerAriaLabelledBy){const e=this._elementRef.nativeElement;this._triggerAriaLabelledBy=t,t?e.setAttribute("aria-labelledby",t):e.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(t){t.disabled&&this.stateChanges.next(),t.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){!this.disabled&&this.options&&this.options.length&&!this._panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._calculateOverlayPosition(),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this._ngZone.onStable.pipe(Object(y.a)(1)).subscribe(()=>{this._triggerFontSize&&this.overlayDir.overlayRef&&this.overlayDir.overlayRef.overlayElement&&(this.overlayDir.overlayRef.overlayElement.style.fontSize=this._triggerFontSize+"px")}))}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(t){this.value=t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const t=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}_handleClosedKeydown(t){const e=t.keyCode,n=e===p.c||e===p.o||e===p.h||e===p.l,i=e===p.e||e===p.m,r=this._keyManager;if(!r.isTyping()&&i&&!Object(p.r)(t)||(this.multiple||t.altKey)&&n)t.preventDefault(),this.open();else if(!this.multiple){const e=this.selected;r.onKeydown(t);const n=this.selected;n&&e!==n&&this._liveAnnouncer.announce(n.viewValue,1e4)}}_handleOpenKeydown(t){const e=this._keyManager,n=t.keyCode,i=n===p.c||n===p.o,r=e.isTyping();if(i&&t.altKey)t.preventDefault(),this.close();else if(r||n!==p.e&&n!==p.m||!e.activeItem||Object(p.r)(t))if(!r&&this._multiple&&n===p.a&&t.ctrlKey){t.preventDefault();const e=this.options.some(t=>!t.disabled&&!t.selected);this.options.forEach(t=>{t.disabled||(e?t.select():t.deselect())})}else{const n=e.activeItemIndex;e.onKeydown(t),this._multiple&&i&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==n&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this.overlayDir.positionChange.pipe(Object(y.a)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop})}_getPanelTheme(){return this._parentFormField?"mat-"+this._parentFormField.color:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(t){if(this.multiple&&t)Array.isArray(t),this._selectionModel.clear(),t.forEach(t=>this._selectValue(t)),this._sortValues();else{this._selectionModel.clear();const e=this._selectValue(t);e?this._keyManager.updateActiveItem(e):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(t){const e=this.options.find(e=>{try{return null!=e.value&&this._compareWith(e.value,t)}catch(n){return!1}});return e&&this._selectionModel.select(e),e}_initKeyManager(){this._keyManager=new l.b(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Object(T.a)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(Object(T.a)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollActiveOptionIntoView():this._panelOpen||this.multiple||!this._keyManager.activeItem||this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const t=Object(m.a)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Object(T.a)(t)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Object(m.a)(...this.options.map(t=>t._stateChanges)).pipe(Object(T.a)(t)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(t,e){const n=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(n!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(t.value)),n!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const t=this.options.toArray();this._selectionModel.sort((e,n)=>this.sortComparator?this.sortComparator(e,n,t):t.indexOf(e)-t.indexOf(n)),this.stateChanges.next()}}_propagateChanges(t){let e=null;e=this.multiple?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(new B(this,e)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_scrollActiveOptionIntoView(){const t=this._keyManager.activeItemIndex||0,e=Object(o.u)(t,this.options,this.optionGroups),n=this._getItemHeight();this.panel.nativeElement.scrollTop=Object(o.v)((t+e)*n,n,this.panel.nativeElement.scrollTop,256)}focus(t){this._elementRef.nativeElement.focus(t)}_getOptionIndex(t){return this.options.reduce((e,n,i)=>void 0!==e?e:t===n?i:void 0,void 0)}_calculateOverlayPosition(){const t=this._getItemHeight(),e=this._getItemCount(),n=Math.min(e*t,256),i=e*t-n;let r=this.empty?0:this._getOptionIndex(this._selectionModel.selected[0]);r+=Object(o.u)(r,this.options,this.optionGroups);const s=n/2;this._scrollTop=this._calculateOverlayScroll(r,s,i),this._offsetY=this._calculateOverlayOffsetY(r,s,i),this._checkOverlayWithinViewport(i)}_calculateOverlayScroll(t,e,n){const i=this._getItemHeight();return Math.min(Math.max(0,i*t-e+i/2),n)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const t=this._getLabelId();return this.ariaLabelledby?t+" "+this.ariaLabelledby:t}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getLabelId(){var t;return(null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId())||""}_calculateOverlayOffsetX(){const t=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),e=this._viewportRuler.getViewportSize(),n=this._isRtl(),i=this.multiple?56:32;let r;if(this.multiple)r=40;else{let t=this._selectionModel.selected[0]||this.options.first;r=t&&t.group?32:16}n||(r*=-1);const s=0-(t.left+r-(n?i:0)),o=t.right+r-e.width+(n?0:i);s>0?r+=s+8:o>0&&(r-=o+8),this.overlayDir.offsetX=Math.round(r),this.overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(t,e,n){const i=this._getItemHeight(),r=(i-this._triggerRect.height)/2,s=Math.floor(256/i);let o;return this._disableOptionCentering?0:(o=0===this._scrollTop?t*i:this._scrollTop===n?(t-(this._getItemCount()-s))*i+(i-(this._getItemCount()*i-256)%i):e-i/2,Math.round(-1*o-r))}_checkOverlayWithinViewport(t){const e=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,r=n.height-this._triggerRect.bottom-8,s=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*e,256)-s-this._triggerRect.height;o>r?this._adjustPanelUp(o,r):s>i?this._adjustPanelDown(s,i,t):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(t,e){const n=Math.round(t-e);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(t,e,n){const i=Math.round(t-e);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_getOriginBasedOnOption(){const t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-e+t/2}px 0px`}_getItemCount(){return this.options.length+this.optionGroups.length}_getItemHeight(){return 3*this._triggerFontSize}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let t=this._getLabelId()+" "+this._valueId;return this.ariaLabelledby&&(t+=" "+this.ariaLabelledby),t}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty}}return t.\u0275fac=function(e){return new(e||t)(s.Ob(c.h),s.Ob(s.h),s.Ob(s.B),s.Ob(o.d),s.Ob(s.l),s.Ob(u.b,8),s.Ob(f.q,8),s.Ob(f.h,8),s.Ob(a.a,8),s.Ob(f.n,10),s.Zb("tabindex"),s.Ob(N),s.Ob(l.k),s.Ob(U,8))},t.\u0275cmp=s.Ib({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,n){var i;1&t&&(s.Hb(n,$,!0),s.Hb(n,o.n,!0),s.Hb(n,o.g,!0)),2&t&&(s.zc(i=s.cc())&&(e.customTrigger=i.first),s.zc(i=s.cc())&&(e.options=i),s.zc(i=s.cc())&&(e.optionGroups=i))},viewQuery:function(t,e){var n;1&t&&(s.Wc(k,!0),s.Wc(E,!0),s.Wc(i.a,!0)),2&t&&(s.zc(n=s.cc())&&(e.trigger=n.first),s.zc(n=s.cc())&&(e.panel=n.first),s.zc(n=s.cc())&&(e.overlayDir=n.first))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(t,e){1&t&&s.bc("keydown",(function(t){return e._handleKeydown(t)}))("focus",(function(){return e._onFocus()}))("blur",(function(){return e._onBlur()})),2&t&&(s.Db("id",e.id)("tabindex",e.tabIndex)("aria-controls",e.panelOpen?e.id+"-panel":null)("aria-expanded",e.panelOpen)("aria-label",e.ariaLabel||null)("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),s.Gb("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty)("mat-select-multiple",e.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],id:"id",disableOptionCentering:"disableOptionCentering",typeaheadDebounceInterval:"typeaheadDebounceInterval",placeholder:"placeholder",required:"required",multiple:"multiple",compareWith:"compareWith",value:"value",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[s.Bb([{provide:a.d,useExisting:t},{provide:o.h,useExisting:t}]),s.zb,s.Ab],ngContentSelectors:R,decls:9,vars:10,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder"],[1,"mat-select-value-text",3,"ngSwitch"],[4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(t,e){if(1&t&&(s.lc(D),s.Ub(0,"div",0,1),s.bc("click",(function(){return e.toggle()})),s.Ub(3,"div",2),s.Oc(4,x,2,1,"span",3),s.Oc(5,I,3,2,"span",4),s.Tb(),s.Ub(6,"div",5),s.Pb(7,"div",6),s.Tb(),s.Tb(),s.Oc(8,M,4,14,"ng-template",7),s.bc("backdropClick",(function(){return e.close()}))("attach",(function(){return e._onAttached()}))("detach",(function(){return e.close()}))),2&t){const t=s.Ac(1);s.Cb(3),s.mc("ngSwitch",e.empty),s.Db("id",e._valueId),s.Cb(1),s.mc("ngSwitchCase",!0),s.Cb(1),s.mc("ngSwitchCase",!1),s.Cb(3),s.mc("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",t)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[i.b,r.p,r.q,i.a,r.r,r.l],styles:[".mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}\n"],encapsulation:2,data:{animation:[j.transformPanelWrap,j.transformPanel]},changeDetection:0}),t})(),q=(()=>{class t{}return t.\u0275mod=s.Mb({type:t}),t.\u0275inj=s.Lb({factory:function(e){return new(e||t)},providers:[F],imports:[[r.c,i.f,o.o,o.j],c.c,a.e,o.o,o.j]}),t})()},IdLP:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i=n("5uGe"),r=n("25CY"),s=n("rWo0"),o=n("qEfY"),a=n("Ti3e"),c=n("HgnN");let l=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:o}=this,a=function(t,e,n){if(t){if(t instanceof i.a)return t;if(t[r.a])return t[r.a]()}return t||e||n?new i.a(t,e,n):new i.a(s.a)}(t,e,n);if(a.add(o?o.call(a,this.source):this.source||c.a.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),c.a.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a}_trySubscribe(t){try{return this._subscribe(t)}catch(e){c.a.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:r}=t;if(e||r)return!1;t=n&&n instanceof i.a?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=u(e))((e,n)=>{let i;i=this.subscribe(e=>{try{t(e)}catch(r){n(r),i&&i.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[o.a](){return this}pipe(...t){return 0===t.length?this:Object(a.b)(t)(this)}toPromise(t){return new(t=u(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function u(t){if(t||(t=c.a.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},IiX2:function(t,e,n){"use strict";n.d(e,"a",(function(){return g}));var i=n("kZht"),r=n("anSm"),s=n("NxuZ"),o=n("1etq"),a=n("hCLc"),c=n("aDqW"),l=n("An66"),u=n("DduF"),h=n("1o0v");function d(t,e){1&t&&i.Pb(0,"notification",11),2&t&&i.mc("notification",e.$implicit)}function p(t,e){1&t&&(i.Ub(0,"p",12),i.Qc(1,"NO_CONTENT.SCHEDULED_EVENTS"),i.Tb())}function f(t,e){1&t&&i.Pb(0,"notification",11),2&t&&i.mc("notification",e.$implicit)}function b(t,e){1&t&&(i.Ub(0,"p",12),i.Qc(1,"NO_CONTENT.GENERAL_NOTIFICATIONS"),i.Tb())}let g=(()=>{class t{constructor(){this.close$=new i.o}get general(){return this.notifications.filter(t=>!t.effective_time)}get scheduled(){return this.notifications.filter(t=>t.effective_time).sort((t,e)=>t.effective_time-e.effective_time)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["drawer-notifications"]],inputs:{notifications:"notifications"},outputs:{close$:"close"},decls:22,vars:7,consts:[["body","",1,"heading"],["icon","notification","size","2x",1,"bell"],["subheading",""],["mat-button","",1,"close",3,"click"],["icon","close-medium","size","lg"],["body","",1,"info"],["translate",""],[1,"notifications"],["subheading","","translate",""],[3,"notification",4,"ngFor","ngForOf"],["body","","ghost","","translate","",4,"ngIf"],[3,"notification"],["body","","ghost","","translate",""]],template:function(t,e){1&t&&(i.Ub(0,"section",0),i.Pb(1,"fa-icon",1),i.Ub(2,"h2",2),i.Qc(3),i.gc(4,"translate"),i.Tb(),i.Ub(5,"button",3),i.bc("click",(function(){return e.close$.emit()})),i.Pb(6,"fa-icon",4),i.Tb(),i.Tb(),i.Ub(7,"section",5),i.Ub(8,"p",6),i.Qc(9,"NOTIFICATIONS.DESCRIPTION"),i.Tb(),i.Ub(10,"p",6),i.Qc(11,"NOTIFICATIONS.CHECK_BACK"),i.Tb(),i.Tb(),i.Ub(12,"section",7),i.Ub(13,"h3",8),i.Qc(14,"NOTIFICATIONS.SCHEDULED_EVENTS"),i.Tb(),i.Oc(15,d,1,1,"notification",9),i.Oc(16,p,2,0,"p",10),i.Tb(),i.Ub(17,"section",7),i.Ub(18,"h3",8),i.Qc(19,"NOTIFICATIONS.GENERAL_NOTIFICATIONS"),i.Tb(),i.Oc(20,f,1,1,"notification",9),i.Oc(21,b,2,0,"p",10),i.Tb()),2&t&&(i.Cb(3),i.Rc(i.hc(4,5,"HEADING.NOTIFICATIONS")),i.Cb(12),i.mc("ngForOf",e.scheduled),i.Cb(1),i.mc("ngIf",0===e.scheduled.length),i.Cb(4),i.mc("ngForOf",e.general),i.Cb(1),i.mc("ngIf",0===e.general.length))},directives:[r.a,s.b,o.a,a.b,c.a,l.m,l.n,u.a,h.a],pipes:[c.d],styles:["[_nghost-%COMP%]{display:block;max-width:250px;padding:var(--spacing);overflow:auto}p[_ngcontent-%COMP%] + p[_ngcontent-%COMP%]{margin-top:var(--spacing-s)}.heading[_ngcontent-%COMP%]{display:flex;flex-flow:row nowrap;align-items:center;padding-bottom:var(--spacing);border-bottom:1px solid var(--border-colour)}.heading[_ngcontent-%COMP%] .bell[_ngcontent-%COMP%]{color:var(--text-colour);margin-right:var(--spacing)}.heading[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{flex-grow:1}.heading[_ngcontent-%COMP%] .close[_ngcontent-%COMP%]{margin-left:var(--spacing);color:var(--text-colour)}.info[_ngcontent-%COMP%]{margin:var(--spacing-l) 0;line-height:1.5}.notifications[_ngcontent-%COMP%]{margin-bottom:var(--spacing-l)}.notifications[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin-bottom:var(--spacing)}"],changeDetection:0}),t})()},IkSM:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("kZht");let r=(()=>{class t{constructor(t,e){this.renderer=t,this.element=e,this.sbDisabled=!1}ngOnInit(){this.sbDisabled||this.renderer.addClass(this.element.nativeElement,"global__text--tooltip")}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.G),i.Ob(i.l))},t.\u0275dir=i.Jb({type:t,selectors:[["","tooltip",""]],inputs:{sbDisabled:"sbDisabled"}}),t})()},IkhO:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("KZGf");e.default=function(){function t(){this.maskPattern=-1}return t.prototype.getMode=function(){return this.mode},t.prototype.getECLevel=function(){return this.ecLevel},t.prototype.getVersion=function(){return this.version},t.prototype.getMaskPattern=function(){return this.maskPattern},t.prototype.getMatrix=function(){return this.matrix},t.prototype.toString=function(){var t=new i.default;return t.append("<<\n"),t.append(" mode: "),t.append(this.mode?this.mode.toString():"null"),t.append("\n ecLevel: "),t.append(this.ecLevel?this.ecLevel.toString():"null"),t.append("\n version: "),t.append(this.version?this.version.toString():"null"),t.append("\n maskPattern: "),t.append(this.maskPattern.toString()),this.matrix?(t.append("\n matrix:\n"),t.append(this.matrix.toString())):t.append("\n matrix: null\n"),t.append(">>\n"),t.toString()},t.prototype.setMode=function(t){this.mode=t},t.prototype.setECLevel=function(t){this.ecLevel=t},t.prototype.setVersion=function(t){this.version=t},t.prototype.setMaskPattern=function(t){this.maskPattern=t},t.prototype.setMatrix=function(t){this.matrix=t},t.isValidMaskPattern=function(e){return e>=0&&e{this.handlers.has(t.type)&&this.handlers.get(t.type)(t.data)},t.addEventListener("message",this.onMessage)}on(t,e){this.handlers.set(t,e)}dispatch(t,e,n){this.worker.postMessage({type:t,data:e},null!=n?n:[])}destroy(){this.worker.removeEventListener("message",this.onMessage),this.handlers.clear()}}},IwOb:function(t,e,n){"use strict";n.d(e,"a",(function(){return C}));var i=n("3kIJ"),r=(n("og7C"),n("TYVA"));function s({proLevels:t,retailLevel:e,classification:n,quantity:i}){if("ELECTIVE_PROFESSIONAL_INVESTOR"===n||"PER_SE_INVESTOR"===n||"INVESTOR_TYPES_DISABLED"===n){let e=i,n=0;return t.forEach((t,r,s)=>{if(i>=t.contracts)if(r===s.length-1)n+=e*t.maintenanceMargin;else{const i=s[r+1].contracts-t.contracts;e{class t{constructor(t){this.formBuilder=t,this.form=this.buildForm(),this.mid=0}ngOnChanges(t){var e,n,i,s;if(null===(e=t.selectedMarket)||void 0===e?void 0:e.currentValue){const e=null===(n=t.selectedMarket)||void 0===n?void 0:n.currentValue;this.form.get("pair").setValue(Object(r.o)(e.symbol)),this.form.get("margin").setValue(this.walletBalance)}if(null===(i=t.mid)||void 0===i?void 0:i.currentValue){const e=null===(s=t.mid)||void 0===s?void 0:s.currentValue;this.form.get("entryPrice").setValue(e)}}buildForm(){return this.formBuilder.group({pair:["",i.x.required],direction:["long",i.x.required],entryPrice:[this.mid,i.x.required],quantity:[0,i.x.required],margin:[0,i.x.required]})}get walletBalance(){var t;if(this.wallets){const{pair:e,parts:n}=Object(r.u)(this.selectedMarket.symbol),{base:i,quote:s}=n.currencies,o=null===(t=this.markets.find(({symbol:t})=>Object(r.o)(t)===e))||void 0===t?void 0:t.type;if(void 0===o)return"0";const c="futures_inverse"===o?i:s;return this.wallets.find(t=>t.pair===e).am.toFixed(Object(a.b)(c,!1))}return"0"}get uniquePairs(){return this.markets.filter(t=>"futures_inverse"===t.type).map(t=>Object(r.o)(t.symbol)).toSet()}get pairMarket(){const t=this.form.get("pair").value;return this.markets.find(e=>Object(r.o)(e.symbol)===t)}get isInverse(){return Object(r.u)(this.pairMarket.symbol).inverse}get notionalValue(){const t=this.form.get("entryPrice").value,e=this.form.get("quantity").value;return Object(o.d)(e,t,this.isInverse)}get marginPercentage(){const t=this.form.get("margin").value;return Object(o.c)(t,this.notionalValue)}get marginRequirement(){const t=this.form.get("entryPrice").value,e=this.form.get("quantity").value;return function({proLevels:t,retailLevel:e,classification:n,quantity:i,price:r,isInverse:o}){const a=s({proLevels:t,retailLevel:e,classification:n,quantity:i});return o?a*i/r:a*i*r}({proLevels:this.selectedMarket.marginLevels,retailLevel:this.selectedMarket.retailMarginLevels[0],classification:this.classification,price:t,quantity:e,isInverse:this.isInverse})}get liquidationPrice(){const t=parseFloat(this.form.get("margin").value),e=this.form.get("entryPrice").value,n=this.form.get("direction").value,i=this.form.get("quantity").value,r=s({proLevels:this.selectedMarket.marginLevels,retailLevel:this.selectedMarket.retailMarginLevels[0],classification:this.classification,quantity:i});return function({balance:t,entryPrice:e,isInverse:n,mm:i,quantity:r,side:s}){return n?"long"===s?(1+i)/(t/r+1/e):(1-i)/(t/-r+1/e):"long"===s?(t/r-e)/(i-1):(t/-r-e)/(-i-1)}({balance:t,entryPrice:e,isInverse:this.isInverse,mm:r,quantity:i,side:n})}get liquidationPossible(){const t=this.form.get("direction").value,e=this.form.get("entryPrice").value;return"long"===t?this.liquidationPrice>=0:this.liquidationPrice>e}get displayLiquidation(){const t=this.form.get("entryPrice").value,e=this.form.get("quantity").value;return 0!==this.form.get("margin").value&&0!==t&&0!==e}get pairBase(){const t=this.form.get("pair").value;return Object(r.k)(t)}get pairQuote(){const t=this.form.get("pair").value;return Object(r.l)(t)}get unitBase(){return this.isInverse?this.pairBase:this.pairQuote}}return t.\u0275fac=function(e){return new(e||t)(c.Ob(i.d))},t.\u0275cmp=c.Ib({type:t,selectors:[["liquidation-calculator"]],inputs:{classification:"classification",mid:"mid",markets:"markets",selectedMarket:"selectedMarket",wallets:"wallets"},features:[c.Ab],decls:63,vars:49,consts:[[1,"disclaimer","global__text","global__text-body"],[1,"form"],["body","",3,"formGroup"],["color","accent","appearance","fill"],["matNativeControl","","formControlName","pair"],[3,"value",4,"ngFor","ngForOf"],["matNativeControl","","formControlName","direction"],["value","long","translate",""],["value","short","translate",""],["type","number","formControlName","entryPrice","matInput","","min","0"],["type","number","formControlName","quantity","matInput","","min","0"],["type","number","formControlName","margin","matInput","","min","0"],["body","",1,"form-results"],[1,"form-result"],["mono",""],["class","form-result",4,"ngIf"],[3,"value"],["mono","",1,"global__text--warn"],[1,"global__text--accent"]],template:function(t,e){1&t&&(c.Ub(0,"p",0),c.Qc(1),c.gc(2,"translate"),c.Tb(),c.Ub(3,"p",0),c.Qc(4," These calculators apply to Single-collateral contracts only.\n"),c.Tb(),c.Ub(5,"section",1),c.Ub(6,"form",2),c.Ub(7,"mat-form-field",3),c.Ub(8,"mat-label"),c.Qc(9),c.gc(10,"translate"),c.Tb(),c.Ub(11,"mat-select",4),c.Oc(12,_,3,4,"mat-option",5),c.Tb(),c.Tb(),c.Ub(13,"mat-form-field",3),c.Ub(14,"mat-label"),c.Qc(15),c.gc(16,"translate"),c.Tb(),c.Ub(17,"mat-select",6),c.Ub(18,"mat-option",7),c.Qc(19,"BUTTON.LONG"),c.Tb(),c.Ub(20,"mat-option",8),c.Qc(21,"BUTTON.SHORT"),c.Tb(),c.Tb(),c.Tb(),c.Ub(22,"mat-form-field",3),c.Ub(23,"mat-label"),c.Qc(24),c.gc(25,"translate"),c.Tb(),c.Pb(26,"input",9),c.Tb(),c.Ub(27,"mat-form-field",3),c.Ub(28,"mat-label"),c.Qc(29),c.gc(30,"translate"),c.Tb(),c.Pb(31,"input",10),c.Tb(),c.Ub(32,"mat-form-field",3),c.Ub(33,"mat-label"),c.Qc(34),c.gc(35,"translate"),c.Tb(),c.Pb(36,"input",11),c.Tb(),c.Tb(),c.Ub(37,"section",12),c.Ub(38,"section",13),c.Ub(39,"p"),c.Qc(40),c.gc(41,"translate"),c.Tb(),c.Ub(42,"strong",14),c.Qc(43),c.gc(44,"cryptoPrecise"),c.gc(45,"cryptoAbbreviation"),c.Tb(),c.Tb(),c.Ub(46,"section",13),c.Ub(47,"p"),c.Qc(48),c.gc(49,"translate"),c.Tb(),c.Ub(50,"strong",14),c.Qc(51),c.gc(52,"percent"),c.Tb(),c.Tb(),c.Ub(53,"section",13),c.Ub(54,"p"),c.Qc(55),c.gc(56,"translate"),c.Tb(),c.Ub(57,"strong",14),c.Qc(58),c.gc(59,"cryptoPrecise"),c.gc(60,"cryptoAbbreviation"),c.Tb(),c.Tb(),c.Oc(61,y,8,10,"section",15),c.Oc(62,O,4,3,"section",15),c.Tb(),c.Tb()),2&t&&(c.Cb(1),c.Sc(" ",c.hc(2,18,"DASHBOARD.LIQIDATION_CALCULATOR_DISCLAIMER"),"\n"),c.Cb(5),c.mc("formGroup",e.form),c.Cb(3),c.Rc(c.hc(10,20,"FORM.CONTRACT_TYPE")),c.Cb(3),c.mc("ngForOf",e.uniquePairs),c.Cb(3),c.Rc(c.hc(16,22,"COLUMN.DIRECTION")),c.Cb(9),c.Sc("",c.hc(25,24,"FORM.ENTRY_PRICE"),":"),c.Cb(5),c.Sc("",c.hc(30,26,"FORM.QUANTITY"),":"),c.Cb(5),c.Sc("",c.hc(35,28,"LABEL.MARGIN_HELD"),":"),c.Cb(6),c.Sc("",c.hc(41,30,"LABEL.CONTRACT_NOTIONAL_VALUE"),":"),c.Cb(3),c.Tc("",c.ic(44,32,e.notionalValue,e.unitBase)," ",c.hc(45,35,e.unitBase),""),c.Cb(5),c.Sc("",c.hc(49,37,"LABEL.MARGIN_PERC_OF_POS"),":"),c.Cb(3),c.Rc(c.ic(52,39,e.marginPercentage,"1.2-2")),c.Cb(4),c.Sc("",c.hc(56,42,"LABEL.MAINTENANCE_MARGIN_REQUIREMENT"),":"),c.Cb(3),c.Tc("",c.ic(59,44,e.marginRequirement,e.unitBase)," ",c.hc(60,47,e.unitBase),""),c.Cb(3),c.mc("ngIf",e.liquidationPossible&&e.displayLiquidation),c.Cb(1),c.mc("ngIf",!e.liquidationPossible))},directives:[i.z,i.p,l.a,i.h,u.c,u.f,h.a,i.o,i.g,d.m,p.n,f.a,i.s,i.c,b.b,g.a,d.n],pipes:[f.d,m.b,v.a,d.u,m.c],styles:["[_nghost-%COMP%]{display:block;padding:var(--spacing)}.disclaimer[_ngcontent-%COMP%]{border-bottom:2px solid var(--border-colour);padding-bottom:var(--spacing);margin-bottom:var(--spacing)}.form[_ngcontent-%COMP%]{display:flex}@media (max-width:599px){.form[_ngcontent-%COMP%]{flex-direction:column}}.form-results[_ngcontent-%COMP%], .form[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{display:flex;flex-direction:column}.form[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{flex:0.3;margin-right:var(--spacing)}.form[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{margin-bottom:var(--spacing)}.form-results[_ngcontent-%COMP%]{flex:0.7}.form-result[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:space-between}.form-result[_ngcontent-%COMP%]:not(:last-of-type){margin-bottom:6px}.form-result[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{white-space:nowrap}"],changeDetection:0}),t})()},"J+dc":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("5uGe"),r=n("PNff"),s=n("6Oco");function o(t){return e=>0===t?Object(s.b)():e.lift(new a(t))}class a{constructor(t){if(this.total=t,this.total<0)throw new r.a}call(t,e){return e.subscribe(new c(t,this.total))}}class c extends i.a{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}},"J/3c":function(t,e,n){"use strict";n.d(e,"a",(function(){return v})),n.d(e,"r",(function(){return _})),n.d(e,"b",(function(){return y})),n.d(e,"f",(function(){return O})),n.d(e,"m",(function(){return T})),n.d(e,"l",(function(){return S})),n.d(e,"q",(function(){return k})),n.d(e,"c",(function(){return E})),n.d(e,"d",(function(){return x})),n.d(e,"k",(function(){return P})),n.d(e,"i",(function(){return A})),n.d(e,"g",(function(){return I})),n.d(e,"p",(function(){return M})),n.d(e,"j",(function(){return D})),n.d(e,"h",(function(){return R})),n.d(e,"s",(function(){return L})),n.d(e,"o",(function(){return U})),n.d(e,"n",(function(){return B})),n.d(e,"e",(function(){return z}));var i=n("zqNl"),r=n("og7C"),s=n("p5wL"),o=n("TYVA"),a=n("lE9u"),c=n("+Px6"),l=n("nXdR"),u=n("VmIW"),h=n("lx5p"),d=n("+axt"),p=n("rxqU"),f=n("5JSY"),b=n("vYTc");const g={margin:Object(r.b)(),futures:Object(r.b)(),holding:Object(r.b)(),flex:void 0,funding:{depositDetails:{},fiatDepositBankDetails:void 0,fiatWithdrawalBankDetails:void 0},authenticated:{marginWallets:[],tradeables:[],flexibleFutures:!1},availableTransferPreferences:[]},m=Object(i.i)(g,Object(i.k)(a.q,()=>g),Object(i.k)(a.w,(t,e)=>{var n,i,r,s;const o=Object.assign(Object.assign({},t),{holding:t.holding.merge(e.holding),futures:t.futures.merge(e.futures),margin:t.margin.merge(e.margin),flex:e.flex});return(null===(n=e.flex)||void 0===n?void 0:n.flexAssets)&&(null===(i=t.flex)||void 0===i?void 0:i.flexAssets)&&(o.flex=Object.assign(Object.assign({},e.flex),{flexAssets:null===(s=null===(r=t.flex)||void 0===r?void 0:r.flexAssets)||void 0===s?void 0:s.merge(e.flex.flexAssets)})),o}),Object(i.k)(a.t,(t,e)=>Object(s.b)(e,t,"funding","depositDetails")),Object(i.k)(a.u,(t,e)=>Object(s.b)(e,t,"funding","fiatDepositBankDetails")),Object(i.k)(a.v,(t,{addresses:e})=>Object(s.b)(e,t,"funding","fiatWithdrawalBankDetails")),Object(i.k)(a.r,(t,{authenticatedWallets:e})=>Object(s.b)(e,t,"authenticated")),Object(i.k)(a.s,(t,{availableTransferPreferences:e})=>Object(s.b)(e,t,"availableTransferPreferences")));function v(t,e){return m(t,e)}const _=Object(i.h)("wallets"),y=Object(i.j)(_,t=>t.availableTransferPreferences),O=Object(i.j)(_,p.m,f.a,(t,e,n)=>!e&&"kraken"===n||t.authenticated.flexibleFutures),C=Object(i.j)(_,t=>t.margin),w=Object(i.j)(_,t=>t.futures),T=Object(i.j)(_,t=>t.holding),S=Object(i.j)(_,t=>t.flex),k=Object(i.j)(_,t=>t.funding),E=Object(i.j)(_,t=>t.funding.fiatDepositBankDetails),x=Object(i.j)(_,t=>t.funding.fiatWithdrawalBankDetails),P=Object(i.j)(d.a,T,(t,e)=>e.map(e=>Object(l.g)(t,e)).reduce((t,e)=>t+e,0)),A=Object(i.j)(d.a,w,(t,e)=>e.map(e=>Object(l.e)(t,e)).reduce((t,e)=>t+e,0)),I=Object(i.j)(S,t=>(null==t?void 0:t.pv)||0),M=Object(i.j)(P,A,I,(t,e,n)=>t+e+n),D=Object(i.j)(c.d,d.a,M,T,(t,e,n,i)=>Object(l.b)(i,e,n,t)),R=Object(i.j)(c.d,d.a,M,w,(t,e,n,i)=>Object(l.b)(i,e,n,t)),j=Object(i.j)(c.d,d.a,M,C,(t,e,n,i)=>Object(l.b)(i,e,n,t)),L=Object(i.j)(D,R,j,(t,e,n)=>t.map(t=>{const i=e.filter(e=>e.asset===t.asset).map(t=>t.notional).reduce((t,e)=>t+e,0),r=n.filter(e=>e.asset===t.asset).map(t=>t.notional).reduce((t,e)=>t+e,0);return Object.assign(Object.assign({},t),{totalNotional:t.notional+i+r})}).sortBy(t=>t.totalNotional,h.i).valueSeq()),N=Object(i.j)(c.n,D,(t,e)=>Object(l.c)(e,t)),U=Object(i.j)(N,t=>u.Maybe.fromUndefined(t.first())),F=Object(i.j)(c.n,R,(t,e)=>Object(l.c)(e,t)),B=(Object(i.j)(d.a,N,(t,e)=>e.map(e=>Object(l.g)(t,e)).reduce((t,e)=>t+e,0)),Object(i.j)(d.a,F,(t,e)=>e.map(e=>Object(l.e)(t,e)).reduce((t,e)=>t+e,0)),Object(i.j)(c.r,R,S,(t,e,n)=>Object(b.a)(t)?n:e.find(e=>{var n;return(null===(n=Object(l.f)(e.name).orUndefined())||void 0===n?void 0:n.replace("XBT","BTC"))===Object(o.j)(t).toUpperCase()}))),z=(Object(i.j)(C,w,T,(t,e,n)=>n.merge(e).merge(t)),Object(i.j)(S,p.c,(t,e)=>{var n;return null===(n=null==t?void 0:t.flexAssets)||void 0===n?void 0:n.keySeq().toArray().map(e=>{var n,i;return(null===(i=null===(n=null==t?void 0:t.flexAssets)||void 0===n?void 0:n.get(e))||void 0===i?void 0:i.currency)||""}).filter(t=>"IE"!==e&&"BE"!==e||"WIF"!==t)}))},J180:function(t,e,n){"use strict";var i=this&&this.__awaiter||function(t,e,n,i){return new(n||(n=Promise))((function(r,s){function o(t){try{c(i.next(t))}catch(e){s(e)}}function a(t){try{c(i.throw(t))}catch(e){s(e)}}function c(t){t.done?r(t.value):new n((function(e){e(t.value)})).then(o,a)}c((i=i.apply(t,e||[])).next())}))},r=this&&this.__generator||function(t,e){var n,i,r,s,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(r=2&s[0]?i.return:s[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,s[1])).done)return r;switch(i=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,i=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]0&&!t.paused&&!t.ended&&t.readyState>2},t.prototype.tryPlayVideo=function(t){return i(this,void 0,void 0,(function(){return r(this,(function(e){switch(e.label){case 0:if(this.isVideoPlaying(t))return console.warn("Trying to play video that is already playing."),[2];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,t.play()];case 2:return e.sent(),[3,4];case 3:return e.sent(),console.warn("It was not possible to play the video."),[3,4];case 4:return[2]}}))}))},t.prototype.getMediaElement=function(t,e){var n=document.getElementById(t);if(!n)throw new s.default("element with id '"+t+"' not found");if(n.nodeName.toLowerCase()!==e.toLowerCase())throw new s.default("element with id '"+t+"' must be an "+e+" element");return n},t.prototype.decodeFromImage=function(t,e){if(!t&&!e)throw new s.default("either imageElement with a src set or an url must be provided");return e&&!t?this.decodeFromImageUrl(e):this.decodeFromImageElement(t)},t.prototype.decodeFromVideo=function(t,e){if(!t&&!e)throw new s.default("Either an element with a src set or an URL must be provided");return e&&!t?this.decodeFromVideoUrl(e):this.decodeFromVideoElement(t)},t.prototype.decodeFromVideoContinuously=function(t,e,n){if(void 0===t&&void 0===e)throw new s.default("Either an element with a src set or an URL must be provided");return e&&!t?this.decodeFromVideoUrlContinuously(e,n):this.decodeFromVideoElementContinuously(t,n)},t.prototype.decodeFromImageElement=function(t){if(!t)throw new s.default("An image element must be provided.");this.reset();var e=this.prepareImageElement(t);return this.imageElement=e,this.isImageLoaded(e)?this.decodeOnce(e,!1,!0):this._decodeOnLoadImage(e)},t.prototype.decodeFromVideoElement=function(t){var e=this._decodeFromVideoElementSetup(t);return this._decodeOnLoadVideo(e)},t.prototype.decodeFromVideoElementContinuously=function(t,e){var n=this._decodeFromVideoElementSetup(t);return this._decodeOnLoadVideoContinuously(n,e)},t.prototype._decodeFromVideoElementSetup=function(t){if(!t)throw new s.default("A video element must be provided.");this.reset();var e=this.prepareVideoElement(t);return this.videoElement=e,e},t.prototype.decodeFromImageUrl=function(t){if(!t)throw new s.default("An URL must be provided.");this.reset();var e=this.prepareImageElement();this.imageElement=e;var n=this._decodeOnLoadImage(e);return e.src=t,n},t.prototype.decodeFromVideoUrl=function(t){if(!t)throw new s.default("An URL must be provided.");this.reset();var e=this.prepareVideoElement(),n=this.decodeFromVideoElement(e);return e.src=t,n},t.prototype.decodeFromVideoUrlContinuously=function(t,e){if(!t)throw new s.default("An URL must be provided.");this.reset();var n=this.prepareVideoElement(),i=this.decodeFromVideoElementContinuously(n,e);return n.src=t,i},t.prototype._decodeOnLoadImage=function(t){var e=this;return new Promise((function(n,i){e.imageLoadedListener=function(){return e.decodeOnce(t,!1,!0).then(n,i)},t.addEventListener("load",e.imageLoadedListener)}))},t.prototype._decodeOnLoadVideo=function(t){return i(this,void 0,void 0,(function(){return r(this,(function(e){switch(e.label){case 0:return[4,this.playVideoOnLoadAsync(t)];case 1:return e.sent(),[4,this.decodeOnce(t)];case 2:return[2,e.sent()]}}))}))},t.prototype._decodeOnLoadVideoContinuously=function(t,e){return i(this,void 0,void 0,(function(){return r(this,(function(n){switch(n.label){case 0:return[4,this.playVideoOnLoadAsync(t)];case 1:return n.sent(),this.decodeContinuously(t,e),[2]}}))}))},t.prototype.isImageLoaded=function(t){return!!t.complete&&0!==t.naturalWidth},t.prototype.prepareImageElement=function(t){var e;return void 0===t&&((e=document.createElement("img")).width=200,e.height=200),"string"==typeof t&&(e=this.getMediaElement(t,"img")),t instanceof HTMLImageElement&&(e=t),e},t.prototype.prepareVideoElement=function(t){var e;return t||"undefined"==typeof document||((e=document.createElement("video")).width=200,e.height=200),"string"==typeof t&&(e=this.getMediaElement(t,"video")),t instanceof HTMLVideoElement&&(e=t),e.setAttribute("autoplay","true"),e.setAttribute("muted","true"),e.setAttribute("playsinline","true"),e},t.prototype.decodeOnce=function(t,e,n){var i=this;void 0===e&&(e=!0),void 0===n&&(n=!0),this._stopAsyncDecode=!1;var r=function(s,o){if(i._stopAsyncDecode)return o(new u.default("Video stream has ended before any code could be detected.")),void(i._stopAsyncDecode=void 0);try{var c=i.decode(t);s(c)}catch(h){if(e&&h instanceof u.default||(h instanceof a.default||h instanceof l.default)&&n)return setTimeout((function(){return r(s,o)}),i._timeBetweenDecodingAttempts);o(h)}};return new Promise((function(t,e){return r(t,e)}))},t.prototype.decodeContinuously=function(t,e){var n=this;this._stopContinuousDecode=!1;var i=function(){if(n._stopContinuousDecode)n._stopContinuousDecode=void 0;else try{var r=n.decode(t);e(r,null),setTimeout((function(){return i()}),n.timeBetweenScansMillis)}catch(s){e(null,s),(s instanceof a.default||s instanceof l.default||s instanceof u.default)&&setTimeout((function(){return i()}),n._timeBetweenDecodingAttempts)}};i()},t.prototype.decode=function(t){var e=this.createBinaryBitmap(t);return this.decodeBitmap(e)},t.prototype.createBinaryBitmap=function(t){var e=this.getCaptureCanvasContext(t);this.drawImageOnCanvas(e,t);var n=this.getCaptureCanvas(t),i=new h.HTMLCanvasElementLuminanceSource(n),r=new c.default(i);return new o.default(r)},t.prototype.getCaptureCanvasContext=function(t){if(!this.captureCanvasContext){var e=this.getCaptureCanvas(t).getContext("2d");this.captureCanvasContext=e}return this.captureCanvasContext},t.prototype.getCaptureCanvas=function(t){if(!this.captureCanvas){var e=this.createCaptureCanvas(t);this.captureCanvas=e}return this.captureCanvas},t.prototype.drawImageOnCanvas=function(t,e){t.drawImage(e,0,0)},t.prototype.decodeBitmap=function(t){return this.reader.decode(t,this._hints)},t.prototype.createCaptureCanvas=function(t){if("undefined"==typeof document)return this._destroyCaptureCanvas(),null;var e,n,i=document.createElement("canvas");return void 0!==t&&(t instanceof HTMLVideoElement?(e=t.videoWidth,n=t.videoHeight):t instanceof HTMLImageElement&&(e=t.naturalWidth||t.width,n=t.naturalHeight||t.height)),i.style.width=e+"px",i.style.height=n+"px",i.width=e,i.height=n,i},t.prototype.stopStreams=function(){this.stream&&(this.stream.getVideoTracks().forEach((function(t){return t.stop()})),this.stream=void 0),!1===this._stopAsyncDecode&&this.stopAsyncDecode(),!1===this._stopContinuousDecode&&this.stopContinuousDecode()},t.prototype.reset=function(){this.stopStreams(),this._destroyVideoElement(),this._destroyImageElement(),this._destroyCaptureCanvas()},t.prototype._destroyVideoElement=function(){this.videoElement&&(void 0!==this.videoEndedListener&&this.videoElement.removeEventListener("ended",this.videoEndedListener),void 0!==this.videoPlayingEventListener&&this.videoElement.removeEventListener("playing",this.videoPlayingEventListener),void 0!==this.videoCanPlayListener&&this.videoElement.removeEventListener("loadedmetadata",this.videoCanPlayListener),this.cleanVideoSource(this.videoElement),this.videoElement=void 0)},t.prototype._destroyImageElement=function(){this.imageElement&&(void 0!==this.imageLoadedListener&&this.imageElement.removeEventListener("load",this.imageLoadedListener),this.imageElement.src=void 0,this.imageElement.removeAttribute("src"),this.imageElement=void 0)},t.prototype._destroyCaptureCanvas=function(){this.captureCanvasContext=void 0,this.captureCanvas=void 0},t.prototype.addVideoSource=function(t,e){try{t.srcObject=e}catch(n){t.src=URL.createObjectURL(e)}},t.prototype.cleanVideoSource=function(t){try{t.srcObject=null}catch(e){t.src=""}this.videoElement.removeAttribute("src")},t}()},J7L8:function(t,e,n){"use strict";n.d(e,"a",(function(){return bt}));var i=n("D57K"),r=n("kZht"),s=n("zqNl"),o=n("ZTXN"),a=n("gxtV"),c=n("VmIW"),l=n("KQpv"),u=n.n(l),h=n("lx5p"),d=n("YzTY"),p=n("uJYd"),f=n("YyhG"),b=n("O5EP"),g=n("wk3K"),m=n("WncL"),v=n("houi"),_=n("nVws"),y=n("v4C1"),O=n("O0qa"),C=n("hnst"),w=n("36Sp"),T=n("bxcy"),S=n("Ngp4"),k=n("UZ8P"),E=n("6neU"),x=n("zK/z");const P={[d.a.MARKET_DETAILS]:b.a,[d.a.MARKET_CHART]:g.a,[d.a.MARKET_PREVIEWS]:m.a,[d.a.ORDERBOOK]:v.a,[d.a.ORDER_FORM]:_.a,[d.a.TRADE_HISTORY]:y.a,[d.a.OPEN_ORDERS]:O.a,[d.a.TRIGGER_ORDERS]:C.a,[d.a.OPEN_POSITIONS]:w.a,[d.a.FILLED_ORDERS]:T.a,[d.a.PAIR_WALLET]:S.a,[d.a.BRACKET_ORDER]:E.a,[d.a.DEPTH_CHART]:k.a,[d.a.ACCOUNT_ACTIVITY]:x.a};function A(t,e){let n=t.length;for(;n--;)if(e(t[n],n,t))return n;return-1}var I=n("LaGA"),M=n("TLy2"),D=n("An66"),R=n("aaFr"),j=n("TADc"),L=n("ROO/"),N=n("icqo"),U=n("NxuZ"),F=n("FUfi"),B=n("bBQR"),z=n("anSm"),V=n("aDqW"),$=n("MqcE");const H=["content"],q=["container"],Q=["tabsList"],W=["tabsContainer"];function G(t,e){if(1&t){const t=r.Vb();r.Ub(0,"div",25),r.bc("dragstart",(function(n){r.Ec(t);const i=e.$implicit;return r.fc(2).startTabDrag(n,i)}))("dragover",(function(){r.Ec(t);const n=e.index;return r.fc(2).dragOverTab(n)}))("dragend",(function(n){r.Ec(t);const i=e.$implicit;return r.fc(2).dragEndTab(n,i)}))("drop",(function(n){r.Ec(t);const i=e.index;return r.fc(2).dropTab(n,i)}))("click",(function(){r.Ec(t);const n=e.$implicit;return r.fc(2).focusTab(n)})),r.Ub(1,"tab-label",26),r.bc("closeTab",(function(){r.Ec(t);const n=e.$implicit;return r.fc(2).removeTab(n)})),r.Tb(),r.Tb()}if(2&t){const t=e.$implicit,n=e.index,i=r.fc(2);r.Lc("margin-left",i.marginLeft(t,n)),r.Gb("active",i.focussedComponentId.contains(t.id)),r.mc("hidden",i.hiddenComponents.includes(t)),r.Cb(1),r.oc("heading","HEADING.",i.CID[t.id],""),r.mc("badgeSelector",i.tabBadge(t.id)),r.Db("active",i.focussedComponentId.contains(t.id))}}function Y(t,e){if(1&t&&(r.Ub(0,"div",27),r.Ub(1,"p",28),r.Qc(2),r.Tb(),r.Pb(3,"fa-icon",29),r.Tb()),2&t){const t=r.fc(2),e=r.Ac(6);r.mc("sbMenuTriggerFor",e),r.Cb(2),r.Rc(t.hiddenComponents.length)}}function K(t,e){if(1&t&&(r.Ub(0,"div",30),r.Pb(1,"fa-icon",31),r.Tb()),2&t){r.fc(2);const t=r.Ac(13);r.mc("sbMenuTriggerFor",t)}}function Z(t,e){if(1&t&&(r.Ub(0,"div",5,21),r.Oc(2,G,2,8,"div",22),r.Oc(3,Y,4,2,"div",23),r.Oc(4,K,2,1,"div",24),r.Tb()),2&t){const t=r.fc();r.Cb(2),r.mc("ngForOf",t.tabs),r.Cb(1),r.mc("ngIf",t.hiddenComponents.length),r.Cb(1),r.mc("ngIf",(t.usableTabs.length||t.moveHereTabs.length)&&!t.hiddenComponents.length)}}function X(t,e){if(1&t&&(r.Sb(0),r.Ub(1,"div",32),r.Ub(2,"p",33),r.Qc(3,"TAB_WRAPPER.ADD_NEW"),r.Tb(),r.Pb(4,"fa-icon",34),r.Tb(),r.Rb()),2&t){r.fc();const t=r.Ac(13);r.Cb(1),r.mc("sbMenuTriggerFor",t)}}function J(t,e){if(1&t){const t=r.Vb();r.Ub(0,"div",35),r.Ub(1,"button",36),r.bc("click",(function(){r.Ec(t);const n=e.$implicit,i=e.index;return r.fc().menuTabClick(n,i)})),r.Qc(2),r.gc(3,"translate"),r.Tb(),r.Ub(4,"button",37),r.bc("click",(function(){r.Ec(t);const n=e.$implicit;return r.fc().removeTab(n)})),r.Pb(5,"fa-icon",38),r.Tb(),r.Tb()}if(2&t){const t=e.$implicit,n=r.fc();r.Cb(2),r.Sc(" ",r.hc(3,1,"HEADING."+n.CID[t.id])," ")}}function tt(t,e){if(1&t){const t=r.Vb();r.Ub(0,"button",39),r.bc("click",(function(){r.Ec(t);const n=e.$implicit;return r.fc().addTab(n)})),r.Qc(1),r.gc(2,"translate"),r.Tb()}if(2&t){const t=e.$implicit,n=r.fc();r.Cb(1),r.Sc(" ",r.hc(2,1,"HEADING."+n.CID[t.id])," ")}}function et(t,e){1&t&&(r.Ub(0,"p",40),r.Qc(1,"TAB_WRAPPER.IN_USE"),r.Tb())}function nt(t,e){if(1&t){const t=r.Vb();r.Ub(0,"button",41),r.bc("click",(function(){r.Ec(t);const n=e.$implicit;return r.fc().addInUseTab(n)})),r.Qc(1),r.gc(2,"translate"),r.Tb()}if(2&t){const t=e.$implicit,n=r.fc();r.Cb(1),r.Sc(" ",r.hc(2,1,"HEADING."+n.CID[t.id])," ")}}function it(t,e){1&t&&(r.Sb(0),r.Pb(1,"fa-icon",44),r.Ub(2,"p",33),r.Qc(3,"TAB_WRAPPER.COMPONENT_IN_USE"),r.Tb(),r.Rb())}function rt(t,e){1&t&&(r.Sb(0),r.Pb(1,"fa-icon",45),r.Ub(2,"p",33),r.Qc(3,"TAB_WRAPPER.VALID_CONTAINER"),r.Tb(),r.Rb())}function st(t,e){1&t&&(r.Sb(0),r.Pb(1,"fa-icon",44),r.Ub(2,"p",33),r.Qc(3,"TAB_WRAPPER.INVALID_CONTAINER"),r.Tb(),r.Rb())}function ot(t,e){1&t&&(r.Sb(0),r.Pb(1,"fa-icon",46),r.Ub(2,"p",33),r.Qc(3,"TAB_WRAPPER.DROP_TAB"),r.Tb(),r.Rb())}function at(t,e){if(1&t){const t=r.Vb();r.Ub(0,"div",42),r.bc("drop",(function(e){return r.Ec(t),r.fc().dropTab(e)})),r.Oc(1,it,4,0,"ng-container",43),r.Oc(2,rt,4,0,"ng-container",43),r.Oc(3,st,4,0,"ng-container",43),r.Oc(4,ot,4,0,"ng-container",43),r.Tb()}if(2&t){const t=r.fc();r.Eb(t.dropClass),r.mc("ngSwitch",t.state),r.Cb(1),r.mc("ngSwitchCase","in-use"),r.Cb(1),r.mc("ngSwitchCase","drop-valid"),r.Cb(1),r.mc("ngSwitchCase","drop-invalid"),r.Cb(1),r.mc("ngSwitchCase","drop-target")}}function ct(t,e){if(1&t&&(r.Ub(0,"div",47),r.Ub(1,"div",48),r.Pb(2,"fa-icon",49),r.Ub(3,"p",33),r.Qc(4,"TAB_WRAPPER.ADD_NEW_WIDGET"),r.Tb(),r.Ub(5,"p",33),r.Qc(6,"TAB_WRAPPER.SELECT_DATA"),r.Tb(),r.Tb(),r.Tb()),2&t){r.fc();const t=r.Ac(13);r.Cb(1),r.mc("sbMenuTriggerFor",t)}}const lt=u()("app:tab-wrapper"),ut=u()("trace:app:tab-wrapper"),ht={empty:"1px solid var(--border-colour)",content:"1px solid var(--border-colour)","in-use":"1px solid var(--border-colour)","drop-valid":"2px dashed var(--g200)","drop-invalid":"2px dashed var(--r200)","drop-target":"2px dashed var(--brand)"},dt={empty:"",content:"","in-use":"in-use-container","drop-valid":"valid-container","drop-invalid":"invalid-container","drop-target":"drop-target"},pt={[d.a.OPEN_POSITIONS]:"POSITIONS_ORDERS",[d.a.OPEN_ORDERS]:"POSITIONS_ORDERS",[d.a.TRIGGER_ORDERS]:"POSITIONS_ORDERS",[d.a.FILLED_ORDERS]:"POSITIONS_ORDERS",[d.a.ORDERBOOK]:"ORDERBOOK",[d.a.MARKET_CHART]:"MARKET_CHART",[d.a.TRADE_HISTORY]:"TRADE_HISTORY"},ft={[d.a.OPEN_ORDERS]:f.h,[d.a.TRIGGER_ORDERS]:f.j,[d.a.OPEN_POSITIONS]:f.i};let bt=(()=>{let t=class{constructor(t,e,n){this.cfr=t,this.store=e,this.changeDetectorRef=n,this.CID=d.a,this.loadedComponent=Object(c.None)(),this.dragCounter=0,this.dropPositionPreview=Object(c.None)(),this.workspaceComponents=[],this.tabAdd=new r.o,this.tabMove=new r.o,this.tabDelete=new r.o,this.tabFocus=new r.o,this.tabDragging=new r.o,this.hiddenComponents=[],this.observed=!1,this.badgeSelector$=new o.b,this.badge$=this.badgeSelector$.pipe(Object(M.a)(t=>this.store.pipe(Object(s.m)(t)))),this.debug=(t,...e)=>{var n;(null!==(n=this.debugger)&&void 0!==n?n:lt)(t,...e)},this.trace=(t,...e)=>{var n;(null!==(n=this.tracer)&&void 0!==n?n:ut)(t,...e)}}ngOnChanges(t){var e,n;if(null===(e=t.location)||void 0===e?void 0:e.currentValue){const e=t.location.currentValue;this.debugger=u()(`app:tab-wrapper[${e}]`),this.tracer=u()(`trace:app:tab-wrapper[${e}]`)}t.activeComponent&&(this.debug("active component change"),this.loadActiveComponent()),(null===(n=t.components)||void 0===n?void 0:n.currentValue)&&(this.debug("components change"),this.focussedComponentId.equals(this.loadedComponent)||this.loadActiveComponent(),this.removeOldHiddenComponents())}ngAfterViewChecked(){!this.observed&&this.tabsList&&this.tabsContainer&&this.observeTabs()}get tabs(){return this.validComponents.map(t=>d.i[t])}addTab(t){this.debug("adding tab",t),this.tabAdd.emit(t.id)}addInUseTab(t){this.debug("adding in-use tab",t),this.tabMove.emit({id:t.id,position:this.validComponents.length})}focusTab(t){this.debug("focussing tab",t),this.tabFocus.emit(t.id)}removeTab(t){this.debug("removing tab",t),this.tabDelete.emit(t.id)}moveTab(t,e){this.debug(`moving component ${t.id} to ${null!=e?e:"[end]"}`),this.tabMove.emit({id:t.id,position:e})}startTabDrag(t,e){this.debug("drag start tab",e,t),this.tabDragging.emit(Object(c.Some)(e.id)),t.dataTransfer.setData("id",JSON.stringify(e.id)),t.dataTransfer.effectAllowed="move"}dragEnterPanel(t){this.trace("drag enter panel",t.target),this.dragCounter++,this.isValidPanel?(t.preventDefault(),t.dataTransfer.dropEffect="move"):t.dataTransfer.dropEffect="none"}dragOverPanel(t){this.trace("drag enter panel",t.target),this.isValidPanel&&t.preventDefault()}dragLeavePanel(t){this.trace("drag leave panel",t.target,t),this.dragCounter--,this.dropPositionPreview=Object(c.None)()}tabRowDragPosition(t){const e=Math.max(t.offsetX,0);return Math.max(Math.round(e/130),0)}tabRowDragOver(t){this.trace("drag over tab row");const e=this.tabRowDragPosition(t);this.dropPositionPreview.contains(e)||(this.debug("drag over tab row position "+e),this.dropPositionPreview=Object(c.Some)(e))}tabRowDrop(t){this.debug("drop on tab row");const e=this.tabRowDragPosition(t);this.dropTab(t,e),this.dropPositionPreview=Object(c.None)()}dragOverTab(t){this.trace("drag over tab"),this.dropPositionPreview.contains(t)||(this.debug("drag over tab position "+t),this.dropPositionPreview=Object(c.Some)(t))}dragEndTab(t,e){this.debug("drag end tab",e,t),this.tabDragging.emit(Object(c.None)()),this.dragCounter=0,this.dropPositionPreview=Object(c.None)()}dropTab(t,e){this.debug("drop on panel",t),t.stopPropagation(),this.tabDragging.emit(Object(c.None)()),this.dragCounter=0,this.dropPositionPreview=Object(c.None)();const n=Object(h.x)(t.dataTransfer.getData("id")).orUndefined();if(n)if(this.debug("dropped tab",n),this.suitableTabs.map(Object(h.F)("id")).includes(n)){const t=(()=>Object(h.m)(e)&&this.validComponents.includes(n)&&this.validComponents.indexOf(n)Object(d.h)(t,this.panelSize)&&!t.deprecated)}get usableTabs(){return this.suitableTabs.filter(t=>!this.workspaceComponents.includes(t.id)&&!t.deprecated)}get moveHereTabs(){return this.suitableTabs.filter(t=>{const e=this.workspaceComponents.includes(t.id),n=this.tabs.includes(t);return e&&!n})}openTabSettings(){const t=this.focussedComponentId.flatMap(t=>c.Maybe.fromNull(pt[t])).orUndefined();this.store.dispatch(Object(p.g)({name:"tab-settings",inputs:{title:t}}))}get isValidPanel(){return this.validPanelLocations.has(this.location)}get isDraggedOver(){return this.dragCounter>0}get state(){return this.dragging.cata(()=>this.validComponents.length>0?"content":"empty",t=>this.validComponents.includes(t)?"in-use":this.isValidPanel&&this.isDraggedOver?"drop-target":this.isValidPanel&&!this.isDraggedOver?"drop-valid":"drop-invalid")}get isDragMode(){return!["content","empty"].includes(this.state)}get dropClass(){return dt[this.state]}get panelBorder(){return ht[this.state]}get focussedComponentId(){if(this.validComponents.length>0){const t=this.activeComponent&&!d.i[this.activeComponent].deprecated?this.activeComponent:this.validComponents[0];return Object(c.Some)(t)}return Object(c.None)()}loadActiveComponent(){this.focussedComponentId.cata(()=>{this.content.clear(),this.loadedComponent=Object(c.None)()},t=>{this.unsafe__LoadComponent(t),this.loadedComponent=Object(c.Some)(t);const e=this.hiddenComponents.findIndex(e=>e.id===t);-1!==e&&this.hiddenComponents.splice(e,1)})}unsafe__LoadComponent(t){const e=P[t];lt("loading component",t,null==e?void 0:e.name);const n=this.cfr.resolveComponentFactory(e);this.content.clear(),this.content.createComponent(n).instance.component=e}get isOverflow(){const t=this.tabsList.nativeElement;return t.offsetWidth{for(const{}of t){if(this.dragging.isSome())return;const{clientWidth:t,scrollWidth:e}=this.tabsList.nativeElement,n=this.tabsContainer.nativeElement.offsetWidth,i=e-t>0,r=200,s=this.hiddenComponents.map(t=>t.id);if(i){const t=A(this.validComponents,t=>!s.includes(t)&&this.activeComponent!==t);if(-1!==t)return this.hiddenComponents.push(this.tabs[t]),void this.changeDetectorRef.detectChanges()}else n-t>r&&this.hiddenComponents.shift();this.removeOldHiddenComponents(),this.changeDetectorRef.detectChanges()}}),this.observer.observe(this.tabsList.nativeElement),this.observer.observe(this.tabsContainer.nativeElement),this.observed=!0}removeOldHiddenComponents(){this.hiddenComponents.forEach((t,e)=>{this.validComponents.includes(t.id)||this.hiddenComponents.splice(e,1)})}menuTabClick(t,e){this.focusTab(t),this.moveTab(t,0),this.hiddenComponents.splice(e,1)}marginLeft(t,e){if(this.dropPositionPreview.contains(e))return"60px";const n=this.tabs.find(t=>!this.hiddenComponents.map(t=>t.id).includes(t.id));return n&&t.id===n.id?"0px":"10px"}tabBadge(t){return ft[t]}get validComponents(){return this.components.filter(t=>!d.i[t].deprecated)}};return t.\u0275fac=function(e){return new(e||t)(r.Ob(r.j),r.Ob(s.b),r.Ob(r.h))},t.\u0275cmp=r.Ib({type:t,selectors:[["tab-wrapper"]],viewQuery:function(t,e){var n;1&t&&(r.Jc(H,!0,r.R),r.Jc(q,!0),r.Wc(Q,!0),r.Jc(W,!0)),2&t&&(r.zc(n=r.cc())&&(e.content=n.first),r.zc(n=r.cc())&&(e.container=n.first),r.zc(n=r.cc())&&(e.tabsList=n.first),r.zc(n=r.cc())&&(e.tabsContainer=n.first))},hostVars:2,hostBindings:function(t,e){1&t&&r.bc("dragenter",(function(t){return e.dragEnterPanel(t)}))("dragover",(function(t){return e.dragOverPanel(t)}))("dragleave",(function(t){return e.dragLeavePanel(t)})),2&t&&r.Lc("border",e.panelBorder)},inputs:{components:"components",activeComponent:"activeComponent",location:"location",panelSize:"panelSize",workspaceComponents:"workspaceComponents",dragging:"dragging",validPanelLocations:"validPanelLocations",workspaceId:"workspaceId"},outputs:{tabAdd:"tabAdd",tabMove:"tabMove",tabDelete:"tabDelete",tabFocus:"tabFocus",tabDragging:"tabDragging"},features:[r.Ab],decls:25,vars:13,consts:[[1,"tabs"],["tabsContainer",""],[1,"tabs-hover-zone",3,"dragover","drop"],["class","tab-list",4,"ngIf"],[4,"ngIf"],[1,"tab-list"],["tabMenu","sbMenu"],["class","tab-list-item",4,"ngFor","ngForOf"],["sb-menu-item","","type","button",3,"sbMenuTriggerFor"],[1,"tab-wrapper"],["availableComponents","sbMenu"],["sb-menu-item","","type","button",3,"click",4,"ngFor","ngForOf"],["sb-menu-heading","","translate","",4,"ngIf"],["sb-menu-item","","sbIcon","transfer","type","button",3,"click",4,"ngFor","ngForOf"],[1,"spacer"],["icon","cog","size","lg",1,"settings-icon",3,"click"],[3,"class","ngSwitch","drop",4,"ngIf"],[1,"content",3,"hidden"],["container",""],["content",""],["class","no-content",4,"ngIf"],["tabsList",""],["class","tab tab-basic","draggable","true",3,"active","marginLeft","hidden","dragstart","dragover","dragend","drop","click",4,"ngFor","ngForOf"],["class","tab-basic tab-dropdown",3,"sbMenuTriggerFor",4,"ngIf"],["class","tab-basic add-tab",3,"sbMenuTriggerFor",4,"ngIf"],["draggable","true",1,"tab","tab-basic",3,"hidden","dragstart","dragover","dragend","drop","click"],[3,"heading","badgeSelector","closeTab"],[1,"tab-basic","tab-dropdown",3,"sbMenuTriggerFor"],["body",""],["icon","arrow-small-down","size","lg",1,"down"],[1,"tab-basic","add-tab",3,"sbMenuTriggerFor"],["icon","plus","size","lg"],[1,"tab","add-new","tab-basic",3,"sbMenuTriggerFor"],["body","","translate",""],["icon","circle-plus","size","lg"],[1,"tab-list-item"],["sb-menu-item","","type","button",1,"tab-name",3,"click"],["sb-menu-item","","type","button",1,"remove-tab",3,"click"],["icon","close-medium","size","lg"],["sb-menu-item","","type","button",3,"click"],["sb-menu-heading","","translate",""],["sb-menu-item","","sbIcon","transfer","type","button",3,"click"],[3,"ngSwitch","drop"],[4,"ngSwitchCase"],["icon","warning","size","3x"],["icon","check-1","size","3x"],["icon","plus","size","3x"],[1,"no-content"],[1,"placeholder",3,"sbMenuTriggerFor"],["icon","circle-plus","size","3x"]],template:function(t,e){if(1&t&&(r.Ub(0,"div",0,1),r.Ub(2,"div",2),r.bc("dragover",(function(t){return e.tabRowDragOver(t)}))("drop",(function(t){return e.tabRowDrop(t)})),r.Tb(),r.Oc(3,Z,5,3,"div",3),r.Oc(4,X,5,1,"ng-container",4),r.Ub(5,"sb-menu",5,6),r.Oc(7,J,6,3,"div",7),r.Pb(8,"sb-divider"),r.Ub(9,"button",8),r.Qc(10),r.gc(11,"translate"),r.Tb(),r.Tb(),r.Ub(12,"sb-menu",9,10),r.Oc(14,tt,3,3,"button",11),r.Oc(15,et,2,0,"p",12),r.Oc(16,nt,3,3,"button",13),r.Tb(),r.Pb(17,"div",14),r.Ub(18,"fa-icon",15),r.bc("click",(function(){return e.openTabSettings()})),r.Tb(),r.Tb(),r.Oc(19,at,5,7,"div",16),r.Ub(20,"div",17,18),r.Pb(22,"div",null,19),r.Oc(24,ct,7,1,"div",20),r.Tb()),2&t){const t=r.Ac(13);r.Cb(3),r.mc("ngIf",e.tabs.length),r.Cb(1),r.mc("ngIf",!e.tabs.length),r.Cb(3),r.mc("ngForOf",e.hiddenComponents),r.Cb(2),r.mc("sbMenuTriggerFor",t),r.Cb(1),r.Sc(" ",r.hc(11,11,"LABEL.ADD_COMPONENT")," "),r.Cb(4),r.mc("ngForOf",e.usableTabs),r.Cb(1),r.mc("ngIf",e.moveHereTabs.length),r.Cb(1),r.mc("ngForOf",e.moveHereTabs),r.Cb(3),r.mc("ngIf",e.isDragMode),r.Cb(1),r.mc("hidden",e.isDragMode),r.Cb(4),r.mc("ngIf",!e.tabs.length)}},directives:[D.n,R.a,D.m,j.a,L.a,N.b,U.b,F.a,B.a,z.a,V.a,$.a,D.p,D.q],pipes:[V.d],styles:["[_nghost-%COMP%]{background:var(--card-colour);flex-direction:column}.tabs[_ngcontent-%COMP%], [_nghost-%COMP%]{border-radius:var(--bdrs);display:flex}.tabs[_ngcontent-%COMP%]{background-color:var(--toolbar-colour);border-bottom:1px solid var(--border-colour);border-bottom-left-radius:0;border-bottom-right-radius:0;padding:5px 5px 0;position:relative;flex-wrap:nowrap;overflow:visible}.tabs[_ngcontent-%COMP%] .tabs-hover-zone[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0;bottom:0;z-index:1}.tabs[_ngcontent-%COMP%] .tab[_ngcontent-%COMP%]{cursor:grab;display:inline-block;padding:4px 6px;flex:0 0 auto}.tabs[_ngcontent-%COMP%] .tab.add-new[_ngcontent-%COMP%]{background-color:var(--card-colour);display:flex}.tabs[_ngcontent-%COMP%] .tab.add-new[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{color:var(--icon-colour)!important;margin-left:var(--spacing)}.tabs[_ngcontent-%COMP%] .tab.add-new[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--input-colour)!important}.tabs[_ngcontent-%COMP%] .settings-icon[_ngcontent-%COMP%]{cursor:pointer;color:var(--icon-colour);position:relative;top:4px;margin-left:10px;z-index:2}.drop-target[_ngcontent-%COMP%], .in-use-container[_ngcontent-%COMP%], .invalid-container[_ngcontent-%COMP%], .valid-container[_ngcontent-%COMP%]{height:100%;display:flex;flex:1;justify-content:center;align-items:center;flex-direction:column}.drop-target[_ngcontent-%COMP%] > p[_ngcontent-%COMP%], .in-use-container[_ngcontent-%COMP%] > p[_ngcontent-%COMP%], .invalid-container[_ngcontent-%COMP%] > p[_ngcontent-%COMP%], .valid-container[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{margin-top:5px}.in-use-container[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{color:var(--border-colour)}.valid-container[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{color:var(--accent-colour)}.invalid-container[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{color:var(--warn-colour)}.drop-target[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{color:var(--brand)}.content[_ngcontent-%COMP%]{flex:1;overflow:auto}.content[_ngcontent-%COMP%] .no-content[_ngcontent-%COMP%]{height:100%}.content[_ngcontent-%COMP%] .no-content[_ngcontent-%COMP%], .content[_ngcontent-%COMP%] .placeholder[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.content[_ngcontent-%COMP%] .placeholder[_ngcontent-%COMP%]{color:#888;cursor:pointer;height:-moz-max-content;height:max-content;flex-direction:column;width:-moz-max-content;width:max-content}.content[_ngcontent-%COMP%] .placeholder[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{color:var(--icon-colour)}.content[_ngcontent-%COMP%] .placeholder[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{margin-top:5px}.spacer[_ngcontent-%COMP%]{flex-grow:1}.tab-basic[_ngcontent-%COMP%]{align-items:center;background:var(--toolbar-colour);border:1px solid var(--border-colour);border-top-left-radius:5px;border-top-right-radius:5px;border-bottom:0;display:flex;z-index:2}.tab-basic.active[_ngcontent-%COMP%], .tab-basic[_ngcontent-%COMP%]:hover{border-color:var(--border-colour-bright);background:var(--card-colour)}.tab-basic.active[_ngcontent-%COMP%]{border-bottom:1px solid var(--card-colour);position:relative;margin-top:-1px;top:1px}.tab-dropdown[_ngcontent-%COMP%]{cursor:pointer;display:flex;margin-left:var(--spacing);padding:4px 2px 4px 6px}.tab-dropdown[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{color:var(--ghost-colour)}.tab-dropdown[_ngcontent-%COMP%] fa-icon.down[_ngcontent-%COMP%]{color:var(--icon-colour);top:-1px;position:relative}.tab-name[_ngcontent-%COMP%]{flex:1}.remove-tab[_ngcontent-%COMP%]{width:30px}.add-tab[_ngcontent-%COMP%]{cursor:pointer;padding:4px 6px;margin-left:var(--spacing)}.add-tab[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{color:var(--icon-colour)}.tab-list[_ngcontent-%COMP%]{display:flex;flex-wrap:nowrap}.tab-list-item[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between}.tab-list[_ngcontent-%COMP%] > fa-icon[_ngcontent-%COMP%]{cursor:pointer;color:var(--icon-colour);position:relative;top:4px;margin-left:10px;z-index:2}[hidden][_ngcontent-%COMP%]{display:none!important}"],changeDetection:0}),t=Object(i.d)([Object(a.a)()],t),t})()},JHA6:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var i=n("ZTXN"),r=n("IdLP"),s=(n("5uGe"),n("bwdy")),o=n("i7Dj");class a extends r.a{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new s.a,t.add(this.source.subscribe(new l(this.getSubject(),this))),t.closed&&(this._connection=null,t=s.a.EMPTY)),t}refCount(){return Object(o.a)()(this)}}const c=(()=>{const t=a.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class l extends i.c{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function u(t,e){return function(n){let i;if(i="function"==typeof t?t:function(){return t},"function"==typeof e)return n.lift(new h(i,e));const r=Object.create(n,c);return r.source=n,r.subjectFactory=i,r}}class h{constructor(t,e){this.subjectFactory=t,this.selector=e}call(t,e){const{selector:n}=this,i=this.subjectFactory(),r=n(i).subscribe(t);return r.add(e.subscribe(i)),r}}},JgBV:function(t,e,n){var i=n("p3rJ"),r=n("5OId");e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(t,e){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!i.isValid(e))throw new Error("Invalid version: "+e);return e>=1&&e<10?t.ccBits[0]:e<27?t.ccBits[1]:t.ccBits[2]},e.getBestModeForData=function(t){return r.testNumeric(t)?e.NUMERIC:r.testAlphanumeric(t)?e.ALPHANUMERIC:r.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")},e.isValid=function(t){return t&&t.bit&&t.ccBits},e.from=function(t,n){if(e.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+t)}}(t)}catch(i){return n}}},JpLq:function(t,e,n){"use strict";n.d(e,"a",(function(){return h})),n.d(e,"b",(function(){return d}));var i=n("D57K"),r=n("An66"),s=n("kZht"),o=n("3kIJ"),a=n("Nhx6"),c=n("C05f");const l=["preview"];class u extends a.BrowserMultiFormatReader{constructor(){super(...arguments),this._isTorchAvailable=new c.a(void 0)}get isTorchAvailable(){return this._isTorchAvailable.asObservable()}continuousDecodeFromInputVideoDevice(t,e){if(this.reset(),void 0!==t&&(this.deviceId=t),"undefined"==typeof navigator)return;const n=new c.a({});try{this.getStreamForDevice({deviceId:t}).then(t=>this.attachStreamToVideoAndCheckTorch(t,e)).then(t=>this.decodeOnSubject(n,t,this.timeBetweenScansMillis))}catch(i){n.error(i)}return this._setScanStream(n),n.asObservable()}getStreamForDevice({deviceId:t}){return Object(i.a)(this,void 0,void 0,(function*(){const e=this.getUserMediaConstraints(t);return yield navigator.mediaDevices.getUserMedia(e)}))}getUserMediaConstraints(t){return{video:void 0===t?{facingMode:{exact:"environment"}}:{deviceId:{exact:t}}}}setTorch(t){if(!this._isTorchAvailable.value)return;const e=this.getVideoTracks(this.stream);t?this.applyTorchOnTracks(e,!0):(this.applyTorchOnTracks(e,!1),this.restart())}attachStreamToVideoAndCheckTorch(t,e){return this.updateTorchCompatibility(t),this.attachStreamToVideo(t,e)}updateTorchCompatibility(t){return Object(i.a)(this,void 0,void 0,(function*(){const e=this.getVideoTracks(t);for(const t of e)if(yield this.isTorchCompatible(t)){this._isTorchAvailable.next(!0);break}}))}getVideoTracks(t){let e=[];try{e=t.getVideoTracks()}finally{return e||[]}}isTorchCompatible(t){return Object(i.a)(this,void 0,void 0,(function*(){let e=!1;try{const n=new ImageCapture(t),i=yield n.getPhotoCapabilities();e=!!i.torch||"fillLightMode"in i&&0!==i.fillLightMode.length}finally{return e}}))}applyTorchOnTracks(t,e){t.forEach(t=>t.applyConstraints({advanced:[{torch:e,fillLightMode:e?"torch":"none"}]}))}_setScanStream(t){this._cleanScanStream(),this.scanStream=t}_cleanScanStream(){this.scanStream&&!this.scanStream.isStopped&&this.scanStream.complete(),this.scanStream=null}decodeOnSubject(t,e,n){if(t.isStopped)return;let i;try{i=this.decode(e),t.next({result:i})}catch(r){!r||r instanceof a.NotFoundException||r instanceof a.ChecksumException||r instanceof a.FormatException?t.next({error:r}):t.error(r)}finally{setTimeout(()=>this.decodeOnSubject(t,e,n),i?n:0)}}restart(){return this.continuousDecodeFromInputVideoDevice(this.deviceId,this.videoElement)}}let h=(()=>{let t=class{constructor(){this.timeBetweenScans=500,this.previewFitMode="cover",this.autostarted=new s.o,this.autostarting=new s.o,this.torchCompatible=new s.o,this.scanSuccess=new s.o,this.scanFailure=new s.o,this.scanError=new s.o,this.scanComplete=new s.o,this.camerasFound=new s.o,this.camerasNotFound=new s.o,this.permissionResponse=new s.o(!0),this.hasDevices=new s.o,this.deviceChange=new s.o,this._device=null,this._enabled=!0,this._hints=new Map,this.autofocusEnabled=!0,this.autostart=!0,this.formats=[a.BarcodeFormat.QR_CODE],this.hasNavigator="undefined"!=typeof navigator,this.isMediaDevicesSupported=this.hasNavigator&&!!navigator.mediaDevices}get codeReader(){return this._codeReader}set device(t){if(!t&&null!==t)throw new a.ArgumentException("The `device` must be a valid MediaDeviceInfo or null.");this.isCurrentDevice(t)?console.warn("Setting the same device is not allowed."):this.isAutostarting?console.warn("Avoid setting a device during auto-start."):(this.hasPermission||console.warn("Permissions not set yet, waiting for them to be set to apply device change."),this._reset(),this._device=t,this._enabled&&null!==t&&this.scanFromDevice(t.deviceId))}get device(){return this._device}get formats(){return this.hints.get(a.DecodeHintType.POSSIBLE_FORMATS)}set formats(t){if("string"==typeof t)throw new Error("Invalid formats, make sure the [formats] input is a binding.");const e=t.map(t=>this.getBarcodeFormatOrFail(t)),n=this.hints;n.set(a.DecodeHintType.POSSIBLE_FORMATS,e),this.hints=n}get hints(){return this._hints}set hints(t){this._hints=t,this.restart()}set isAutostarting(t){this._isAutostarting=t,this.autostarting.next(t)}get isAutostarting(){return this._isAutostarting}set torch(t){this.getCodeReader().setTorch(t)}set enable(t){this._enabled=Boolean(t),this._enabled?this.device&&this.scanFromDevice(this.device.deviceId):this.reset()}get enabled(){return this._enabled}get tryHarder(){return this.hints.get(a.DecodeHintType.TRY_HARDER)}set tryHarder(t){const e=this.hints;t?e.set(a.DecodeHintType.TRY_HARDER,!0):e.delete(a.DecodeHintType.TRY_HARDER),this.hints=e}askForPermission(){return Object(i.a)(this,void 0,void 0,(function*(){if(!this.hasNavigator)return console.error("@zxing/ngx-scanner","Can't ask permission, navigator is not present."),this.setPermission(null),this.hasPermission;if(!this.isMediaDevicesSupported)return console.error("@zxing/ngx-scanner","Can't get user media, this is not supported."),this.setPermission(null),this.hasPermission;let t,e;try{t=yield this.getAnyVideoDevice(),e=!!t}catch(n){return this.handlePermissionException(n)}finally{this.terminateStream(t)}return this.setPermission(e),e}))}getAnyVideoDevice(){return navigator.mediaDevices.getUserMedia({video:!0})}terminateStream(t){t&&t.getTracks().forEach(t=>t.stop()),t=void 0}initAutostartOff(){this.isAutostarting=null,this.updateVideoInputDevices()}initAutostartOn(){return Object(i.a)(this,void 0,void 0,(function*(){let t;this.isAutostarting=!0;try{t=yield this.askForPermission()}catch(e){return void console.error("Exception occurred while asking for permission:",e)}if(t){const t=yield this.updateVideoInputDevices();this.autostartScanner([...t])}}))}isCurrentDevice(t){return this.device&&t&&t.deviceId===this.device.deviceId}ngAfterViewInit(){if(this.getCodeReader().isTorchAvailable.subscribe(t=>this.torchCompatible.emit(t)),!this.autostart)return console.warn("New feature 'autostart' disabled, be careful. Permissions and devices recovery has to be run manually."),void this.initAutostartOff();this.initAutostartOn()}ngOnDestroy(){this.reset()}restart(){const t=this._reset();t&&(this._codeReader=void 0,this.device=t)}updateVideoInputDevices(){return Object(i.a)(this,void 0,void 0,(function*(){const t=(yield this.getCodeReader().listVideoInputDevices())||[],e=t&&t.length>0;return this.hasDevices.next(e),this.camerasFound.next([...t]),e||this.camerasNotFound.next(),t}))}autostartScanner(t){const e=t.find(({label:t})=>/back|tr\xe1s|rear|traseira|environment|ambiente/gi.test(t))||t.pop();if(!e)throw new Error("Impossible to autostart, no input devices available.");this.device=e,this.deviceChange.emit(e),this.isAutostarting=!1,this.autostarted.next()}dispatchScanSuccess(t){this.scanSuccess.next(t.getText())}dispatchScanFailure(t){this.scanFailure.next(t)}dispatchScanError(t){this.scanError.next(t)}dispatchScanComplete(t){this.scanComplete.next(t)}handlePermissionException(t){let e;switch(console.error("@zxing/ngx-scanner","Error when asking for permission.",t),t.name){case"NotSupportedError":console.warn("@zxing/ngx-scanner",t.message),e=null,this.hasDevices.next(null);break;case"NotAllowedError":console.warn("@zxing/ngx-scanner",t.message),e=!1,this.hasDevices.next(!0);break;case"NotFoundError":console.warn("@zxing/ngx-scanner",t.message),e=null,this.hasDevices.next(!1),this.camerasNotFound.next(t);break;case"NotReadableError":console.warn("@zxing/ngx-scanner","Couldn't read the device(s)'s stream, it's probably in use by another app."),e=null,this.hasDevices.next(!1),this.camerasNotFound.next(t);break;default:console.warn("@zxing/ngx-scanner","I was not able to define if I have permissions for camera or not.",t),e=null}return this.setPermission(e),this.permissionResponse.error(t),e}getBarcodeFormatOrFail(t){return"string"==typeof t?a.BarcodeFormat[t.trim().toUpperCase()]:t}getCodeReader(){return this._codeReader||(this._codeReader=new u(this.hints,this.timeBetweenScans)),this._codeReader}scanFromDevice(t){const e=this.previewElemRef.nativeElement,n=this.getCodeReader().continuousDecodeFromInputVideoDevice(t,e);if(!n)throw new Error("Undefined decoding stream, aborting.");n.subscribe(t=>this._onDecodeResult(t.result,t.error),t=>this._onDecodeError(t),()=>{this.reset(),console.log("completed")})}_onDecodeError(t){this.dispatchScanError(t),this.reset()}_onDecodeResult(t,e){t?this.dispatchScanSuccess(t):this.dispatchScanFailure(e),this.dispatchScanComplete(t)}_reset(){if(!this._codeReader)return;const t=this.device;return this._device=null,this._codeReader.reset(),t}reset(){this._reset(),this.deviceChange.emit(null)}setPermission(t){this.hasPermission=t,this.permissionResponse.next(t)}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Ib({type:t,selectors:[["zxing-scanner"]],viewQuery:function(t,e){var n;1&t&&s.Jc(l,!0),2&t&&s.zc(n=s.cc())&&(e.previewElemRef=n.first)},inputs:{timeBetweenScans:"timeBetweenScans",previewFitMode:"previewFitMode",autofocusEnabled:"autofocusEnabled",autostart:"autostart",formats:"formats",device:"device",torch:"torch",enable:"enable",tryHarder:"tryHarder"},outputs:{autostarted:"autostarted",autostarting:"autostarting",torchCompatible:"torchCompatible",scanSuccess:"scanSuccess",scanFailure:"scanFailure",scanError:"scanError",scanComplete:"scanComplete",camerasFound:"camerasFound",camerasNotFound:"camerasNotFound",permissionResponse:"permissionResponse",hasDevices:"hasDevices",deviceChange:"deviceChange"},decls:6,vars:2,consts:[["preview",""]],template:function(t,e){1&t&&(s.Ub(0,"video",null,0),s.Ub(2,"p"),s.Qc(3," Your browser does not support this feature, please try to upgrade it. "),s.Tb(),s.Ub(4,"p"),s.Qc(5," Seu navegador n\xe3o suporta este recurso, por favor tente atualiz\xe1-lo. "),s.Tb(),s.Tb()),2&t&&s.Lc("object-fit",e.previewFitMode)},styles:["[_nghost-%COMP%]{display:block}video[_ngcontent-%COMP%]{width:100%;height:auto;-o-object-fit:contain;object-fit:contain}"],changeDetection:0}),t})(),d=(()=>{let t=class{};return t.\u0275mod=s.Mb({type:t}),t.\u0275inj=s.Lb({factory:function(e){return new(e||t)},imports:[[r.c,o.j]]}),t})()},JtL9:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("FEHI"),r=n("Nxx2");e.default=function(){function t(t){this.errorCorrectionLevel=i.default.forBits(t>>3&3),this.dataMask=7&t}return t.numBitsDiffering=function(t,e){return r.default.bitCount(t^e)},t.decodeFormatInformation=function(e,n){var i=t.doDecodeFormatInformation(e,n);return null!==i?i:t.doDecodeFormatInformation(e^t.FORMAT_INFO_MASK_QR,n^t.FORMAT_INFO_MASK_QR)},t.doDecodeFormatInformation=function(e,n){for(var i=Number.MAX_SAFE_INTEGER,r=0,s=0,o=t.FORMAT_INFO_DECODE_LOOKUP;s0){var n=new i.default[e.length+t.length];r.default.arraycopy(e,0,n,0,e.length),r.default.arraycopy(t,0,n,e.length,t.length),this.resultPoints=n}},t.prototype.getTimestamp=function(){return this.timestamp},t.prototype.toString=function(){return this.text},t}();e.default=s},KQpv:function(t,e,n){e.log=function(...t){return"object"==typeof console&&console.log&&console.log(...t)},e.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;e.splice(1,0,n,"color: inherit");let i=0,r=0;e[0].replace(/%[a-zA-Z%]/g,t=>{"%%"!==t&&(i++,"%c"===t&&(r=i))}),e.splice(r,0,n)},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(n){}},e.load=function(){let t;try{t=e.storage.getItem("debug")}catch(n){}return!t&&"undefined"!=typeof process&&"env"in process&&(t=process.env.DEBUG),t},e.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},e.storage=function(){try{return localStorage}catch(t){}}(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.exports=n("SC2c")(e);const{formatters:i}=t.exports;i.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},KRZI:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("FU6l");function r(t){return!Object(i.a)(t)&&t-parseFloat(t)+1>=0}},KTx3:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("IdLP"),r=n("FU6l"),s=n("IJgj"),o=n("YtkY");function a(t,e,n,c){return Object(s.a)(n)&&(c=n,n=void 0),c?a(t,e,n).pipe(Object(o.a)(t=>Object(r.a)(t)?c(...t):c(t))):new i.a(i=>{!function t(e,n,i,r,s){let o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){const t=e;e.addEventListener(n,i,s),o=()=>t.removeEventListener(n,i,s)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){const t=e;e.on(n,i),o=()=>t.off(n,i)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){const t=e;e.addListener(n,i),o=()=>t.removeListener(n,i)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let o=0,a=e.length;o1?Array.prototype.slice.call(arguments):t)}),i,n)})}},KZGf:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){function t(t){void 0===t&&(t=""),this.value=t}return t.prototype.append=function(t){return this.value+="string"==typeof t?t.toString():String.fromCharCode(t),this},t.prototype.length=function(){return this.value.length},t.prototype.charAt=function(t){return this.value.charAt(t)},t.prototype.deleteCharAt=function(t){this.value=this.value.substr(0,t)+this.value.substring(t+1)},t.prototype.setCharAt=function(t,e){this.value=this.value.substr(0,t)+e+this.value.substr(t+1)},t.prototype.toString=function(){return this.value},t.prototype.insert=function(t,e){this.value=this.value.substr(0,t)+e+this.value.substr(t+e.length)},t}()},Knqz:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return o}));const i=["","K","M","B","T","Z"];function r(t){if(t<1)return t.toString();const e=Math.log10(t)/3|0;if(0===e)return t.toPrecision(3);const n=i[e];return(t/Math.pow(10,3*e)).toPrecision(3)+n}var s=n("kZht");let o=(()=>{class t{transform(t){return null==t?null:r(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Nb({name:"humanNumber",type:t,pure:!0}),t})()},KyJX:function(t,e,n){"use strict";n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return p})),n.d(e,"c",(function(){return f})),n.d(e,"d",(function(){return b}));var i=n("zqNl"),r=n("1u95"),s=n("p5wL"),o=n("rxqU"),a=n("B59i"),c=n("+Px6");const l=Object(i.i)({initial:{buy:0,sell:0},edited:{buy:0,sell:0},bracket:{buy:0,sell:0}},Object(i.k)(r.e,(t,e)=>Object(s.b)(e,t,"initial")),Object(i.k)(r.d,(t,e)=>Object(s.b)(e,t,"edited")),Object(i.k)(r.c,(t,e)=>Object(s.b)(e,t,"bracket")));function u(t,e){return l(t,e)}const h=Object(i.h)("margin"),d=Object(i.j)(h,t=>t.initial),p=Object(i.j)(h,t=>t.bracket),f=Object(i.j)(h,t=>t.edited),b=Object(i.j)(d,o.a,c.a,(t,e,n)=>Object(a.c)(t,e,n))},L09h:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("oznm"),r=e.ModeValues=function(t){return t[t.TERMINATOR=0]="TERMINATOR",t[t.NUMERIC=1]="NUMERIC",t[t.ALPHANUMERIC=2]="ALPHANUMERIC",t[t.STRUCTURED_APPEND=3]="STRUCTURED_APPEND",t[t.BYTE=4]="BYTE",t[t.ECI=5]="ECI",t[t.KANJI=6]="KANJI",t[t.FNC1_FIRST_POSITION=7]="FNC1_FIRST_POSITION",t[t.FNC1_SECOND_POSITION=8]="FNC1_SECOND_POSITION",t[t.HANZI=9]="HANZI",t}(e.ModeValues||{});e.default=function(){function t(e,n,i,r){this.value=e,this.stringValue=n,this.characterCountBitsForVersions=i,this.bits=r,t.FOR_BITS.set(r,this),t.FOR_VALUE.set(e,this)}return t.forBits=function(e){var n=t.FOR_BITS.get(e);if(void 0===n)throw new i.default;return n},t.prototype.getCharacterCountBits=function(t){var e=t.getVersionNumber();return this.characterCountBitsForVersions[e<=9?0:e<=26?1:2]},t.prototype.getValue=function(){return this.value},t.prototype.getBits=function(){return this.bits},t.prototype.equals=function(e){return e instanceof t&&this.value===e.value},t.prototype.toString=function(){return this.stringValue},t.FOR_BITS=new Map,t.FOR_VALUE=new Map,t.TERMINATOR=new t(r.TERMINATOR,"TERMINATOR",Int32Array.from([0,0,0]),0),t.NUMERIC=new t(r.NUMERIC,"NUMERIC",Int32Array.from([10,12,14]),1),t.ALPHANUMERIC=new t(r.ALPHANUMERIC,"ALPHANUMERIC",Int32Array.from([9,11,13]),2),t.STRUCTURED_APPEND=new t(r.STRUCTURED_APPEND,"STRUCTURED_APPEND",Int32Array.from([0,0,0]),3),t.BYTE=new t(r.BYTE,"BYTE",Int32Array.from([8,16,16]),4),t.ECI=new t(r.ECI,"ECI",Int32Array.from([0,0,0]),7),t.KANJI=new t(r.KANJI,"KANJI",Int32Array.from([8,10,12]),8),t.FNC1_FIRST_POSITION=new t(r.FNC1_FIRST_POSITION,"FNC1_FIRST_POSITION",Int32Array.from([0,0,0]),5),t.FNC1_SECOND_POSITION=new t(r.FNC1_SECOND_POSITION,"FNC1_SECOND_POSITION",Int32Array.from([0,0,0]),9),t.HANZI=new t(r.HANZI,"HANZI",Int32Array.from([8,10,12]),13),t}()},L20P:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("ZCEf"),r=n("Qkwj"),s=n("qArU"),o=n("e9V9"),a=n("9GlW"),c=n("dyLe"),l=n("TIRN"),u=n("4f+B"),h=n("0SRF"),d=n("LqyJ");e.default=function(){function t(t){this.image=t}return t.prototype.getImage=function(){return this.image},t.prototype.getResultPointCallback=function(){return this.resultPointCallback},t.prototype.detect=function(t){this.resultPointCallback=null==t?null:t.get(i.default.NEED_RESULT_POINT_CALLBACK);var e=new u.default(this.image,this.resultPointCallback).find(t);return this.processFinderPatternInfo(e)},t.prototype.processFinderPatternInfo=function(e){var n=e.getTopLeft(),i=e.getTopRight(),r=e.getBottomLeft(),o=this.calculateModuleSize(n,i,r);if(o<1)throw new d.default("No pattern found in proccess finder.");var a=t.computeDimension(n,i,r,o),c=l.default.getProvisionalVersionForDimension(a),u=c.getDimensionForVersion()-7,h=null;if(c.getAlignmentPatternCenters().length>0)for(var p=i.getX()-n.getX()+r.getX(),f=i.getY()-n.getY()+r.getY(),b=1-3/u,g=Math.floor(n.getX()+b*(p-n.getX())),m=Math.floor(n.getY()+b*(f-n.getY())),v=4;v<=16;v<<=1)try{h=this.findAlignmentInRegion(o,g,m,v);break}catch(O){if(!(O instanceof d.default))throw O}var _=t.createTransform(n,i,r,h,a),y=t.sampleGrid(this.image,_,a);return new s.default(y,null===h?[r,n,i]:[r,n,i,h])},t.createTransform=function(t,e,n,i,r){var s,o,c,l,u=r-3.5;return null!==i?(s=i.getX(),o=i.getY(),l=c=u-3):(s=e.getX()-t.getX()+n.getX(),o=e.getY()-t.getY()+n.getY(),c=u,l=u),a.default.quadrilateralToQuadrilateral(3.5,3.5,u,3.5,c,l,3.5,u,t.getX(),t.getY(),e.getX(),e.getY(),s,o,n.getX(),n.getY())},t.sampleGrid=function(t,e,n){return o.default.getInstance().sampleGridWithTransform(t,n,n,e)},t.computeDimension=function(t,e,n,i){var s=c.default.round(r.default.distance(t,e)/i),o=c.default.round(r.default.distance(t,n)/i),a=Math.floor((s+o)/2)+7;switch(3&a){case 0:a++;break;case 2:a--;break;case 3:throw new d.default("Dimensions could be not found.")}return a},t.prototype.calculateModuleSize=function(t,e,n){return(this.calculateModuleSizeOneWay(t,e)+this.calculateModuleSizeOneWay(t,n))/2},t.prototype.calculateModuleSizeOneWay=function(t,e){var n=this.sizeOfBlackWhiteBlackRunBothWays(Math.floor(t.getX()),Math.floor(t.getY()),Math.floor(e.getX()),Math.floor(e.getY())),i=this.sizeOfBlackWhiteBlackRunBothWays(Math.floor(e.getX()),Math.floor(e.getY()),Math.floor(t.getX()),Math.floor(t.getY()));return isNaN(n)?i/7:isNaN(i)?n/7:(n+i)/14},t.prototype.sizeOfBlackWhiteBlackRunBothWays=function(t,e,n,i){var r=this.sizeOfBlackWhiteBlackRun(t,e,n,i),s=1,o=t-(n-t);o<0?(s=t/(t-o),o=0):o>=this.image.getWidth()&&(s=(this.image.getWidth()-1-t)/(o-t),o=this.image.getWidth()-1);var a=Math.floor(e-(i-e)*s);return s=1,a<0?(s=e/(e-a),a=0):a>=this.image.getHeight()&&(s=(this.image.getHeight()-1-e)/(a-e),a=this.image.getHeight()-1),o=Math.floor(t+(o-t)*s),(r+=this.sizeOfBlackWhiteBlackRun(t,e,o,a))-1},t.prototype.sizeOfBlackWhiteBlackRun=function(t,e,n,i){var r=Math.abs(i-e)>Math.abs(n-t);if(r){var s=t;t=e,e=s,s=n,n=i,i=s}for(var o=Math.abs(n-t),a=Math.abs(i-e),l=-o/2,u=t0){if(b===i)break;b+=h,l-=o}}return 2===d?c.default.distance(n+u,i,t,e):NaN},t.prototype.findAlignmentInRegion=function(t,e,n,i){var r=Math.floor(i*t),s=Math.max(0,e-r),o=Math.min(this.image.getWidth()-1,e+r);if(o-s<3*t)throw new d.default("Alignment top exceeds estimated module size.");var a=Math.max(0,n-r),c=Math.min(this.image.getHeight()-1,n+r);if(c-a<3*t)throw new d.default("Alignment bottom exceeds estimated module size.");return new h.default(this.image,s,a,o-s,c-a,t,this.resultPointCallback).find()},t}()},LBlH:function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var i=n("kZht"),r=n("KQpv"),s=n.n(r),o=n("ZtZA"),a=n("5OT+"),c=n("+6xv");const l=[Object(c.n)("slideInOut",[Object(c.k)("show",Object(c.l)({transform:"translateY(0)",opacity:1})),Object(c.m)(":enter",[Object(c.l)({transform:"translateY(-10px)",opacity:0}),Object(c.e)("300ms ease-out")]),Object(c.m)(":leave",[Object(c.e)("300ms ease-in"),Object(c.l)({transform:"translateY(10px)",opacity:0})])])];var u=n("5GZx"),h=n("An66");function d(t,e){if(1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Qb(2,2),i.Tb(),i.Tb()),2&t){const t=i.fc();i.mc("@slideInOut","show"),i.Cb(2),i.mc("ngTemplateOutlet",t.content)}}const p=s()("sb:popper");let f=(()=>{class t{constructor(t,e,n){this.overlay=t,this.vcr=e,this.placement=n,this.hasBackdrop=!0}componentTrigger(t,e){p("manual popper opening anchored to",t);const n=[a.e[e]],i=this.overlay.position().flexibleConnectedTo(t).withPositions(n).withPush(!1);this.trigger(i)}centerTrigger(){const t=this.overlay.position().global().centerHorizontally().centerVertically();this.trigger(t)}trigger(t){const e=this.overlay.create({positionStrategy:t,hasBackdrop:this.hasBackdrop,backdropClass:this.backdropClass,panelClass:this.panelClass});e.backdropClick().subscribe(t=>e.dispose());const n=new o.h(this.tmpl,this.vcr);e.attach(n),this.overlayRef=e}onTrigger({trigger:t,event:e,data:n={}}){var i,r;p("popper opening anchored to",t,e);const s=null!==(r=null===(i=this.placement)||void 0===i?void 0:i.connectedPositions())&&void 0!==r?r:[a.e.bottomStart],o=this.overlay.position().flexibleConnectedTo(t.vcr.element).withPositions(s).withPush(!1);this.trigger(o)}dispose(){var t;null===(t=this.overlayRef)||void 0===t||t.dispose()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(u.c),i.Ob(i.R),i.Ob(a.c,9))},t.\u0275cmp=i.Ib({type:t,selectors:[["sb-popper"]],contentQueries:function(t,e,n){var r;1&t&&i.Hb(n,i.N,!0),2&t&&i.zc(r=i.cc())&&(e.content=r.first)},viewQuery:function(t,e){var n;1&t&&i.Wc(i.N,!0),2&t&&i.zc(n=i.cc())&&(e.tmpl=n.first)},inputs:{panelClass:["sbPopperClass","panelClass"],hasBackdrop:["sbPopperBackdrop","hasBackdrop"],backdropClass:["sbPopperBackdropClass","backdropClass"]},exportAs:["sbPopper"],decls:1,vars:0,consts:[[1,"sb-popper"],[1,"sb-popper-content"],[3,"ngTemplateOutlet"]],template:function(t,e){1&t&&i.Oc(0,d,3,2,"ng-template")},directives:[h.s],styles:[".sb-popper[_ngcontent-%COMP%]{overflow:hidden;background-color:var(--card-colour);border:1px solid var(--border-colour);border-radius:var(--bdrs)}"],data:{animation:[l]},changeDetection:0}),t})()},LBoB:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s=n("4Pxi"),o=n("ZCEf"),a=n("KFdt"),c=n("Qkwj"),l=n("iiuT"),u=n("LqyJ"),h=n("nB6u"),d=n("sPys");e.default=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.findStartPattern=function(t){for(var n=t.getSize(),i=t.getNextSet(0),r=0,s=[0,0,0,0,0,0],o=i,a=!1,c=i;c=0&&t.isRange(Math.max(0,o-(c-o)/2),o,!1))return[o,c,d];o+=s[0]+s[1],s.splice(0,2),s[r-1]=0,s[r]=0,r--}else r++;s[r]=1,a=!a}throw new u.default},e.decodeCode=function(t,n,i){l.default.recordPattern(t,i,n);for(var r=e.MAX_AVG_VARIANCE,s=-1,o=0;o=0)return s;throw new u.default},e.prototype.decodeRow=function(t,n,i){var r,l=i&&!0===i.get(o.default.ASSUME_GS1),p=e.findStartPattern(n),f=p[2],b=0,g=new Uint8Array(20);switch(g[b++]=f,f){case e.CODE_START_A:r=e.CODE_CODE_A;break;case e.CODE_START_B:r=e.CODE_CODE_B;break;case e.CODE_START_C:r=e.CODE_CODE_C;break;default:throw new h.default}for(var m=!1,v=!1,_="",y=p[0],O=p[1],C=[0,0,0,0,0,0],w=0,T=0,S=f,k=0,E=!0,x=!1,P=!1;!m;){var A=v;switch(v=!1,w=T,T=e.decodeCode(n,C,O),g[b++]=T,T!==e.CODE_STOP&&(E=!0),T!==e.CODE_STOP&&(S+=++k*T),y=O,O+=C.reduce((function(t,e){return t+e}),0),T){case e.CODE_START_A:case e.CODE_START_B:case e.CODE_START_C:throw new h.default}switch(r){case e.CODE_CODE_A:if(T<64)_+=String.fromCharCode(P===x?" ".charCodeAt(0)+T:" ".charCodeAt(0)+T+128),P=!1;else if(T<96)_+=String.fromCharCode(P===x?T-64:T+64),P=!1;else switch(T!==e.CODE_STOP&&(E=!1),T){case e.CODE_FNC_1:l&&(_+=0===_.length?"]C1":String.fromCharCode(29));break;case e.CODE_FNC_2:case e.CODE_FNC_3:break;case e.CODE_FNC_4_A:!x&&P?(x=!0,P=!1):x&&P?(x=!1,P=!1):P=!0;break;case e.CODE_SHIFT:v=!0,r=e.CODE_CODE_B;break;case e.CODE_CODE_B:r=e.CODE_CODE_B;break;case e.CODE_CODE_C:r=e.CODE_CODE_C;break;case e.CODE_STOP:m=!0}break;case e.CODE_CODE_B:if(T<96)_+=String.fromCharCode(P===x?" ".charCodeAt(0)+T:" ".charCodeAt(0)+T+128),P=!1;else switch(T!==e.CODE_STOP&&(E=!1),T){case e.CODE_FNC_1:l&&(_+=0===_.length?"]C1":String.fromCharCode(29));break;case e.CODE_FNC_2:case e.CODE_FNC_3:break;case e.CODE_FNC_4_B:!x&&P?(x=!0,P=!1):x&&P?(x=!1,P=!1):P=!0;break;case e.CODE_SHIFT:v=!0,r=e.CODE_CODE_A;break;case e.CODE_CODE_A:r=e.CODE_CODE_A;break;case e.CODE_CODE_C:r=e.CODE_CODE_C;break;case e.CODE_STOP:m=!0}break;case e.CODE_CODE_C:if(T<100)T<10&&(_+="0"),_+=T;else switch(T!==e.CODE_STOP&&(E=!1),T){case e.CODE_FNC_1:l&&(_+=0===_.length?"]C1":String.fromCharCode(29));break;case e.CODE_CODE_A:r=e.CODE_CODE_A;break;case e.CODE_CODE_B:r=e.CODE_CODE_B;break;case e.CODE_STOP:m=!0}}A&&(r=r===e.CODE_CODE_A?e.CODE_CODE_B:e.CODE_CODE_A)}var I=O-y;if(O=n.getNextUnset(O),!n.isRange(O,Math.min(n.getSize(),O+(O-y)/2),!1))throw new u.default;if((S-=k*w)%103!==w)throw new d.default;var M=_.length;if(0===M)throw new u.default;M>0&&E&&(_=_.substring(0,r===e.CODE_CODE_C?M-2:M-1));for(var D=(p[1]+p[0])/2,R=y+I/2,j=g.length,L=new Uint8Array(j),N=0;N{class t{constructor(t,e){this.store=t,this.env=e,this.loading$=this.store.pipe(Object(i.m)(a.m,{filter:r.a}))}signUp(){this.env.demo?this.store.dispatch(Object(s.g)({name:"sign-up-demo"})):window.open(this.env.urls.externalSignUp,"_blank","noopener")}}return t.\u0275fac=function(e){return new(e||t)(c.Ob(i.b),c.Ob(o.a))},t.\u0275cmp=c.Ib({type:t,selectors:[["sign-in"]],decls:2,vars:0,consts:[["heading","DIALOG.SIGNIN.TITLE"]],template:function(t,e){1&t&&(c.Ub(0,"pro-dialog",0),c.Pb(1,"sign-in-form"),c.Tb())},directives:[l.a,u.a,h.a],styles:[".dialog-content[_ngcontent-%COMP%]{text-align:center}"],changeDetection:0}),t})()},LXEP:function(t,e,n){"use strict";n.r(e),n.d(e,"LayoutLoaderComponent",(function(){return v}));var i=n("3kIJ"),r=n("Tcl6"),s=n("YzTY"),o=n("uJYd"),a=n("yN5A"),c=n("kZht"),l=n("zqNl"),u=n("rfPA"),h=n("bBQR"),d=n("afE0"),p=n("anSm"),f=n("aDqW"),b=n("EmXI"),g=n("hCLc");const m=t=>{try{return Object(s.d)(t.value),null}catch(e){return{layout:"Not a valid encoded layout."}}};let v=(()=>{class t{constructor(t,e){this.store=t,this.fb=e,this.form=this.buildForm()}ngAfterViewInit(){var t;null===(t=this.nameField)||void 0===t||t.focus()}buildForm(){return this.fb.group({encoded:["",[i.x.required,m]]})}loadLayout(){const t=Object(s.d)(this.form.get("encoded").value);this.store.dispatch(Object(a.c)({config:t})),this.store.dispatch(Object(o.c)())}}return t.\u0275fac=function(e){return new(e||t)(c.Ob(l.b),c.Ob(i.d))},t.\u0275cmp=c.Ib({type:t,selectors:[["layout-loader"]],viewQuery:function(t,e){var n;1&t&&c.Wc(r.b,!0),2&t&&c.zc(n=c.cc())&&(e.nameField=n.first)},decls:14,vars:8,consts:[["heading","DIALOG.LAYOUT_LOADER.TITLE"],[1,"layout-loader","vstack","hcenter","gap-l"],["icon","workspace"],["body","","translate",""],["body","",3,"formGroup","ngSubmit"],["color","accent","appearance","fill"],["matInput","","formControlName","encoded","autocomplete","off"],["mat-raised-button","","body","",3,"disabled"]],template:function(t,e){1&t&&(c.Ub(0,"pro-dialog",0),c.Ub(1,"section",1),c.Pb(2,"dialog-badge",2),c.Ub(3,"p",3),c.Qc(4,"DIALOG.LAYOUT_LOADER.BODY"),c.Tb(),c.Ub(5,"form",4),c.bc("ngSubmit",(function(){return e.loadLayout()})),c.Ub(6,"mat-form-field",5),c.Ub(7,"mat-label"),c.Qc(8),c.gc(9,"translate"),c.Tb(),c.Pb(10,"input",6),c.Tb(),c.Ub(11,"button",7),c.Qc(12),c.gc(13,"translate"),c.Tb(),c.Tb(),c.Tb(),c.Tb()),2&t&&(c.Cb(5),c.mc("formGroup",e.form),c.Cb(3),c.Rc(c.hc(9,4,"DIALOG.LAYOUT_LOADER.LABEL")),c.Cb(3),c.mc("disabled",e.form.invalid),c.Cb(1),c.Sc(" ",c.hc(13,6,"DIALOG.LAYOUT_LOADER.BUTTON")," "))},directives:[u.a,h.a,d.a,p.a,f.a,i.z,i.p,i.h,b.c,b.f,r.b,i.c,i.o,i.g,g.b],pipes:[f.d],styles:[".layout-loader[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.layout-loader[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .layout-loader[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}"],changeDetection:0}),t})()},LaGA:function(t,e,n){"use strict";var i=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,i){return t[0]===e&&(n=i,!0)})),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),i=this.__entries__[n];return i&&i[1]},e.prototype.set=function(e,n){var i=t(this.__entries__,e);~i?this.__entries__[i][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,i=t(n,e);~i&&n.splice(i,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,i=this.__entries__;n0},t.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;a.some((function(t){return!!~n.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),u=function(t,e){for(var n=0,i=Object.keys(e);n0},t}(),y="undefined"!=typeof WeakMap?new WeakMap:new i,O=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=l.getInstance(),i=new _(e,n,this);y.set(this,i)};["observe","unobserve","disconnect"].forEach((function(t){O.prototype[t]=function(){var e;return(e=y.get(this))[t].apply(e,arguments)}})),e.a=void 0!==s.ResizeObserver?s.ResizeObserver:O},LbKT:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("kZht");let r=(()=>{class t{constructor(t,e){this.renderer=t,this.element=e,this.pnl=0,this.pnlZero=!1}ngOnChanges(){this.renderer.removeClass(this.element.nativeElement,"global__text--accent"),this.renderer.removeClass(this.element.nativeElement,"global__text--warn"),this.renderer.removeClass(this.element.nativeElement,"global__text--link"),this.pnl>0?this.renderer.addClass(this.element.nativeElement,"global__text--accent"):this.pnl<0?this.renderer.addClass(this.element.nativeElement,"global__text--warn"):(this.pnlZero||""===this.pnlZero)&&this.renderer.addClass(this.element.nativeElement,"global__text--link")}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.G),i.Ob(i.l))},t.\u0275dir=i.Jb({type:t,selectors:[["","pnl",""]],inputs:{pnl:"pnl",pnlZero:"pnlZero"},features:[i.Ab]}),t})()},LoUP:function(t,e,n){"use strict";n.d(e,"a",(function(){return m})),n.d(e,"b",(function(){return S})),n.d(e,"c",(function(){return k}));var i=n("kZht"),r=n("5XID"),s=n("pTnX"),o=n("jL3B"),a=n("Hq54"),c=n("ZTXN"),l=n("g6G6"),u=n("+6xv"),h=n("An66");const d=["mat-sort-header",""];function p(t,e){if(1&t){const t=i.Vb();i.Ub(0,"div",3),i.bc("@arrowPosition.start",(function(){return i.Ec(t),i.fc()._disableViewStateAnimation=!0}))("@arrowPosition.done",(function(){return i.Ec(t),i.fc()._disableViewStateAnimation=!1})),i.Pb(1,"div",4),i.Ub(2,"div",5),i.Pb(3,"div",6),i.Pb(4,"div",7),i.Pb(5,"div",8),i.Tb(),i.Tb()}if(2&t){const t=i.fc();i.mc("@arrowOpacity",t._getArrowViewState())("@arrowPosition",t._getArrowViewState())("@allowChildren",t._getArrowDirectionState()),i.Cb(2),i.mc("@indicator",t._getArrowDirectionState()),i.Cb(1),i.mc("@leftPointer",t._getArrowDirectionState()),i.Cb(1),i.mc("@rightPointer",t._getArrowDirectionState())}}const f=["*"];class b{}const g=Object(s.A)(Object(s.y)(b));let m=(()=>{class t extends g{constructor(){super(...arguments),this.sortables=new Map,this._stateChanges=new c.b,this.start="asc",this._direction="",this.sortChange=new i.o}get direction(){return this._direction}set direction(t){this._direction=t}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=Object(r.c)(t)}register(t){this.sortables.set(t.id,t)}deregister(t){this.sortables.delete(t.id)}sort(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(t){if(!t)return"";let e=function(t,e){let n=["asc","desc"];return"desc"==t&&n.reverse(),e||n.push(""),n}(t.start||this.start,null!=t.disableClear?t.disableClear:this.disableClear),n=e.indexOf(this.direction)+1;return n>=e.length&&(n=0),e[n]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return v(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[i.zb,i.Ab]}),t})();const v=i.Wb(m),_=s.b.ENTERING+" "+s.a.STANDARD_CURVE,y={indicator:Object(u.n)("indicator",[Object(u.k)("active-asc, asc",Object(u.l)({transform:"translateY(0px)"})),Object(u.k)("active-desc, desc",Object(u.l)({transform:"translateY(10px)"})),Object(u.m)("active-asc <=> active-desc",Object(u.e)(_))]),leftPointer:Object(u.n)("leftPointer",[Object(u.k)("active-asc, asc",Object(u.l)({transform:"rotate(-45deg)"})),Object(u.k)("active-desc, desc",Object(u.l)({transform:"rotate(45deg)"})),Object(u.m)("active-asc <=> active-desc",Object(u.e)(_))]),rightPointer:Object(u.n)("rightPointer",[Object(u.k)("active-asc, asc",Object(u.l)({transform:"rotate(45deg)"})),Object(u.k)("active-desc, desc",Object(u.l)({transform:"rotate(-45deg)"})),Object(u.m)("active-asc <=> active-desc",Object(u.e)(_))]),arrowOpacity:Object(u.n)("arrowOpacity",[Object(u.k)("desc-to-active, asc-to-active, active",Object(u.l)({opacity:1})),Object(u.k)("desc-to-hint, asc-to-hint, hint",Object(u.l)({opacity:.54})),Object(u.k)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Object(u.l)({opacity:0})),Object(u.m)("* => asc, * => desc, * => active, * => hint, * => void",Object(u.e)("0ms")),Object(u.m)("* <=> *",Object(u.e)(_))]),arrowPosition:Object(u.n)("arrowPosition",[Object(u.m)("* => desc-to-hint, * => desc-to-active",Object(u.e)(_,Object(u.h)([Object(u.l)({transform:"translateY(-25%)"}),Object(u.l)({transform:"translateY(0)"})]))),Object(u.m)("* => hint-to-desc, * => active-to-desc",Object(u.e)(_,Object(u.h)([Object(u.l)({transform:"translateY(0)"}),Object(u.l)({transform:"translateY(25%)"})]))),Object(u.m)("* => asc-to-hint, * => asc-to-active",Object(u.e)(_,Object(u.h)([Object(u.l)({transform:"translateY(25%)"}),Object(u.l)({transform:"translateY(0)"})]))),Object(u.m)("* => hint-to-asc, * => active-to-asc",Object(u.e)(_,Object(u.h)([Object(u.l)({transform:"translateY(0)"}),Object(u.l)({transform:"translateY(-25%)"})]))),Object(u.k)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Object(u.l)({transform:"translateY(0)"})),Object(u.k)("hint-to-desc, active-to-desc, desc",Object(u.l)({transform:"translateY(-25%)"})),Object(u.k)("hint-to-asc, active-to-asc, asc",Object(u.l)({transform:"translateY(25%)"}))]),allowChildren:Object(u.n)("allowChildren",[Object(u.m)("* <=> *",[Object(u.i)("@*",Object(u.f)(),{optional:!0})])])};let O=(()=>{class t{constructor(){this.changes=new c.b,this.sortButtonLabel=t=>"Change sorting for "+t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i.Kb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const C={provide:O,deps:[[new i.C,new i.L,O]],useFactory:function(t){return t||new O}};class w{}const T=Object(s.y)(w);let S=(()=>{class t extends T{constructor(t,e,n,i,r,s){super(),this._intl=t,this._sort=n,this._columnDef=i,this._focusMonitor=r,this._elementRef=s,this._showIndicatorHint=!1,this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._rerenderSubscription=Object(l.a)(n.sortChange,n._stateChanges,t.changes).subscribe(()=>{this._isSorted()&&this._updateArrowDirection(),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),e.markForCheck()})}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=Object(r.c)(t)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>this._setIndicatorHintVisible(!!t))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(t){this._isDisabled()&&t||(this._showIndicatorHint=t,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(t){this._viewState=t,this._disableViewStateAnimation&&(this._viewState={toState:t.toState})}_toggleOnInteraction(){this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0);const t=this._isSorted()?{fromState:this._arrowDirection,toState:"active"}:{fromState:"active",toState:this._arrowDirection};this._setAnimationTransitionState(t),this._showIndicatorHint=!1}_handleClick(){this._isDisabled()||this._toggleOnInteraction()}_handleKeydown(t){this._isDisabled()||t.keyCode!==a.m&&t.keyCode!==a.e||(t.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const t=this._viewState.fromState;return(t?t+"-to-":"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(O),i.Ob(i.h),i.Ob(m,8),i.Ob("MAT_SORT_HEADER_COLUMN_DEF",8),i.Ob(o.h),i.Ob(i.l))},t.\u0275cmp=i.Ib({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(t,e){1&t&&i.bc("click",(function(){return e._handleClick()}))("keydown",(function(t){return e._handleKeydown(t)}))("mouseenter",(function(){return e._setIndicatorHintVisible(!0)}))("mouseleave",(function(){return e._setIndicatorHintVisible(!1)})),2&t&&(i.Db("aria-sort",e._getAriaSortAttribute()),i.Gb("mat-sort-header-disabled",e._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[i.zb],attrs:d,ngContentSelectors:f,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(t,e){1&t&&(i.lc(),i.Ub(0,"div",0),i.Ub(1,"div",1),i.kc(2),i.Tb(),i.Oc(3,p,6,6,"div",2),i.Tb()),2&t&&(i.Gb("mat-sort-header-sorted",e._isSorted())("mat-sort-header-position-before","before"==e.arrowPosition),i.Db("tabindex",e._isDisabled()?null:0),i.Cb(3),i.mc("ngIf",e._renderArrow()))},directives:[h.n],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[y.indicator,y.leftPointer,y.rightPointer,y.arrowOpacity,y.arrowPosition,y.allowChildren]},changeDetection:0}),t})(),k=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},providers:[C],imports:[[h.c]]}),t})()},LqyJ:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s=n("w6/c");e.default=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e}(s.default)},LxLQ:function(t,e){function n(){this.buffer=[],this.length=0}n.prototype={get:function(t){var e=Math.floor(t/8);return 1==(this.buffer[e]>>>7-t%8&1)},put:function(t,e){for(var n=0;n>>e-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}},t.exports=n},"M/Eb":function(t,e,n){"use strict";n.d(e,"c",(function(){return a})),n.d(e,"b",(function(){return c})),n.d(e,"d",(function(){return l})),n.d(e,"e",(function(){return u})),n.d(e,"a",(function(){return h}));var i=n("og7C"),r=n("TYVA"),s=n("Gbfs"),o=n("pjhv");function a(t){return t.filter(t=>t.tradeable&&t.type.includes("futures"))}function c(t){return t.filter(t=>"flexible_futures"!==t.type)}function l(t){return e=>e.filter(e=>!t.includes(e.symbol))}function u(t){return t.map(t=>{const e=Object(o.c)(t);return Object.assign(Object.assign({},t),{symbol:t.symbol.toUpperCase(),contractValueTradePrecision:t.contractValueTradePrecision||0,numericPrecision:{short:e,full:e},numericFormat:{short:Object(o.d)(e),full:Object(o.d)(e)}})})}function h(t){return[...t.reduce((t,e)=>{const{parts:{currencies:{base:n,quote:i}}}=Object(r.u)(e.symbol);return t.withMutations(t=>{t.add(n),t.add(i)}).asImmutable()},Object(i.f)()).asImmutable().toMap().map(s.b).values()]}},MRfT:function(t,e,n){"use strict";n.d(e,"a",(function(){return x})),n.d(e,"b",(function(){return S}));var i=n("kZht"),r=n("+6xv"),s=n("ZTXN"),o=n("ENSU"),a=n("An66");const c=["toast-component",""];function l(t,e){if(1&t){const t=i.Vb();i.Ub(0,"button",5),i.bc("click",(function(){return i.Ec(t),i.fc().remove()})),i.Ub(1,"span",6),i.Qc(2,"\xd7"),i.Tb(),i.Tb()}}function u(t,e){if(1&t&&(i.Sb(0),i.Qc(1),i.Rb()),2&t){const t=i.fc(2);i.Cb(1),i.Sc("[",t.duplicatesCount+1,"]")}}function h(t,e){if(1&t&&(i.Ub(0,"div"),i.Qc(1),i.Oc(2,u,2,1,"ng-container",4),i.Tb()),2&t){const t=i.fc();i.Eb(t.options.titleClass),i.Db("aria-label",t.title),i.Cb(1),i.Sc(" ",t.title," "),i.Cb(1),i.mc("ngIf",t.duplicatesCount)}}function d(t,e){if(1&t&&i.Pb(0,"div",7),2&t){const t=i.fc();i.Eb(t.options.messageClass),i.mc("innerHTML",t.message,i.Fc)}}function p(t,e){if(1&t&&(i.Ub(0,"div",8),i.Qc(1),i.Tb()),2&t){const t=i.fc();i.Eb(t.options.messageClass),i.Db("aria-label",t.message),i.Cb(1),i.Sc(" ",t.message," ")}}function f(t,e){if(1&t&&(i.Ub(0,"div"),i.Pb(1,"div",9),i.Tb()),2&t){const t=i.fc();i.Cb(1),i.Lc("width",t.width+"%")}}class b{constructor(t,e,n,i,r,o){this.toastId=t,this.config=e,this.message=n,this.title=i,this.toastType=r,this.toastRef=o,this._onTap=new s.b,this._onAction=new s.b,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(t){this._onAction.next(t)}onAction(){return this._onAction.asObservable()}}const g={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing"},m=new i.s("ToastConfig");class v{constructor(t,e){this.component=t,this.injector=e}attach(t,e){return this._attachedHost=t,t.attach(this,e)}detach(){const t=this._attachedHost;if(t)return this._attachedHost=void 0,t.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class _ extends class{attach(t,e){return this._attachedPortal=t,this.attachComponentPortal(t,e)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(t){this._disposeFn=t}}{constructor(t,e,n){super(),this._hostDomElement=t,this._componentFactoryResolver=e,this._appRef=n}attachComponentPortal(t,e){const n=this._componentFactoryResolver.resolveComponentFactory(t.component);let i;return i=n.create(t.injector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()}),e?this._hostDomElement.insertBefore(this._getComponentRootNode(i),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(i)),i}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let y=(()=>{class t{constructor(t){this._document=t}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t=this._document.createElement("div");t.classList.add("overlay-container"),this._document.body.appendChild(t),this._containerElement=t}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(a.d))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(a.d))},token:t,providedIn:"root"}),t})();class O{constructor(t){this._portalHost=t}attach(t,e=!0){return this._portalHost.attach(t,e)}detach(){return this._portalHost.detach()}}let C=(()=>{class t{constructor(t,e,n,i){this._overlayContainer=t,this._componentFactoryResolver=e,this._appRef=n,this._document=i,this._paneElements=new Map}create(t,e){return this._createOverlayRef(this.getPaneElement(t,e))}getPaneElement(t="",e){return this._paneElements.get(e)||this._paneElements.set(e,{}),this._paneElements.get(e)[t]||(this._paneElements.get(e)[t]=this._createPaneElement(t,e)),this._paneElements.get(e)[t]}_createPaneElement(t,e){const n=this._document.createElement("div");return n.id="toast-container",n.classList.add(t),n.classList.add("toast-container"),e?e.getContainerElement().appendChild(n):this._overlayContainer.getContainerElement().appendChild(n),n}_createPortalHost(t){return new _(t,this._componentFactoryResolver,this._appRef)}_createOverlayRef(t){return new O(this._createPortalHost(t))}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(y),i.Yb(i.j),i.Yb(i.g),i.Yb(a.d))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(y),Object(i.Yb)(i.j),Object(i.Yb)(i.g),Object(i.Yb)(a.d))},token:t,providedIn:"root"}),t})();class w{constructor(t){this._overlayRef=t,this.duplicatesCount=0,this._afterClosed=new s.b,this._activate=new s.b,this._manualClose=new s.b,this._resetTimeout=new s.b,this._countDuplicate=new s.b}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(t,e){t&&this._resetTimeout.next(),e&&this._countDuplicate.next(++this.duplicatesCount)}}class T{constructor(t,e){this._toastPackage=t,this._parentInjector=e}get(t,e,n){return t===b?this._toastPackage:this._parentInjector.get(t,e,n)}}let S=(()=>{class t{constructor(t,e,n,i,r){this.overlay=e,this._injector=n,this.sanitizer=i,this.ngZone=r,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig=Object.assign(Object.assign({},t.default),t.config),t.config.iconClasses&&(this.toastrConfig.iconClasses=Object.assign(Object.assign({},t.default.iconClasses),t.config.iconClasses))}show(t,e,n={},i=""){return this._preBuildNotification(i,t,e,this.applyConfig(n))}success(t,e,n={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",t,e,this.applyConfig(n))}error(t,e,n={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",t,e,this.applyConfig(n))}info(t,e,n={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",t,e,this.applyConfig(n))}warning(t,e,n={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",t,e,this.applyConfig(n))}clear(t){for(const e of this.toasts)if(void 0!==t){if(e.toastId===t)return void e.toastRef.manualClose()}else e.toastRef.manualClose()}remove(t){const e=this._findToast(t);if(!e)return!1;if(e.activeToast.toastRef.close(),this.toasts.splice(e.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length)return!1;if(this.currentlyActivethis._buildNotification(t,e,n,i)):this._buildNotification(t,e,n,i)}_buildNotification(t,e,n,r){if(!r.toastComponent)throw new Error("toastComponent required");const s=this.findDuplicate(e,this.toastrConfig.resetTimeoutOnDuplicate&&r.timeOut>0,this.toastrConfig.countDuplicates);if(e&&this.toastrConfig.preventDuplicates&&null!==s)return s;this.previousToastMessage=e;let o=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(o=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const a=this.overlay.create(r.positionClass,this.overlayContainer);this.index=this.index+1;let c=e;e&&r.enableHtml&&(c=this.sanitizer.sanitize(i.K.HTML,e));const l=new w(a),u=new b(this.index,r,c,n,t,l),h=new T(u,this._injector),d=new v(r.toastComponent,h),p=a.attach(d,this.toastrConfig.newestOnTop);l.componentInstance=p.instance;const f={toastId:this.index,message:e||"",toastRef:l,onShown:l.afterActivate(),onHidden:l.afterClosed(),onTap:u.onTap(),onAction:u.onAction(),portal:p};return o||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{f.toastRef.activate()})),this.toasts.push(f),f}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(m),i.Yb(C),i.Yb(i.t),i.Yb(o.b),i.Yb(i.B))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(m),Object(i.Yb)(C),Object(i.Yb)(i.p),Object(i.Yb)(o.b),Object(i.Yb)(i.B))},token:t,providedIn:"root"}),t})(),k=(()=>{class t{constructor(t,e,n){this.toastrService=t,this.toastPackage=e,this.ngZone=n,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},this.message=e.message,this.title=e.title,this.options=e.config,this.originalTimeout=e.config.timeOut,this.toastClasses=`${e.toastType} ${e.config.toastClass}`,this.sub=e.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=e.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=e.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=e.toastRef.countDuplicate().subscribe(t=>{this.duplicatesCount=t})}get displayStyle(){if("inactive"===this.state.value)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state=Object.assign(Object.assign({},this.state),{value:"active"}),!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const t=(new Date).getTime();this.width=(this.hideTime-t)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state=Object.assign(Object.assign({},this.state),{value:"active"}),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state=Object.assign(Object.assign({},this.state),{value:"removed"}),this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0!==this.options.disableTimeOut&&"extendedTimeOut"!==this.options.disableTimeOut&&0!==this.options.extendedTimeOut&&"removed"!==this.state.value&&(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(t,e){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(t),e)):this.timeout=setTimeout(()=>t(),e)}outsideInterval(t,e){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(t),e)):this.intervalId=setInterval(()=>t(),e)}runInsideAngular(t){this.ngZone?this.ngZone.run(()=>t()):t()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(S),i.Ob(b),i.Ob(i.B))},t.\u0275cmp=i.Ib({type:t,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(t,e){1&t&&i.bc("click",(function(){return e.tapToast()}))("mouseenter",(function(){return e.stickAround()}))("mouseleave",(function(){return e.delayedHideToast()})),2&t&&(i.Nc("@flyInOut",e.state),i.Eb(e.toastClasses),i.Lc("display",e.displayStyle))},attrs:c,decls:5,vars:5,consts:[["class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class",4,"ngIf"],[4,"ngIf"],["aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alertdialog","aria-live","polite",3,"innerHTML"],["role","alertdialog","aria-live","polite"],[1,"toast-progress"]],template:function(t,e){1&t&&(i.Oc(0,l,3,0,"button",0),i.Oc(1,h,3,5,"div",1),i.Oc(2,d,1,3,"div",2),i.Oc(3,p,2,4,"div",3),i.Oc(4,f,2,2,"div",4)),2&t&&(i.mc("ngIf",e.options.closeButton),i.Cb(1),i.mc("ngIf",e.title),i.Cb(1),i.mc("ngIf",e.message&&e.options.enableHtml),i.Cb(1),i.mc("ngIf",e.message&&!e.options.enableHtml),i.Cb(1),i.mc("ngIf",e.options.progressBar))},directives:[a.n],encapsulation:2,data:{animation:[Object(r.n)("flyInOut",[Object(r.k)("inactive",Object(r.l)({opacity:0})),Object(r.k)("active",Object(r.l)({opacity:1})),Object(r.k)("removed",Object(r.l)({opacity:0})),Object(r.m)("inactive => active",Object(r.e)("{{ easeTime }}ms {{ easing }}")),Object(r.m)("active => removed",Object(r.e)("{{ easeTime }}ms {{ easing }}"))])]}}),t})();const E=Object.assign(Object.assign({},g),{toastComponent:k});let x=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[{provide:m,useValue:{default:E,config:e}}]}}}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},imports:[[a.c]]}),t})()},MT7k:function(t,e,n){"use strict";n.d(e,"a",(function(){return f})),n.d(e,"g",(function(){return _})),n.d(e,"e",(function(){return y})),n.d(e,"c",(function(){return w})),n.d(e,"d",(function(){return T})),n.d(e,"f",(function(){return S})),n.d(e,"h",(function(){return k})),n.d(e,"b",(function(){return E}));var i=n("zqNl"),r=n("og7C"),s=n("p5wL"),o=n("lx5p"),a=n("1OAy"),c=n("+Px6"),l=n("H0/1"),u=n("rxqU"),h=n("7KkP");const d={trades:[],user:{logs:Object(r.b)(),transfers:[],orders:[],fiatWithdrawals:[],fiatDeposits:[]}},p=Object(i.i)(d,Object(i.k)(a.j,t=>Object(s.b)(d.user,t,"user")),Object(i.k)(a.p,(t,{trades:e})=>Object(s.b)(e,t,"trades")),Object(i.k)(a.b,(t,{trade:e})=>Object(s.b)([e,...t.trades].slice(0,100),t,"trades")),Object(i.k)(a.c,(t,{trades:e})=>Object(s.b)([...e,...t.trades].slice(0,100),t,"trades")),Object(i.k)(a.m,(t,{logs:e})=>Object(s.b)(Object(s.c)(e,"id"),t,"user","logs")),Object(i.k)(a.a,(t,{logs:e})=>Object(s.a)(Object(s.c)(e,"id"),t,"user","logs")),Object(i.k)(a.o,(t,{transfers:e})=>Object(s.b)(e,t,"user","transfers")),Object(i.k)(a.n,(t,{activity:e})=>Object(s.b)([...e].reverse(),t,"user","orders")),Object(i.k)(a.l,(t,{withdrawals:e})=>Object(s.b)(e,t,"user","fiatWithdrawals")),Object(i.k)(a.k,(t,{deposits:e})=>Object(s.b)(e,t,"user","fiatDeposits")),Object(i.k)(a.n,(t,{activity:e})=>Object(s.b)(e,t,"user","orders")));function f(t,e){return p(t,e)}const b=Object(i.h)("logs"),g=Object(i.j)(b,Object(o.F)("trades")),m=Object(i.j)(b,Object(o.F)("user")),v=Object(i.j)(m,Object(o.F)("logs")),_=Object(i.j)(m,Object(o.F)("transfers")),y=Object(i.j)(m,Object(o.F)("orders")),O=Object(i.j)(m,t=>t.fiatWithdrawals),C=Object(i.j)(m,t=>t.fiatDeposits),w=Object(i.j)(g,c.t,u.r,(t,e,n)=>t.map(Object(h.g)(n,e.inverse))),T=Object(i.j)(c.d,c.j,v,(t,e,n)=>Object(l.b)(n.sortBy(Object(o.F)("id"),o.i)).map(n=>Object(l.a)(t,e,n)).valueSeq().toArray()),S=Object(i.j)(T,t=>t.filter(t=>t.info.includes("trade"))),k=Object(i.j)(T,t=>t.filter(t=>t.info.includes("cross-exchange transfer"))),E=Object(i.j)(O,C,(t,e)=>e.concat(t).sort((t,e)=>e.timestamp-t.timestamp))},MUfl:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var i=n("og7C"),r=n("KQpv"),s=n.n(r),o=n("sXtk"),a=n("kZht");const c=s()("trace:app:FeatureService"),l={wsHealth:[],fido2:[],flex:[],createSubAccount:[],transferDestination:[],fusionBanners:[],dltBanners:[]};let u=(()=>{class t{constructor(t){this.env=t,this.inited=!1,this.features=Object(i.f)()}resolveDepsFor(t,e=Object(i.f)()){c("resolving feature",t,{excluding:e.toArray()});const n=Object(i.f)(l[t]).subtract(e),r=e.merge(n),s=n.reduce((t,e)=>{const n=this.resolveDepsFor(e,r);return t.merge(n)},n);return c("non-existing deps of",t,s.toArray()),s}resolveEnvFeatures(){c("resolving all env features:",this.env.featuresEnabled),this.features=this.env.featuresEnabled.reduce((t,e)=>{const n=t.add(e),i=this.resolveDepsFor(e,n);return n.merge(i)},Object(i.f)()),c("features enabled",this.features.toArray()),this.inited=!0}isEnabled(t){return c("checking enabled for",t),this.inited||this.resolveEnvFeatures(),c("enabled?",this.features.has(t)),this.features.has(t)}}return t.\u0275fac=function(e){return new(e||t)(a.Yb(o.a))},t.\u0275prov=a.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},MiDb:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})()},MqcE:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("kZht");const r=["sb-menu-heading",""],s=["*"];let o=(()=>{class t{constructor(){this._class=!0}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["","sb-menu-heading",""]],hostVars:2,hostBindings:function(t,e){2&t&&i.Gb("sb-menu-heading",e._class)},inputs:{sbIcon:"sbIcon"},exportAs:["sbMenuHeading"],attrs:r,ngContentSelectors:s,decls:1,vars:0,template:function(t,e){1&t&&(i.lc(),i.kc(0))},styles:["[_nghost-%COMP%]{margin:calc(var(--spacing-s, $default-spacing) * -1) calc(var(--spacing-s, $default-spacing) * -1) var(--spacing-s,5px);padding:var(--spacing,5px);color:var(--ghost-colour,currentColor);font-weight:700;text-transform:uppercase;background:var(--toolbar-colour);-webkit-user-select:none;-moz-user-select:none;user-select:none}"],changeDetection:0}),t})()},"ND+C":function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return o})),n.d(e,"d",(function(){return a}));var i=n("zqNl");const r=Object(i.g)("Set Lite Ticker",Object(i.l)()),s=Object(i.g)("Set Lite Ticker Batch",Object(i.l)()),o=Object(i.g)("Set Ticker",Object(i.l)()),a=Object(i.g)("Set Ticker Batch",Object(i.l)())},NWTG:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("8vcT"),r=n("+luX"),s=n("y1Fj"),o=n("vI0g"),a=n("s/Os"),c=n("L09h"),l=n("TIRN"),u=n("sP54"),h=n("TDnQ"),d=n("IkhO"),p=n("YzW0"),f=n("3xzP"),b=n("a3or"),g=n("XveA"),m=function(){function t(){}return t.calculateMaskPenalty=function(t){return u.default.applyMaskPenaltyRule1(t)+u.default.applyMaskPenaltyRule2(t)+u.default.applyMaskPenaltyRule3(t)+u.default.applyMaskPenaltyRule4(t)},t.encode=function(e,n,o){void 0===o&&(o=null);var a=t.DEFAULT_BYTE_MODE_ENCODING,u=null!==o&&void 0!==o.get(i.default.CHARACTER_SET);u&&(a=o.get(i.default.CHARACTER_SET).toString());var f=this.chooseMode(e,a),b=new r.default;if(f===c.default.BYTE&&(u||t.DEFAULT_BYTE_MODE_ENCODING!==a)){var m=s.default.getCharacterSetECIByName(a);void 0!==m&&this.appendECI(m,b)}this.appendModeInfo(f,b);var v,_=new r.default;if(this.appendBytes(e,f,_,a),null!==o&&void 0!==o.get(i.default.QR_VERSION)){var y=Number.parseInt(o.get(i.default.QR_VERSION).toString(),10);v=l.default.getVersionForNumber(y);var O=this.calculateBitsNeeded(f,b,_,v);if(!this.willFit(O,v,n))throw new g.default("Data too big for requested version")}else v=this.recommendVersion(n,f,b,_);var C=new r.default;C.appendBitArray(b);var w=f===c.default.BYTE?_.getSizeInBytes():e.length;this.appendLengthInfo(w,v,f,C),C.appendBitArray(_);var T=v.getECBlocksForLevel(n),S=v.getTotalCodewords()-T.getTotalECCodewords();this.terminateBits(S,C);var k=this.interleaveWithECBytes(C,v.getTotalCodewords(),S,T.getNumBlocks()),E=new d.default;E.setECLevel(n),E.setMode(f),E.setVersion(v);var x=v.getDimensionForVersion(),P=new h.default(x,x),A=this.chooseMaskPattern(k,n,v,P);return E.setMaskPattern(A),p.default.buildMatrix(k,n,v,A,P),E.setMatrix(P),E},t.recommendVersion=function(t,e,n,i){var r=this.calculateBitsNeeded(e,n,i,l.default.getVersionForNumber(1)),s=this.chooseVersion(r,t),o=this.calculateBitsNeeded(e,n,i,s);return this.chooseVersion(o,t)},t.calculateBitsNeeded=function(t,e,n,i){return e.getSize()+t.getCharacterCountBits(i)+n.getSize()},t.getAlphanumericCode=function(e){return e159)&&(r<224||r>235))return!1}return!0},t.chooseMaskPattern=function(t,e,n,i){for(var r=Number.MAX_SAFE_INTEGER,s=-1,o=0;o=(t+7)/8},t.terminateBits=function(t,e){var n=8*t;if(e.getSize()>n)throw new g.default("data bits cannot fit in the QR Code"+e.getSize()+" > "+n);for(var i=0;i<4&&e.getSize()0)for(i=r;i<8;i++)e.appendBit(!1);var s=t-e.getSizeInBytes();for(i=0;i=n)throw new g.default("Block ID too large");var o=t%n,a=n-o,c=Math.floor(t/n),l=c+1,u=Math.floor(e/n),h=u+1,d=c-u,p=l-h;if(d!==p)throw new g.default("EC bytes mismatch");if(n!==a+o)throw new g.default("RS blocks mismatch");if(t!==(u+d)*a+(h+p)*o)throw new g.default("Total bytes mismatch");i=1<=0&&n<=9},t.appendNumericBytes=function(e,n){for(var i=e.length,r=0;r=33088&&o<=40956?a=o-33088:o>=57408&&o<=60351&&(a=o-49472),-1===a)throw new g.default("Invalid byte sequence");e.appendBits(192*(a>>8)+(255&a),13)}},t.appendECI=function(t,e){e.appendBits(c.default.ECI.getBits(),4),e.appendBits(t.getValue(),8)},t.ALPHANUMERIC_TABLE=Int32Array.from([-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,36,-1,-1,-1,37,38,-1,-1,-1,-1,39,40,-1,41,42,43,0,1,2,3,4,5,6,7,8,9,44,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,-1,-1,-1,-1,-1]),t.DEFAULT_BYTE_MODE_ENCODING=s.default.UTF8.getName(),t}();e.default=m},NgZA:function(t,e,n){"use strict";var i={single_source_shortest_paths:function(t,e,n){var r={},s={};s[e]=0;var o,a,c,l,u,h,d=i.PriorityQueue.make();for(d.push(e,0);!d.empty();)for(c in l=(o=d.pop()).cost,u=t[a=o.value]||{})u.hasOwnProperty(c)&&(h=l+u[c],(void 0===s[c]||s[c]>h)&&(s[c]=h,d.push(c,h),r[c]=a));if(void 0!==n&&void 0===s[n]){var p=["Could not find a path from ",e," to ",n,"."].join("");throw new Error(p)}return r},extract_shortest_path_from_predecessor_list:function(t,e){for(var n=[],i=e;i;)n.push(i),i=t[i];return n.reverse(),n},find_path:function(t,e,n){var r=i.single_source_shortest_paths(t,e,n);return i.extract_shortest_path_from_predecessor_list(r,n)},PriorityQueue:{make:function(t){var e,n=i.PriorityQueue,r={};for(e in t=t||{},n)n.hasOwnProperty(e)&&(r[e]=n[e]);return r.queue=[],r.sorter=t.sorter||n.default_sorter,r},default_sorter:function(t,e){return t.cost-e.cost},push:function(t,e){this.queue.push({value:t,cost:e}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};t.exports=i},Ngp4:function(t,e,n){"use strict";n.d(e,"a",(function(){return K}));var i=n("zqNl"),r=n("YtkY"),s=n("HM3f"),o=n("lx5p"),a=n("uJYd"),c=n("lE9u"),l=n("rxqU"),u=n("+Px6"),h=n("J/3c"),d=n("sXtk"),p=n("kZht"),f=n("An66"),b=n("NxuZ"),g=n("1etq"),m=n("FQF6"),v=n("TMzY"),_=n("UVqw"),y=n("Eu46"),O=n("anSm"),C=n("oiza"),w=n("IkSM"),T=n("B6Vo"),S=n("Cc4E"),k=n("zho4"),E=n("yPvj"),x=n("1o0v"),P=n("LbKT"),A=n("+I9z"),I=n("/dWT"),M=n("7J2L"),D=n("aDqW"),R=n("fvDn"),j=n("DpwM"),L=n("rUBT");function N(t,e){1&t&&(p.Ub(0,"section",4),p.Pb(1,"fa-icon",5),p.Ub(2,"h2",6),p.Qc(3),p.gc(4,"translate"),p.Tb(),p.Tb()),2&t&&(p.Cb(3),p.Sc("",p.hc(4,1,"DASHBOARD.AUTHMASK"),"."))}function U(t,e){1&t&&(p.Sb(0),p.Pb(1,"flex-wallet"),p.Rb())}const F=function(){return[250,100]};function B(t,e){if(1&t){const t=p.Vb();p.Ub(0,"fa-icon",29),p.bc("click",(function(){p.Ec(t);const e=p.fc().$implicit;return p.fc(4).openWalletTransactionDialog("deposit",e)})),p.gc(1,"async"),p.Tb()}if(2&t){const t=p.fc(2).ngLet,e=p.fc(3);p.mc("sbDisabled",!t)("sbDelay",p.qc(5,F))("hidden",p.hc(1,3,e.isSubAccount$))}}const z=function(t){return{currency:t}};function V(t,e){if(1&t){const t=p.Vb();p.Ub(0,"section",14),p.Ub(1,"div",15),p.Ub(2,"p",16),p.Qc(3),p.gc(4,"translate"),p.gc(5,"cryptoName"),p.Tb(),p.Tb(),p.Ub(6,"div",17),p.Pb(7,"market-icon",18),p.Ub(8,"p",19),p.Qc(9),p.gc(10,"translate"),p.gc(11,"cryptoName"),p.Tb(),p.Ub(12,"p",20),p.Qc(13),p.gc(14,"translate"),p.Tb(),p.Tb(),p.Ub(15,"div",21),p.Pb(16,"market-icon",18),p.Tb(),p.Ub(17,"div",22),p.Ub(18,"span",23),p.Qc(19),p.gc(20,"cryptoPrecise"),p.Tb(),p.Tb(),p.Ub(21,"div",24),p.Ub(22,"span",25),p.Qc(23),p.gc(24,"crypto"),p.Tb(),p.Tb(),p.Ub(25,"div",26),p.Oc(26,B,2,6,"fa-icon",27),p.Ub(27,"fa-icon",28),p.bc("click",(function(){p.Ec(t);const n=e.$implicit;return p.fc(4).openWalletTransactionDialog("crypto-transfer",n)})),p.Tb(),p.Tb(),p.Tb()}if(2&t){const t=e.$implicit,n=p.fc().ngLet,i=p.fc(3);p.Cb(2),p.mc("sbDisabled",!n)("sbDelay",p.qc(32,F)),p.Cb(1),p.Sc(" ",p.ic(4,14,"LABEL.X_HOLDING_WALLET",p.rc(33,z,p.hc(5,17,t.name)))," "),p.Cb(4),p.mc("base",t.name),p.Cb(1),p.mc("sbDisabled",!n)("sbDelay",p.qc(35,F)),p.Cb(1),p.Sc(" ",p.ic(10,19,"LABEL.X_HOLDING_WALLET",p.rc(36,z,p.hc(11,22,t.name)))," "),p.Cb(4),p.Rc(p.hc(14,24,"WALLETS.HOLDING.SHORT_DESCRIPTION")),p.Cb(3),p.mc("base",t.name),p.Cb(3),p.Sc(" ",p.ic(20,26,t.balance||0,t.name)," "),p.Cb(4),p.Sc("\u2248 ",p.ic(24,29,t.notional,"usd")," USD"),p.Cb(3),p.mc("ngIf",!i.demo),p.Cb(1),p.mc("sbDisabled",!n)("sbDelay",p.qc(38,F))}}const $=function(t){return{pair:t}};function H(t,e){if(1&t){const t=p.Vb();p.Ub(0,"section",30),p.Ub(1,"div",15),p.Ub(2,"p",31),p.Qc(3),p.gc(4,"translate"),p.gc(5,"pair"),p.Tb(),p.Tb(),p.Ub(6,"div",17),p.Pb(7,"market-icon",32),p.gc(8,"pair"),p.Ub(9,"p",33),p.Qc(10),p.gc(11,"translate"),p.gc(12,"pair"),p.Tb(),p.Ub(13,"p",20),p.Qc(14),p.gc(15,"translate"),p.gc(16,"pair"),p.Tb(),p.Tb(),p.Ub(17,"div",21),p.Pb(18,"market-icon",32),p.gc(19,"pair"),p.Tb(),p.Ub(20,"div",22),p.Ub(21,"span",34),p.Pb(22,"ghost-trail",35),p.gc(23,"cryptoPrecise"),p.Tb(),p.Tb(),p.Ub(24,"div",24),p.Ub(25,"span",25),p.Qc(26),p.gc(27,"crypto"),p.Tb(),p.Tb(),p.Ub(28,"div",26),p.Ub(29,"fa-icon",36),p.bc("click",(function(){p.Ec(t);const n=e.$implicit;return p.fc(4).openWalletDetailsDialog(n)})),p.Tb(),p.Ub(30,"fa-icon",37),p.bc("click",(function(){p.Ec(t);const n=e.$implicit;return p.fc(4).openWalletTransactionDialog("crypto-transfer",n)})),p.Tb(),p.Tb(),p.Tb()}if(2&t){const t=e.$implicit,n=p.fc().ngLet;p.Cb(2),p.mc("sbDisabled",!n)("sbDelay",p.qc(41,F)),p.Cb(1),p.Sc(" ",p.ic(4,16,"LABEL.X_FUTURES_WALLET",p.rc(42,$,p.hc(5,19,t.pair)))," "),p.Cb(4),p.mc("pair",p.hc(8,21,t.pair)),p.Cb(2),p.mc("sbDisabled",!n)("sbDelay",p.qc(44,F)),p.Cb(1),p.Sc(" ",p.ic(11,23,"LABEL.X_FUTURES_WALLET",p.rc(45,$,p.hc(12,26,t.pair)))," "),p.Cb(4),p.Sc(" ",p.ic(15,28,"WALLETS.FUTURES.SHORT_DESCRIPTION",p.rc(47,$,p.hc(16,31,t.pair)))," "),p.Cb(4),p.mc("pair",p.hc(19,33,t.pair)),p.Cb(3),p.mc("pnl",t.am),p.Cb(1),p.mc("content",p.ic(23,35,t.am||0,t.currency)),p.Cb(4),p.Sc("\u2248 ",p.ic(27,38,t.amNotional,"usd")," USD"),p.Cb(3),p.mc("sbDisabled",!n)("sbDelay",p.qc(49,F)),p.Cb(1),p.mc("sbDisabled",!n)("sbDelay",p.qc(50,F))}}function q(t,e){if(1&t&&(p.Ub(0,"section",11),p.Oc(1,V,28,39,"section",12),p.gc(2,"async"),p.Oc(3,H,31,51,"section",13),p.gc(4,"async"),p.Tb()),2&t){const t=p.fc(3);p.Cb(1),p.mc("ngIf",p.hc(2,2,t.selectedHoldingWallet$)),p.Cb(2),p.mc("ngIf",p.hc(4,4,t.selectedFuturesWallet$))}}function Q(t,e){if(1&t&&(p.Ub(0,"section",38),p.Pb(1,"margin-details-list",39),p.gc(2,"async"),p.gc(3,"async"),p.Tb()),2&t){const t=p.fc(3);p.Cb(1),p.mc("displayTooltips",p.hc(2,2,t.displayTooltips$))("wallet",p.hc(3,4,t.selectedFuturesWallet$))}}function W(t,e){if(1&t&&(p.Ub(0,"section",8),p.Oc(1,q,5,6,"section",9),p.gc(2,"async"),p.Oc(3,Q,4,6,"section",10),p.gc(4,"async"),p.Tb()),2&t){const t=p.fc(2);p.Cb(1),p.mc("ngLet",p.hc(2,2,t.displayTooltips$)),p.Cb(2),p.mc("ngIf",p.hc(4,4,t.signedIn$))}}function G(t,e){if(1&t&&(p.Oc(0,W,5,6,"section",7),p.gc(1,"async")),2&t){const t=p.fc(),e=p.Ac(8);p.mc("ngIf",p.hc(1,2,t.loaded$))("ngIfElse",e)}}function Y(t,e){1&t&&p.Pb(0,"kraken-loading")}let K=(()=>{class t{constructor(t,e){this.store=t,this.env=e,this.signedIn$=this.store.pipe(Object(i.m)(l.m)),this.details$=this.store.pipe(Object(i.m)(l.d)),this.mSelectedHoldingWallet$=this.store.pipe(Object(i.m)(h.o)),this.selectedHoldingWallet$=this.mSelectedHoldingWallet$.pipe(Object(r.a)(o.O)),this.selectedFuturesWallet$=this.store.pipe(Object(i.m)(h.n)),this.walletFundingDetails$=this.store.pipe(Object(i.m)(h.q)),this.isSubAccount$=this.store.pipe(Object(i.m)(l.n)),this.displayTooltips$=this.store.pipe(Object(i.m)(l.y)),this.flexWallet$=this.store.pipe(Object(i.m)(h.l)),this.isFlexMarket$=this.store.pipe(Object(i.m)(u.a)),this.loaded$=Object(s.a)([this.signedIn$,this.mSelectedHoldingWallet$,this.selectedFuturesWallet$,this.flexWallet$,this.isFlexMarket$]).pipe(Object(r.a)(([t,e,n,i,r])=>!t||(r?!!i:e.isSome()&&n)))}openWalletDetailsDialog(t){this.store.dispatch(Object(c.j)({wallet:t}))}openWalletTransactionDialog(t,e){this.store.dispatch(Object(a.g)({name:"wallet-transaction",inputs:{type:t,originWallet:e}}))}get demo(){return this.env.demo}}return t.\u0275fac=function(e){return new(e||t)(p.Ob(i.b),p.Ob(d.a))},t.\u0275cmp=p.Ib({type:t,selectors:[["pair-wallet"]],decls:9,vars:9,consts:[["class","global__auth-mask",4,"ngIf"],[4,"ngIf","ngIfElse"],["futuresWallet",""],["loading",""],[1,"global__auth-mask"],["icon","stop","size","2x"],["subheading","",1,"global__text--warn"],["class","container","orientation","","breakpoint","",4,"ngIf","ngIfElse"],["orientation","","breakpoint","",1,"container"],["class","wallets",4,"ngLet"],["class","margin-details",4,"ngIf"],[1,"wallets"],["body","","class","wallet holding",4,"ngIf"],["body","","class","wallet",4,"ngIf"],["body","",1,"wallet","holding"],[1,"name"],["uppercase","","tooltip","","sbTooltip","TOOLTIP.HOLDING_WALLET",3,"sbDisabled","sbDelay"],[1,"grid-tri-left","gap-xs-m","large-name"],[3,"base"],["subheading","","tooltip","","sbTooltip","TOOLTIP.HOLDING_WALLET",3,"sbDisabled","sbDelay"],["ghost","",1,"description"],[1,"icon"],[1,"balance"],["subheading",""],[1,"estimate"],["body","","ghost",""],[1,"buttons"],["icon","deposit","size","2x","tooltip","","sbTooltip","TOOLTIP.HOLDING_DEPOSIT",3,"sbDisabled","sbDelay","hidden","click",4,"ngIf"],["icon","transfer","size","2x","tooltip","","sbTooltip","TOOLTIP.HOLDING_TRANSFER",3,"sbDisabled","sbDelay","click"],["icon","deposit","size","2x","tooltip","","sbTooltip","TOOLTIP.HOLDING_DEPOSIT",3,"sbDisabled","sbDelay","hidden","click"],["body","",1,"wallet"],["uppercase","","tooltip","","sbTooltip","TOOLTIP.FUTURES_WALLET",3,"sbDisabled","sbDelay"],[3,"pair"],["subheading","","tooltip","","sbTooltip","TOOLTIP.FUTURES_WALLET",3,"sbDisabled","sbDelay"],["subheading","","pnlZero","",3,"pnl"],[3,"content"],["icon","info","size","2x","tooltip","","sbTooltip","TOOLTIP.WALLET_DETAILS",3,"sbDisabled","sbDelay","click"],["icon","transfer","size","2x","tooltip","","sbTooltip","TOOLTIP.WALLET_TRANSFER",3,"sbDisabled","sbDelay","click"],[1,"margin-details"],[3,"displayTooltips","wallet"]],template:function(t,e){if(1&t&&(p.Oc(0,N,5,3,"section",0),p.gc(1,"async"),p.Oc(2,U,2,0,"ng-container",1),p.gc(3,"async"),p.gc(4,"async"),p.Oc(5,G,2,4,"ng-template",null,2,p.Pc),p.Oc(7,Y,1,0,"ng-template",null,3,p.Pc)),2&t){const t=p.Ac(6);p.mc("ngIf",!1===p.hc(1,3,e.signedIn$)),p.Cb(2),p.mc("ngIf",p.hc(3,5,e.signedIn$)&&p.hc(4,7,e.isFlexMarket$))("ngIfElse",t)}},directives:[f.n,b.b,g.a,m.a,v.a,_.a,y.a,O.a,C.a,w.a,T.a,S.a,k.a,E.a,x.a,P.a,A.a,I.a,M.a],pipes:[f.b,D.d,R.b,j.b,j.a,L.e],styles:['[_nghost-%COMP%]{position:relative}.container[_ngcontent-%COMP%], [_nghost-%COMP%]{display:flex;flex-direction:column;height:100%}.container[_ngcontent-%COMP%]{width:100%;padding:var(--spacing)}.container[orientation=horizontal][_ngcontent-%COMP%]{flex-direction:row}.container[orientation=horizontal][breakpoint=small][_ngcontent-%COMP%]{flex-direction:row;align-items:center}.container[orientation=horizontal][breakpoint=large][_ngcontent-%COMP%]{background-image:url(public/wallet-footer.a2924fe61c02e97dfd30.png);background-size:50%;background-repeat:no-repeat;background-position:115% 100%}.margin-details[_ngcontent-%COMP%]{flex:1;flex-direction:row;padding:var(--spacing) 0}[orientation=horizontal][_ngcontent-%COMP%] .margin-details[_ngcontent-%COMP%]{padding:var(--spacing) 0 0 var(--spacing);margin-left:var(--spacing);border-left:1px solid var(--border-colour)}[orientation=horizontal][breakpoint=small][_ngcontent-%COMP%] .margin-details[_ngcontent-%COMP%]{display:none!important}[orientation=vertical][_ngcontent-%COMP%] .margin-details[_ngcontent-%COMP%]{border-top:1px solid var(--border-colour);padding-top:var(--spacing-l)}.wallets[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-bottom:var(--spacing);min-width:250px}[orientation=horizontal][breakpoint=small][_ngcontent-%COMP%] .wallets[_ngcontent-%COMP%]{flex:1}[orientation=horizontal][breakpoint=large][_ngcontent-%COMP%] .wallets[_ngcontent-%COMP%], [orientation=horizontal][breakpoint=medium][_ngcontent-%COMP%] .wallets[_ngcontent-%COMP%]{flex:0.75}.wallet[_ngcontent-%COMP%]{display:grid;grid-template-areas:"name name name" "icon balance buttons" "icon estimate buttons";grid-template-columns:50px 1fr .75fr;grid-template-rows:25px 14px 16px;grid-gap:0 var(--spacing);padding:var(--spacing) 0}.wallet[_ngcontent-%COMP%]:first-child{border-bottom:1px solid var(--border-colour);padding-bottom:var(--spacing-l)!important}[orientation=horizontal][breakpoint=large][_ngcontent-%COMP%] .wallet[_ngcontent-%COMP%]{grid-template-areas:"name name" "balance buttons" "estimate buttons";grid-template-columns:1fr 1fr;grid-template-rows:auto 14px 16px;padding:var(--spacing-l) var(--spacing)}[orientation=horizontal][breakpoint=small][_ngcontent-%COMP%] .wallet[_ngcontent-%COMP%]{padding:var(--spacing-s)}[orientation=horizontal][breakpoint=small][_ngcontent-%COMP%] .wallet[_ngcontent-%COMP%]:not(:first-child){margin-top:var(--spacing)}.wallet[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{grid-area:icon;align-self:center}[orientation=horizontal][breakpoint=large][_ngcontent-%COMP%] .wallet[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{display:none}.wallet[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{grid-area:name}[orientation=horizontal][breakpoint=large][_ngcontent-%COMP%] .wallet[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{display:none}.wallet[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{line-height:1.2}.wallet[_ngcontent-%COMP%] .buttons[_ngcontent-%COMP%]{grid-area:buttons;align-self:center;text-align:right}.wallet[_ngcontent-%COMP%] .balance[_ngcontent-%COMP%]{grid-area:balance;align-self:flex-end}.wallet[_ngcontent-%COMP%] .estimate[_ngcontent-%COMP%]{grid-area:estimate;align-self:flex-end}.wallet.holding[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{text-align:center}.wallet[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{font-size:14px;cursor:pointer}.wallet[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]:not(:last-child){padding-right:var(--spacing-l)}.wallet[_ngcontent-%COMP%] market-icon[_ngcontent-%COMP%]{font-size:28px}.wallet[_ngcontent-%COMP%] .large-name[_ngcontent-%COMP%]{padding-bottom:var(--spacing-l);grid-area:name}[orientation=horizontal][breakpoint=medium][_ngcontent-%COMP%] .wallet[_ngcontent-%COMP%] .large-name[_ngcontent-%COMP%], [orientation=horizontal][breakpoint=small][_ngcontent-%COMP%] .wallet[_ngcontent-%COMP%] .large-name[_ngcontent-%COMP%], [orientation=vertical][_ngcontent-%COMP%] .wallet[_ngcontent-%COMP%] .large-name[_ngcontent-%COMP%]{display:none}.caption[_ngcontent-%COMP%]{padding-bottom:var(--spacing)}.caption[_ngcontent-%COMP%], button[_ngcontent-%COMP%]{padding-top:var(--spacing-s)}button[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%] svg{vertical-align:-25%}'],changeDetection:0}),t})()},Nhx6:function(t,e,n){"use strict";function i(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,"__esModule",{value:!0}),i(n("13Sj")),i(n("J180")),i(n("pRbe")),i(n("lFJA")),i(n("4x5s")),i(n("4S8q")),i(n("t+Fc")),i(n("bSqp"));var r=n("ekTi");e.ArgumentException=r.default;var s=n("hTBg");e.ArithmeticException=s.default;var o=n("sPys");e.ChecksumException=o.default;var a=n("w6/c");e.Exception=a.default;var c=n("nB6u");e.FormatException=c.default;var l=n("oznm");e.IllegalArgumentException=l.default;var u=n("FoZF");e.IllegalStateException=u.default;var h=n("LqyJ");e.NotFoundException=h.default;var d=n("35XV");e.ReaderException=d.default;var p=n("uQul");e.ReedSolomonException=p.default;var f=n("2gaf");e.UnsupportedOperationException=f.default;var b=n("XveA");e.WriterException=b.default;var g=n("4Pxi");e.BarcodeFormat=g.default;var m=n("XQH8");e.Binarizer=m.default;var v=n("s92m");e.BinaryBitmap=v.default;var _=n("ZCEf");e.DecodeHintType=_.default;var y=n("unaY");e.InvertedLuminanceSource=y.default;var O=n("qvG1");e.LuminanceSource=O.default;var C=n("6oIa");e.MultiFormatReader=C.default;var w=n("EnH0");e.MultiFormatWriter=w.default;var T=n("XrPM");e.PlanarYUVLuminanceSource=T.default;var S=n("KFdt");e.Result=S.default;var k=n("xSUO");e.ResultMetadataType=k.default;var E=n("vc4l");e.RGBLuminanceSource=E.default;var x=n("+luX");e.BitArray=x.default;var P=n("q+cW");e.BitMatrix=P.default;var A=n("lcP6");e.BitSource=A.default;var I=n("y1Fj");e.CharacterSetECI=I.default;var M=n("SnIc");e.DecoderResult=M.default;var D=n("2rk/");e.DefaultGridSampler=D.default;var R=n("qArU");e.DetectorResult=R.default;var j=n("8vcT");e.EncodeHintType=j.default;var L=n("neWc");e.GlobalHistogramBinarizer=L.default;var N=n("qAUu");e.GridSampler=N.default;var U=n("e9V9");e.GridSamplerInstance=U.default;var F=n("XOQS");e.HybridBinarizer=F.default;var B=n("9GlW");e.PerspectiveTransform=B.default;var z=n("PDjX");e.StringUtils=z.default;var V=n("dyLe");e.MathUtils=V.default;var $=n("va0y");e.WhiteRectangleDetector=$.default;var H=n("vI0g");e.GenericGF=H.default;var q=n("YwYi");e.GenericGFPoly=q.default;var Q=n("oCyE");e.ReedSolomonDecoder=Q.default;var W=n("s/Os");e.ReedSolomonEncoder=W.default;var G=n("ldwH");e.DataMatrixReader=G.default;var Y=n("4f9k");e.QRCodeReader=Y.default;var K=n("oggm");e.QRCodeWriter=K.default;var Z=n("FEHI");e.QRCodeDecoderErrorCorrectionLevel=Z.default;var X=n("NWTG");e.QRCodeEncoder=X.default;var J=n("IkhO");e.QRCodeEncoderQRCode=J.default;var tt=n("iiuT");e.OneDReader=tt.default;var et=n("aEDl");e.EAN13Reader=et.default;var nt=n("LBoB");e.Code128Reader=nt.default;var it=n("2Agw");e.ITFReader=it.default;var rt=n("YrFw");e.Code39Reader=rt.default;var st=n("S21V");e.RSS14Reader=st.default;var ot=n("uepk");e.MultiformatReader=ot.default},NloN:function(t,e,n){"use strict";function i(t,e){const n=URL.createObjectURL(t),i=document.createElement("a");i.setAttribute("download",e),i.href=n,document.body.appendChild(i),i.click(),document.body.removeChild(i),setTimeout(()=>URL.revokeObjectURL(n),1e3)}function r(t){return new Promise(e=>t.toBlob(t=>e(t)))}function s(t,e){performance.mark(t+"-start");const n=e();return performance.mark(t+"-end"),performance.measure(""+t,t+"-start",t+"-end"),n}function o(t){const e=new URL(window.location.href);e.searchParams.has(t)&&(e.searchParams.delete(t),window.history.replaceState(null,document.title,e.toString()))}function a(t,e){localStorage.setItem(t,JSON.stringify(e))}function c(t,e){if(!function(t){return null!==localStorage.getItem(t)}(t))return e;try{return JSON.parse(localStorage.getItem(t))}catch(n){return e}}n.d(e,"f",(function(){return i})),n.d(e,"a",(function(){return r})),n.d(e,"d",(function(){return s})),n.d(e,"e",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"b",(function(){return c})),Error},NxuZ:function(t,e,n){"use strict";n.d(e,"a",(function(){return gt})),n.d(e,"b",(function(){return yt})),n.d(e,"c",(function(){return mt})),n.d(e,"d",(function(){return Ot}));var i=n("kZht"),r=n("ENSU");function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t){for(var e=1;e0;)e+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return e}function H(t){return"".concat(t).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function q(t){return Object.keys(t||{}).reduce((function(e,n){return e+"".concat(n,": ").concat(t[n],";")}),"")}function Q(t){return t.size!==V.size||t.x!==V.x||t.y!==V.y||t.rotate!==V.rotate||t.flipX||t.flipY}function W(t){var e=t.transform,n=t.iconWidth,i={transform:"translate(".concat(t.containerWidth/2," 256)")},r="translate(".concat(32*e.x,", ").concat(32*e.y,") "),s="scale(".concat(e.size/16*(e.flipX?-1:1),", ").concat(e.size/16*(e.flipY?-1:1),") "),o="rotate(".concat(e.rotate," 0 0)");return{outer:i,inner:{transform:"".concat(r," ").concat(s," ").concat(o)},path:{transform:"translate(".concat(n/2*-1," -256)")}}}var G={x:0,y:0,width:"100%",height:"100%"};function Y(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t.attributes&&(t.attributes.fill||e)&&(t.attributes.fill="black"),t}function K(t){var e=t.icons,n=e.main,i=e.mask,r=t.prefix,s=t.iconName,o=t.transform,c=t.symbol,l=t.title,u=t.maskId,h=t.titleId,d=t.extra,p=t.watchable,f=void 0!==p&&p,b=i.found?i:n,g=b.width,m=b.height,v="fa-w-".concat(Math.ceil(g/m*16)),_=[O.replacementClass,s?"".concat(O.familyPrefix,"-").concat(s):"",v].filter((function(t){return-1===d.classes.indexOf(t)})).concat(d.classes).join(" "),y={children:[],attributes:a({},d.attributes,{"data-prefix":r,"data-icon":s,class:_,role:d.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(g," ").concat(m)})};f&&(y.attributes["data-fa-i2svg"]=""),l&&y.children.push({tag:"title",attributes:{id:y.attributes["aria-labelledby"]||"title-".concat(h||$())},children:[l]});var C=a({},y,{prefix:r,iconName:s,main:n,mask:i,maskId:u,transform:o,symbol:c,styles:d.styles}),w=i.found&&n.found?function(t){var e,n=t.children,i=t.attributes,r=t.main,s=t.mask,o=t.maskId,c=r.icon,l=s.icon,u=W({transform:t.transform,containerWidth:s.width,iconWidth:r.width}),h={tag:"rect",attributes:a({},G,{fill:"white"})},d=c.children?{children:c.children.map(Y)}:{},p={tag:"g",attributes:a({},u.inner),children:[Y(a({tag:c.tag,attributes:a({},c.attributes,u.path)},d))]},f={tag:"g",attributes:a({},u.outer),children:[p]},b="mask-".concat(o||$()),g="clip-".concat(o||$()),m={tag:"mask",attributes:a({},G,{id:b,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[h,f]},v={tag:"defs",children:[{tag:"clipPath",attributes:{id:g},children:(e=l,"g"===e.tag?e.children:[e])},m]};return n.push(v,{tag:"rect",attributes:a({fill:"currentColor","clip-path":"url(#".concat(g,")"),mask:"url(#".concat(b,")")},G)}),{children:n,attributes:i}}(C):function(t){var e=t.children,n=t.attributes,i=t.main,r=t.transform,s=q(t.styles);if(s.length>0&&(n.style=s),Q(r)){var o=W({transform:r,containerWidth:i.width,iconWidth:i.width});e.push({tag:"g",attributes:a({},o.outer),children:[{tag:"g",attributes:a({},o.inner),children:[{tag:i.icon.tag,children:i.icon.children,attributes:a({},i.icon.attributes,o.path)}]}]})}else e.push(i.icon);return{children:e,attributes:n}}(C),T=w.attributes;return C.children=w.children,C.attributes=T,c?function(t){var e=t.iconName,n=t.children,i=t.symbol;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:a({},t.attributes,{id:!0===i?"".concat(t.prefix,"-").concat(O.familyPrefix,"-").concat(e):i}),children:n}]}]}(C):function(t){var e=t.children,n=t.main,i=t.mask,r=t.attributes,s=t.styles,o=t.transform;if(Q(o)&&n.found&&!i.found){var c={x:n.width/n.height/2,y:.5};r.style=q(a({},s,{"transform-origin":"".concat(c.x+o.x/16,"em ").concat(c.y+o.y/16,"em")}))}return[{tag:"svg",attributes:r,children:e}]}(C)}var Z=function(t,e,n,i){var r,s,o,a=Object.keys(t),c=a.length,l=void 0!==i?function(t,e){return function(n,i,r,s){return t.call(e,n,i,r,s)}}(e,i):e;for(void 0===n?(r=1,o=t[a[0]]):(r=0,o=n);r2&&void 0!==arguments[2]?arguments[2]:{},i=n.skipHooks,r=void 0!==i&&i,s=Object.keys(e).reduce((function(t,n){var i=e[n];return i.icon?t[i.iconName]=i.icon:t[n]=i,t}),{});"function"!=typeof w.hooks.addPack||r?w.styles[t]=a({},w.styles[t]||{},s):w.hooks.addPack(t,s),"fas"===t&&X("fa",e)}var J=w.styles,tt=w.shims,et=function(){var t=function(t){return Z(J,(function(e,n,i){return e[i]=Z(n,t,{}),e}),{})};t((function(t,e,n){return e[3]&&(t[e[3]]=n),t})),t((function(t,e,n){var i=e[2];return t[n]=n,i.forEach((function(e){t[e]=n})),t}));var e="far"in J;Z(tt,(function(t,n){var i=n[1];return"far"!==i||e||(i="fas"),t[n[0]]={prefix:i,iconName:n[2]},t}),{})};function nt(t,e,n){if(t&&t[e]&&t[e][n])return{prefix:e,iconName:n,icon:t[e][n]}}function it(t){var e=t.tag,n=t.attributes,i=void 0===n?{}:n,r=t.children,s=void 0===r?[]:r;return"string"==typeof t?H(t):"<".concat(e," ").concat(function(t){return Object.keys(t||{}).reduce((function(e,n){return e+"".concat(n,'="').concat(H(t[n]),'" ')}),"").trim()}(i),">").concat(s.map(it).join(""),"")}function rt(t){this.name="MissingIcon",this.message=t||"Icon unavailable",this.stack=(new Error).stack}et(),(rt.prototype=Object.create(Error.prototype)).constructor=rt;var st={fill:"currentColor"},ot={attributeType:"XML",repeatCount:"indefinite",dur:"2s"},at=(a({},st,{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"}),a({},ot,{attributeName:"opacity"}));function ct(t){var e=t[0],n=t[1],i=c(t.slice(4),1)[0];return{found:!0,width:e,height:n,icon:Array.isArray(i)?{tag:"g",attributes:{class:"".concat(O.familyPrefix,"-").concat(v.GROUP)},children:[{tag:"path",attributes:{class:"".concat(O.familyPrefix,"-").concat(v.SECONDARY),fill:"currentColor",d:i[0]}},{tag:"path",attributes:{class:"".concat(O.familyPrefix,"-").concat(v.PRIMARY),fill:"currentColor",d:i[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:i}}}}function lt(){O.autoAddCss&&!ft&&(function(t){if(t&&b){var e=f.createElement("style");e.setAttribute("type","text/css"),e.innerHTML=t;for(var n=f.head.childNodes,i=null,r=n.length-1;r>-1;r--){var s=n[r],o=(s.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(i=s)}f.head.insertBefore(e,i)}}(function(){var t="svg-inline--fa",e=O.familyPrefix,n=O.replacementClass,i='svg:not(:root).svg-inline--fa {\n overflow: visible;\n}\n\n.svg-inline--fa {\n display: inline-block;\n font-size: inherit;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.225em;\n}\n.svg-inline--fa.fa-w-1 {\n width: 0.0625em;\n}\n.svg-inline--fa.fa-w-2 {\n width: 0.125em;\n}\n.svg-inline--fa.fa-w-3 {\n width: 0.1875em;\n}\n.svg-inline--fa.fa-w-4 {\n width: 0.25em;\n}\n.svg-inline--fa.fa-w-5 {\n width: 0.3125em;\n}\n.svg-inline--fa.fa-w-6 {\n width: 0.375em;\n}\n.svg-inline--fa.fa-w-7 {\n width: 0.4375em;\n}\n.svg-inline--fa.fa-w-8 {\n width: 0.5em;\n}\n.svg-inline--fa.fa-w-9 {\n width: 0.5625em;\n}\n.svg-inline--fa.fa-w-10 {\n width: 0.625em;\n}\n.svg-inline--fa.fa-w-11 {\n width: 0.6875em;\n}\n.svg-inline--fa.fa-w-12 {\n width: 0.75em;\n}\n.svg-inline--fa.fa-w-13 {\n width: 0.8125em;\n}\n.svg-inline--fa.fa-w-14 {\n width: 0.875em;\n}\n.svg-inline--fa.fa-w-15 {\n width: 0.9375em;\n}\n.svg-inline--fa.fa-w-16 {\n width: 1em;\n}\n.svg-inline--fa.fa-w-17 {\n width: 1.0625em;\n}\n.svg-inline--fa.fa-w-18 {\n width: 1.125em;\n}\n.svg-inline--fa.fa-w-19 {\n width: 1.1875em;\n}\n.svg-inline--fa.fa-w-20 {\n width: 1.25em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-border {\n height: 1.5em;\n}\n.svg-inline--fa.fa-li {\n width: 2em;\n}\n.svg-inline--fa.fa-fw {\n width: 1.25em;\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: #ff253a;\n border-radius: 1em;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #fff;\n height: 1.5em;\n line-height: 1;\n max-width: 5em;\n min-width: 1.5em;\n overflow: hidden;\n padding: 0.25em;\n right: 0;\n text-overflow: ellipsis;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: 0;\n right: 0;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: 0;\n left: 0;\n right: auto;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n right: 0;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: 0;\n right: auto;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-lg {\n font-size: 1.3333333333em;\n line-height: 0.75em;\n vertical-align: -0.0667em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: 2.5em;\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: -2em;\n position: absolute;\n text-align: center;\n width: 2em;\n line-height: inherit;\n}\n\n.fa-border {\n border: solid 0.08em #eee;\n border-radius: 0.1em;\n padding: 0.2em 0.25em 0.15em;\n}\n\n.fa-pull-left {\n float: left;\n}\n\n.fa-pull-right {\n float: right;\n}\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n margin-right: 0.3em;\n}\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n margin-left: 0.3em;\n}\n\n.fa-spin {\n -webkit-animation: fa-spin 2s infinite linear;\n animation: fa-spin 2s infinite linear;\n}\n\n.fa-pulse {\n -webkit-animation: fa-spin 1s infinite steps(8);\n animation: fa-spin 1s infinite steps(8);\n}\n\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical,\n:root .fa-flip-both {\n -webkit-filter: none;\n filter: none;\n}\n\n.fa-stack {\n display: inline-block;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: #fff;\n}\n\n.sr-only {\n border: 0;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n clip: auto;\n height: auto;\n margin: 0;\n overflow: visible;\n position: static;\n width: auto;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse {\n color: #fff;\n}';if("fa"!==e||n!==t){var r=new RegExp("\\.".concat("fa","\\-"),"g"),s=new RegExp("\\--".concat("fa","\\-"),"g"),o=new RegExp("\\.".concat(t),"g");i=i.replace(r,".".concat(e,"-")).replace(s,"--".concat(e,"-")).replace(o,".".concat(n))}return i}()),ft=!0)}function ut(t,e){return Object.defineProperty(t,"abstract",{get:e}),Object.defineProperty(t,"html",{get:function(){return t.abstract.map((function(t){return it(t)}))}}),Object.defineProperty(t,"node",{get:function(){if(b){var e=f.createElement("div");return e.innerHTML=t.html,e.children}}}),t}function ht(t){var e=t.prefix,n=void 0===e?"fa":e,i=t.iconName;if(i)return nt(pt.definitions,n,i)||nt(w.styles,n,i)}a({},st,{cx:"256",cy:"364",r:"28"}),a({},ot,{attributeName:"r",values:"28;14;28;28;14;28;"}),a({},at,{values:"1;0;1;1;0;1;"}),a({},st,{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),a({},at,{values:"1;0;0;0;0;1;"}),a({},st,{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),a({},at,{values:"0;0;1;1;0;0;"});var dt,pt=new(function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.definitions={}}var e;return(e=[{key:"add",value:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i1&&void 0!==arguments[1]?arguments[1]:{},n=e.transform,i=void 0===n?V:n,r=e.symbol,s=void 0!==r&&r,o=e.mask,c=void 0===o?null:o,l=e.maskId,u=void 0===l?null:l,h=e.title,d=void 0===h?null:h,p=e.titleId,f=void 0===p?null:p,b=e.classes,g=void 0===b?[]:b,m=e.attributes,v=void 0===m?{}:m,_=e.styles,y=void 0===_?{}:_;if(t){var C=t.prefix,w=t.iconName,T=t.icon;return ut(a({type:"icon"},t),(function(){return lt(),O.autoA11y&&(d?v["aria-labelledby"]="".concat(O.replacementClass,"-title-").concat(f||$()):(v["aria-hidden"]="true",v.focusable="false")),K({icons:{main:ct(T),mask:c?ct(c.icon):{found:!1,width:null,height:null,icon:{}}},prefix:C,iconName:w,transform:a({},V,i),symbol:s,title:d,maskId:u,titleId:f,extra:{attributes:v,styles:y,classes:g}})}))}},function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(t||{}).icon?t:ht(t||{}),i=e.mask;return i&&(i=(i||{}).icon?i:ht(i||{})),dt(n,a({},e,{mask:i}))});let gt=(()=>{class t{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null,this.globalLibrary=!1}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i.Kb)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),mt=(()=>{class t{constructor(){this.definitions={}}addIcons(...t){for(const e of t)e.prefix in this.definitions||(this.definitions[e.prefix]={}),this.definitions[e.prefix][e.iconName]=e}addIconPacks(...t){for(const e of t){const t=Object.keys(e).map(t=>e[t]);this.addIcons(...t)}}getIconDefinition(t,e){return t in this.definitions&&e in this.definitions[t]?this.definitions[t][e]:null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i.Kb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const vt=t=>{const e={"fa-spin":t.spin,"fa-pulse":t.pulse,"fa-fw":t.fixedWidth,"fa-border":t.border,"fa-inverse":t.inverse,"fa-layers-counter":t.counter,"fa-flip-horizontal":"horizontal"===t.flip||"both"===t.flip,"fa-flip-vertical":"vertical"===t.flip||"both"===t.flip,["fa-"+t.size]:null!==t.size,["fa-rotate-"+t.rotate]:null!==t.rotate,["fa-pull-"+t.pull]:null!==t.pull,["fa-stack-"+t.stackItemSize]:null!=t.stackItemSize};return Object.keys(e).map(t=>e[t]?t:null).filter(t=>t)};let _t=(()=>{class t{constructor(){this.stackItemSize="1x"}ngOnChanges(t){if("size"in t)throw new Error('fa-icon is not allowed to customize size when used inside fa-stack. Set size on the enclosing fa-stack instead: ....')}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[i.Ab]}),t})(),yt=(()=>{class t{constructor(t,e,n,i){this.sanitizer=t,this.config=e,this.iconLibrary=n,this.stackItem=i,this.classes=[]}ngOnChanges(t){if(null==this.icon&&null==this.config.fallbackIcon)return(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})();let e=null;if(e=null==this.icon?this.config.fallbackIcon:this.icon,t){const t=this.findIconDefinition(e);if(null!=t){const e=this.buildParams();this.renderIcon(t,e)}}}render(){this.ngOnChanges({})}findIconDefinition(t){const e=((t,e)=>{return void 0!==(n=t).prefix&&void 0!==n.iconName?t:Array.isArray(t)&&2===t.length?{prefix:t[0],iconName:t[1]}:"string"==typeof t?{prefix:e,iconName:t}:void 0;var n})(t,this.config.defaultPrefix);if("icon"in e)return e;const n=this.iconLibrary.getIconDefinition(e.prefix,e.iconName);if(null!=n)return n;const i=ht(e);if(null!=i){const t="Global icon library is deprecated. Consult https://github.com/FortAwesome/angular-fontawesome/blob/master/UPGRADING.md for the migration instructions.";if("unset"===this.config.globalLibrary)console.error("FontAwesome: "+t);else if(!this.config.globalLibrary)throw new Error(t);return i}return(t=>{throw new Error(`Could not find icon with iconName=${t.iconName} and prefix=${t.prefix} in the icon library.`)})(e),null}buildParams(){const t={flip:this.flip,spin:this.spin,pulse:this.pulse,border:this.border,inverse:this.inverse,size:this.size||null,pull:this.pull||null,rotate:this.rotate||null,fixedWidth:"boolean"==typeof this.fixedWidth?this.fixedWidth:this.config.fixedWidth,stackItemSize:null!=this.stackItem?this.stackItem.stackItemSize:null},e="string"==typeof this.transform?function(t){var e={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t?t.toLowerCase().split(" ").reduce((function(t,e){var n=e.toLowerCase().split("-"),i=n[0],r=n.slice(1).join("-");if(i&&"h"===r)return t.flipX=!0,t;if(i&&"v"===r)return t.flipY=!0,t;if(r=parseFloat(r),isNaN(r))return t;switch(i){case"grow":t.size=t.size+r;break;case"shrink":t.size=t.size-r;break;case"left":t.x=t.x-r;break;case"right":t.x=t.x+r;break;case"up":t.y=t.y-r;break;case"down":t.y=t.y+r;break;case"rotate":t.rotate=t.rotate+r}return t}),e):e}(this.transform):this.transform;return{title:this.title,transform:e,classes:[...vt(t),...this.classes],mask:null!=this.mask?this.findIconDefinition(this.mask):null,styles:null!=this.styles?this.styles:{},symbol:this.symbol,attributes:{role:this.a11yRole}}}renderIcon(t,e){const n=bt(t,e);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(n.html.join("\n"))}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(r.b),i.Ob(gt),i.Ob(mt),i.Ob(_t,8))},t.\u0275cmp=i.Ib({type:t,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(t,e){2&t&&(i.Xb("innerHTML",e.renderedIconHTML,i.Fc),i.Db("title",e.title))},inputs:{classes:"classes",icon:"icon",title:"title",spin:"spin",pulse:"pulse",mask:"mask",styles:"styles",flip:"flip",size:"size",pull:"pull",border:"border",inverse:"inverse",symbol:"symbol",rotate:"rotate",fixedWidth:"fixedWidth",transform:"transform",a11yRole:"a11yRole"},features:[i.Ab],decls:0,vars:0,template:function(t,e){},encapsulation:2}),t})(),Ot=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)}}),t})()},Nxx2:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){function t(){}return t.numberOfTrailingZeros=function(t){var e;if(0===t)return 32;var n=31;return 0!=(e=t<<16)&&(n-=16,t=e),0!=(e=t<<8)&&(n-=8,t=e),0!=(e=t<<4)&&(n-=4,t=e),0!=(e=t<<2)&&(n-=2,t=e),n-(t<<1>>>31)},t.numberOfLeadingZeros=function(t){if(0===t)return 32;var e=1;return t>>>16==0&&(e+=16,t<<=16),t>>>24==0&&(e+=8,t<<=8),t>>>28==0&&(e+=4,t<<=4),t>>>30==0&&(e+=2,t<<=2),e-(t>>>31)},t.toHexString=function(t){return t.toString(16)},t.bitCount=function(t){return t=(t=(858993459&(t-=t>>>1&1431655765))+(t>>>2&858993459))+(t>>>4)&252645135,63&(t+=t>>>8)+(t>>>16)},t.MIN_VALUE_32_BITS=-2147483648,t}()},O0qa:function(t,e,n){"use strict";n.d(e,"a",(function(){return j}));var i=n("zqNl"),r=n("HM3f"),s=n("jOdJ"),o=n("i67J"),a=n("uJYd"),c=n("h3eB"),l=n("+Px6"),u=n("YyhG"),h=n("J/3c"),d=n("sxqi"),p=n("rxqU"),f=n("kZht"),b=n("aDqW"),g=n("Eu46"),m=n("UVqw"),v=n("An66"),_=n("v4/B"),y=n("VbQ3"),O=n("s96x"),C=n("anSm"),w=n("1o0v"),T=n("NxuZ"),S=n("7J2L");function k(t,e){if(1&t){const t=f.Vb();f.Ub(0,"open-orders-mobile",8),f.bc("selectTicker",(function(e){return f.Ec(t),f.fc(3).selectTicker(e)}))("editOrder",(function(e){return f.Ec(t),f.fc(3).editOrder(e)}))("cancelOrder",(function(e){return f.Ec(t),f.fc(3).cancelOrder(e)}))("viewDetailed",(function(e){return f.Ec(t),f.fc(3).viewDetailed(e)})),f.Tb()}2&t&&f.mc("order",e.$implicit)}function E(t,e){if(1&t){const t=f.Vb();f.Sb(0),f.Ub(1,"open-orders-desktop",5),f.bc("selectTicker",(function(e){return f.Ec(t),f.fc(2).selectTicker(e)}))("editOrder",(function(e){return f.Ec(t),f.fc(2).editOrder(e)}))("cancelOrder",(function(e){return f.Ec(t),f.fc(2).cancelOrder(e)}))("cancelAllOrders",(function(){return f.Ec(t),f.fc(2).cancelAllOrders()}))("viewDetailed",(function(e){return f.Ec(t),f.fc(2).viewDetailed(e)})),f.gc(2,"async"),f.Tb(),f.Ub(3,"cdk-virtual-scroll-viewport",6),f.Oc(4,k,1,1,"open-orders-mobile",7),f.Tb(),f.Rb()}if(2&t){const t=f.fc().ngLet,e=f.fc();f.Cb(1),f.mc("orders",t)("displayTooltips",f.hc(2,4,e.displayTooltips$)),f.Cb(2),f.mc("itemSize",90),f.Cb(1),f.mc("cdkVirtualForOf",t.valueSeq().toArray())}}const x=function(){return{small:100,medium:400,large:800}};function P(t,e){if(1&t&&(f.Ub(0,"div",3),f.Oc(1,E,5,6,"ng-container",4),f.Tb()),2&t){const t=e.ngLet;f.fc();const n=f.Ac(3);f.mc("breakpoints",f.qc(3,x)),f.Cb(1),f.mc("ngIf",t&&t.size>0)("ngIfElse",n)}}const A=function(t){return{pair:t}};function I(t,e){if(1&t&&(f.Ub(0,"p"),f.Qc(1),f.gc(2,"translate"),f.Tb()),2&t){const t=e.ngIf;f.Cb(1),f.Sc(" ",f.ic(2,1,"NO_CONTENT.PAIR_OPEN_ORDERS",f.rc(4,A,t))," ")}}function M(t,e){1&t&&(f.Ub(0,"p",12),f.Qc(1,"NO_CONTENT.OPEN_ORDERS"),f.Tb())}function D(t,e){if(1&t&&(f.Ub(0,"section",9),f.Pb(1,"fa-icon",10),f.Oc(2,I,3,6,"p",4),f.gc(3,"async"),f.Oc(4,M,2,0,"ng-template",null,11,f.Pc),f.Tb()),2&t){const t=f.Ac(5),e=f.fc();var n=null;f.Cb(2),f.mc("ngIf",null==(n=f.hc(3,2,e.filterPair$))?null:n.orUndefined())("ngIfElse",t)}}function R(t,e){1&t&&f.Pb(0,"kraken-loading")}let j=(()=>{class t{constructor(t,e,n){this.store=t,this.translate=e,this.market=n,this.displayTooltips$=this.store.pipe(Object(i.m)(p.y)),this.orders$=this.store.pipe(Object(i.m)(u.l),Object(o.p)()),this.instruments$=this.store.pipe(Object(i.m)(l.f)),this.filterPair$=this.store.pipe(Object(i.m)(p.q)),this.userSelectedFuturesWallet$=this.store.pipe(Object(i.m)(h.n))}selectTicker({symbol:t,replaceUrl:e}){this.market.navigateToMarket(t,e)}editOrder({order:t}){this.selectTicker({symbol:t.instrument,replaceUrl:!1}),Object(r.a)([this.instruments$,this.userSelectedFuturesWallet$]).pipe(Object(s.a)()).subscribe(([e,n])=>{const i=e.get(t.instrument),r=null==n?void 0:n.am;this.store.dispatch(Object(a.g)({name:"edit-order",inputs:{order:t,instrument:i,availableMargin:r}}))})}cancelOrder({id:t}){this.store.dispatch(Object(c.d)({id:t}))}cancelAllOrders(){this.store.dispatch(Object(a.g)({name:"confirmation",inputs:{title:"DIALOG.CONFIRM_ORDER_CANCEL.TITLE",subtitle:"DIALOG.CONFIRM_ORDER_CANCEL.SUBTITLE",body:this.translate.instant("DIALOG.CONFIRM_ORDER_CANCEL.BODY"),buttons:[{label:"BUTTON.YES",colour:"accent",actions:[Object(c.c)(),Object(a.c)()]},{label:"BUTTON.NO",colour:"warn",actions:[Object(a.c)()]}]}}))}viewDetailed({order:t}){this.instruments$.pipe(Object(o.h)()).subscribe(e=>{const n=e.get(t.instrument);this.store.dispatch(Object(a.g)({name:"order-details",inputs:{order:t,instrument:n}}))})}}return t.\u0275fac=function(e){return new(e||t)(f.Ob(i.b),f.Ob(b.e),f.Ob(d.a))},t.\u0275cmp=f.Ib({type:t,selectors:[["open-orders"]],decls:6,vars:3,consts:[["class","table-wrapper","breakpoint","",3,"breakpoints",4,"ngLet"],["noEntries",""],["loader",""],["breakpoint","",1,"table-wrapper",3,"breakpoints"],[4,"ngIf","ngIfElse"],[3,"orders","displayTooltips","selectTicker","editOrder","cancelOrder","cancelAllOrders","viewDetailed"],[3,"itemSize"],[3,"order","selectTicker","editOrder","cancelOrder","viewDetailed",4,"cdkVirtualFor","cdkVirtualForOf"],[3,"order","selectTicker","editOrder","cancelOrder","viewDetailed"],["body","","ghost","",1,"no-activity"],["icon","list","size","3x"],["unfiltered",""],["translate",""]],template:function(t,e){1&t&&(f.Oc(0,P,2,4,"div",0),f.gc(1,"async"),f.Oc(2,D,6,4,"ng-template",null,1,f.Pc),f.Oc(4,R,1,0,"ng-template",null,2,f.Pc)),2&t&&f.mc("ngLet",f.hc(1,1,e.orders$))},directives:[g.a,m.a,v.n,_.a,y.e,y.a,y.d,O.a,C.a,w.a,T.b,b.a,S.a],pipes:[v.b,b.d],styles:["market-icon[_ngcontent-%COMP%]{font-size:20px}[_nghost-%COMP%]{display:flex;flex-direction:column;padding:var(--spacing)}.table-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%]{height:100%}.no-activity[_ngcontent-%COMP%]{text-align:center;padding:var(--spacing-l)}cdk-virtual-scroll-viewport[_ngcontent-%COMP%]{height:100%}@media (max-width:1024px){.table-wrapper[_ngcontent-%COMP%] open-orders-desktop[_ngcontent-%COMP%]{display:none}.table-wrapper[_ngcontent-%COMP%] cdk-virtual-scroll-viewport[_ngcontent-%COMP%]{display:block!important}}.table-wrapper[breakpoint=large][_ngcontent-%COMP%] cdk-virtual-scroll-viewport[_ngcontent-%COMP%], .table-wrapper[breakpoint=medium][_ngcontent-%COMP%] cdk-virtual-scroll-viewport[_ngcontent-%COMP%], .table-wrapper[breakpoint=small][_ngcontent-%COMP%] open-orders-desktop[_ngcontent-%COMP%]{display:none}"],changeDetection:0}),t})()},O1jd:function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return c})),n.d(e,"c",(function(){return v})),n.d(e,"d",(function(){return m})),n.d(e,"e",(function(){return u})),n.d(e,"f",(function(){return b})),n.d(e,"g",(function(){return g}));var i=n("kZht"),r=n("An66");let s;try{s="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(_){s=!1}let o,a=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?Object(r.z)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!s)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(i.D))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(i.D))},token:t,providedIn:"root"}),t})(),c=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)}}),t})();const l=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function u(){if(o)return o;if("object"!=typeof document||!document)return o=new Set(l),o;let t=document.createElement("input");return o=new Set(l.filter(e=>(t.setAttribute("type",e),t.type===e))),o}let h,d,p,f;function b(t){return function(){if(null==h&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>h=!0}))}finally{h=h||!1}return h}()?t:!!t.capture}function g(){if(null==p)if("object"==typeof document&&document||(p=!1),"scrollBehavior"in document.documentElement.style)p=!0;else{const t=Element.prototype.scrollTo;p=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}return p}function m(){if("object"!=typeof document||!document)return 0;if(null==d){const t=document.createElement("div"),e=t.style;t.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";const n=document.createElement("div"),i=n.style;i.width="2px",i.height="1px",t.appendChild(n),document.body.appendChild(t),d=0,0===t.scrollLeft&&(t.scrollLeft=1,d=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return d}function v(t){if(function(){if(null==f){const t="undefined"!=typeof document?document.head:null;f=!(!t||!t.createShadowRoot&&!t.attachShadow)}return f}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}},O30t:function(t,e,n){"use strict";n.d(e,"a",(function(){return gt})),n.d(e,"b",(function(){return ct})),n.d(e,"c",(function(){return dt})),n.d(e,"d",(function(){return ft})),n.d(e,"e",(function(){return ut})),n.d(e,"f",(function(){return Ct})),n.d(e,"g",(function(){return vt})),n.d(e,"h",(function(){return Tt})),n.d(e,"i",(function(){return yt})),n.d(e,"j",(function(){return ot})),n.d(e,"k",(function(){return Et})),n.d(e,"l",(function(){return kt}));var i=n("vE5V"),r=n("5XID"),s=n("sBeF"),o=n("kZht"),a=n("O1jd"),c=n("An66"),l=n("ZTXN"),u=n("GoAz"),h=n("C05f"),d=n("9bRT"),p=n("ROBh"),f=n("kuMc"),b=n("J+dc"),g=n("VbQ3");const m=[[["caption"]],[["colgroup"],["col"]]],v=["caption","colgroup, col"];function _(t){return class extends t{constructor(...t){super(...t),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(t){const e=this._sticky;this._sticky=Object(r.c)(t),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const t=this._hasStickyChanged;return this._hasStickyChanged=!1,t}resetStickyChanged(){this._hasStickyChanged=!1}}}const y=new o.s("CDK_TABLE");let O=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(o.Ob(o.N))},t.\u0275dir=o.Jb({type:t,selectors:[["","cdkCellDef",""]]}),t})(),C=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(o.Ob(o.N))},t.\u0275dir=o.Jb({type:t,selectors:[["","cdkHeaderCellDef",""]]}),t})(),w=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(o.Ob(o.N))},t.\u0275dir=o.Jb({type:t,selectors:[["","cdkFooterCellDef",""]]}),t})();class T{}const S=_(T);let k=(()=>{class t extends S{constructor(t){super(),this._table=t,this._stickyEnd=!1}get name(){return this._name}set name(t){this._setNameInput(t)}get stickyEnd(){return this._stickyEnd}set stickyEnd(t){const e=this._stickyEnd;this._stickyEnd=Object(r.c)(t),this._hasStickyChanged=e!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=["cdk-column-"+this.cssClassFriendlyName]}_setNameInput(t){t&&(this._name=t,this.cssClassFriendlyName=t.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return t.\u0275fac=function(e){return new(e||t)(o.Ob(y,8))},t.\u0275dir=o.Jb({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(t,e,n){var i;1&t&&(o.Hb(n,O,!0),o.Hb(n,C,!0),o.Hb(n,w,!0)),2&t&&(o.zc(i=o.cc())&&(e.cell=i.first),o.zc(i=o.cc())&&(e.headerCell=i.first),o.zc(i=o.cc())&&(e.footerCell=i.first))},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[o.Bb([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),o.zb]}),t})();class E{constructor(t,e){const n=e.nativeElement.classList;for(const i of t._columnCssClassName)n.add(i)}}let x=(()=>{class t extends E{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(o.Ob(k),o.Ob(o.l))},t.\u0275dir=o.Jb({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[o.zb]}),t})(),P=(()=>{class t extends E{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(o.Ob(k),o.Ob(o.l))},t.\u0275dir=o.Jb({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:["role","gridcell",1,"cdk-cell"],features:[o.zb]}),t})();class A{constructor(){this.tasks=[],this.endTasks=[]}}let I=(()=>{class t{constructor(t){this._ngZone=t,this._currentSchedule=null,this._destroyed=new l.b}schedule(t){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(t)}scheduleEnd(t){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(t)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new A,this._getScheduleObservable().pipe(Object(f.a)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const t=this._currentSchedule;this._currentSchedule=new A;for(const e of t.tasks)e();for(const e of t.endTasks)e()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?Object(u.a)(Promise.resolve(void 0)):this._ngZone.onStable.pipe(Object(b.a)(1))}}return t.\u0275fac=function(e){return new(e||t)(o.Yb(o.B))},t.\u0275prov=o.Kb({token:t,factory:t.\u0275fac}),t})(),M=(()=>{class t{constructor(t,e){this.template=t,this._differs=e}ngOnChanges(t){if(!this._columnsDiffer){const e=t.columns&&t.columns.currentValue||[];this._columnsDiffer=this._differs.find(e).create(),this._columnsDiffer.diff(e)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(t){return this instanceof j?t.headerCell.template:this instanceof U?t.footerCell.template:t.cell.template}}return t.\u0275fac=function(e){return new(e||t)(o.Ob(o.N),o.Ob(o.u))},t.\u0275dir=o.Jb({type:t,features:[o.Ab]}),t})();class D extends M{}const R=_(D);let j=(()=>{class t extends R{constructor(t,e,n){super(t,e),this._table=n}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(o.Ob(o.N),o.Ob(o.u),o.Ob(y,8))},t.\u0275dir=o.Jb({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[o.zb,o.Ab]}),t})();class L extends M{}const N=_(L);let U=(()=>{class t extends N{constructor(t,e,n){super(t,e),this._table=n}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(o.Ob(o.N),o.Ob(o.u),o.Ob(y,8))},t.\u0275dir=o.Jb({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[o.zb,o.Ab]}),t})(),F=(()=>{class t extends M{constructor(t,e,n){super(t,e),this._table=n}}return t.\u0275fac=function(e){return new(e||t)(o.Ob(o.N),o.Ob(o.u),o.Ob(y,8))},t.\u0275dir=o.Jb({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[o.zb]}),t})(),B=(()=>{class t{constructor(e){this._viewContainer=e,t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}}return t.\u0275fac=function(e){return new(e||t)(o.Ob(o.R))},t.\u0275dir=o.Jb({type:t,selectors:[["","cdkCellOutlet",""]]}),t.mostRecentCellOutlet=null,t})(),z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o.Ib({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&o.Qb(0,0)},directives:[B],encapsulation:2}),t})(),V=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o.Ib({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&o.Qb(0,0)},directives:[B],encapsulation:2}),t})(),$=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(o.Ob(o.N))},t.\u0275dir=o.Jb({type:t,selectors:[["ng-template","cdkNoDataRow",""]]}),t})();const H=["top","bottom","left","right"];class q{constructor(t,e,n,i,r=!0,s=!0){this._isNativeHtmlTable=t,this._stickCellCss=e,this.direction=n,this._coalescedStyleScheduler=i,this._isBrowser=r,this._needsPositionStickyOnElement=s}clearStickyPositioning(t,e){const n=[];for(const i of t)if(i.nodeType===i.ELEMENT_NODE){n.push(i);for(let t=0;t{for(const t of n)this._removeStickyStyle(t,e)})}updateStickyColumns(t,e,n){if(!t.length||!this._isBrowser||!e.some(t=>t)&&!n.some(t=>t))return;const i=t[0],r=i.children.length,s=this._getCellWidths(i),o=this._getStickyStartColumnPositions(s,e),a=this._getStickyEndColumnPositions(s,n);this._coalescedStyleScheduler.schedule(()=>{const i="rtl"===this.direction,s=i?"right":"left",c=i?"left":"right";for(const l of t)for(let t=0;t{for(let t=0;t{e.some(t=>!t)?this._removeStickyStyle(n,["bottom"]):this._addStickyStyle(n,"bottom",0)})}_removeStickyStyle(t,e){for(const n of e)t.style[n]="";H.some(n=>-1===e.indexOf(n)&&t.style[n])?t.style.zIndex=this._getCalculatedZIndex(t):(t.style.zIndex="",this._needsPositionStickyOnElement&&(t.style.position=""),t.classList.remove(this._stickCellCss))}_addStickyStyle(t,e,n){t.classList.add(this._stickCellCss),t.style[e]=n+"px",t.style.zIndex=this._getCalculatedZIndex(t),this._needsPositionStickyOnElement&&(t.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(t){const e={top:100,bottom:10,left:1,right:1};let n=0;for(const i of H)t.style[i]&&(n+=e[i]);return n?""+n:""}_getCellWidths(t){const e=[],n=t.children;for(let i=0;i0;r--)e[r]&&(n[r]=i,i+=t[r]);return n}}let Q=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(o.Ob(o.R),o.Ob(o.l))},t.\u0275dir=o.Jb({type:t,selectors:[["","rowOutlet",""]]}),t})(),W=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(o.Ob(o.R),o.Ob(o.l))},t.\u0275dir=o.Jb({type:t,selectors:[["","headerRowOutlet",""]]}),t})(),G=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(o.Ob(o.R),o.Ob(o.l))},t.\u0275dir=o.Jb({type:t,selectors:[["","footerRowOutlet",""]]}),t})(),Y=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(o.Ob(o.R),o.Ob(o.l))},t.\u0275dir=o.Jb({type:t,selectors:[["","noDataRowOutlet",""]]}),t})(),K=(()=>{class t{constructor(t,e,n,i,r,s,o,a,c){this._differs=t,this._changeDetectorRef=e,this._coalescedStyleScheduler=n,this._elementRef=i,this._dir=s,this._platform=a,this._viewRepeater=c,this._onDestroy=new l.b,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this.viewChange=new h.a({start:0,end:Number.MAX_VALUE}),r||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=o,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(t){this._trackByFn=t}get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(t){this._multiTemplateDataRows=Object(r.c)(t),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((t,e)=>this.trackBy?this.trackBy(e.dataIndex,e.data):e)}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const t=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():t&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),Object(s.h)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const t=this._dataDiffer.diff(this._renderRows);if(!t)return void this._updateNoDataRow();const e=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(t,e,(t,e,n)=>this._getEmbeddedViewArgs(t.item,n),t=>t.item.data,t=>{1===t.operation&&t.context&&this._renderCellTemplateForItem(t.record.item.rowDef,t.context)}),this._updateRowIndexContext(),t.forEachIdentityChange(t=>{e.get(t.currentIndex).context.$implicit=t.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles()}addColumnDef(t){this._customColumnDefs.add(t)}removeColumnDef(t){this._customColumnDefs.delete(t)}addRowDef(t){this._customRowDefs.add(t)}removeRowDef(t){this._customRowDefs.delete(t)}addHeaderRowDef(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}removeHeaderRowDef(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}addFooterRowDef(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}removeFooterRowDef(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}updateStickyHeaderRowStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._elementRef.nativeElement.querySelector("thead");e&&(e.style.display=t.length?"":"none");const n=this._headerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,n,"top"),this._headerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyFooterRowStyles(){const t=this._getRenderedRows(this._footerRowOutlet),e=this._elementRef.nativeElement.querySelector("tfoot");e&&(e.style.display=t.length?"":"none");const n=this._footerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyColumnStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._getRenderedRows(this._rowOutlet),n=this._getRenderedRows(this._footerRowOutlet);this._stickyStyler.clearStickyPositioning([...t,...e,...n],["left","right"]),t.forEach((t,e)=>{this._addStickyColumnStyles([t],this._headerRowDefs[e])}),this._rowDefs.forEach(t=>{const n=[];for(let i=0;i{this._addStickyColumnStyles([t],this._footerRowDefs[e])}),Array.from(this._columnDefsByName.values()).forEach(t=>t.resetStickyChanged())}_getAllRenderRows(){const t=[],e=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let n=0;n{const r=n&&n.has(i)?n.get(i):[];if(r.length){const t=r.shift();return t.dataIndex=e,t}return{data:t,rowDef:i,dataIndex:e}})}_cacheColumnDefs(){this._columnDefsByName.clear(),Z(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=Z(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Z(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Z(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const t=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=t[0]}_renderUpdatedColumns(){const t=(t,e)=>t||!!e.getColumnsDiff(),e=this._rowDefs.reduce(t,!1);e&&this._forceRenderDataRows();const n=this._headerRowDefs.reduce(t,!1);n&&this._forceRenderHeaderRows();const i=this._footerRowDefs.reduce(t,!1);return i&&this._forceRenderFooterRows(),e||n||i}_switchDataSource(t){this._data=[],Object(s.h)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=t}_observeRenderChanges(){if(!this.dataSource)return;let t;Object(s.h)(this.dataSource)?t=this.dataSource.connect(this):Object(d.a)(this.dataSource)?t=this.dataSource:Array.isArray(this.dataSource)&&(t=Object(p.a)(this.dataSource)),this._renderChangeSubscription=t.pipe(Object(f.a)(this._onDestroy)).subscribe(t=>{this._data=t||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((t,e)=>this._renderRow(this._headerRowOutlet,t,e)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((t,e)=>this._renderRow(this._footerRowOutlet,t,e)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(t,e){const n=Array.from(e.columns||[]).map(t=>this._columnDefsByName.get(t)),i=n.map(t=>t.sticky),r=n.map(t=>t.stickyEnd);this._stickyStyler.updateStickyColumns(t,i,r)}_getRenderedRows(t){const e=[];for(let n=0;n!n.when||n.when(e,t));else{let i=this._rowDefs.find(n=>n.when&&n.when(e,t))||this._defaultRowDef;i&&n.push(i)}return n}_getEmbeddedViewArgs(t,e){return{templateRef:t.rowDef.template,context:{$implicit:t.data},index:e}}_renderRow(t,e,n,i={}){const r=t.viewContainer.createEmbeddedView(e.template,i,n);return this._renderCellTemplateForItem(e,i),r}_renderCellTemplateForItem(t,e){for(let n of this._getCellTemplates(t))B.mostRecentCellOutlet&&B.mostRecentCellOutlet._viewContainer.createEmbeddedView(n,e);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const t=this._rowOutlet.viewContainer;for(let e=0,n=t.length;e{const n=this._columnDefsByName.get(e);return t.extractCellTemplate(n)}):[]}_applyNativeTableSections(){const t=this._document.createDocumentFragment(),e=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const n of e){const e=this._document.createElement(n.tag);e.setAttribute("role","rowgroup");for(const t of n.outlets)e.appendChild(t.elementRef.nativeElement);t.appendChild(e)}this._elementRef.nativeElement.appendChild(t)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const t=(t,e)=>t||e.hasStickyChanged();this._headerRowDefs.reduce(t,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(t,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(t,!1)&&this.updateStickyColumnStyles()}_setupStickyStyler(){this._stickyStyler=new q(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement),(this._dir?this._dir.change:Object(p.a)()).pipe(Object(f.a)(this._onDestroy)).subscribe(t=>{this._stickyStyler.direction=t,this.updateStickyColumnStyles()})}_getOwnDefs(t){return t.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){if(this._noDataRow){const t=0===this._rowOutlet.viewContainer.length;if(t!==this._isShowingNoDataRow){const e=this._noDataRowOutlet.viewContainer;t?e.createEmbeddedView(this._noDataRow.templateRef):e.clear(),this._isShowingNoDataRow=t}}}}return t.\u0275fac=function(e){return new(e||t)(o.Ob(o.u),o.Ob(o.h),o.Ob(I),o.Ob(o.l),o.Zb("role"),o.Ob(i.b,8),o.Ob(c.d),o.Ob(a.a),o.Ob(s.g,8))},t.\u0275cmp=o.Ib({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(t,e,n){var i;1&t&&(o.Hb(n,$,!0),o.Hb(n,k,!0),o.Hb(n,F,!0),o.Hb(n,j,!0),o.Hb(n,U,!0)),2&t&&(o.zc(i=o.cc())&&(e._noDataRow=i.first),o.zc(i=o.cc())&&(e._contentColumnDefs=i),o.zc(i=o.cc())&&(e._contentRowDefs=i),o.zc(i=o.cc())&&(e._contentHeaderRowDefs=i),o.zc(i=o.cc())&&(e._contentFooterRowDefs=i))},viewQuery:function(t,e){var n;1&t&&(o.Jc(Q,!0),o.Jc(W,!0),o.Jc(G,!0),o.Jc(Y,!0)),2&t&&(o.zc(n=o.cc())&&(e._rowOutlet=n.first),o.zc(n=o.cc())&&(e._headerRowOutlet=n.first),o.zc(n=o.cc())&&(e._footerRowOutlet=n.first),o.zc(n=o.cc())&&(e._noDataRowOutlet=n.first))},hostAttrs:[1,"cdk-table"],inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows"},exportAs:["cdkTable"],features:[o.Bb([{provide:y,useExisting:t},{provide:s.g,useClass:s.e},I])],ngContentSelectors:v,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(o.lc(m),o.kc(0),o.kc(1,1),o.Qb(2,0),o.Qb(3,1),o.Qb(4,2),o.Qb(5,3))},directives:[W,Q,Y,G],encapsulation:2}),t})();function Z(t,e){return t.concat(Array.from(e))}let X=(()=>{class t{}return t.\u0275mod=o.Mb({type:t}),t.\u0275inj=o.Lb({factory:function(e){return new(e||t)},imports:[[g.g]]}),t})();var J=n("pTnX"),tt=n("bwdy"),et=n("g6G6"),nt=n("HM3f"),it=n("YtkY");const rt=[[["caption"]],[["colgroup"],["col"]]],st=["caption","colgroup, col"];let ot=(()=>{class t extends K{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return t.\u0275fac=function(e){return at(e||t)},t.\u0275cmp=o.Ib({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],exportAs:["matTable"],features:[o.Bb([{provide:s.g,useClass:s.e},{provide:K,useExisting:t},{provide:y,useExisting:t},I]),o.zb],ngContentSelectors:st,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(o.lc(rt),o.kc(0),o.kc(1,1),o.Qb(2,0),o.Qb(3,1),o.Qb(4,2),o.Qb(5,3))},directives:[W,Q,Y,G],styles:['mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:-webkit-sticky;position:sticky}\n'],encapsulation:2}),t})();const at=o.Wb(ot);let ct=(()=>{class t extends O{}return t.\u0275fac=function(e){return lt(e||t)},t.\u0275dir=o.Jb({type:t,selectors:[["","matCellDef",""]],features:[o.Bb([{provide:O,useExisting:t}]),o.zb]}),t})();const lt=o.Wb(ct);let ut=(()=>{class t extends C{}return t.\u0275fac=function(e){return ht(e||t)},t.\u0275dir=o.Jb({type:t,selectors:[["","matHeaderCellDef",""]],features:[o.Bb([{provide:C,useExisting:t}]),o.zb]}),t})();const ht=o.Wb(ut);let dt=(()=>{class t extends k{get name(){return this._name}set name(t){this._setNameInput(t)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push("mat-column-"+this.cssClassFriendlyName)}}return t.\u0275fac=function(e){return pt(e||t)},t.\u0275dir=o.Jb({type:t,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[o.Bb([{provide:k,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),o.zb]}),t})();const pt=o.Wb(dt);let ft=(()=>{class t extends x{}return t.\u0275fac=function(e){return bt(e||t)},t.\u0275dir=o.Jb({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[o.zb]}),t})();const bt=o.Wb(ft);let gt=(()=>{class t extends P{}return t.\u0275fac=function(e){return mt(e||t)},t.\u0275dir=o.Jb({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[o.zb]}),t})();const mt=o.Wb(gt);let vt=(()=>{class t extends j{}return t.\u0275fac=function(e){return _t(e||t)},t.\u0275dir=o.Jb({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[o.Bb([{provide:j,useExisting:t}]),o.zb]}),t})();const _t=o.Wb(vt);let yt=(()=>{class t extends F{}return t.\u0275fac=function(e){return Ot(e||t)},t.\u0275dir=o.Jb({type:t,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[o.Bb([{provide:F,useExisting:t}]),o.zb]}),t})();const Ot=o.Wb(yt);let Ct=(()=>{class t extends z{}return t.\u0275fac=function(e){return wt(e||t)},t.\u0275cmp=o.Ib({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[o.Bb([{provide:z,useExisting:t}]),o.zb],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&o.Qb(0,0)},directives:[B],encapsulation:2}),t})();const wt=o.Wb(Ct);let Tt=(()=>{class t extends V{}return t.\u0275fac=function(e){return St(e||t)},t.\u0275cmp=o.Ib({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[o.Bb([{provide:V,useExisting:t}]),o.zb],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&o.Qb(0,0)},directives:[B],encapsulation:2}),t})();const St=o.Wb(Tt);let kt=(()=>{class t{}return t.\u0275mod=o.Mb({type:t}),t.\u0275inj=o.Lb({factory:function(e){return new(e||t)},imports:[[X,J.j],J.j]}),t})();class Et extends s.b{constructor(t=[]){super(),this._renderData=new h.a([]),this._filter=new h.a(""),this._internalPageChanges=new l.b,this._renderChangesSubscription=tt.a.EMPTY,this.sortingDataAccessor=(t,e)=>{const n=t[e];if(Object(r.a)(n)){const t=Number(n);return t<9007199254740991?t:n}return n},this.sortData=(t,e)=>{const n=e.active,i=e.direction;return n&&""!=i?t.sort((t,e)=>{let r=this.sortingDataAccessor(t,n),s=this.sortingDataAccessor(e,n);const o=typeof r,a=typeof s;o!==a&&("number"===o&&(r+=""),"number"===a&&(s+=""));let c=0;return null!=r&&null!=s?r>s?c=1:r{const n=Object.keys(t).reduce((e,n)=>e+t[n]+"\u25ec","").toLowerCase(),i=e.trim().toLowerCase();return-1!=n.indexOf(i)},this._data=new h.a(t),this._updateChangeSubscription()}get data(){return this._data.value}set data(t){this._data.next(t)}get filter(){return this._filter.value}set filter(t){this._filter.next(t)}get sort(){return this._sort}set sort(t){this._sort=t,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(t){this._paginator=t,this._updateChangeSubscription()}_updateChangeSubscription(){const t=this._sort?Object(et.a)(this._sort.sortChange,this._sort.initialized):Object(p.a)(null),e=this._paginator?Object(et.a)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Object(p.a)(null),n=this._data,i=Object(nt.a)([n,this._filter]).pipe(Object(it.a)(([t])=>this._filterData(t))),r=Object(nt.a)([i,t]).pipe(Object(it.a)(([t])=>this._orderData(t))),s=Object(nt.a)([r,e]).pipe(Object(it.a)(([t])=>this._pageData(t)));this._renderChangesSubscription.unsubscribe(),this._renderChangesSubscription=s.subscribe(t=>this._renderData.next(t))}_filterData(t){return this.filteredData=this.filter?t.filter(t=>this.filterPredicate(t,this.filter)):t,this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(t){return this.sort?this.sortData(t.slice(),this.sort):t}_pageData(t){if(!this.paginator)return t;const e=this.paginator.pageIndex*this.paginator.pageSize;return t.slice(e,e+this.paginator.pageSize)}_updatePaginator(t){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=t,e.pageIndex>0)){const t=Math.ceil(e.length/e.pageSize)-1||0,n=Math.min(e.pageIndex,t);n!==e.pageIndex&&(e.pageIndex=n,this._internalPageChanges.next())}})}connect(){return this._renderData}disconnect(){}}},O5EP:function(t,e,n){"use strict";n.d(e,"a",(function(){return X}));var i=n("zqNl"),r=n("TYVA"),s=n("i67J"),o=n("vYTc"),a=n("uJYd"),c=n("wMit"),l=n("qAYy"),u=n("YyhG"),h=n("rxqU");function d(t){switch(t){case"XBT/USD":return"BRTI";case"ETH/USD":return"ETHUSD_RTI";case"XRP/USD":return"XRPUSD_RTI";case"XRP/XBT":return"XRPXBT_RTI";case"BCH/USD":return"BCHUSD_RTI";case"LTC/USD":return"LTCUSD_RTI";case"XBT/EUR":return"XBTEUR_RTI";case"ETH/EUR":return"ETHEUR_RTI"}}var p=n("kZht"),f=n("An66"),b=n("Eu46"),g=n("anSm"),m=n("IkSM"),v=n("B6Vo"),_=n("Cc4E"),y=n("zho4"),O=n("chaP"),C=n("LbKT"),w=n("6BNo"),T=n("1o0v"),S=n("Oj3S"),k=n("7J2L"),E=n("aDqW"),x=n("fvDn"),P=n("e7kw"),A=n("FUqb"),I=n("DpwM"),M=n("rqGg");const D=function(){return[250,100]};function R(t,e){if(1&t&&(p.Ub(0,"section",4),p.Ub(1,"p",21),p.Qc(2),p.gc(3,"translate"),p.Tb(),p.Ub(4,"a",22),p.gc(5,"supportArticle"),p.Qc(6),p.gc(7,"date"),p.Tb(),p.Tb()),2&t){const t=p.fc().ngLet,e=p.fc().$implicit;p.Cb(1),p.mc("sbDisabled",!t)("sbDelay",p.qc(12,D)),p.Cb(1),p.Sc(" ",p.hc(3,5,"LABEL.MATURITY_DATE"),": "),p.Cb(2),p.mc("href",p.hc(5,7,360022632172),p.Gc),p.Cb(2),p.Sc(" ",p.ic(7,9,e.maturityTime,"dd/MMM/yyyy")," ")}}function j(t,e){if(1&t&&(p.Ub(0,"section",4),p.Ub(1,"p",23),p.Qc(2),p.gc(3,"translate"),p.Tb(),p.Ub(4,"a",22),p.gc(5,"supportArticle"),p.Qc(6),p.gc(7,"date"),p.Tb(),p.Tb()),2&t){const t=p.fc().ngLet,e=p.fc().$implicit;p.Cb(1),p.mc("sbDisabled",!t)("sbDelay",p.qc(12,D)),p.Cb(1),p.Sc(" ",p.hc(3,5,"LABEL.MATURITY_TIME"),": "),p.Cb(2),p.mc("href",p.hc(5,7,360022632172),p.Gc),p.Cb(2),p.Sc(" ",p.ic(7,9,e.maturityTime,"HH:mm")," ")}}function L(t,e){if(1&t&&(p.Ub(0,"section",4),p.Ub(1,"p",24),p.Qc(2),p.gc(3,"translate"),p.Tb(),p.Ub(4,"strong",9),p.Qc(5),p.Tb(),p.Tb()),2&t){const t=p.fc().ngLet,e=p.fc().$implicit,n=p.fc();p.Cb(1),p.mc("sbDisabled",!t)("sbDelay",p.qc(6,D)),p.Cb(1),p.Sc(" ",p.hc(3,4,"LABEL.SETTLEMENT"),": "),p.Cb(3),p.Sc(" ",n.getSettlementTime(e.maturityTime)," ")}}function N(t,e){if(1&t){const t=p.Vb();p.Ub(0,"section",4),p.Ub(1,"p",25),p.Qc(2),p.gc(3,"translate"),p.Tb(),p.Ub(4,"a",26),p.bc("click",(function(e){p.Ec(t);const n=p.fc(2).$implicit;return p.fc().getFundingRates(n.product_id),e.stopPropagation()})),p.Qc(5),p.gc(6,"percent"),p.gc(7,"translate"),p.Tb(),p.Tb()}if(2&t){const t=p.fc().ngLet,e=p.fc().$implicit;p.Cb(1),p.mc("sbDisabled",!t)("sbDelay",p.qc(12,D)),p.Cb(1),p.Sc(" ",p.hc(3,5,"LABEL.FUNDING_RATE"),": "),p.Cb(3),p.Tc(" ",p.ic(6,7,e.relative_funding_rate,"1.4-4")," / ",p.hc(7,10,"UNIT.HOUR_SHORT")," ")}}function U(t,e){if(1&t&&(p.Ub(0,"section",4),p.Ub(1,"p",27),p.Qc(2),p.gc(3,"translate"),p.Tb(),p.Ub(4,"strong",9),p.Qc(5),p.gc(6,"percent"),p.gc(7,"translate"),p.Tb(),p.Tb()),2&t){const t=p.fc().ngLet,e=p.fc().$implicit;p.Cb(1),p.mc("sbDisabled",!t)("sbDelay",p.qc(12,D)),p.Cb(1),p.Sc(" ",p.hc(3,5,"LABEL.EST_NEXT_RATE"),": "),p.Cb(3),p.Tc(" ",p.ic(6,7,e.relative_funding_rate_prediction,"1.4-4")," / ",p.hc(7,10,"UNIT.HOUR_SHORT")," ")}}function F(t,e){if(1&t&&(p.Ub(0,"section",4),p.Ub(1,"p",28),p.Qc(2),p.gc(3,"translate"),p.Tb(),p.Ub(4,"strong",9),p.Qc(5),p.Tb(),p.Tb()),2&t){const t=p.fc().ngLet,e=p.fc().$implicit,n=p.fc();p.Cb(1),p.mc("sbDisabled",!t)("sbDelay",p.qc(6,D)),p.Cb(1),p.Sc(" ",p.hc(3,4,"LABEL.NEXT_RATE"),": "),p.Cb(3),p.Sc(" ",n.getSettlementTime(e.next_funding_rate_time)," ")}}function B(t,e){if(1&t&&(p.Ub(0,"a",7),p.Pb(1,"img",29),p.Qc(2),p.Ub(3,"span",9),p.Qc(4),p.gc(5,"sato"),p.Tb(),p.Tb()),2&t){const t=p.fc(2).$implicit,e=p.fc();p.mc("href",t&&e.getRTILink(t.pair),p.Gc),p.Cb(2),p.Sc(" ",t&&e.getRTIName(t.pair)," - "),p.Cb(2),p.Sc(" ",p.ic(5,3,t.index,t)," ")}}function z(t,e){if(1&t&&(p.Ub(0,"span",9),p.Qc(1),p.gc(2,"sato"),p.Tb()),2&t){const t=p.fc(2).$implicit;p.Cb(1),p.Sc(" ",p.ic(2,1,t.index,t)," ")}}function V(t,e){if(1&t&&(p.Ub(0,"section",4),p.Ub(1,"p",30),p.Qc(2),p.gc(3,"translate"),p.Tb(),p.Ub(4,"strong",31),p.Ub(5,"span"),p.Qc(6),p.gc(7,"sato"),p.Tb(),p.Qc(8),p.Ub(9,"span",32),p.Qc(10),p.gc(11,"asset"),p.Tb(),p.Tb(),p.Tb()),2&t){const t=e.ngIf,n=p.fc().ngLet;p.Cb(1),p.mc("sbDisabled",!n)("sbDelay",p.qc(14,D)),p.Cb(1),p.Sc(" ",p.hc(3,6,"LABEL.UNREALIZED_FUNDING"),": "),p.Cb(4),p.Sc(" ",p.jc(7,8,t.displayUnrealizedFunding,t.walletDisplayAsset,"full")," "),p.Cb(2),p.Sc(" "," "," "),p.Cb(2),p.Rc(p.hc(11,12,t.walletDisplayAsset))}}function $(t,e){if(1&t&&(p.Ub(0,"strong",31),p.Qc(1),p.gc(2,"crypto"),p.Tb()),2&t){const t=e.ngIfSome;p.Cb(1),p.Sc(" ",p.ic(2,1,t,"usd")," USD ")}}function H(t,e){if(1&t&&(p.Ub(0,"section",4),p.Ub(1,"p"),p.Qc(2),p.gc(3,"translate"),p.Tb(),p.Oc(4,$,3,4,"strong",33),p.gc(5,"async"),p.Tb()),2&t){const t=p.fc(3);p.Cb(2),p.Sc("",p.hc(3,2,"LABEL.30_DAY_USER_VOLUME"),":"),p.Cb(2),p.mc("ngIfSome",p.hc(5,4,t.userFeeVolume$))}}function q(t,e){if(1&t){const t=p.Vb();p.Ub(0,"strong",36),p.bc("click",(function(){return p.Ec(t),p.fc(4).openFeeSchedule()})),p.Qc(1),p.gc(2,"percent"),p.Tb()}if(2&t){const t=e.ngIfSome;p.Cb(1),p.Sc(" ",p.ic(2,1,t.maker,"1.4-4")," ")}}function Q(t,e){if(1&t&&(p.Ub(0,"section",4),p.Ub(1,"p"),p.Qc(2),p.gc(3,"translate"),p.Tb(),p.Pb(4,"a",34),p.Oc(5,q,3,4,"strong",35),p.gc(6,"async"),p.Tb()),2&t){const t=p.fc(3);p.Cb(2),p.Sc("",p.hc(3,2,"LABEL.USER_MAKER_FEE"),":"),p.Cb(3),p.mc("ngIfSome",p.hc(6,4,t.userFeeTier$))}}function W(t,e){if(1&t){const t=p.Vb();p.Ub(0,"strong",36),p.bc("click",(function(){return p.Ec(t),p.fc(4).openFeeSchedule()})),p.Qc(1),p.gc(2,"percent"),p.Tb()}if(2&t){const t=e.ngIfSome;p.Cb(1),p.Sc(" ",p.ic(2,1,t.taker,"1.4-4")," ")}}function G(t,e){if(1&t&&(p.Ub(0,"section",4),p.Ub(1,"p"),p.Qc(2),p.gc(3,"translate"),p.Tb(),p.Oc(4,W,3,4,"strong",35),p.gc(5,"async"),p.Tb()),2&t){const t=p.fc(3);p.Cb(2),p.Sc("",p.hc(3,2,"LABEL.USER_TAKER_FEE"),":"),p.Cb(2),p.mc("ngIfSome",p.hc(5,4,t.userFeeTier$))}}function Y(t,e){if(1&t&&(p.Ub(0,"section",3),p.Ub(1,"section",4),p.Ub(2,"p",5),p.Qc(3),p.gc(4,"translate"),p.Tb(),p.Ub(5,"strong"),p.Qc(6),p.gc(7,"cryptoAbbreviation"),p.Tb(),p.Tb(),p.Ub(8,"section",4),p.Ub(9,"p",6),p.Qc(10),p.gc(11,"translate"),p.Tb(),p.Ub(12,"a",7),p.gc(13,"supportArticle"),p.Qc(14),p.Tb(),p.Tb(),p.Ub(15,"section",4),p.Ub(16,"p",8),p.Qc(17),p.gc(18,"translate"),p.Tb(),p.Ub(19,"strong",9),p.Qc(20),p.gc(21,"number"),p.Tb(),p.Tb(),p.Ub(22,"section",4),p.Ub(23,"p",10),p.Qc(24),p.gc(25,"translate"),p.Tb(),p.Ub(26,"strong",9),p.Qc(27),p.gc(28,"number"),p.Tb(),p.Tb(),p.Oc(29,R,8,13,"section",11),p.Oc(30,j,8,13,"section",11),p.Oc(31,L,6,7,"section",11),p.Oc(32,N,8,13,"section",11),p.Oc(33,U,8,13,"section",11),p.Oc(34,F,6,7,"section",11),p.Ub(35,"section",4),p.Ub(36,"p",12),p.Qc(37),p.gc(38,"translate"),p.Tb(),p.Ub(39,"strong",13),p.Qc(40),p.gc(41,"change"),p.gc(42,"number"),p.Tb(),p.Tb(),p.Ub(43,"section",4),p.Ub(44,"p",14),p.Qc(45),p.gc(46,"translate"),p.Tb(),p.Oc(47,B,6,6,"a",15),p.Oc(48,z,3,4,"span",16),p.Tb(),p.Ub(49,"section",4),p.Ub(50,"p",17),p.Qc(51),p.gc(52,"translate"),p.Tb(),p.Ub(53,"strong",9),p.Qc(54),p.gc(55,"sato"),p.Tb(),p.Tb(),p.Ub(56,"section",4),p.Ub(57,"p",18),p.Qc(58),p.gc(59,"translate"),p.Tb(),p.Ub(60,"strong",9),p.Qc(61),p.gc(62,"sato"),p.Tb(),p.Tb(),p.Ub(63,"section",19),p.Ub(64,"p",20),p.Qc(65),p.gc(66,"translate"),p.Tb(),p.Ub(67,"strong",13),p.Qc(68),p.gc(69,"number"),p.Tb(),p.Tb(),p.Oc(70,V,12,15,"section",11),p.gc(71,"async"),p.Oc(72,H,6,6,"section",11),p.gc(73,"async"),p.Oc(74,Q,7,6,"section",11),p.gc(75,"async"),p.Oc(76,G,6,6,"section",11),p.gc(77,"async"),p.Tb()),2&t){const t=e.ngLet,n=p.fc().$implicit,i=p.fc();p.Cb(2),p.mc("sbDisabled",!t)("sbDelay",p.qc(99,D)),p.Cb(1),p.Sc(" ",p.hc(4,51,"LABEL.SYMBOL"),": "),p.Cb(3),p.Sc(" ",p.hc(7,53,n.product_id)," "),p.Cb(3),p.mc("sbDisabled",!t)("sbDelay",p.qc(100,D)),p.Cb(1),p.Sc(" ",p.hc(11,55,"LABEL.TYPE"),": "),p.Cb(2),p.mc("href",p.hc(13,57,i.instrumentSupport(n)),p.Gc),p.Cb(2),p.Tc(" ",i.instrumentGroup(n)," ",i.isPerpetual(n)?"Perpetuals":"Futures"," "),p.Cb(2),p.mc("sbDisabled",!t)("sbDelay",p.qc(101,D)),p.Cb(1),p.Sc(" ",p.hc(18,59,"LABEL.VOLUME"),": "),p.Cb(3),p.Sc(" ",p.hc(21,61,n.volume)," "),p.Cb(3),p.mc("sbDisabled",!t)("sbDelay",p.qc(102,D)),p.Cb(1),p.Sc(" ",p.hc(25,63,"LABEL.OPEN_INTEREST"),": "),p.Cb(3),p.Sc(" ",p.hc(28,65,n.openInterest)," "),p.Cb(2),p.mc("ngIf",!i.isPerpetual(n)),p.Cb(1),p.mc("ngIf",!i.isPerpetual(n)),p.Cb(1),p.mc("ngIf",!i.isPerpetual(n)),p.Cb(1),p.mc("ngIf",i.isPerpetual(n)),p.Cb(1),p.mc("ngIf",i.isPerpetual(n)),p.Cb(1),p.mc("ngIf",i.isPerpetual(n)),p.Cb(2),p.mc("sbDisabled",!t)("sbDelay",p.qc(103,D)),p.Cb(1),p.Sc(" ",p.hc(38,67,"COLUMN.24H_CHANGE"),": "),p.Cb(2),p.mc("pnl",n.change),p.Cb(1),p.Sc("",p.hc(41,69,p.ic(42,71,n.change,"1.1-1")),"%"),p.Cb(4),p.mc("sbDisabled",!t)("sbDelay",p.qc(104,D)),p.Cb(1),p.Sc(" ",p.hc(46,74,"LABEL.MARK_INDEX"),": "),p.Cb(2),p.mc("ngIf",i.isRegulatedIndex(n)),p.Cb(1),p.mc("ngIf",!i.isRegulatedIndex(n)),p.Cb(2),p.mc("sbDisabled",!t)("sbDelay",p.qc(105,D)),p.Cb(1),p.Sc(" ",p.hc(52,76,"LABEL.MID_PRICE"),": "),p.Cb(3),p.Sc(" ",p.ic(55,78,i.getMid(n),n)," "),p.Cb(3),p.mc("sbDisabled",!t)("sbDelay",p.qc(106,D)),p.Cb(1),p.Sc(" ",p.hc(59,81,"LABEL.MARK_PRICE"),": "),p.Cb(3),p.Sc(" ",p.ic(62,83,n.markPrice,n)," "),p.Cb(3),p.mc("sbDisabled",!t)("sbDelay",p.qc(107,D)),p.Cb(1),p.Sc(" ",p.hc(66,86,"LABEL.PREMIUM"),": "),p.Cb(2),p.mc("pnl",n.premium),p.Cb(1),p.Sc("",p.ic(69,88,n.premium,"1.1-1"),"%"),p.Cb(2),p.mc("ngIf","perpetual"===n.tag&&p.hc(71,91,i.position$)),p.Cb(2),p.mc("ngIf",p.hc(73,93,i.userSignedIn$)),p.Cb(2),p.mc("ngIf",p.hc(75,95,i.userSignedIn$)),p.Cb(2),p.mc("ngIf",p.hc(77,97,i.userSignedIn$))}}function K(t,e){if(1&t&&(p.Sb(0),p.Oc(1,Y,78,108,"section",2),p.gc(2,"async"),p.Rb()),2&t){const t=p.fc();p.Cb(1),p.mc("ngLet",p.hc(2,1,t.displayTooltips$))}}function Z(t,e){1&t&&p.Pb(0,"kraken-loading")}let X=(()=>{class t{constructor(t){this.store=t,this.userSignedIn$=this.store.pipe(Object(i.m)(h.m)),this.selectedTicker$=this.store.pipe(Object(i.m)(l.p)),this.position$=this.store.pipe(Object(i.m)(u.g)),this.displayTooltips$=this.store.pipe(Object(i.m)(h.y)),this.userFeeVolume$=this.store.pipe(Object(i.m)(h.x)),this.userFeeTier$=this.store.pipe(Object(i.m)(h.v),Object(s.j)(t=>({maker:t[0].makerFee/100,taker:t[0].takerFee/100})))}getFundingRates(t){this.store.dispatch(Object(c.j)({symbol:t}))}openAllMarketsDialog(){this.store.dispatch(Object(a.g)({name:"markets-overview"}))}openFeeSchedule(){this.store.dispatch(Object(a.g)({name:"fee-schedule"}))}isRegulatedIndex(t){return"F"!==t.product_id[1]}instrumentGroup(t){if(!t)return"-";const e=t.product_id;return Object(o.a)(e)?"linear":e.startsWith("FI")||e.startsWith("PI")?"inverse":"vanilla"}instrumentSupport(t){const e=t.product_id;return Object(o.a)(e)?"4844359082772":"360022835911"}isPerpetual(t){return!!t&&"perpetual"===t.tag}getSettlementTime(t){if(t)return Object(r.h)(t,!0)}getRTIName(t){return d(t)}getRTILink(t){return`http://www.cfbenchmarks.com/indices/${d(t)}/`}contractMid(t){return Object(o.j)(t)}getMid(t){return Object(o.j)(t)}}return t.\u0275fac=function(e){return new(e||t)(p.Ob(i.b))},t.\u0275cmp=p.Ib({type:t,selectors:[["market-details"]],decls:4,vars:4,consts:[[4,"ngIf","ngIfElse"],["loading",""],["body","","class","details",4,"ngLet"],["body","",1,"details"],[1,"detail"],["tooltip","","sbTooltip","TOOLTIP.INSTRUMENT_SYMBOL",3,"sbDisabled","sbDelay"],["tooltip","","sbTooltip","TOOLTIP.INSTRUMENT_TYPE",3,"sbDisabled","sbDelay"],["target","_blank",1,"global__text--link",3,"href"],["tooltip","","sbTooltip","TOOLTIP.24H_VOLUME",3,"sbDisabled","sbDelay"],["mono",""],["tooltip","","sbTooltip","TOOLTIP.OPEN_INTEREST",3,"sbDisabled","sbDelay"],["class","detail",4,"ngIf"],["tooltip","","sbTooltip","TOOLTIP.24H_CHANGE",3,"sbDisabled","sbDelay"],[3,"pnl"],["tooltip","","sbTooltip","TOOLTIP.MARK_INDEX",3,"sbDisabled","sbDelay"],["target","_blank","class","global__text--link",3,"href",4,"ngIf"],["mono","",4,"ngIf"],["tooltip","","sbTooltip","TOOLTIP.MID_PRICE",3,"sbDisabled","sbDelay"],["tooltip","","sbTooltip","TOOLTIP.MARK_PRICE",3,"sbDisabled","sbDelay"],[1,"detail","detail--premium"],["tooltip","","sbTooltip","TOOLTIP.PREMIUM",3,"sbDisabled","sbDelay"],["tooltip","","sbTooltip","TOOLTIP.MATURITY_DATE",3,"sbDisabled","sbDelay"],["mono","","target","_blank",1,"global__text--link",3,"href"],["tooltip","","sbTooltip","TOOLTIP.MATURITY_TIME",3,"sbDisabled","sbDelay"],["tooltip","","sbTooltip","TOOLTIP.SETTLEMENT",3,"sbDisabled","sbDelay"],["tooltip","","sbTooltip","TOOLTIP.FUNDING_RATE",3,"sbDisabled","sbDelay"],["mono","",1,"global__text--link",3,"click"],["tooltip","","sbTooltip","TOOLTIP.NEXT_RATE",3,"sbDisabled","sbDelay"],["tooltip","","sbTooltip","TOOLTIP.NEXT_RATE_TIME",3,"sbDisabled","sbDelay"],["src","assets/images/cfb.png","alt","cfb",1,"cfb"],["tooltip","","sbTooltip","TOOLTIP.UNREALIZED_FUNDING",3,"sbDisabled","sbDelay"],["mono","","nobr",""],["ghost",""],["mono","","nobr","",4,"ngIfSome"],["href",""],["mono","","nobr","","class","global__text--link",3,"click",4,"ngIfSome"],["mono","","nobr","",1,"global__text--link",3,"click"]],template:function(t,e){if(1&t&&(p.Oc(0,K,3,3,"ng-container",0),p.gc(1,"async"),p.Oc(2,Z,1,0,"ng-template",null,1,p.Pc)),2&t){const t=p.Ac(3);p.mc("ngIf",p.hc(1,2,e.selectedTicker$))("ngIfElse",t)}},directives:[f.n,b.a,g.a,m.a,v.a,_.a,y.a,O.a,C.a,w.a,T.a,S.a,k.a],pipes:[f.b,E.d,x.a,P.a,f.f,A.b,I.c,f.e,f.u,M.a,I.a],styles:["[_nghost-%COMP%]{display:block;padding:var(--spacing);overflow:auto}.details[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,minmax(40ch,1fr));gap:var(--spacing-s) var(--spacing-l)}.detail[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:var(--spacing-s) 0}.detail[_ngcontent-%COMP%]:not(:last-of-type){border-bottom:1px dashed var(--border-colour-dark)}.detail[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-transform:capitalize}.cfb[_ngcontent-%COMP%]{width:20px;margin-right:var(--spacing-s)}"],changeDetection:0}),t})()},OHEV:function(t,e,n){var i=n("u9MN"),r=n("Wzsi"),s=n("1aiz"),o=n("TuP6");function a(t,e,n,s,o){var a=[].slice.call(arguments,1),c=a.length,l="function"==typeof a[c-1];if(!l&&!i())throw new Error("Callback required as last argument");if(!l){if(c<1)throw new Error("Too few arguments provided");return 1===c?(n=e,e=s=void 0):2!==c||e.getContext||(s=n,n=e,e=void 0),new Promise((function(i,o){try{var a=r.create(n,s);i(t(a,e,s))}catch(c){o(c)}}))}if(c<2)throw new Error("Too few arguments provided");2===c?(o=n,n=e,e=s=void 0):3===c&&(e.getContext&&void 0===o?(o=s,s=void 0):(o=s,s=n,n=e,e=void 0));try{var u=r.create(n,s);o(null,t(u,e,s))}catch(h){o(h)}}e.create=r.create,e.toCanvas=a.bind(null,s.render),e.toDataURL=a.bind(null,s.renderToDataURL),e.toString=a.bind(null,(function(t,e,n){return o.render(t,n)}))},OX2b:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s=n("4Pxi"),o=n("ZCEf"),a=n("iiuT"),c=n("aEDl"),l=n("VYrj"),u=n("LqyJ");e.default=function(t){function e(e){var n=t.call(this)||this,i=null==e?null:e.get(o.default.POSSIBLE_FORMATS),r=[];return null!=i&&(i.indexOf(s.default.EAN_13)>-1&&r.push(new c.default),i.indexOf(s.default.EAN_8)>-1&&r.push(new l.default)),0===r.length&&(r.push(new c.default),r.push(new l.default)),n.readers=r,n}return r(e,t),e.prototype.decodeRow=function(t,e,n){for(var i=0,r=this.readers;in.lift(new s(t,e))}class s{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new o(t,this.compare,this.keySelector))}}class o extends i.a{constructor(t,e,n){super(t),this.keySelector=n,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:n}=this;e=n?n(t):t}catch(i){return this.destination.error(i)}let n=!1;if(this.hasKey)try{const{compare:t}=this;n=t(this.key,e)}catch(i){return this.destination.error(i)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))}}},Oj3S:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("kZht");n("VmIW");class r{constructor(){this.$implicit=null,this.ngIfSome=null}}function s(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Object(i.xb)(e)}'.`)}let o=(()=>{class t{constructor(t,e){this.vcr=t,this.context=new r,this.thenTemplateRef=null,this.elseTemplateRef=null,this.thenViewRef=null,this.elseViewRef=null,this.thenTemplateRef=e}set ngIfSome(t){this.context.$implicit=this.context.ngIfSome=null==t?void 0:t.orUndefined(),this.updateView()}set ngIfSomeThen(t){s("ngIfSomeThen",t),this.thenTemplateRef=t,this.thenViewRef=null,this.updateView()}set ngIfSomeElse(t){s("ngIfSomeElse",t),this.elseTemplateRef=t,this.elseViewRef=null,this.updateView()}updateView(){void 0!==this.context.$implicit?this.thenViewRef||(this.vcr.clear(),this.elseViewRef=null,this.thenTemplateRef&&(this.thenViewRef=this.vcr.createEmbeddedView(this.thenTemplateRef,this.context))):this.elseViewRef||(this.vcr.clear(),this.thenViewRef=null,this.elseTemplateRef&&(this.elseViewRef=this.vcr.createEmbeddedView(this.elseTemplateRef,this.context)))}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.R),i.Ob(i.N))},t.\u0275dir=i.Jb({type:t,selectors:[["","ngIfSome",""]],inputs:{ngIfSome:"ngIfSome",ngIfSomeThen:"ngIfSomeThen",ngIfSomeElse:"ngIfSomeElse"}}),t})()},OpOv:function(t,e){function n(t,n,i){switch(t){case e.Patterns.PATTERN000:return(n+i)%2==0;case e.Patterns.PATTERN001:return n%2==0;case e.Patterns.PATTERN010:return i%3==0;case e.Patterns.PATTERN011:return(n+i)%3==0;case e.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(i/3))%2==0;case e.Patterns.PATTERN101:return n*i%2+n*i%3==0;case e.Patterns.PATTERN110:return(n*i%2+n*i%3)%2==0;case e.Patterns.PATTERN111:return(n*i%3+(n+i)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}}e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},e.isValid=function(t){return null!=t&&""!==t&&!isNaN(t)&&t>=0&&t<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(t){for(var e=t.size,n=0,i=0,r=0,s=null,o=null,a=0;a=5&&(n+=i-5+3),s=l,i=1),(l=t.get(c,a))===o?r++:(r>=5&&(n+=r-5+3),o=l,r=1)}i>=5&&(n+=i-5+3),r>=5&&(n+=r-5+3)}return n},e.getPenaltyN2=function(t){for(var e=t.size,n=0,i=0;i=10&&(1488===i||93===i)&&n++,r=r<<1&2047|t.get(o,s),o>=10&&(1488===r||93===r)&&n++}return 40*n},e.getPenaltyN4=function(t){for(var e=0,n=t.data.length,i=0;i{class t{constructor(t){this.env=t,this.locales=[{code:"ar",display:"\u0639\u0631\u0628\u0649"},{code:"de",display:"Deutsch"},{code:"en",display:"English"},{code:"es",display:"Espa\xf1ol"},{code:"fr",display:"Fran\xe7ais"},{code:"it",display:"Italiano"},{code:"he",display:"\u05e2\u05d1\u05e8\u05d9\u05ea"},{code:"ja",display:"\u65e5\u672c\u8a9e"},{code:"ko",display:"\ud55c\uad6d\uc5b4"},{code:"pt",display:"Portugu\xeas"},{code:"ru",display:"\u0440\u0443\u0441\u0441\u043a\u0438\u0439"},{code:"tr",display:"T\xfcrk\xe7e"},{code:"zh",display:"\u4e2d\u6587"}],this.updateLanguage=new i.o}get availableLanguages(){return this.locales.filter(t=>this.localeSupported(t.code))}localeSupported(t){return this.env.locales.includes(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(r.a))},t.\u0275cmp=i.Ib({type:t,selectors:[["language-menu"]],inputs:{currentLanguage:"currentLanguage"},outputs:{updateLanguage:"updateLanguage"},ngContentSelectors:u,decls:5,vars:2,consts:[[3,"sbMenuTriggerFor"],["desktopLanguageMenu",""],["sb-menu-item","",3,"click",4,"ngFor","ngForOf"],["sb-menu-item","",3,"click"]],template:function(t,e){if(1&t&&(i.lc(),i.Ub(0,"span",0),i.kc(1),i.Tb(),i.Ub(2,"sb-menu",null,1),i.Oc(4,l,2,1,"button",2),i.Tb()),2&t){const t=i.Ac(3);i.mc("sbMenuTriggerFor",t),i.Cb(4),i.mc("ngForOf",e.availableLanguages)}},directives:[s.b,o.a,a.m,c.a],styles:["@media (max-width:1024px){.desktop-btn[_ngcontent-%COMP%]{display:none}.mobile-btn[_ngcontent-%COMP%]{margin-bottom:var(--spacing)}}@media (min-width:1025px){.mobile-btn[_ngcontent-%COMP%]{display:none}}"],changeDetection:0}),t})()},P0Um:function(t,e,n){"use strict";n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return u}));var i=n("fvDn"),r=n("TYVA"),s=n("mlVJ"),o=n("kZht");const a=/s-([a-z]+)/i,c=/(?:[fm]-)?([a-z]+):([a-z]+)/i;let l=(()=>{class t{constructor(t){this.cryptoName=t}transform(t){if(!t)return t;if(t.includes("FLEX-"))return t.split("FLEX-")[1];const e=a.exec(t);if(e){const[,t]=e;return t.toUpperCase().replace(s.b,"BTC")}const n=c.exec(t);if(n){const[,t,e]=n;return`${t.toUpperCase()}${r.b}${e.toUpperCase()}`.replace(s.b,"BTC")}return this.cryptoName.transform(t)}}return t.\u0275fac=function(e){return new(e||t)(o.Ob(i.b))},t.\u0275pipe=o.Nb({name:"walletName",type:t,pure:!0}),t})(),u=(()=>{class t{transform(t){return"futures"===t?"Single Collateral Futures":"flex"===t?"Multi-Collateral Futures":"holding"===t?"Holding":t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=o.Nb({name:"walletType",type:t,pure:!0}),t})()},P0Wc:function(t,e,n){t.exports=n("uI6G").default,t.exports.default=t.exports},P0vk:function(t,e,n){"use strict";n.d(e,"a",(function(){return V})),n.d(e,"b",(function(){return H})),n.d(e,"c",(function(){return z})),n.d(e,"d",(function(){return Q}));var i=n("O1jd"),r=n("VbQ3"),s=n("An66"),o=n("kZht"),a=n("pTnX"),c=n("jL3B"),l=n("vE5V"),u=n("5XID"),h=n("Hq54"),d=n("ZTXN"),p=n("KTx3"),f=n("g6G6"),b=n("xVbo"),g=n("YtkY"),m=n("7SLS"),v=n("kuMc"),_=n("Ohay"),y=n("J+dc"),O=n("jIqt"),C=n("mWib"),w=n("+6xv"),T=n("FxgA");const S=["*"];function k(t,e){if(1&t){const t=o.Vb();o.Ub(0,"div",2),o.bc("click",(function(){return o.Ec(t),o.fc()._onBackdropClicked()})),o.Tb()}if(2&t){const t=o.fc();o.Gb("mat-drawer-shown",t._isShowingBackdrop())}}function E(t,e){1&t&&(o.Ub(0,"mat-drawer-content"),o.kc(1,2),o.Tb())}const x=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],P=["mat-drawer","mat-drawer-content","*"];function A(t,e){if(1&t){const t=o.Vb();o.Ub(0,"div",2),o.bc("click",(function(){return o.Ec(t),o.fc()._onBackdropClicked()})),o.Tb()}if(2&t){const t=o.fc();o.Gb("mat-drawer-shown",t._isShowingBackdrop())}}function I(t,e){1&t&&(o.Ub(0,"mat-sidenav-content",3),o.kc(1,2),o.Tb())}const M=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],D=["mat-sidenav","mat-sidenav-content","*"],R=".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n",j={transformDrawer:Object(w.n)("transform",[Object(w.k)("open, open-instant",Object(w.l)({transform:"none",visibility:"visible"})),Object(w.k)("void",Object(w.l)({"box-shadow":"none",visibility:"hidden"})),Object(w.m)("void => open-instant",Object(w.e)("0ms")),Object(w.m)("void <=> open, open-instant => void",Object(w.e)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},L=new o.s("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),N=new o.s("MAT_DRAWER_CONTAINER");let U=(()=>{class t extends r.b{constructor(t,e,n,i,r){super(n,i,r),this._changeDetectorRef=t,this._container=e}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(o.Ob(o.h),o.Ob(Object(o.V)(()=>B)),o.Ob(o.l),o.Ob(r.f),o.Ob(o.B))},t.\u0275cmp=o.Ib({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,e){2&t&&o.Lc("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[o.zb],ngContentSelectors:S,decls:1,vars:0,template:function(t,e){1&t&&(o.lc(),o.kc(0))},encapsulation:2,changeDetection:0}),t})(),F=(()=>{class t{constructor(t,e,n,i,r,s,a){this._elementRef=t,this._focusTrapFactory=e,this._focusMonitor=n,this._platform=i,this._ngZone=r,this._doc=s,this._container=a,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new d.b,this._animationEnd=new d.b,this._animationState="void",this.openedChange=new o.o(!0),this._openedStream=this.openedChange.pipe(Object(b.a)(t=>t),Object(g.a)(()=>{})),this.openedStart=this._animationStarted.pipe(Object(b.a)(t=>t.fromState!==t.toState&&0===t.toState.indexOf("open")),Object(m.a)(void 0)),this._closedStream=this.openedChange.pipe(Object(b.a)(t=>!t),Object(g.a)(()=>{})),this.closedStart=this._animationStarted.pipe(Object(b.a)(t=>t.fromState!==t.toState&&"void"===t.toState),Object(m.a)(void 0)),this._destroyed=new d.b,this.onPositionChanged=new o.o,this._modeChanged=new d.b,this.openedChange.subscribe(t=>{t?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus()}),this._ngZone.runOutsideAngular(()=>{Object(p.a)(this._elementRef.nativeElement,"keydown").pipe(Object(b.a)(t=>t.keyCode===h.f&&!this.disableClose&&!Object(h.r)(t)),Object(v.a)(this._destroyed)).subscribe(t=>this._ngZone.run(()=>{this.close(),t.stopPropagation(),t.preventDefault()}))}),this._animationEnd.pipe(Object(_.a)((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{const{fromState:e,toState:n}=t;(0===n.indexOf("open")&&"void"===e||"void"===n&&0===e.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(t){(t="end"===t?"end":"start")!=this._position&&(this._position=t,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(t){this._mode=t,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(t){this._disableClose=Object(u.c)(t)}get autoFocus(){const t=this._autoFocus;return null==t?"side"!==this.mode:t}set autoFocus(t){this._autoFocus=Object(u.c)(t)}get opened(){return this._opened}set opened(t){this.toggle(Object(u.c)(t))}_takeFocus(){this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then(t=>{t||"function"!=typeof this._elementRef.nativeElement.focus||this._elementRef.nativeElement.focus()})}_restoreFocus(){this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null)}_isFocusWithinDrawer(){var t;const e=null===(t=this._doc)||void 0===t?void 0:t.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterContentInit(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(t){return this.toggle(!0,t)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0)}toggle(t=!this.opened,e){return this._setOpen(t,!t&&this._isFocusWithinDrawer(),e)}_setOpen(t,e,n="program"){return this._opened=t,t?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=n):(this._animationState="void",e&&this._restoreFocus()),this._updateFocusTrapState(),new Promise(t=>{this.openedChange.pipe(Object(y.a)(1)).subscribe(e=>t(e?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_animationStartListener(t){this._animationStarted.next(t)}_animationDoneListener(t){this._animationEnd.next(t)}}return t.\u0275fac=function(e){return new(e||t)(o.Ob(o.l),o.Ob(c.i),o.Ob(c.h),o.Ob(i.a),o.Ob(o.B),o.Ob(s.d,8),o.Ob(N,8))},t.\u0275cmp=o.Ib({type:t,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,e){1&t&&o.Mc("@transform.start",(function(t){return e._animationStartListener(t)}))("@transform.done",(function(t){return e._animationDoneListener(t)})),2&t&&(o.Db("align",null),o.Nc("@transform",e._animationState),o.Gb("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:S,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(o.lc(),o.Ub(0,"div",0),o.kc(1),o.Tb())},encapsulation:2,data:{animation:[j.transformDrawer]},changeDetection:0}),t})(),B=(()=>{class t{constructor(t,e,n,i,r,s=!1,a){this._dir=t,this._element=e,this._ngZone=n,this._changeDetectorRef=i,this._animationMode=a,this._drawers=new o.F,this.backdropClick=new o.o,this._destroyed=new d.b,this._doCheckSubject=new d.b,this._contentMargins={left:null,right:null},this._contentMarginChanges=new d.b,t&&t.change.pipe(Object(v.a)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),r.change().pipe(Object(v.a)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=s}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(t){this._autosize=Object(u.c)(t)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(t){this._backdropOverride=null==t?null:Object(u.c)(t)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(Object(O.a)(this._allDrawers),Object(v.a)(this._destroyed)).subscribe(t=>{this._drawers.reset(t.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Object(O.a)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(t=>{this._watchDrawerToggle(t),this._watchDrawerPosition(t),this._watchDrawerMode(t)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe(Object(C.a)(10),Object(v.a)(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(t=>t.open())}close(){this._drawers.forEach(t=>t.close())}updateContentMargins(){let t=0,e=0;if(this._left&&this._left.opened)if("side"==this._left.mode)t+=this._left._getWidth();else if("push"==this._left.mode){const n=this._left._getWidth();t+=n,e-=n}if(this._right&&this._right.opened)if("side"==this._right.mode)e+=this._right._getWidth();else if("push"==this._right.mode){const n=this._right._getWidth();e+=n,t-=n}t=t||null,e=e||null,t===this._contentMargins.left&&e===this._contentMargins.right||(this._contentMargins={left:t,right:e},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(t){t._animationStarted.pipe(Object(b.a)(t=>t.fromState!==t.toState),Object(v.a)(this._drawers.changes)).subscribe(t=>{"open-instant"!==t.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==t.mode&&t.openedChange.pipe(Object(v.a)(this._drawers.changes)).subscribe(()=>this._setContainerClass(t.opened))}_watchDrawerPosition(t){t&&t.onPositionChanged.pipe(Object(v.a)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe(Object(y.a)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(t){t&&t._modeChanged.pipe(Object(v.a)(Object(f.a)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(t){const e=this._element.nativeElement.classList,n="mat-drawer-container-has-open";t?e.add(n):e.remove(n)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(t=>{"end"==t.position?this._end=t:this._start=t}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(t=>t&&!t.disableClose&&this._canHaveBackdrop(t)).forEach(t=>t._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(t){return"side"!==t.mode||!!this._backdropOverride}_isDrawerOpen(t){return null!=t&&t.opened}}return t.\u0275fac=function(e){return new(e||t)(o.Ob(l.b,8),o.Ob(o.l),o.Ob(o.B),o.Ob(o.h),o.Ob(r.h),o.Ob(L),o.Ob(T.a,8))},t.\u0275cmp=o.Ib({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(t,e,n){var i;1&t&&(o.Hb(n,U,!0),o.Hb(n,F,!0)),2&t&&(o.zc(i=o.cc())&&(e._content=i.first),o.zc(i=o.cc())&&(e._allDrawers=i))},viewQuery:function(t,e){var n;1&t&&o.Wc(U,!0),2&t&&o.zc(n=o.cc())&&(e._userContent=n.first)},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,e){2&t&&o.Gb("mat-drawer-container-explicit-backdrop",e._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[o.Bb([{provide:N,useExisting:t}])],ngContentSelectors:P,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(t,e){1&t&&(o.lc(x),o.Oc(0,k,1,2,"div",0),o.kc(1),o.kc(2,1),o.Oc(3,E,2,0,"mat-drawer-content",1)),2&t&&(o.mc("ngIf",e.hasBackdrop),o.Cb(3),o.mc("ngIf",!e._content))},directives:[s.n,U],styles:[R],encapsulation:2,changeDetection:0}),t})(),z=(()=>{class t extends U{constructor(t,e,n,i,r){super(t,e,n,i,r)}}return t.\u0275fac=function(e){return new(e||t)(o.Ob(o.h),o.Ob(Object(o.V)(()=>H)),o.Ob(o.l),o.Ob(r.f),o.Ob(o.B))},t.\u0275cmp=o.Ib({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(t,e){2&t&&o.Lc("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[o.zb],ngContentSelectors:S,decls:1,vars:0,template:function(t,e){1&t&&(o.lc(),o.kc(0))},encapsulation:2,changeDetection:0}),t})(),V=(()=>{class t extends F{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(t){this._fixedInViewport=Object(u.c)(t)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(t){this._fixedTopGap=Object(u.f)(t)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(t){this._fixedBottomGap=Object(u.f)(t)}}return t.\u0275fac=function(e){return $(e||t)},t.\u0275cmp=o.Ib({type:t,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(t,e){2&t&&(o.Db("align",null),o.Lc("top",e.fixedInViewport?e.fixedTopGap:null,"px")("bottom",e.fixedInViewport?e.fixedBottomGap:null,"px"),o.Gb("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened)("mat-sidenav-fixed",e.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[o.zb],ngContentSelectors:S,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(o.lc(),o.Ub(0,"div",0),o.kc(1),o.Tb())},encapsulation:2,data:{animation:[j.transformDrawer]},changeDetection:0}),t})();const $=o.Wb(V);let H=(()=>{class t extends B{}return t.\u0275fac=function(e){return q(e||t)},t.\u0275cmp=o.Ib({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(t,e,n){var i;1&t&&(o.Hb(n,z,!0),o.Hb(n,V,!0)),2&t&&(o.zc(i=o.cc())&&(e._content=i.first),o.zc(i=o.cc())&&(e._allDrawers=i))},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(t,e){2&t&&o.Gb("mat-drawer-container-explicit-backdrop",e._backdropOverride)},exportAs:["matSidenavContainer"],features:[o.Bb([{provide:N,useExisting:t}]),o.zb],ngContentSelectors:D,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(t,e){1&t&&(o.lc(M),o.Oc(0,A,1,2,"div",0),o.kc(1),o.kc(2,1),o.Oc(3,I,2,0,"mat-sidenav-content",1)),2&t&&(o.mc("ngIf",e.hasBackdrop),o.Cb(3),o.mc("ngIf",!e._content))},directives:[s.n,z,r.b],styles:[R],encapsulation:2,changeDetection:0}),t})();const q=o.Wb(H);let Q=(()=>{class t{}return t.\u0275mod=o.Mb({type:t}),t.\u0275inj=o.Lb({factory:function(e){return new(e||t)},imports:[[s.c,a.j,i.b,r.c],r.c,a.j]}),t})()},P4Xx:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var i=n("IdLP"),r=n("FU6l"),s=n("YtkY"),o=n("X0qr"),a=n("GoAz");function c(...t){if(1===t.length){const e=t[0];if(Object(r.a)(e))return l(e,null);if(Object(o.a)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return l(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return l(t=1===t.length&&Object(r.a)(t[0])?t[0]:t,null).pipe(Object(s.a)(t=>e(...t)))}return l(t,null)}function l(t,e){return new i.a(n=>{const i=t.length;if(0===i)return void n.complete();const r=new Array(i);let s=0,o=0;for(let c=0;c{u||(u=!0,o++),r[c]=t},error:t=>n.error(t),complete:()=>{s++,s!==i&&u||(o===i&&n.next(e?e.reduce((t,e,n)=>(t[e]=r[n],t),{}):r),n.complete())}}))}})}},PDjX:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("ZCEf"),r=n("y1Fj");e.default=function(){function t(){}return t.prototype.StringUtils=function(){},t.guessEncoding=function(e,n){if(null!=n&&void 0!==n.get(i.default.CHARACTER_SET))return n.get(i.default.CHARACTER_SET).toString();for(var r=e.length,s=!0,o=!0,a=!0,c=0,l=0,u=0,h=0,d=0,p=0,f=0,b=0,g=0,m=0,v=0,_=e.length>3&&239===e[0]&&187===e[1]&&191===e[2],y=0;y0?0==(128&O)?a=!1:c--:0!=(128&O)&&(0==(64&O)?a=!1:(c++,0==(32&O)?l++:(c++,0==(16&O)?u++:(c++,0==(8&O)?h++:a=!1))))),s&&(O>127&&O<160?s=!1:O>159&&(O<192||215===O||247===O)&&v++),o&&(d>0?O<64||127===O||O>252?o=!1:d--:128===O||160===O||O>239?o=!1:O>160&&O<224?(p++,b=0,++f>g&&(g=f)):O>127?(d++,f=0,++b>m&&(m=b)):(f=0,b=0))}return a&&c>0&&(a=!1),o&&d>0&&(o=!1),a&&(_||l+u+h>0)?t.UTF8:o&&(t.ASSUME_SHIFT_JIS||g>=3||m>=3)?t.SHIFT_JIS:s&&o?2===g&&2===p||10*v>=r?t.SHIFT_JIS:t.ISO88591:s?t.ISO88591:o?t.SHIFT_JIS:a?t.UTF8:t.PLATFORM_DEFAULT_ENCODING},t.SHIFT_JIS=r.default.SJIS.getName(),t.GB2312="GB2312",t.ISO88591=r.default.ISO8859_1.getName(),t.EUC_JP="EUC_JP",t.UTF8=r.default.UTF8.getName(),t.PLATFORM_DEFAULT_ENCODING=t.UTF8,t.ASSUME_SHIFT_JIS=!1,t}()},PNff:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})()},PSEG:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("Qkwj"),r=n("qArU"),s=n("e9V9"),o=n("dyLe"),a=n("va0y"),c=n("LqyJ");e.default=function(){function t(t){this.image=t,this.rectangleDetector=new a.default(t)}return t.prototype.detect=function(){var e=this.rectangleDetector.detect(),n=e[0],s=e[1],o=e[2],a=e[3],u=[];u.push(this.transitionsBetween(n,s)),u.push(this.transitionsBetween(n,o)),u.push(this.transitionsBetween(s,a)),u.push(this.transitionsBetween(o,a)),u.sort(l.resultPointsAndTransitionsComparator);var h=u[0],d=u[1],p=new Map;t.increment(p,h.getFrom()),t.increment(p,h.getTo()),t.increment(p,d.getFrom()),t.increment(p,d.getTo());for(var f=null,b=null,g=null,m=0,v=Array.from(p.entries());m=7*(x+=2)||4*x>=7*E)null==(k=this.correctTopRightRectangular(b,C,T,w,E,x))&&(k=w),1==(1&(E=this.transitionsBetween(T,k).getTransitions()))&&E++,1==(1&(x=this.transitionsBetween(C,k).getTransitions()))&&x++,S=t.sampleGrid(this.image,T,b,C,k,E,x);else{var P=Math.min(x,E);null==(k=this.correctTopRight(b,C,T,w,P))&&(k=w);var A=Math.max(this.transitionsBetween(T,k).getTransitions(),this.transitionsBetween(C,k).getTransitions());1==(1&++A)&&A++,S=t.sampleGrid(this.image,T,b,C,k,A,A)}return new r.default(S,[T,b,C,k])},t.prototype.correctTopRightRectangular=function(e,n,r,s,o,a){var c=t.distance(e,n)/o,l=t.distance(r,s),u=(s.getX()-r.getX())/l,h=(s.getY()-r.getY())/l,d=new i.default(s.getX()+c*u,s.getY()+c*h);c=t.distance(e,r)/a,l=t.distance(n,s),u=(s.getX()-n.getX())/l,h=(s.getY()-n.getY())/l;var p=new i.default(s.getX()+c*u,s.getY()+c*h);return this.isValid(d)?this.isValid(p)?Math.abs(o-this.transitionsBetween(r,d).getTransitions())+Math.abs(a-this.transitionsBetween(n,d).getTransitions())<=Math.abs(o-this.transitionsBetween(r,p).getTransitions())+Math.abs(a-this.transitionsBetween(n,p).getTransitions())?d:p:d:this.isValid(p)?p:null},t.prototype.correctTopRight=function(e,n,r,s,o){var a=t.distance(e,n)/o,c=t.distance(r,s),l=(s.getX()-r.getX())/c,u=(s.getY()-r.getY())/c,h=new i.default(s.getX()+a*l,s.getY()+a*u);a=t.distance(e,r)/o,c=t.distance(n,s),l=(s.getX()-n.getX())/c,u=(s.getY()-n.getY())/c;var d=new i.default(s.getX()+a*l,s.getY()+a*u);return this.isValid(h)?this.isValid(d)?Math.abs(this.transitionsBetween(r,h).getTransitions()-this.transitionsBetween(n,h).getTransitions())<=Math.abs(this.transitionsBetween(r,d).getTransitions()-this.transitionsBetween(n,d).getTransitions())?h:d:h:this.isValid(d)?d:null},t.prototype.isValid=function(t){return t.getX()>=0&&t.getX()0&&t.getY()Math.abs(r-n);if(o){var a=n;n=i,i=a,a=r,r=s,s=a}for(var c=Math.abs(r-n),u=Math.abs(s-i),h=-c/2,d=i0){if(m===s)break;m+=d,h-=c}}return new l(t,e,f)},t}();var l=function(){function t(t,e,n){this.from=t,this.to=e,this.transitions=n}return t.prototype.getFrom=function(){return this.from},t.prototype.getTo=function(){return this.to},t.prototype.getTransitions=function(){return this.transitions},t.prototype.toString=function(){return this.from+"/"+this.to+"/"+this.transitions},t.resultPointsAndTransitionsComparator=function(t,e){return t.getTransitions()-e.getTransitions()},t}()},PdLq:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("n5WT"),r=n("ooS/"),s=n("686E");e.default=function(){function t(){}return t.decodeRow=function(t,e,n){var o=i.default.findGuardPattern(e,n,!1,this.EXTENSION_START_PATTERN,new Array(this.EXTENSION_START_PATTERN.length).fill(0));try{return(new r.default).decodeRow(t,e,o)}catch(a){return(new s.default).decodeRow(t,e,o)}},t.EXTENSION_START_PATTERN=[1,1,2],t}()},PqQh:function(t,e,n){var i=n("yBEi").getSymbolSize;e.getRowColCoords=function(t){if(1===t)return[];for(var e=Math.floor(t/7)+2,n=i(t),r=145===n?26:2*Math.ceil((n-13)/(2*e-2)),s=[n-7],o=1;o{class t{constructor(t,e,n,i){this.inputs=t,this.dialogRef=e,this.store=n,this.fb=i,this.form=this.buildForm()}ngAfterViewInit(){var t;null===(t=this.nameField)||void 0===t||t.focus()}buildForm(){return this.fb.group({name:[this.inputs.currentName,[i.x.required,i.x.maxLength(25)]]})}rename(){this.store.dispatch(Object(o.h)({id:this.inputs.id,name:this.form.get("name").value})),this.closeDialog()}closeDialog(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(a.Ob(r.a),a.Ob(r.d),a.Ob(c.b),a.Ob(i.d))},t.\u0275cmp=a.Ib({type:t,selectors:[["rename-layout"]],viewQuery:function(t,e){var n;1&t&&a.Wc(s.b,!0),2&t&&a.zc(n=a.cc())&&(e.nameField=n.first)},decls:11,vars:8,consts:[["heading","HEADING.RENAME_PAGE"],[1,"rename-layout"],["body","",3,"formGroup","ngSubmit"],["color","accent","appearance","fill"],["matInput","","formControlName","name","autocomplete","off"],["type","submit","body","","mat-raised-button","",3,"disabled"]],template:function(t,e){1&t&&(a.Ub(0,"pro-dialog",0),a.Ub(1,"section",1),a.Ub(2,"form",2),a.bc("ngSubmit",(function(){return e.rename()})),a.Ub(3,"mat-form-field",3),a.Ub(4,"mat-label"),a.Qc(5),a.gc(6,"translate"),a.Tb(),a.Pb(7,"input",4),a.Tb(),a.Ub(8,"button",5),a.Qc(9),a.gc(10,"translate"),a.Tb(),a.Tb(),a.Tb(),a.Tb()),2&t&&(a.Cb(2),a.mc("formGroup",e.form),a.Cb(3),a.Rc(a.hc(6,4,"FORM.PAGE_NAME")),a.Cb(3),a.mc("disabled",e.form.invalid),a.Cb(1),a.Sc(" ",a.hc(10,6,"BUTTON.RENAME")," "))},directives:[l.a,u.a,i.z,i.p,h.a,i.h,d.c,d.f,s.b,i.c,i.o,i.g,p.b],pipes:[f.d],styles:[".rename-layout[_ngcontent-%COMP%] form[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{width:100%}"],changeDetection:0}),t})()},"Q/zH":function(t,e,n){"use strict";n.r(e),n.d(e,"ShortcutsCheatsheetComponent",(function(){return C}));var i=n("og7C"),r=n("lx5p"),s=n("kZht"),o=n("rfPA"),a=n("bBQR"),c=n("An66"),l=n("1o0v"),u=n("oiza"),h=n("aDqW"),d=n("chaP");function p(t,e){1&t&&(s.Ub(0,"span",12),s.Qc(1,"FRAGMENT.OR"),s.Tb())}function f(t,e){1&t&&s.Qb(0)}const b=function(t){return{$implicit:t}};function g(t,e){if(1&t&&(s.Sb(0),s.Oc(1,p,2,0,"span",10),s.Oc(2,f,1,0,"ng-container",11),s.Rb()),2&t){const t=e.$implicit,n=e.index;s.fc(3);const i=s.Ac(4);s.Cb(1),s.mc("ngIf",n>0),s.Cb(1),s.mc("ngTemplateOutlet",i)("ngTemplateOutletContext",s.rc(3,b,t))}}function m(t,e){if(1&t&&(s.Ub(0,"div",7),s.Ub(1,"div"),s.Qc(2),s.gc(3,"translate"),s.Tb(),s.Ub(4,"div",8),s.Oc(5,g,3,5,"ng-container",9),s.Tb(),s.Tb()),2&t){const t=e.$implicit;s.Cb(2),s.Rc(s.hc(3,2,t[0])),s.Cb(3),s.mc("ngForOf",t[1])}}function v(t,e){if(1&t&&(s.Ub(0,"section",4),s.Ub(1,"h2",5),s.Qc(2),s.gc(3,"translate"),s.Tb(),s.Oc(4,m,6,4,"div",6),s.Tb()),2&t){const t=e.$implicit;s.Cb(2),s.Rc(s.hc(3,2,t[0])),s.Cb(2),s.mc("ngForOf",t[1].entrySeq())}}function _(t,e){if(1&t&&(s.Ub(0,"span"),s.Qc(1),s.Tb()),2&t){const t=s.fc(2).$implicit;s.Cb(1),s.Rc("then"===t.type?" ":"+")}}function y(t,e){if(1&t&&(s.Sb(0),s.Oc(1,_,2,1,"span",14),s.Ub(2,"span",15),s.Qc(3),s.Tb(),s.Rb()),2&t){const t=e.$implicit,n=e.index;s.Cb(1),s.mc("ngIf",n>0),s.Cb(2),s.Rc(t)}}function O(t,e){if(1&t&&(s.Ub(0,"div",13),s.Oc(1,y,4,2,"ng-container",9),s.Tb()),2&t){const t=e.$implicit;s.Cb(1),s.mc("ngForOf",t.keys)}}let C=(()=>{class t{constructor(){this.rawKeybinds={global:{"DIALOG.SHORTCUTS.SHORTCUT_DIALOG":["?","shift+/"],"DIALOG.SHORTCUTS.GO_TO_FUTURES_TRADING":["g f"],"DIALOG.SHORTCUTS.GO_TO_WALLETS":["g w"],"DIALOG.SHORTCUTS.GO_TO_HISTORY":["g l"],"DIALOG.SHORTCUTS.GO_TO_ASSIGNMENT":["g a"],"DIALOG.SHORTCUTS.GO_TO_SUPPORT":["g h"],"DIALOG.SHORTCUTS.GO_TO_SETTINGS":["g s"],"DIALOG.SHORTCUTS.ALT":["alt/option"]},trading:{"DIALOG.SHORTCUTS.MARKET_PICKER":["m"],"DIALOG.SHORTCUTS.SWITCH_LAYOUT":["1...6"]},orderbook:{"TOOLTIP.INCREASE_ORDER_GROUPING":["\ufe62","="],"TOOLTIP.DECREASE_ORDER_GROUPING":["\uff0d","_"]},order_form:{"DIALOG.SHORTCUTS.START_LIMIT_ORDER":["shift+l"],"DIALOG.SHORTCUTS.START_MARKET_ORDER":["shift+m"],"DIALOG.SHORTCUTS.TOGGLE_MAKER_ONLY":["shift+a"],"DIALOG.SHORTCUTS.TOGGLE_REDUCE_ONLY":["shift+r"]}}}get keybinds(){return Object(i.c)(this.rawKeybinds).mapEntries(([t,e])=>{const n=Object(i.c)(e).map(w);return[Object(r.Q)("HEADING."+t),n]})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Ib({type:t,selectors:[["shortcuts-cheatsheet"]],decls:5,vars:1,consts:[["heading","HEADING.KEYBOARD_SHORTCUTS"],[1,"nutrition","keybinds"],["class","combo-concern",4,"ngFor","ngForOf"],["comboTmpl",""],[1,"combo-concern"],["ghost","","uppercase",""],["class","nutrition__detail grid-0-1 gap-m",4,"ngFor","ngForOf"],[1,"nutrition__detail","grid-0-1","gap-m"],[1,"comboset"],[4,"ngFor","ngForOf"],["translate","",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["translate",""],[1,"combo"],[4,"ngIf"],["mono","",1,"key"]],template:function(t,e){1&t&&(s.Ub(0,"pro-dialog",0),s.Ub(1,"div",1),s.Oc(2,v,5,4,"section",2),s.Tb(),s.Tb(),s.Oc(3,O,2,1,"ng-template",null,3,s.Pc)),2&t&&(s.Cb(2),s.mc("ngForOf",e.keybinds.entrySeq()))},directives:[o.a,a.a,c.m,l.a,u.a,c.n,c.s,h.a,d.a],pipes:[h.d],styles:[".scroll-wrapper[_ngcontent-%COMP%]{overflow-y:auto;max-height:100%}.keybinds[_ngcontent-%COMP%]{-moz-columns:2 50ch;columns:50ch 2;-moz-column-gap:var(--spacing-xl);column-gap:var(--spacing-xl);-moz-column-rule:1px dashed var(--ghost-colour);column-rule:1px dashed var(--ghost-colour);color:var(--text-colour);font-family:var(--typeface);font-size:.95rem}.keybinds[_ngcontent-%COMP%] section[_ngcontent-%COMP%]:not(:last-of-type){margin-bottom:var(--spacing-l)}.keybinds[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:1.15rem}.combo-concern[_ngcontent-%COMP%]{-moz-column-break-inside:avoid;break-inside:avoid}.comboset[_ngcontent-%COMP%]{display:inline-block;margin-left:var(--spacing-l)}.combo[_ngcontent-%COMP%]{white-space:nowrap}.combo[_ngcontent-%COMP%], .key[_ngcontent-%COMP%]{display:inline-block;margin:0 var(--spacing-s)}.key[_ngcontent-%COMP%]{padding:var(--spacing-s) var(--spacing);background-color:var(--tooltip-bg);border:solid var(--n400);border-width:1px 1px 3px;border-radius:var(--bdrs)}"],changeDetection:0}),t})();function w(t){return t.map(r.M).map(T)}function T(t){return t.includes(" ")?{type:"then",keys:t.split(" ")}:{type:"and",keys:t.split("+")}}},Q7YU:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return r}));const i={allowed:["Afghanistan","Aland Islands","Albania","Algeria","American Samoa","Andorra","Angola","Anguilla","Antarctica","Antigua and Barbuda","Argentina","Armenia","Aruba","Australia","Austria","Azerbaijan","Bahamas","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bermuda","Bhutan","Bolivia","Bonaire","Bosnia and Herzegovina","Botswana","Bouvet Island","Brazil","British Indian Ocean Territory","British Virgin Islands","Brunei Darussalam","Bulgaria","Burkina Faso","Burundi","Cambodia","Cameroon","Canada","Cape Verde","Cayman Islands","Central African Republic","Chad","Chile","China","Christmas Island","Cocos (Keeling) Islands","Colombia","Comoros","Congo","Cook Islands","Costa Rica","Croatia","Cuba","Curacao","Cyprus","Czech Republic","Denmark","Djibouti","Dominica","Dominican Republic","Ecuador","Egypt","El Salvador","Equatorial Guinea","Eritrea","Estonia","Ethiopia","Falkland Islands (Malvinas)","Faroe Islands","Fiji","Finland","France","French Guiana","French Polynesia","French Southern Territories","Gabon","Gambia","Georgia","Germany","Ghana","Gibraltar","Greece","Greenland","Grenada","Guadeloupe","Guam","Guatemala","Guernsey","Guinea","Guinea-Bissau","Guyana","Haiti","Heard Island and McDonald Islands","Vatican City State","Honduras","Hong Kong","Hungary","Iceland","India","Indonesia","Iran","Iraq","Ireland","Isle of Man","Israel","Italy","Ivory Coast","Jamaica","Jersey","Jordan","Kazakhstan","Kenya","Kiribati","Kuwait","Kyrgyzstan","Lao","Latvia","Lebanon","Lesotho","Liberia","Libya","Liechtenstein","Lithuania","Luxembourg","Macao","Macedonia","Madagascar","Malawi","Malaysia","Maldives","Mali","Malta","Marshall Islands","Martinique","Mauritania","Mauritius","Mayotte","Mexico","Micronesia","Moldova","Monaco","Mongolia","Montenegro","Montserrat","Morocco","Mozambique","Myanmar","Namibia","Nauru","Nepal","Netherlands","New Caledonia","New Zealand","Nicaragua","Niger","Nigeria","Niue","Norfolk Island","North Korea","Northern Mariana Islands","Norway","Oman","Pakistan","Palau","Panama","Papua New Guinea","Paraguay","Peru","Philippines","Pitcairn","Poland","Portugal","Puerto Rico","Qatar","Reunion","Romania","Russia","Rwanda","Saint Barthelemy","Saint Helena","Saint Kitts and Nevis","Saint Lucia","Saint Martin","Saint Pierre and Miquelon","Saint Vincent and the Grenadines","Samoa","San Marino","Sao Tome and Principe","Saudi Arabia","Senegal","Serbia","Seychelles","Sierra Leone","Singapore","Sint Maarten","Slovakia","Slovenia","Solomon Islands","Somalia","South Africa","South Georgia","South Korea","South Sudan","Spain","Sri Lanka","Sudan","Suriname","Svalbard and Jan Mayen","Swaziland","Sweden","Switzerland","Syria","Taiwan","Tajikistan","Tanzania","Thailand","Timor-Leste","Togo","Tokelau","Tonga","Trinidad and Tobago","Tunisia","Turkey","Turkmenistan","Turks and Caicos Islands","Tuvalu","Uganda","Ukraine","United Arab Emirates","United Kingdom","United States","United States Virgin Islands","Uruguay","Uzbekistan","Vanuatu","Venezuela","Vietnam","Wallis and Futuna","Western Sahara","Yemen","Zambia","Zimbabwe"],disallowed:["Algeria","Bangladesh","Bolivia","Cambodia","Ecuador","Iran","Japan","Lebanon","Nepal","North Korea","Vietnam","Syria","United States"]},r=[...i.allowed,...i.disallowed]},QHMR:function(t,e,n){"use strict";n.d(e,"a",(function(){return v}));var i=n("kZht"),r=n("yPvj"),s=n("anSm"),o=n("1o0v"),a=n("An66"),c=n("chaP"),l=n("+e22"),u=n("rqGg"),h=n("aDqW"),d=n("rUBT"),p=n("DpwM"),f=n("09eR");function b(t,e){if(1&t&&(i.Sb(0),i.Qc(1),i.gc(2,"pair"),i.Pb(3,"market-icon",1),i.gc(4,"quote"),i.Rb()),2&t){const t=i.fc();i.Cb(1),i.Sc(" ",i.hc(2,2,t.primaryTicker)," "),i.Cb(2),i.mc("base",i.hc(4,4,t.primaryTicker.product_id))}}function g(t,e){if(1&t&&(i.Sb(0),i.Qc(1),i.gc(2,"sato"),i.gc(3,"mid"),i.Pb(4,"change",7),i.Rb()),2&t){const t=i.fc();i.Cb(1),i.Sc(" ",i.ic(2,2,i.hc(3,5,t.primaryTicker),t.primaryTicker)," "),i.Cb(3),i.mc("value",t.primaryTicker.change)}}const m=function(t){return{num:t}};let v=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["market-picker-asset"]],inputs:{asset:"asset",primaryTicker:"primaryTicker",tickers:"tickers",count:"count"},decls:13,vars:14,consts:[[1,"icon"],[3,"base"],["body","",1,"asset"],["body","","ghost","",1,"count"],["body","",1,"price"],[4,"ngIf"],["body","","mono","",1,"change"],[3,"value"]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Pb(1,"market-icon",1),i.gc(2,"asset"),i.Tb(),i.Ub(3,"div",2),i.Qc(4),i.gc(5,"asset"),i.Tb(),i.Ub(6,"div",3),i.Qc(7),i.gc(8,"translate"),i.Tb(),i.Ub(9,"div",4),i.Oc(10,b,5,6,"ng-container",5),i.Tb(),i.Ub(11,"div",6),i.Oc(12,g,5,7,"ng-container",5),i.Tb()),2&t&&(i.Cb(1),i.mc("base",i.hc(2,5,e.asset)),i.Cb(3),i.Rc(i.hc(5,7,e.asset)),i.Cb(3),i.Sc(" ",i.ic(8,9,"LABEL.N_MARKETS",i.rc(12,m,e.count)),"\n"),i.Cb(3),i.mc("ngIf",e.primaryTicker),i.Cb(2),i.mc("ngIf",e.primaryTicker))},directives:[r.a,s.a,o.a,a.n,c.a,l.a],pipes:[u.a,h.d,d.e,d.f,p.c,f.a],styles:['[_nghost-%COMP%]{display:block;padding:var(--spacing-s) var(--spacing);height:48px;display:grid;grid-template:"icon pair price" auto "icon count change" auto/min-content 1fr min-content;gap:var(--spacing-s) var(--spacing-ml);align-items:center;border-radius:var(--bdrs)}.icon[_ngcontent-%COMP%]{grid-area:icon;font-size:20px}.icon[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{cursor:pointer}.asset[_ngcontent-%COMP%]{grid-area:pair;align-self:end;font-size:14px;color:var(--pair-color,var(--text-colour))}.count[_ngcontent-%COMP%]{grid-area:count;align-self:start}.change[_ngcontent-%COMP%], .price[_ngcontent-%COMP%]{text-align:right}.price[_ngcontent-%COMP%]{grid-area:price;align-self:end}.change[_ngcontent-%COMP%]{grid-area:change;align-self:start;white-space:nowrap}'],changeDetection:0}),t})()},QQZH:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i=n("ZTXN"),r=n("kSHZ"),s=n("bwdy"),o=n("A2S1"),a=n("MiDb"),c=n("yTkW");class l extends i.b{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){if(!this.isStopped){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift()}super.next(t)}nextTimeWindow(t){this.isStopped||(this._events.push(new u(this._getNow(),t)),this._trimBufferThenGetEvents()),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,n=e?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,r=n.length;let l;if(this.closed)throw new a.a;if(this.isStopped||this.hasError?l=s.a.EMPTY:(this.observers.push(t),l=new c.a(this,t)),i&&t.add(t=new o.a(t,i)),e)for(let s=0;se&&(s=Math.max(s,r-e)),s>0&&i.splice(0,s),i}}class u{constructor(t,e){this.time=t,this.value=e}}},Qbn9:function(t,e,n){"use strict";n.d(e,"e",(function(){return i})),n.d(e,"f",(function(){return r})),n.d(e,"c",(function(){return s})),n.d(e,"d",(function(){return o})),n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return c}));const i=1e3,r=60,s=r*i,o=60,a=o*s,c=r*o*24},QdGC:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>{"Escape"===t.key&&t.target&&"blur"in t.target&&(t.preventDefault(),t.target.blur())}},Qkwj:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("dyLe"),r=n("BfNR");e.default=function(){function t(t,e){this.x=t,this.y=e}return t.prototype.getX=function(){return this.x},t.prototype.getY=function(){return this.y},t.prototype.equals=function(e){return e instanceof t&&this.x===e.x&&this.y===e.y},t.prototype.hashCode=function(){return 31*r.default.floatToIntBits(this.x)+r.default.floatToIntBits(this.y)},t.prototype.toString=function(){return"("+this.x+","+this.y+")"},t.orderBestPatterns=function(t){var e,n,i,r=this.distance(t[0],t[1]),s=this.distance(t[1],t[2]),o=this.distance(t[0],t[2]);if(s>=r&&s>=o?(n=t[0],e=t[1],i=t[2]):o>=s&&o>=r?(n=t[1],e=t[0],i=t[2]):(n=t[2],e=t[0],i=t[1]),this.crossProductZ(e,n,i)<0){var a=e;e=i,i=a}t[0]=e,t[1]=n,t[2]=i},t.distance=function(t,e){return i.default.distance(t.x,t.y,e.x,e.y)},t.crossProductZ=function(t,e,n){var i=e.x,r=e.y;return(n.x-i)*(t.y-r)-(n.y-r)*(t.x-i)},t}()},QmxK:function(t,e,n){"use strict";n.d(e,"b",(function(){return w})),n.d(e,"a",(function(){return T}));var i=n("P4Xx"),r=n("i9xl"),s=n("ROBh"),o=n("YtkY"),a=n("iT4G"),c=n("xVbo"),l=n("5uGe");function u(t=-1){return e=>e.lift(new h(t,e))}class h{constructor(t,e){this.count=t,this.source=e}call(t,e){return e.subscribe(new d(t,this.count,this.source))}}class d extends l.a{constructor(t,e,n){super(t),this.count=e,this.source=n}error(t){if(!this.isStopped){const{source:e,count:n}=this;if(0===n)return super.error(t);n>-1&&(this.count=n-1),e.subscribe(this._unsubscribeAndRecycle())}}}var p=n("4e/d"),f=n("J+dc"),b=n("7SLS"),g=n("i67J"),m=n("sXtk"),v=n("7UDb"),_=n("yBos"),y=n("Qbn9"),O=n("kZht"),C=n("6uGs");const w={"trading-rest":!0,"trading-ws":!0,auth:!0,charts:!1};let T=(()=>{class t{constructor(t,e){this.http=t,this.env=e}checkSystemHealth(){return Object(i.a)([this.checkTradingRestHealth(),this.checkTradingWsHealth(),this.checkAuthHealth(),this.checkChartsHealth()]).pipe(Object(o.a)(([t,e,n,i])=>({"trading-rest":t,"trading-ws":e,auth:n,charts:i})))}healthWebsocket(){return Object(r.a)(()=>Object(_.a)({url:this.env.urls.healthWs}).pipe(Object(a.a)(11*y.e))).pipe(Object(g.l)(200),Object(c.a)(t=>"status"===t.event),Object(o.a)(({data:t})=>({"trading-rest":t.trade,"trading-ws":t.tradeWebsocket,auth:t.auth,charts:t.chart})))}checkTradingRestHealth(){return this.http.get(this.env.urls.rest+"/readiness?health-check",v.a).pipe(u(2),Object(a.a)(2*y.e),Object(o.a)(t=>t.ready?"operational":"degraded"),Object(p.a)(t=>{var e,n,i;return 503===t.status&&14===(null===(i=null===(n=null===(e=null==t?void 0:t.error)||void 0===e?void 0:e.errors)||void 0===n?void 0:n[0])||void 0===i?void 0:i.code)?Object(s.a)("maintenance"):Object(s.a)("offline")}))}checkTradingWsHealth(){const t=this.env.urls.websocket+"?health-check";return Object(_.a)(t).pipe(u(2),Object(f.a)(1),Object(a.a)(2*y.e),Object(b.a)("operational"),Object(p.a)(()=>Object(s.a)("offline")))}checkAuthHealth(){return this.http.get(this.env.urls.auth+"/test?health-check",v.a).pipe(u(2),Object(a.a)(2*y.e),Object(b.a)("operational"),Object(p.a)(()=>Object(s.a)("offline")))}checkChartsHealth(){return this.http.get(this.env.urls.rest+"/charts/?health-check",v.a).pipe(u(2),Object(a.a)(2*y.e),Object(b.a)("operational"),Object(p.a)(()=>Object(s.a)("offline")))}}return t.\u0275fac=function(e){return new(e||t)(O.Yb(C.a),O.Yb(m.a))},t.\u0275prov=O.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},Qohw:function(t,e,n){"use strict";n.r(e),n.d(e,"TabSettingsComponent",(function(){return W}));var i=n("D57K"),r=n("mcff"),s=n("zqNl"),o=n("YtkY"),a=n("xVbo"),c=n("uJYd"),l=n("0tVE"),u=n("bjK4"),h=n("+Px6"),d=n("qAYy"),p=n("rxqU"),f=n("gxtV"),b=n("kZht"),g=n("rfPA"),m=n("bBQR"),v=n("gx5s"),_=n("1etq"),y=n("An66"),O=n("LBlH"),C=n("y1fC"),w=n("pPqe"),T=n("aDqW"),S=n("anSm"),k=n("NxuZ"),E=n("WYJo"),x=n("UDV5"),P=n("8spT"),A=n("w2Kr"),I=n("DpwM"),M=n("fvDn");const D=["tabSettingsPopper"],R=["tourPositionRef"];function j(t,e){if(1&t){const t=b.Vb();b.Ub(0,"li",4),b.bc("click",(function(){b.Ec(t);const n=e.$implicit;return b.fc().filterComponents(n)})),b.Qc(1),b.gc(2,"translate"),b.Tb()}if(2&t){const t=e.$implicit,n=b.fc();b.Gb("component--active",t===n.filterSettings),b.Cb(1),b.Sc(" ",b.hc(2,3,"HEADING."+t)," ")}}function L(t,e){if(1&t){const t=b.Vb();b.Ub(0,"section"),b.Ub(1,"h2",11),b.Qc(2,"HEADING.ORDERBOOK"),b.Tb(),b.Ub(3,"section",12),b.Ub(4,"p",13),b.Qc(5,"SUBTITLE.ORDERBOOK_GROUPING"),b.Tb(),b.Ub(6,"div"),b.Ub(7,"small",14),b.Qc(8),b.gc(9,"translate"),b.gc(10,"sato"),b.Tb(),b.Ub(11,"fa-icon",15),b.bc("click",(function(){return b.Ec(t),b.fc().decreaseGrouping()})),b.gc(12,"translate"),b.Tb(),b.Ub(13,"fa-icon",16),b.bc("click",(function(){return b.Ec(t),b.fc().increaseGrouping()})),b.gc(14,"translate"),b.Tb(),b.Tb(),b.Ub(15,"mat-checkbox",17),b.bc("change",(function(e){return b.Ec(t),b.fc().setUpdateFormQuantityFromBook(e.checked)})),b.gc(16,"async"),b.Qc(17),b.gc(18,"translate"),b.Tb(),b.Ub(19,"mat-checkbox",17),b.bc("change",(function(e){return b.Ec(t),b.fc().setFullOrderbook(e.checked)})),b.gc(20,"async"),b.Qc(21),b.gc(22,"translate"),b.Tb(),b.Tb(),b.Tb()}if(2&t){const t=e.$implicit,n=b.fc();b.Cb(8),b.Tc(" ",b.hc(9,12,"LABEL.GROUP"),": ",b.ic(10,14,n.groupingTickSize(t.instrument,t.grouping),t.instrument)," "),b.Cb(3),b.Gb("group--disabled",1===t.grouping),b.mc("matTooltip",b.hc(12,17,"TOOLTIP.DECREASE_ORDER_GROUPING")),b.Cb(2),b.Gb("group--disabled",5e3===t.grouping),b.mc("matTooltip",b.hc(14,19,"TOOLTIP.INCREASE_ORDER_GROUPING")),b.Cb(2),b.mc("checked",b.hc(16,21,n.alsoUpdateQuantity$)),b.Cb(2),b.Sc(" ",b.hc(18,23,"LABEL.UPDATE_FORM_QUANTITY_FROM_BOOK")," "),b.Cb(2),b.mc("checked",b.hc(20,25,n.fullOrderbook$)),b.Cb(2),b.Sc(" ",b.hc(22,27,"LABEL.SCROLLABLE_ORDERBOOK_DEPTH")," ")}}function N(t,e){if(1&t){const t=b.Vb();b.Ub(0,"section"),b.Ub(1,"h2",11),b.Qc(2,"HEADING.MARKET_CHART"),b.Tb(),b.Ub(3,"p",13),b.Qc(4,"LABEL.CANDLE_PRICE_TYPES"),b.Tb(),b.Ub(5,"mat-radio-group",18),b.Ub(6,"mat-radio-button",19),b.bc("change",(function(){return b.Ec(t),b.fc().changeChartType("trade")})),b.Ub(7,"p",14),b.Qc(8),b.gc(9,"translate"),b.Tb(),b.Tb(),b.Ub(10,"mat-radio-button",20),b.bc("change",(function(){return b.Ec(t),b.fc().changeChartType("mark")})),b.Ub(11,"p",14),b.Qc(12),b.gc(13,"translate"),b.Tb(),b.Tb(),b.Tb(),b.Ub(14,"mat-checkbox",17),b.bc("change",(function(e){return b.Ec(t),b.fc().setOrdersVisible(e.checked)})),b.Qc(15),b.gc(16,"translate"),b.Tb(),b.Ub(17,"mat-checkbox",17),b.bc("change",(function(e){return b.Ec(t),b.fc().setPositionsVisible(e.checked)})),b.Qc(18),b.gc(19,"translate"),b.Tb(),b.Ub(20,"mat-checkbox",17),b.bc("change",(function(e){return b.Ec(t),b.fc().setLiquidationLineVisible(e.checked)})),b.Qc(21),b.gc(22,"translate"),b.Tb(),b.Tb()}if(2&t){const t=e.$implicit;b.Cb(5),b.mc("value",t.chartType||"trade"),b.Cb(3),b.Rc(b.hc(9,9,"LABEL.TRADE")),b.Cb(4),b.Rc(b.hc(13,11,"LABEL.MARK")),b.Cb(2),b.mc("checked",!t.hideMarketChartOrders),b.Cb(1),b.Sc(" ",b.hc(16,13,"LABEL.SHOW_ORDERS")," "),b.Cb(2),b.mc("checked",!t.hideMarketChartPositions),b.Cb(1),b.Sc(" ",b.hc(19,15,"LABEL.SHOW_POSITIONS")," "),b.Cb(2),b.mc("checked",!t.hideMarketChartLiquidationPrice),b.Cb(1),b.Sc(" ",b.hc(22,17,"LABEL.SHOW_LIQUIDATION_PRICE")," ")}}const U=function(t){return{pair:t}};function F(t,e){if(1&t){const t=b.Vb();b.Ub(0,"section"),b.Ub(1,"p",11),b.Qc(2,"HEADING.POSITION_ORDER_FILTERING"),b.Tb(),b.Ub(3,"mat-checkbox",17),b.bc("change",(function(e){return b.Ec(t),b.fc().setActivityPairFilter(e.checked)})),b.gc(4,"async"),b.Qc(5),b.gc(6,"translate"),b.gc(7,"cryptoAbbreviation"),b.gc(8,"async"),b.Tb(),b.Tb()}if(2&t){const t=b.fc();b.Cb(3),b.mc("checked",b.hc(4,2,t.isFilteredByPair$)),b.Cb(2),b.Sc(" ",b.ic(6,4,"LABEL.POSITION_ORDER_FILTERING",b.rc(11,U,b.hc(7,7,b.hc(8,9,t.selectedMarketPair$))))," ")}}function B(t,e){if(1&t){const t=b.Vb();b.Ub(0,"section"),b.Ub(1,"p",11),b.Qc(2,"HEADING.TRADE_HISTORY"),b.Tb(),b.Ub(3,"mat-checkbox",17),b.bc("change",(function(e){return b.Ec(t),b.fc().setSizeRelativeTradeHistory(e.checked)})),b.gc(4,"async"),b.Qc(5),b.gc(6,"translate"),b.Tb(),b.Tb()}if(2&t){const t=b.fc();b.Cb(3),b.mc("checked",b.hc(4,2,t.sizeRelativeTradeHistory$)),b.Cb(2),b.Sc(" ",b.hc(6,4,"LABEL.SIZE_RELATIVE_COLOR")," ")}}function z(t,e){if(1&t){const t=b.Vb();b.Ub(0,"tour-step",21),b.bc("nextEvent",(function(){return b.Ec(t),b.fc().closeDialog()}))("previousEvent",(function(){return b.Ec(t),b.fc().closeDialog()}))("dispose",(function(){return b.Ec(t),b.fc(),b.Ac(17).dispose()})),b.Ub(1,"p",11),b.Qc(2,"TOUR.WORKSPACES.5"),b.Tb(),b.Tb()}2&t&&b.mc("title","HEADING.COMPONENT_SETTINGS")("nextRouteTo","/futures")}const V=function(){return[!1,"ORDERBOOK"]},$=function(t,e){return{instrument:t,grouping:e}},H=function(){return[!1,"MARKET_CHART"]},q=function(){return[!1,"POSITIONS_ORDERS"]},Q=function(){return[!1,"TRADE_HISTORY"]};let W=(()=>{let t=class{constructor(t,e,n){this.inputs=t,this.store=e,this.dialogRef=n,this.componentsWithSettings=["ORDERBOOK","MARKET_CHART","POSITIONS_ORDERS","TRADE_HISTORY"],this.filterSettings=!1,this.userData$=this.store.pipe(Object(s.m)(p.a)),this.alsoUpdateQuantity$=this.userData$.pipe(Object(o.a)(t=>t.updateFormQuantityFromBook)),this.isFilteredByPair$=this.userData$.pipe(Object(o.a)(t=>t.activityPairFilterOn)),this.sizeRelativeTradeHistory$=this.userData$.pipe(Object(o.a)(t=>{var e;return null===(e=t.sizeRelativeTradeHistory)||void 0===e||e})),this.requireOrderConfirmation$=this.userData$.pipe(Object(o.a)(t=>t.requireOrderConfirmation)),this.fullOrderbook$=this.userData$.pipe(Object(o.a)(t=>t.fullOrderbook)),this.selectedMarketPair$=this.store.pipe(Object(s.m)(h.p)),this.selectedInstrument$=this.store.pipe(Object(s.m)(h.n)),this.orderbookGroup$=this.store.pipe(Object(s.m)(u.p)),this.selectedTicker$=this.store.pipe(Object(s.m)(d.p)),this.tour$=this.store.pipe(Object(s.m)(u.k))}ngOnInit(){var t;this.filterSettings=null!==(t=this.inputs.title)&&void 0!==t&&t}ngAfterViewInit(){this.tour$.pipe(Object(f.b)(this),Object(a.a)(t=>t.inProgress),Object(a.a)(t=>"workspaces"===t.type),Object(a.a)(t=>5===t.step)).subscribe(({})=>{this.tabSettingsPopper.componentTrigger(this.tourPositionRef,"centerEnd")})}closeDialog(){this.dialogRef.close()}filterComponents(t){this.filterSettings=t}setUpdateFormQuantityFromBook(t){this.store.dispatch(Object(l.e)({updateFormQuantityFromBook:t}))}setActivityPairFilter(t){this.store.dispatch(Object(l.e)({activityPairFilterOn:t}))}decreaseGrouping(){this.store.dispatch(Object(c.w)({direction:"minus"}))}increaseGrouping(){this.store.dispatch(Object(c.w)({direction:"plus"}))}groupingTickSize(t,e){return t?e*t.tickSize:1}setMarkPriceVisible(t){this.store.dispatch(Object(l.e)({hideMarketChartMarkPrice:!t}))}setOrdersVisible(t){this.store.dispatch(Object(l.e)({hideMarketChartOrders:!t}))}setPositionsVisible(t){this.store.dispatch(Object(l.e)({hideMarketChartPositions:!t}))}setLiquidationLineVisible(t){this.store.dispatch(Object(l.e)({hideMarketChartLiquidationPrice:!t}))}setSizeRelativeTradeHistory(t){this.store.dispatch(Object(l.e)({sizeRelativeTradeHistory:t}))}setRequireOrderConfirmation(t){this.store.dispatch(Object(l.e)({requireOrderConfirmation:t}))}changeChartType(t){this.store.dispatch(Object(l.e)({chartType:t}))}setFullOrderbook(t){this.store.dispatch(Object(l.e)({fullOrderbook:t}))}};return t.\u0275fac=function(e){return new(e||t)(b.Ob(r.a),b.Ob(s.b),b.Ob(r.d))},t.\u0275cmp=b.Ib({type:t,selectors:[["tab-settings"]],viewQuery:function(t,e){var n;1&t&&(b.Jc(D,!0),b.Jc(R,!0)),2&t&&(b.zc(n=b.cc())&&(e.tabSettingsPopper=n.first),b.zc(n=b.cc())&&(e.tourPositionRef=n.first))},decls:19,vars:23,consts:[["heading","HEADING.COMPONENT_SETTINGS"],[1,"tab-settings"],["tourPositionRef",""],[1,"components"],["selectable","","subheading","",1,"component",3,"click"],["selectable","","subheading","","class","component",3,"component--active","click",4,"ngFor","ngForOf"],[1,"settings"],[4,"ngIf"],["sbPlacement","topStart"],["tabSettingsPopper",""],[3,"title","nextRouteTo","nextEvent","previousEvent","dispose",4,"sbContent"],["subheading","","translate",""],[1,"grouping"],["body","","translate",""],["body",""],["icon","minus","size","2x",3,"matTooltip","click"],["icon","plus","size","2x",3,"matTooltip","click"],["body","",1,"no-border",3,"checked","change"],[3,"value"],["value","trade",3,"change"],["value","mark",3,"change"],[3,"title","nextRouteTo","nextEvent","previousEvent","dispose"]],template:function(t,e){1&t&&(b.Ub(0,"pro-dialog",0),b.Ub(1,"section",1,2),b.Ub(3,"ul",3),b.Ub(4,"li",4),b.bc("click",(function(){return e.filterComponents(!1)})),b.Qc(5),b.gc(6,"translate"),b.Tb(),b.Oc(7,j,3,5,"li",5),b.Tb(),b.Ub(8,"section",6),b.Oc(9,L,23,29,"section",7),b.gc(10,"async"),b.gc(11,"async"),b.Oc(12,N,23,19,"section",7),b.gc(13,"async"),b.Oc(14,F,9,13,"section",7),b.Oc(15,B,7,6,"section",7),b.Tb(),b.Tb(),b.Tb(),b.Ub(16,"sb-popper",8,9),b.Oc(18,z,3,2,"tour-step",10),b.Tb()),2&t&&(b.Cb(4),b.Gb("component--active",!1===e.filterSettings),b.Cb(1),b.Sc(" ",b.hc(6,8,"HEADING.ALL_COMPONENTS")," "),b.Cb(2),b.mc("ngForOf",e.componentsWithSettings),b.Cb(2),b.mc("ngIf",b.qc(16,V).includes(e.filterSettings)&&b.sc(17,$,b.hc(10,10,e.selectedInstrument$),b.hc(11,12,e.orderbookGroup$))),b.Cb(3),b.mc("ngIf",b.qc(20,H).includes(e.filterSettings)&&b.hc(13,14,e.userData$)),b.Cb(2),b.mc("ngIf",b.qc(21,q).includes(e.filterSettings)),b.Cb(1),b.mc("ngIf",b.qc(22,Q).includes(e.filterSettings)))},directives:[g.a,m.a,v.a,_.a,y.m,y.n,O.a,C.a,w.a,T.a,S.a,k.b,E.a,x.a,P.b,P.a,A.a],pipes:[T.d,y.b,I.c,M.a],styles:[".tab-settings[_ngcontent-%COMP%]{display:flex;width:550px}.components[_ngcontent-%COMP%]{align-self:flex-start;background-color:var(--card-colour);border:1px solid var(--border-colour);border-left:0;margin-right:var(--spacing-l)}.components[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{align-items:center;border-left:solid var(--border-colour) var(--spacing-s);cursor:pointer;display:flex;padding:var(--spacing);width:250px}.components[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:not(:last-of-type){border-bottom:1px solid var(--border-colour)}.settings[_ngcontent-%COMP%]{width:100%}.settings[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-bottom:var(--spacing);padding-bottom:var(--spacing);width:100%}.settings[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not(:last-of-type){border-bottom:1px solid var(--border-colour)}.settings[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%], .settings[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{margin-bottom:var(--spacing)}.component--active[_ngcontent-%COMP%]{border-left:solid var(--icon-colour) var(--spacing-s)!important;color:var(--icon-colour)}.grouping[_ngcontent-%COMP%]{display:flex;flex-direction:column}.grouping[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:flex;align-items:center}.grouping[_ngcontent-%COMP%] div[_ngcontent-%COMP%] small[_ngcontent-%COMP%], .grouping[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{margin-right:var(--spacing-s)}.grouping[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{cursor:pointer;color:var(--text-colour)}.group--disabled[_ngcontent-%COMP%]{opacity:.3;pointer-events:none}.mat-radio-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-bottom:var(--spacing)}"],changeDetection:0}),t=Object(i.d)([Object(f.a)()],t),t})()},R1aX:function(t,e,n){"use strict";n.d(e,"a",(function(){return l})),n.d(e,"f",(function(){return h})),n.d(e,"c",(function(){return d})),n.d(e,"b",(function(){return p})),n.d(e,"e",(function(){return f})),n.d(e,"d",(function(){return b}));var i=n("zqNl");const r={NONE:"NONE",UNKNOWN:"NONE",FAILED:"FAILED",RETAIL_INVESTOR:"RETAIL",ACCEPTED_DISCLAIMER:"RETAIL",PER_SE_INVESTOR:"PROFESSIONAL",ELECTIVE_PROFESSIONAL_INVESTOR:"PROFESSIONAL",INVESTOR_TYPES_DISABLED:"NONE"};var s=n("Wxxs"),o=n("p5wL");const a={accountType:"individual",classification:"NONE",tier:"NONE",tempT1:"NONE"},c=Object(i.i)(a,Object(i.k)(s.c,()=>a),Object(i.k)(s.d,(t,{accountType:e})=>Object(o.b)(e,t,"accountType")),Object(i.k)(s.e,(t,{classification:e})=>Object(o.b)(e,t,"classification")),Object(i.k)(s.g,(t,{status:e})=>Object(o.b)(e,t,"tier")),Object(i.k)(s.f,(t,{status:e})=>Object(o.b)(e,t,"tempT1")));function l(t,e){return c(t,e)}const u=Object(i.h)("verification"),h=Object(i.j)(u,t=>t),d=Object(i.j)(u,t=>t.classification),p=Object(i.j)(u,t=>t.accountType),f=Object(i.j)(u,t=>t.tier),b=(Object(i.j)(u,t=>t.tempT1),Object(i.j)(d,t=>r[t]))},RCeD:function(t,e,n){"use strict";n.d(e,"a",(function(){return vt}));var i=n("D57K"),r=n("gxtV"),s=n("zqNl"),o=n("KQpv"),a=n.n(o),c=n("VmIW"),l=n("C05f"),u=n("HM3f"),h=n("YtkY"),d=n("TLy2"),p=n("jIqt"),f=n("0Woy"),b=n("w0kG"),g=n("jOdJ"),m=n("lx5p"),v=n("TYVA"),_=n("NloN"),y=n("vYTc"),O=n("0tVE"),C=n("bjK4"),w=n("+Px6"),T=n("qAYy"),S=n("rxqU"),k=n("Rjzq"),E=n("sxqi"),x=n("aeRQ"),P=n("J/3c"),A=n("mlVJ"),I=n("kZht"),M=n("3kIJ"),D=n("Eu46"),R=n("aaFr"),j=n("ROO/"),L=n("An66"),N=n("yvKM"),U=n("scAs"),F=n("anSm"),B=n("EmXI"),z=n("NxuZ"),V=n("Tcl6"),$=n("F+Yz"),H=n("SAoO"),q=n("rEzU"),Q=n("rgaJ"),W=n("1o0v"),G=n("bo+2"),Y=n("QHMR"),K=n("icqo"),Z=n("za3o"),X=n("VbQ3"),J=n("BgTU"),tt=n("aDqW");const et=["filter"],nt=["menuAimer"];function it(t,e){if(1&t){const t=I.Vb();I.Ub(0,"mat-button-toggle",20),I.bc("click",(function(){return I.Ec(t),I.fc(2).filterContractFamily("multi-collateral")})),I.Ub(1,"p",8),I.Qc(2,"Multi-Collateral "),I.Pb(3,"pill",21),I.Tb(),I.Tb()}2&t&&(I.Cb(3),I.mc("label","New"))}function rt(t,e){if(1&t){const t=I.Vb();I.Ub(0,"market-picker-asset",31),I.bc("click",(function(){I.Ec(t);const n=e.$implicit;return I.fc(4).selectMarket(n.primaryTicker)})),I.Tb()}if(2&t){const t=e.$implicit,n=I.fc().ngLet;I.mc("asset",t.asset)("primaryTicker",t.primaryTicker)("tickers",t.tickers)("count",t.count),I.Db("data-asset",t.asset.name)("focus",n===t.asset.name)("has-primary",!!t.primaryTicker)}}const st=function(t){return{num:t}};function ot(t,e){if(1&t&&(I.Sb(0),I.Ub(1,"div",25),I.Ub(2,"div",26),I.Pb(3,"fa-icon",27),I.Tb(),I.Ub(4,"div",28),I.Qc(5),I.gc(6,"translate"),I.Tb(),I.Ub(7,"div",29),I.Qc(8),I.gc(9,"translate"),I.gc(10,"async"),I.Tb(),I.Tb(),I.Oc(11,rt,1,7,"market-picker-asset",30),I.gc(12,"async"),I.Rb()),2&t){const t=e.ngLet,i=I.fc(3);var n;I.Cb(1),I.Db("data-asset","FAVORITES")("focus","FAVORITES"===t),I.Cb(4),I.Rc(I.hc(6,6,"HEADING.FAVORITES")),I.Cb(3),I.Sc(" ",I.ic(9,8,"LABEL.N_MARKETS",I.rc(15,st,(null==(n=I.hc(10,11,i.favorites$))?null:n.size)||0))," "),I.Cb(3),I.mc("ngForOf",I.hc(12,13,i.assetItems$))("ngForTrackField","name")}}function at(t,e){if(1&t){const t=I.Vb();I.Ub(0,"div",22,23),I.bc("menuAimActivate",(function(e){return I.Ec(t),I.fc(2).handleRowActivate(e)})),I.Oc(2,ot,13,17,"ng-container",24),I.gc(3,"async"),I.Tb()}if(2&t){const t=I.fc(2);I.mc("menuAimExitMenu",!0),I.Cb(2),I.mc("ngLet",I.hc(3,2,t.focusAsset$))}}const ct=function(t){return{inactive:t}};function lt(t,e){if(1&t){const t=I.Vb();I.Ub(0,"div",33),I.Ub(1,"section",34),I.Ub(2,"div",35),I.bc("click",(function(){I.Ec(t);const n=e.ngIf;return I.fc(3).changeFlexSort("volume",n.sortDirection)})),I.Ub(3,"p",36),I.Qc(4),I.gc(5,"translate"),I.Tb(),I.Pb(6,"fa-icon",37),I.Tb(),I.Ub(7,"div",35),I.bc("click",(function(){I.Ec(t);const n=e.ngIf;return I.fc(3).changeFlexSort("change",n.sortDirection)})),I.Ub(8,"p",36),I.Qc(9),I.gc(10,"translate"),I.Tb(),I.Pb(11,"fa-icon",37),I.Tb(),I.Tb(),I.Ub(12,"p",38),I.Ub(13,"span",39),I.Qc(14),I.gc(15,"async"),I.Tb(),I.Pb(16,"fa-icon",40),I.Tb(),I.Tb()}if(2&t){const t=e.ngIf,n=I.fc(3),i=I.Ac(3);I.Cb(2),I.mc("ngClass",I.rc(14,ct,"volume"!==t.sort)),I.Cb(2),I.Rc(I.hc(5,8,"LABEL.VOLUME")),I.Cb(2),I.mc("icon","caret-"+t.sortDirection),I.Cb(1),I.mc("ngClass",I.rc(16,ct,"change"!==t.sort)),I.Cb(2),I.Rc(I.hc(10,10,"COLUMN.24H_CHANGE")),I.Cb(2),I.mc("icon","caret-"+t.sortDirection),I.Cb(1),I.mc("sbMenuTriggerFor",i),I.Cb(2),I.Rc(I.hc(15,12,n.flexCategory$))}}const ut=function(t,e){return{sort:t,sortDirection:e}};function ht(t,e){if(1&t&&(I.Sb(0),I.Oc(1,lt,17,18,"div",32),I.gc(2,"async"),I.gc(3,"async"),I.Rb()),2&t){const t=I.fc(2);I.Cb(1),I.mc("ngIf",I.sc(5,ut,I.hc(2,1,t.flexSort$),I.hc(3,3,t.flexSortDirection$)))}}function dt(t,e){if(1&t){const t=I.Vb();I.Ub(0,"market-picker-ticker",43),I.bc("updateFavorite",(function(e){return I.Ec(t),I.fc(3).updateFavorite(e)}))("mouseenter",(function(){I.Ec(t);const n=e.$implicit;return I.fc(3).hoverMarket(n.product_id)}))("click",(function(){I.Ec(t);const n=e.$implicit;return I.fc(3).selectMarket(n)})),I.gc(1,"async"),I.gc(2,"async"),I.gc(3,"async"),I.Tb()}if(2&t){const t=e.$implicit,n=I.fc().ngLet,i=I.fc().ngLet,r=I.fc();I.mc("isFlex","multi-collateral"===i)("ticker",t)("favorites",I.hc(1,7,r.favorites$))("isAlt",I.hc(2,9,r.isAlt$))("focussed",n===t.product_id),I.Db("active",I.hc(3,11,r.activeSymbol$)===t.product_id)("focus",n===t.product_id)}}function pt(t,e){if(1&t&&(I.Ub(0,"cdk-virtual-scroll-viewport",41),I.Oc(1,dt,4,13,"market-picker-ticker",42),I.gc(2,"async"),I.Tb()),2&t){const t=I.fc(2);I.mc("itemSize",48),I.Cb(1),I.mc("cdkVirtualForOf",I.hc(2,3,t.assetTickers$))("cdkVirtualForTrackField","product_id")}}const ft=function(t){return{flex:t}};function bt(t,e){if(1&t){const t=I.Vb();I.Ub(0,"section",4),I.Ub(1,"div",5),I.Ub(2,"mat-button-toggle-group",6),I.Ub(3,"mat-button-toggle",7),I.bc("click",(function(){return I.Ec(t),I.fc().filterContractFamily("single-collateral")})),I.Ub(4,"p",8),I.Qc(5,"Single Collateral"),I.Tb(),I.Tb(),I.Oc(6,it,4,1,"mat-button-toggle",9),I.gc(7,"async"),I.Tb(),I.Tb(),I.Ub(8,"div",10),I.Ub(9,"mat-form-field",11),I.Pb(10,"fa-icon",12),I.Ub(11,"mat-label"),I.Qc(12),I.gc(13,"translate"),I.Tb(),I.Ub(14,"input",13,14),I.bc("keydown",(function(e){return I.Ec(t),I.fc().handleKeybinds(e)})),I.Tb(),I.Ub(16,"fa-icon",15),I.bc("click",(function(e){I.Ec(t);const n=I.fc();return e.stopPropagation(),n.filterControl.setValue("")})),I.Tb(),I.Tb(),I.Tb(),I.Oc(17,at,4,4,"div",16),I.Oc(18,ht,4,8,"ng-container",17),I.Oc(19,pt,3,5,"cdk-virtual-scroll-viewport",18),I.gc(20,"async"),I.Pb(21,"market-picker-preview",19),I.gc(22,"async"),I.gc(23,"async"),I.Tb()}if(2&t){const t=e.ngLet,n=I.Ac(15),i=I.fc();I.mc("ngClass",I.rc(22,ft,"multi-collateral"===t)),I.Cb(2),I.mc("value",t),I.Cb(4),I.mc("ngIf",I.hc(7,12,i.flexEnabled$)),I.Cb(6),I.Rc(I.hc(13,14,"FORM.SEARCH")),I.Cb(2),I.mc("formControl",i.filterControl),I.Cb(2),I.mc("hidden",0===n.value.length),I.Cb(1),I.mc("ngIf","single-collateral"===t),I.Cb(1),I.mc("ngIf","multi-collateral"===t),I.Cb(1),I.mc("ngLet",I.hc(20,16,i.focusMarket$)),I.Cb(2),I.mc("ticker",I.hc(22,18,i.detailedTicker$))("isAlt",I.hc(23,20,i.isAlt$))("isFlex","multi-collateral"===t)}}function gt(t,e){if(1&t){const t=I.Vb();I.Ub(0,"button",2),I.bc("click",(function(){I.Ec(t);const n=e.$implicit;return I.fc().changeFlexCategory(n)})),I.Ub(1,"span",39),I.Qc(2),I.Tb(),I.Tb()}if(2&t){const t=e.$implicit;I.Cb(2),I.Rc(t)}}const mt=a()("trace:app:market-picker");let vt=(()=>{let t=class{constructor(t,e,n,i,r){this.store=t,this.fb=e,this.market=n,this.ws=i,this.keybinds=r,this.contractFamily$=new l.a("single-collateral"),this.hoverAsset$=new l.a(Object(c.None)()),this.hoverMarket$=new l.a(Object(c.None)()),this.pairFilter$=new l.a(Object(c.None)()),this.flexSort$=new l.a("volume"),this.flexSortDirection$=new l.a("up"),this.flexCategory$=new l.a("all"),this.filterControl=this.fb.control(""),this.assets$=this.store.pipe(Object(s.m)(w.d)),this.tickers$=this.store.pipe(Object(s.m)(T.o)),this.pairs$=this.store.pipe(Object(s.m)(T.m)),this.favorites$=this.store.pipe(Object(s.m)(S.p)),this.activeSymbol$=this.store.pipe(Object(s.m)(w.r)),this.isAlt$=this.store.pipe(Object(s.m)(C.l)),this.selectedMarket$=this.store.pipe(Object(s.m)(w.n)),this.flexCategories$=this.store.pipe(Object(s.m)(T.e)),this.flexEnabled$=this.store.pipe(Object(s.m)(P.f)),this.userData$=this.store.pipe(Object(s.m)(S.a)),this.focusAsset$=Object(u.a)([this.hoverAsset$,this.activeSymbol$.pipe(Object(h.a)(v.m))]).pipe(Object(h.a)(([t,e])=>t.orSome(e))),this.focusMarket$=Object(u.a)([this.hoverMarket$,this.activeSymbol$]).pipe(Object(h.a)(([t,e])=>t.orSome(e))),this.assetItems$=Object(u.a)([this.tickers$,this.assets$,this.pairFilter$,this.contractFamily$]).pipe(Object(h.a)(([t,e,n,i])=>Object(_.d)("asset-transform",()=>e.valueSeq().filter(({name:t})=>n.map(m.Q).map(e=>[t,Object(v.g)(t)].map(m.Q).some(t=>t.includes(e))).orSome(!0)).map(e=>{const n=t.filter(Ct("XBT"===e.name?"BTC":e.name)).filter(wt(i)),r=n.get(`${"multi-collateral"===i?"PF":"PI"}_${e.name}USD`.replace(A.a,"XBT"));return{asset:e,name:e.name,primaryTicker:r,tickers:n,count:n.size}}).filter(({tickers:t})=>t.size>0).sortBy(({primaryTicker:t})=>{var e;return null!==(e=null==t?void 0:t.volume)&&void 0!==e?e:0},m.i).toArray()))),this.assetTickers$=Object(u.a)([this.tickers$,this.favorites$,this.focusAsset$,this.contractFamily$,this.pairFilter$,Object(u.a)([this.flexSort$,this.flexCategory$,this.flexSortDirection$])]).pipe(Object(h.a)(([t,e,n,i,r,[s,o,a]])=>Object(_.d)("ticker-transform",()=>{const c="up"===a?m.i:m.d;if("FAVORITES"===n&&"multi-collateral"!==i)return t.valueSeq().filter(t=>e.has(Object(y.i)(t))).sortBy(_t,c).toArray();const l=t.filter(({pair:t})=>r.map(m.Q).map(e=>[t,Object(v.g)(t)].map(m.Q).some(t=>t.includes(e))).orSome(!0)),u="change"===s?St:Tt,h="XBT"===n?"BTC":n;return l.valueSeq().filter("multi-collateral"===i?t=>!0:Ct(h)).filter(wt(i)).filter(function(t){return e=>"all"===t||!t||e.category===t}(o)).groupBy(Ot).sortBy(u,c).map(kt).valueSeq().flatMap(m.j).toArray().sort((t,n)=>e.has(Object(y.i)(t))?-1:1)}))),this.detailedTicker$=this.focusMarket$.pipe(Object(d.a)(t=>this.store.pipe(Object(s.m)(T.d,{symbol:t}))))}ngOnInit(){this.focusMarket$.pipe(Object(p.a)(void 0),Object(f.a)(),Object(b.a)(this.store.pipe(Object(s.m)(w.r))),Object(r.b)(this)).subscribe(([[t,e],n])=>{t&&t!==n&&this.ws.closeFeed({feed:"ticker",product_ids:[t]}),e&&e!==n&&this.ws.openFeed({feed:"ticker",product_ids:[e]})}),this.selectedMarket$.pipe(Object(g.a)()).subscribe(t=>this.contractFamily$.next("flexible_futures"===(null==t?void 0:t.type)?"multi-collateral":"single-collateral")),this.filterControl.valueChanges.pipe(Object(h.a)(m.M),Object(r.b)(this)).subscribe(t=>{this.pairFilter$.next(c.Maybe.fromFalsy(t))}),this.keybinds.addBind("escape",()=>this.popper.dispose()),this.keybinds.register()}ngAfterViewInit(){setTimeout(()=>this.filterInput.focus())}ngOnDestroy(){this.keybinds.dispose(),this.focusMarket$.pipe(Object(b.a)(this.store.pipe(Object(s.m)(w.r))),Object(g.a)()).subscribe(([t,e])=>{t&&t!==e&&this.ws.closeFeed({feed:"ticker",product_ids:[t]})})}hoverAsset(t){this.hoverAsset$.next(Object(c.Some)(t))}hoverMarket(t){this.hoverMarket$.next(Object(c.Some)(t))}unHoverPair(){this.menuAimer.commitExit(),this.hoverAsset$.next(Object(c.None)()),this.hoverMarket$.next(Object(c.None)())}selectMarket(t){t&&(this.market.navigateToMarket(t.product_id),this.popper.dispose())}handleKeybinds(t){"Escape"===t.code&&(t.stopPropagation(),t.target.blur(),this.filterControl.setValue(""))}updateFavorite([t,e]){this.store.dispatch(e?Object(O.d)({marketDescriptor:t}):Object(O.v)({marketDescriptor:t}))}handleRowActivate(t){mt("row activate",t.dataset.asset),"asset"in t.dataset&&this.hoverAsset(t.dataset.asset)}filterContractFamily(t){this.contractFamily$.next(t)}changeFlexSort(t,e){t===this.flexSort$.value&&this.flexSortDirection$.next("up"===e?"down":"up"),this.flexSort$.next(t)}changeFlexCategory(t){this.flexCategory$.next(t)}};return t.\u0275fac=function(e){return new(e||t)(I.Ob(s.b),I.Ob(M.d),I.Ob(E.a),I.Ob(x.a),I.Ob(k.a,2))},t.\u0275cmp=I.Ib({type:t,selectors:[["market-picker"]],viewQuery:function(t,e){var n;1&t&&(I.Jc(et,!0),I.Jc(nt,!0)),2&t&&(I.zc(n=I.cc())&&(e.filterInput=n.first),I.zc(n=I.cc())&&(e.menuAimer=n.first))},hostBindings:function(t,e){1&t&&I.bc("mouseleave",(function(){return e.unHoverPair()}))},inputs:{popper:"popper"},features:[I.Bb([k.a])],decls:9,vars:6,consts:[["class","market-picker",3,"ngClass",4,"ngLet"],["flexCategories",""],["sb-menu-item","",3,"click"],["sb-menu-item","",3,"click",4,"ngFor","ngForOf"],[1,"market-picker",3,"ngClass"],[1,"futures"],[3,"value"],["value","single-collateral",3,"click"],["bold",""],["value","multi-collateral",3,"click",4,"ngIf"],["body","",1,"search"],["color","accent","appearance","fill"],["icon","search","size","2x","matPrefix","",1,"icon"],["matInput","","autocomplete","off",3,"formControl","keydown"],["filter","matInput"],["icon","close","size","2x","matSuffix","",1,"clear",3,"hidden","click"],["class","assets","menuAim",".asset",3,"menuAimExitMenu","menuAimActivate",4,"ngIf"],[4,"ngIf"],["class","tickers",3,"itemSize",4,"ngLet"],[1,"preview",3,"ticker","isAlt","isFlex"],["value","multi-collateral",3,"click"],[3,"label"],["menuAim",".asset",1,"assets",3,"menuAimExitMenu","menuAimActivate"],["menuAimer","menuAim"],[4,"ngLet"],[1,"asset","favorite-assets"],[1,"icon"],["icon","star-filled"],["body","",1,"asset"],["body","","ghost","",1,"count"],["class","asset",3,"asset","primaryTicker","tickers","count","click",4,"ngFor","ngForOf","ngForTrackField"],[1,"asset",3,"asset","primaryTicker","tickers","count","click"],["class","controls",4,"ngIf"],[1,"controls"],[1,"sort-controls"],[1,"sort-control",3,"ngClass","click"],["body",""],[3,"icon"],["body","",1,"category",3,"sbMenuTriggerFor"],["capitalize",""],["icon","chevron-down","size","lg"],[1,"tickers",3,"itemSize"],[3,"isFlex","ticker","favorites","isAlt","focussed","updateFavorite","mouseenter","click",4,"cdkVirtualFor","cdkVirtualForOf","cdkVirtualForTrackField"],[3,"isFlex","ticker","favorites","isAlt","focussed","updateFavorite","mouseenter","click"]],template:function(t,e){1&t&&(I.Oc(0,bt,24,24,"section",0),I.gc(1,"async"),I.Ub(2,"sb-menu",null,1),I.Ub(4,"button",2),I.bc("click",(function(){return e.changeFlexCategory("all")})),I.Ub(5,"span"),I.Qc(6,"All"),I.Tb(),I.Tb(),I.Oc(7,gt,3,1,"button",3),I.gc(8,"async"),I.Tb()),2&t&&(I.mc("ngLet",I.hc(1,2,e.contractFamily$)),I.Cb(7),I.mc("ngForOf",I.hc(8,4,e.flexCategories$)))},directives:[D.a,R.a,j.a,L.m,L.l,N.b,N.a,U.a,L.n,F.a,B.c,z.b,B.g,B.f,V.b,M.c,M.o,M.f,B.h,$.a,H.a,q.a,Q.a,W.a,G.b,Y.a,K.b,Z.a,X.e,X.a,X.d,G.a,J.a],pipes:[L.b,tt.d],styles:['.market-picker[_ngcontent-%COMP%]{padding:var(--spacing) var(--spacing) 0;width:625px;height:525px;display:grid;grid-template:"futures futures" auto "search search" auto "assets tickers" 1fr "assets preview" 200px/280px 1fr;-webkit-user-select:none;-moz-user-select:none;user-select:none}@media (max-width:1024px){.market-picker[_ngcontent-%COMP%]{height:100%;width:100%}}.market-picker.flex[_ngcontent-%COMP%]{grid-template:"futures futures" auto "search search" auto "controls controls" auto "tickers preview" 1fr "tickers preview" 200px/1.5fr 1fr!important}.market-picker.flex[_ngcontent-%COMP%] .tickers[_ngcontent-%COMP%]{margin-right:var(--spacing)!important;padding-bottom:0!important;border-bottom:none!important;border-right:1px solid var(--border-colour)}fa-icon[_ngcontent-%COMP%]{color:var(--icon-colour)}.futures[_ngcontent-%COMP%]{grid-area:futures}.search[_ngcontent-%COMP%]{grid-area:search}.search[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.search[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{margin-right:var(--spacing)}.search[_ngcontent-%COMP%] .clear[_ngcontent-%COMP%]{cursor:pointer}.assets[_ngcontent-%COMP%]{grid-area:assets;margin-right:var(--spacing);padding-right:var(--spacing);padding-bottom:var(--spacing);overflow:hidden auto;border-right:1px solid var(--border-colour)}.assets[_ngcontent-%COMP%] [active=true][_ngcontent-%COMP%]{--pair-color:var(--link-colour)}.assets[_ngcontent-%COMP%] [focus=true][_ngcontent-%COMP%]{background-color:var(--toolbar-colour)}.assets[_ngcontent-%COMP%] market-picker-asset[has-primary=true][_ngcontent-%COMP%]{cursor:pointer}.assets[_ngcontent-%COMP%] .favorite-assets[_ngcontent-%COMP%]{display:block;padding:var(--spacing-s) var(--spacing);height:48px;display:grid;grid-template:"icon asset" auto "icon count" auto/min-content 1fr;gap:var(--spacing-s) var(--spacing-ml);align-items:center;border-radius:var(--bdrs)}.assets[_ngcontent-%COMP%] .favorite-assets[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{grid-area:icon;font-size:24px}.assets[_ngcontent-%COMP%] .favorite-assets[_ngcontent-%COMP%] .asset[_ngcontent-%COMP%]{grid-area:asset;align-self:end;font-size:14px;color:var(--pair-color,var(--text-colour))}.assets[_ngcontent-%COMP%] .favorite-assets[_ngcontent-%COMP%] .count[_ngcontent-%COMP%]{grid-area:count;align-self:start}.tickers[_ngcontent-%COMP%]{grid-area:tickers;padding-bottom:var(--spacing);margin-bottom:var(--spacing);overflow:hidden auto;border-bottom:1px solid var(--border-colour)}.tickers[_ngcontent-%COMP%] [active=true][_ngcontent-%COMP%]{--market-color:var(--link-colour)}.tickers[_ngcontent-%COMP%] [focus=true][_ngcontent-%COMP%]{background-color:var(--toolbar-colour)}.tickers[_ngcontent-%COMP%] market-picker-ticker[_ngcontent-%COMP%]{cursor:pointer}.preview[_ngcontent-%COMP%]{grid-area:preview;align-self:stretch}.controls[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-right:var(--spacing-l);margin-bottom:var(--spacing)}.controls[_ngcontent-%COMP%] .category[_ngcontent-%COMP%]{cursor:pointer}.controls[_ngcontent-%COMP%] .category[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{padding-left:var(--spacing)}.sort-controls[_ngcontent-%COMP%]{display:flex}.sort-control[_ngcontent-%COMP%]{cursor:pointer;margin-right:var(--spacing);display:flex}.sort-control.inactive[_ngcontent-%COMP%]{opacity:.5}'],changeDetection:0}),t=Object(i.d)([Object(r.a)()],t),t})();const _t=Object(m.F)("notionalVolume"),yt=Object(m.F)("change"),Ot=Object(m.F)("pair");function Ct(t){return e=>e.pair.includes(t)}function wt(t){return e=>"multi-collateral"===t?Object(y.a)(e.product_id):e.product_id.startsWith("PI")||e.product_id.startsWith("PV")||e.product_id.startsWith("FI")||e.product_id.startsWith("FV")}function Tt(t){return t.reduce(Object(m.L)(_t),0)}function St(t){return t.reduce(Object(m.L)(yt),0)}function kt(t){return t.valueSeq().sortBy(v.y)}},RN2F:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={update:function(){if("undefined"!=typeof window&&"function"==typeof window.addEventListener){var t=!1,e=Object.defineProperty({},"passive",{get:function(){t=!0}}),n=function(){};window.addEventListener("testPassiveEventSupport",n,e),window.removeEventListener("testPassiveEventSupport",n,e),i.hasSupport=t}}};i.update(),e.default=i},ROBh:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("gBlb"),r=n("ckkg"),s=n("czMQ");function o(...t){let e=t[t.length-1];return Object(i.a)(e)?(t.pop(),Object(s.a)(t,e)):Object(r.a)(t)}},"ROO/":function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var i=n("An66"),r=n("kZht"),s=n("5XID"),o=n("2yS1"),a=n("jL3B"),c=n("NxuZ");const l=["sb-menu-item",""];function u(t,e){if(1&t&&r.Pb(0,"fa-icon",3),2&t){const t=r.fc();r.mc("icon",t.sbIcon)}}function h(t,e){1&t&&r.Pb(0,"fa-icon",4)}const d=["*"];let p=(()=>{class t{constructor(t,e,n,i){this.el=t,this.document=e,this.focusMonitor=n,this.parentMenu=i,this._disabled=!1,this.role="menuitem",this.hovered=new r.o,this.focused=new r.o,this.highlighted=!1,this.triggersSubmenu=!1,n.monitor(this.el,!1)}set disabled(t){this._disabled=Object(s.c)(t)}get disabled(){return this._disabled}focus(t="program",e){this.focusMonitor.focusVia(this._getHostElement(),t,e),this.focused.next(this)}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.el),this.hovered.complete(),this.focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this.el.nativeElement}_checkDisabled(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this.hovered.next(this)}getLabel(){const t=this.el.nativeElement,e=this.document.TEXT_NODE;let n="";if(t.childNodes){const i=t.childNodes.length;for(let r=0;r{class t{constructor(t){this.zone=t,this.keybinds=new Map}addBind(t,e){this.keybinds.set(t,t=>this.zone.run(()=>e(t)))}register(){a("registering keybinds",[...this.keybinds.keys()].flat());for(const[t,e]of this.keybinds.entries())Object(i.bind)(t,e)}dispose(){a("clearing keybinds",[...this.keybinds.keys()].flat());for(const t of this.keybinds.keys())Object(i.unbind)(t);this.keybinds.clear()}}return t.\u0275fac=function(e){return new(e||t)(o.Yb(o.B))},t.\u0275prov=o.Kb({token:t,factory:t.\u0275fac}),t})()},RnHX:function(t,e,n){"use strict";n.d(e,"a",(function(){return O}));var i=n("3kIJ"),r=(n("og7C"),n("TYVA")),s=n("CW1w"),o=n("kZht"),a=n("anSm"),c=n("EmXI"),l=n("IOEv"),u=n("An66"),h=n("pTnX"),d=n("Tcl6"),p=n("8EXQ"),f=n("chaP"),b=n("LbKT"),g=n("aDqW"),m=n("DpwM"),v=n("fvDn"),_=n("FUqb");function y(t,e){if(1&t&&(o.Ub(0,"mat-option",17),o.Qc(1),o.gc(2,"cryptoAbbreviation"),o.Tb()),2&t){const t=e.$implicit;o.mc("value",t),o.Cb(1),o.Sc(" ",o.hc(2,2,t)," ")}}let O=(()=>{class t{constructor(t){this.formBuilder=t,this.form=this.buildForm(),this.mid=0}ngOnChanges(t){var e,n,i,s;if(null===(e=t.selectedMarket)||void 0===e?void 0:e.currentValue){const e=null===(n=t.selectedMarket)||void 0===n?void 0:n.currentValue;this.form.get("pair").setValue(Object(r.o)(e.symbol))}if(null===(i=t.mid)||void 0===i?void 0:i.currentValue){const e=null===(s=t.mid)||void 0===s?void 0:s.currentValue;this.form.get("entryPrice").setValue(e),this.form.get("exitPrice").setValue(e)}}buildForm(){return this.formBuilder.group({pair:["",i.x.required],direction:["long",i.x.required],entryPrice:[this.mid,i.x.required],exitPrice:[this.mid,i.x.required],quantity:[0,i.x.required],capital:[0,i.x.required]})}get inverse(){const t=this.form.get("pair").value,e=this.markets.find(e=>Object(r.j)(e.symbol).toUpperCase()===t);return Object(r.u)(e.symbol).inverse}get uniquePairs(){return this.markets.filter(t=>"futures_inverse"===t.type).map(t=>Object(r.o)(t.symbol)).toSet()}get pairMarket(){const t=this.form.get("pair").value;return this.markets.find(e=>Object(r.o)(e.symbol)===t)}get notionalValue(){const t=this.form.get("entryPrice").value,e=this.form.get("quantity").value;return Object(s.d)(e,t,this.inverse)}get capitalBase(){return this.form.get("capital").value}get capitalQuote(){const t=this.form.get("entryPrice").value,e=this.form.get("capital").value;return Object(s.a)(e,t,this.inverse)}get profitBase(){const t=this.form.get("entryPrice").value,e=this.form.get("exitPrice").value,n=this.form.get("quantity").value,i=this.form.get("direction").value;return Object(s.f)({entry:t,exit:e,quantity:n,side:i,isInverse:this.inverse})}get exitValueBase(){const t=this.form.get("capital").value;return Object(s.b)(this.profitBase,t)}get exitValueQuote(){const t=this.form.get("exitPrice").value;return Object(s.a)(this.exitValueBase,t,this.inverse)}get profitQuote(){const t=this.form.get("exitPrice").value;return Object(s.a)(this.profitBase,t,this.inverse)}get priceChange(){const t=this.form.get("entryPrice").value,e=this.form.get("exitPrice").value;return Object(s.e)(t,e)}get pairBase(){return Object(r.k)(this.form.get("pair").value)}get pairQuote(){return Object(r.l)(this.form.get("pair").value)}get unitBase(){return this.inverse?this.pairBase:this.pairQuote}get unitQuote(){return this.inverse?this.pairQuote:this.pairBase}}return t.\u0275fac=function(e){return new(e||t)(o.Ob(i.d))},t.\u0275cmp=o.Ib({type:t,selectors:[["profit-loss-calculator"]],inputs:{mid:"mid",markets:"markets",selectedMarket:"selectedMarket"},features:[o.Ab],decls:109,vars:102,consts:[[1,"disclaimer","global__text","global__text-body"],[1,"form"],["body","",3,"formGroup"],["color","accent","appearance","fill"],["matNativeControl","","formControlName","pair"],[3,"value",4,"ngFor","ngForOf"],["matNativeControl","","formControlName","direction"],["value","long"],["value","short"],["type","number","formControlName","entryPrice","matInput","","min","0"],["type","number","formControlName","exitPrice","matInput","","min","0"],["type","number","formControlName","quantity","matInput","","min","0"],["type","number","formControlName","capital","matInput","","min","0"],["body","",1,"form-results"],[1,"form-result"],["mono",""],["mono","",3,"pnl"],[3,"value"]],template:function(t,e){1&t&&(o.Ub(0,"p",0),o.Qc(1),o.gc(2,"translate"),o.Tb(),o.Ub(3,"p",0),o.Qc(4," These calculators apply to Single-collateral contracts only.\n"),o.Tb(),o.Ub(5,"section",1),o.Ub(6,"form",2),o.Ub(7,"mat-form-field",3),o.Ub(8,"mat-label"),o.Qc(9),o.gc(10,"translate"),o.Tb(),o.Ub(11,"mat-select",4),o.Oc(12,y,3,4,"mat-option",5),o.Tb(),o.Tb(),o.Ub(13,"mat-form-field",3),o.Ub(14,"mat-label"),o.Qc(15),o.gc(16,"translate"),o.Tb(),o.Ub(17,"mat-select",6),o.Ub(18,"mat-option",7),o.Qc(19),o.gc(20,"translate"),o.Tb(),o.Ub(21,"mat-option",8),o.Qc(22),o.gc(23,"translate"),o.Tb(),o.Tb(),o.Tb(),o.Ub(24,"mat-form-field",3),o.Ub(25,"mat-label"),o.Qc(26),o.gc(27,"translate"),o.Tb(),o.Pb(28,"input",9),o.Tb(),o.Ub(29,"mat-form-field",3),o.Ub(30,"mat-label"),o.Qc(31),o.gc(32,"translate"),o.Tb(),o.Pb(33,"input",10),o.Tb(),o.Ub(34,"mat-form-field",3),o.Ub(35,"mat-label"),o.Qc(36),o.gc(37,"translate"),o.Tb(),o.Pb(38,"input",11),o.Tb(),o.Ub(39,"mat-form-field",3),o.Ub(40,"mat-label"),o.Qc(41),o.gc(42,"translate"),o.Tb(),o.Pb(43,"input",12),o.Tb(),o.Tb(),o.Pb(44,"mat-divider"),o.Ub(45,"section",13),o.Ub(46,"section",14),o.Ub(47,"p"),o.Qc(48),o.gc(49,"translate"),o.Tb(),o.Ub(50,"strong",15),o.Qc(51),o.gc(52,"cryptoPrecise"),o.gc(53,"cryptoAbbreviation"),o.Tb(),o.Tb(),o.Ub(54,"section",14),o.Ub(55,"p"),o.Qc(56),o.gc(57,"translate"),o.Tb(),o.Ub(58,"strong",15),o.Qc(59),o.gc(60,"cryptoPrecise"),o.gc(61,"cryptoAbbreviation"),o.Tb(),o.Tb(),o.Ub(62,"section",14),o.Ub(63,"p"),o.Qc(64,"\xa0"),o.Tb(),o.Ub(65,"strong",15),o.Qc(66),o.gc(67,"cryptoPrecise"),o.gc(68,"cryptoAbbreviation"),o.Tb(),o.Tb(),o.Pb(69,"mat-divider"),o.Ub(70,"section",14),o.Ub(71,"p"),o.Qc(72),o.gc(73,"translate"),o.Tb(),o.Ub(74,"strong",16),o.Qc(75),o.gc(76,"cryptoPrecise"),o.gc(77,"cryptoAbbreviation"),o.Tb(),o.Tb(),o.Ub(78,"section",14),o.Ub(79,"p"),o.Qc(80,"\xa0"),o.Tb(),o.Ub(81,"strong",16),o.Qc(82),o.gc(83,"cryptoPrecise"),o.gc(84,"cryptoAbbreviation"),o.Tb(),o.Tb(),o.Pb(85,"mat-divider"),o.Ub(86,"section",14),o.Ub(87,"p"),o.Qc(88),o.gc(89,"translate"),o.Tb(),o.Ub(90,"strong",15),o.Qc(91),o.gc(92,"cryptoPrecise"),o.gc(93,"cryptoAbbreviation"),o.Tb(),o.Tb(),o.Ub(94,"section",14),o.Ub(95,"p"),o.Qc(96,"\xa0"),o.Tb(),o.Ub(97,"strong",15),o.Qc(98),o.gc(99,"cryptoPrecise"),o.gc(100,"cryptoAbbreviation"),o.Tb(),o.Tb(),o.Ub(101,"section",14),o.Ub(102,"p"),o.Qc(103),o.gc(104,"translate"),o.Tb(),o.Ub(105,"strong",16),o.Qc(106),o.gc(107,"change"),o.gc(108,"percent"),o.Tb(),o.Tb(),o.Tb(),o.Tb()),2&t&&(o.Cb(1),o.Sc(" ",o.hc(2,34,"DASHBOARD.LIQIDATION_CALCULATOR_DISCLAIMER"),"\n"),o.Cb(5),o.mc("formGroup",e.form),o.Cb(3),o.Rc(o.hc(10,36,"FORM.CONTRACT_TYPE")),o.Cb(3),o.mc("ngForOf",e.uniquePairs),o.Cb(3),o.Rc(o.hc(16,38,"COLUMN.DIRECTION")),o.Cb(4),o.Rc(o.hc(20,40,"BUTTON.LONG")),o.Cb(3),o.Rc(o.hc(23,42,"BUTTON.SHORT")),o.Cb(4),o.Sc("",o.hc(27,44,"FORM.ENTRY_PRICE"),":"),o.Cb(5),o.Sc("",o.hc(32,46,"FORM.EXIT_PRICE"),":"),o.Cb(5),o.Sc("",o.hc(37,48,"FORM.QUANTITY"),":"),o.Cb(5),o.Sc("",o.hc(42,50,"FORM.START_CAPITAL"),":"),o.Cb(7),o.Sc("",o.hc(49,52,"LABEL.CONTRACT_NOTIONAL_VALUE"),":"),o.Cb(3),o.Tc("",o.ic(52,54,e.notionalValue||0,e.unitBase)," ",o.hc(53,57,e.unitBase),""),o.Cb(5),o.Sc("",o.hc(57,59,"LABEL.START_CAPITAL"),":"),o.Cb(3),o.Tc("",o.ic(60,61,e.capitalBase,e.unitBase)," ",o.hc(61,64,e.unitBase),""),o.Cb(7),o.Tc("",o.ic(67,66,e.capitalQuote,e.unitQuote)," ",o.hc(68,69,e.unitQuote),""),o.Cb(6),o.Sc("",o.hc(73,71,"LABEL.PNL"),":"),o.Cb(2),o.mc("pnl",e.profitBase),o.Cb(1),o.Tc(" ",o.ic(76,73,e.profitBase,e.unitBase)," ",o.hc(77,76,e.unitBase)," "),o.Cb(6),o.mc("pnl",e.profitQuote),o.Cb(1),o.Tc(" ",o.ic(83,78,e.profitQuote,e.unitQuote)," ",o.hc(84,81,e.unitQuote)," "),o.Cb(6),o.Sc("",o.hc(89,83,"LABEL.VALUE_ON_EXIT"),":"),o.Cb(3),o.Tc("",o.ic(92,85,e.exitValueBase,e.unitBase)," ",o.hc(93,88,e.unitBase),""),o.Cb(7),o.Tc("",o.ic(99,90,e.exitValueQuote,e.unitQuote)," ",o.hc(100,93,e.unitQuote),""),o.Cb(5),o.Sc("",o.hc(104,95,"LABEL.PRICE_CHANGE"),":"),o.Cb(2),o.mc("pnl",e.priceChange),o.Cb(1),o.Sc(" ",o.hc(107,97,o.ic(108,99,e.priceChange,"1.2-2"))," "))},directives:[i.z,i.p,a.a,i.h,c.c,c.f,l.a,i.o,i.g,u.m,h.n,i.s,i.c,d.b,p.a,f.a,b.a],pipes:[g.d,m.b,v.a,_.b,u.u],styles:["[_nghost-%COMP%]{display:block;padding:var(--spacing)}.disclaimer[_ngcontent-%COMP%]{border-bottom:2px solid var(--border-colour);padding-bottom:var(--spacing);margin-bottom:var(--spacing)}.form[_ngcontent-%COMP%]{display:flex}@media (max-width:599px){.form[_ngcontent-%COMP%]{flex-direction:column}}.form-results[_ngcontent-%COMP%], .form[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{display:flex;flex-direction:column}.form[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{flex:0.3;margin-right:var(--spacing)}.form[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{margin-bottom:var(--spacing)}.form-results[_ngcontent-%COMP%]{flex:0.7}.form-result[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:space-between}.form-result[_ngcontent-%COMP%]:not(:last-of-type){margin-bottom:6px}.form-result[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{white-space:nowrap}"],changeDetection:0}),t})()},RnvC:function(t,e,n){"use strict";n.r(e),n.d(e,"PasswordResetRequestComponent",(function(){return y}));var i=n("3kIJ"),r=n("zqNl"),s=n("94ty"),o=n("uJYd"),a=n("bjK4"),c=n("kZht"),l=n("mcff"),u=n("rfPA"),h=n("bBQR"),d=n("afE0"),p=n("anSm"),f=n("EmXI"),b=n("Tcl6"),g=n("An66"),m=n("hCLc"),v=n("aDqW");function _(t,e){1&t&&(c.Ub(0,"mat-error"),c.Qc(1),c.gc(2,"translate"),c.Tb()),2&t&&(c.Cb(1),c.Sc(" ",c.hc(2,1,"FORM.EMAIL_ERROR")," "))}let y=(()=>{class t{constructor(t,e,n){this.store=t,this.dialogRef=e,this.fb=n,this.form=this.buildForm(),this.loading$=this.store.pipe(Object(r.m)(a.m,{filter:s.t.type}))}buildForm(){return this.fb.group({email:["",[i.x.required,i.x.email]]})}submitForm(){this.store.dispatch(Object(s.t)(this.form.value))}closeDialog(t){this.dialogRef.close(),this.store.dispatch(Object(o.n)(s.t.type)),t&&this.store.dispatch(Object(o.g)(t))}}return t.\u0275fac=function(e){return new(e||t)(c.Ob(r.b),c.Ob(l.d),c.Ob(i.d))},t.\u0275cmp=c.Ib({type:t,selectors:[["password-reset-request"]],decls:19,vars:17,consts:[["heading","DIALOG.PASSWORD_RESET_SENT.TITLE",3,"loading"],[1,"dialog-content","vstack","hcenter","gap-l"],["icon","shield-full"],["body","",1,"vstack",3,"formGroup","ngSubmit"],["color","accent","appearance","fill"],["matInput","","formControlName","email","type","email","required","","autocomplete","off"],[4,"ngIf"],["mat-raised-button","","body","",3,"disabled"],["body",""],[1,"global__text--link",3,"click"]],template:function(t,e){1&t&&(c.Ub(0,"pro-dialog",0),c.gc(1,"async"),c.Ub(2,"section",1),c.Pb(3,"dialog-badge",2),c.Ub(4,"form",3),c.bc("ngSubmit",(function(){return e.submitForm()})),c.Ub(5,"mat-form-field",4),c.Ub(6,"mat-label"),c.Qc(7),c.gc(8,"translate"),c.Tb(),c.Pb(9,"input",5),c.Oc(10,_,3,3,"mat-error",6),c.Tb(),c.Ub(11,"button",7),c.gc(12,"async"),c.Qc(13),c.gc(14,"translate"),c.Tb(),c.Tb(),c.Ub(15,"div",8),c.Ub(16,"a",9),c.bc("click",(function(){return e.closeDialog({name:"sign-in"})})),c.Qc(17),c.gc(18,"translate"),c.Tb(),c.Tb(),c.Tb(),c.Tb()),2&t&&(c.mc("loading",c.hc(1,7,e.loading$)),c.Cb(4),c.mc("formGroup",e.form),c.Cb(3),c.Rc(c.hc(8,9,"FORM.EMAIL")),c.Cb(3),c.mc("ngIf",e.form.get("email").invalid),c.Cb(1),c.mc("disabled",e.form.invalid||c.hc(12,11,e.loading$)),c.Cb(2),c.Sc(" ",c.hc(14,13,"BUTTON.RESET_PASSWORD")," "),c.Cb(4),c.Sc(" ",c.hc(18,15,"DIALOG.RESET_PASSWORD.SIGNIN_LINK")," "))},directives:[u.a,h.a,d.a,i.z,i.p,p.a,i.h,f.c,f.f,b.b,i.c,i.o,i.g,i.v,g.n,m.b,f.b],pipes:[g.b,v.d],styles:[".dialog-content[_ngcontent-%COMP%]{text-align:center}"],changeDetection:0}),t})()},S21V:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s=n("pUSv"),o=n("n5Bc"),a=n("KFdt"),c=n("ZCEf"),l=n("LqyJ"),u=n("KZGf"),h=n("4Pxi"),d=n("Qkwj"),p=n("2rct"),f=n("uwQt"),b=n("dyLe"),g=n("1a7C"),m=n("ssKD"),v=n("iiuT");e.default=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.possibleLeftPairs=[],e.possibleRightPairs=[],e}return r(e,t),e.prototype.decodeRow=function(t,n,i){var r=this.decodePair(n,!1,t,i);e.addOrTally(this.possibleLeftPairs,r),n.reverse();var s=this.decodePair(n,!0,t,i);e.addOrTally(this.possibleRightPairs,s),n.reverse();for(var o=0,a=this.possibleLeftPairs;o1)for(var u=0,h=this.possibleRightPairs;u1&&e.checkChecksum(c,d))return e.constructResult(c,d)}}throw new l.default},e.addOrTally=function(t,e){if(null!=e){for(var n=!1,i=0,r=t;i0;s--)r.append("0");r.append(i);var o=0;for(s=0;s<13;s++){var c=r.charAt(s).charCodeAt(0)-"0".charCodeAt(0);o+=0==(1&s)?3*c:c}10==(o=10-o%10)&&(o=0),r.append(o.toString());var l=t.getFinderPattern().getResultPoints(),d=e.getFinderPattern().getResultPoints();return new a.default(r.toString(),null,0,[l[0],l[1],d[0],d[1]],h.default.RSS_14,(new Date).getTime())},e.checkChecksum=function(t,e){var n=(t.getChecksumPortion()+16*e.getChecksumPortion())%79,i=9*t.getFinderPattern().getValue()+e.getFinderPattern().getValue();return i>72&&i--,i>8&&i--,n===i},e.prototype.decodePair=function(t,e,n,i){try{var r=this.findFinderPattern(t,e),s=this.parseFoundFinderPattern(t,n,e,r),a=null==i?null:i.get(c.default.NEED_RESULT_POINT_CALLBACK);if(null!=a){var l=(r[0]+r[1])/2;e&&(l=t.getSize()-1-l),a.foundPossibleResultPoint(new d.default(l,n))}var u=this.decodeDataCharacter(t,s,!0),h=this.decodeDataCharacter(t,s,!1);return new o.default(1597*u.getValue()+h.getValue(),u.getChecksumPortion()+4*h.getChecksumPortion(),s)}catch(p){return null}},e.prototype.decodeDataCharacter=function(t,n,i){for(var r=this.getDataCharacterCounters(),s=0;s8&&(O=8);var C=Math.floor(o/2);0==(1&o)?(d[C]=O,m[C]=y-O):(p[C]=O,_[C]=y-O)}this.adjustOddEvenCounts(i,u);var w=0,T=0;for(o=d.length-1;o>=0;o--)T*=9,T+=d[o],w+=d[o];var S=0,k=0;for(o=p.length-1;o>=0;o--)S*=9,S+=p[o],k+=p[o];var E,x,P=T+3*S;if(i){if(0!=(1&w)||w>12||w<4)throw new l.default;var A=9-(x=e.OUTSIDE_ODD_WIDEST[E=(12-w)/2]),I=g.default.getRSSvalue(d,x,!1),M=g.default.getRSSvalue(p,A,!0);return new f.default(I*e.OUTSIDE_EVEN_TOTAL_SUBSET[E]+M+e.OUTSIDE_GSUM[E],P)}if(0!=(1&k)||k>10||k<4)throw new l.default;return A=9-(x=e.INSIDE_ODD_WIDEST[E=(10-k)/2]),I=g.default.getRSSvalue(d,x,!0),M=g.default.getRSSvalue(p,A,!1),new f.default(M*e.INSIDE_ODD_TOTAL_SUBSET[E]+I+e.INSIDE_GSUM[E],P)},e.prototype.findFinderPattern=function(t,e){var n=this.getDecodeFinderCounters();n[0]=0,n[1]=0,n[2]=0,n[3]=0;for(var i=t.getSize(),r=!1,o=0;o=0&&s!==t.get(o);)o--;o++;var a=r[0]-o,c=this.getDecodeFinderCounters(),l=new Array(c.length);m.default.arraycopy(c,0,l,1,c.length-1),l[0]=a;var u=this.parseFinderValue(l,e.FINDER_PATTERNS),h=o,d=r[1];return i&&(h=t.getSize()-1-h,d=t.getSize()-1-d),new p.default(u,[o,r[1]],h,d,n)},e.prototype.adjustOddEvenCounts=function(t,e){var n=b.default.sum(new Int32Array(this.getOddCounts())),i=b.default.sum(new Int32Array(this.getEvenCounts())),r=!1,o=!1,a=!1,c=!1;t?(n>12?o=!0:n<4&&(r=!0),i>12?c=!0:i<4&&(a=!0)):(n>11?o=!0:n<5&&(r=!0),i>10?c=!0:i<4&&(a=!0));var u=n+i-e,h=(1&n)==(t?1:0),d=1==(1&i);if(1===u)if(h){if(d)throw new l.default;o=!0}else{if(!d)throw new l.default;c=!0}else if(-1===u)if(h){if(d)throw new l.default;r=!0}else{if(!d)throw new l.default;a=!0}else{if(0!==u)throw new l.default;if(h){if(!d)throw new l.default;n{class t{constructor(t){this.store=t,this.classification=Object(i.None)()}get submitDisabled(){return this.classification.isNone()}setClassification({value:t}){this.classification=Object(i.Some)(t)}submit(){this.classification.forEach(t=>{this.store.dispatch(Object(r.a)({classification:t}))})}}return t.\u0275fac=function(e){return new(e||t)(s.Ob(o.b))},t.\u0275cmp=s.Ib({type:t,selectors:[["uk-retail-popup"]],decls:16,vars:14,consts:[["heading","DIALOG.UK_RETAIL_RESTRICTIONS.TITLE"],[1,"body"],[3,"data"],[3,"value","change"],["value","RETAIL"],["value","PROFESSIONAL"],[1,"buttons"],["mat-button","",3,"disabled","click"]],template:function(t,e){1&t&&(s.Ub(0,"pro-dialog",0),s.Ub(1,"section"),s.Ub(2,"section",1),s.Pb(3,"markdown",2),s.gc(4,"translate"),s.Ub(5,"mat-radio-group",3),s.bc("change",(function(t){return e.setClassification(t)})),s.Ub(6,"mat-radio-button",4),s.Qc(7),s.gc(8,"translate"),s.Tb(),s.Ub(9,"mat-radio-button",5),s.Qc(10),s.gc(11,"translate"),s.Tb(),s.Tb(),s.Tb(),s.Ub(12,"section",6),s.Ub(13,"button",7),s.bc("click",(function(){return e.submit()})),s.Qc(14),s.gc(15,"translate"),s.Tb(),s.Tb(),s.Tb(),s.Tb()),2&t&&(s.Cb(3),s.mc("data",s.hc(4,6,"DIALOG.UK_RETAIL_RESTRICTIONS.BODY")),s.Cb(2),s.mc("value",e.classification.orUndefined()),s.Cb(2),s.Sc(" ",s.hc(8,8,"DIALOG.UK_RETAIL_RESTRICTIONS.RADIO_RETAIL")," "),s.Cb(3),s.Sc(" ",s.hc(11,10,"DIALOG.UK_RETAIL_RESTRICTIONS.RADIO_PRO")," "),s.Cb(3),s.mc("disabled",e.submitDisabled),s.Cb(1),s.Sc(" ",s.hc(15,12,"BUTTON.SUBMIT")," "))},directives:[a.a,c.a,l.a,u.b,u.a,h.b],pipes:[d.d],styles:[".body[_ngcontent-%COMP%], .subtitle[_ngcontent-%COMP%]{margin-bottom:var(--spacing-l)}.body[_ngcontent-%COMP%]{max-width:650px;color:var(--text-colour);font-family:var(--typeface);font-size:12px;line-height:1.4}.body[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{line-height:1.3;margin-bottom:.5em}.buttons[_ngcontent-%COMP%]{justify-content:flex-end;margin-top:var(--spacing-l)}.buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:not(:last-child){margin-right:var(--spacing)}"],changeDetection:0}),t})()},SAoO:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("kZht"),r=n("aDqW"),s=n("oiza");let o=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["pill"]],inputs:{label:"label"},decls:2,vars:1,consts:[["translate","","uppercase","",1,"pill"]],template:function(t,e){1&t&&(i.Ub(0,"span",0),i.Qc(1),i.Tb()),2&t&&(i.Cb(1),i.Rc(e.label))},directives:[r.a,s.a],styles:[".pill[_ngcontent-%COMP%]{background:var(--brand);border-radius:var(--bdrs);padding:1px var(--spacing-s);vertical-align:text-top;margin-left:var(--spacing)}"],changeDetection:0}),t})()},SC2c:function(t,e,n){t.exports=function(t){function e(t){let e=0;for(let n=0;n{if("%%"===n)return n;s++;const o=i.formatters[r];return"function"==typeof o&&(n=o.call(e,t[s]),t.splice(s,1),s--),n}),i.formatArgs.call(e,t),(e.log||i.log).apply(e,t)}return o.namespace=t,o.enabled=i.enabled(t),o.useColors=i.useColors(),o.color=e(t),o.destroy=r,o.extend=s,"function"==typeof i.init&&i.init(o),i.instances.push(o),o}function r(){const t=i.instances.indexOf(this);return-1!==t&&(i.instances.splice(t,1),!0)}function s(t,e){const n=i(this.namespace+(void 0===e?":":e)+t);return n.log=this.log,n}function o(t){return t.toString().substring(2,t.toString().length-2).replace(/\.\*\?$/,"*")}return i.debug=i,i.default=i,i.coerce=function(t){return t instanceof Error?t.stack||t.message:t},i.disable=function(){const t=[...i.names.map(o),...i.skips.map(o).map(t=>"-"+t)].join(",");return i.enable(""),t},i.enable=function(t){let e;i.save(t),i.names=[],i.skips=[];const n=("string"==typeof t?t:"").split(/[\s,]+/),r=n.length;for(e=0;e{i[e]=t[e]}),i.instances=[],i.names=[],i.skips=[],i.formatters={},i.selectColor=e,i.enable(i.load()),i}},SFx8:function(t,e,n){var i=n("JgBV"),r=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function s(t){this.mode=i.ALPHANUMERIC,this.data=t}s.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(t){var e;for(e=0;e+2<=this.data.length;e+=2){var n=45*r.indexOf(this.data[e]);n+=r.indexOf(this.data[e+1]),t.put(n,11)}this.data.length%2&&t.put(r.indexOf(this.data[e]),6)},t.exports=s},SnIc:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e,n,i,r,s){void 0===r&&(r=-1),void 0===s&&(s=-1),this.rawBytes=t,this.text=e,this.byteSegments=n,this.ecLevel=i,this.structuredAppendSequenceNumber=r,this.structuredAppendParity=s,this.numBits=null==t?0:8*t.length}return t.prototype.getRawBytes=function(){return this.rawBytes},t.prototype.getNumBits=function(){return this.numBits},t.prototype.setNumBits=function(t){this.numBits=t},t.prototype.getText=function(){return this.text},t.prototype.getByteSegments=function(){return this.byteSegments},t.prototype.getECLevel=function(){return this.ecLevel},t.prototype.getErrorsCorrected=function(){return this.errorsCorrected},t.prototype.setErrorsCorrected=function(t){this.errorsCorrected=t},t.prototype.getErasures=function(){return this.erasures},t.prototype.setErasures=function(t){this.erasures=t},t.prototype.getOther=function(){return this.other},t.prototype.setOther=function(t){this.other=t},t.prototype.hasStructuredAppend=function(){return this.structuredAppendParity>=0&&this.structuredAppendSequenceNumber>=0},t.prototype.getStructuredAppendParity=function(){return this.structuredAppendParity},t.prototype.getStructuredAppendSequenceNumber=function(){return this.structuredAppendSequenceNumber},t}();e.default=i},SrNW:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("5uGe");function r(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new s(t,e,n))}}class s{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new o(t,this.accumulator,this.seed,this.hasSeed))}}class o extends i.a{constructor(t,e,n,i){super(t),this.accumulator=e,this._seed=n,this.hasSeed=i,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let n;try{n=this.accumulator(this.seed,t,e)}catch(i){this.destination.error(i)}this.seed=n,this.destination.next(n)}}},SxAO:function(t,e,n){"use strict";n("gCmX")},T5QL:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var i=n("6uGs"),r=n("P0Wc"),s=n.n(r),o=n("sXtk"),a=n("kZht");function c(t){if(t instanceof Array){const e=[];for(const n of t)e.push(c(n));return e}if(t instanceof ArrayBuffer)return s.a.encode(t);if(t instanceof Object){const e={};for(const n of t)e[n]=c(t[n]);return e}return t}const l={headers:new i.c({"Content-Type":"application/json"}),withCredentials:!0};let u=(()=>{class t{constructor(t,e){this.env=t,this.http=e}fetchRegisterChallenge(){return this.http.post(this.env.urls.auth+"/fido2/registerchallenge",void 0,l)}createPublicKey(t){const e=((n=t).publicKey.challenge=s.a.toBuffer(n.publicKey.challenge),n.publicKey.user.id=s.a.toBuffer(n.publicKey.user.id),n.publicKey.excludeCredentials=n.publicKey.excludeCredentials.map(({id:t,type:e})=>({type:e,id:s.a.toBuffer(t)})),n);var n;return navigator.credentials.create(e)}registerCred(t,e){const n=c(t);return this.http.post(this.env.urls.auth+"/fido2/register",{cred:n,name:e},l)}fetchAuthChallenge(){return this.http.post(this.env.urls.auth+"/fido2/authenticatechallenge",void 0,l)}getAssertion(t){const e=function(t){t.publicKey.challenge=s.a.toBuffer(t.publicKey.challenge);for(const e of t.publicKey.allowCredentials)e.id=s.a.toBuffer(e.id);return t}(t);return navigator.credentials.get(e)}sendAssertion(t){const e=((n=c(t)).response.clientDataJSON=s.a.toBase64(n.response.clientDataJSON),n.response.authenticatorData=s.a.toBase64(n.response.authenticatorData),n.response.signature=s.a.toBase64(n.response.signature),n);var n;return this.http.post(this.env.urls.auth+"/fido2/authenticate",{cred:e},l)}fetchCredentials(){return this.http.get(this.env.urls.auth+"/account/hwcreds",l)}deleteCred(t){return this.http.delete(`${this.env.urls.auth}/account/hwcreds/${t}`,l)}}return t.\u0275fac=function(e){return new(e||t)(a.Yb(o.a),a.Yb(i.a))},t.\u0275prov=a.Kb({token:t,factory:t.\u0275fac}),t})()},TADc:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("kZht");let r=(()=>{class t{constructor(){this.orientation="horizontal"}set vertical(t){this.orientation=void 0!==t?"vertical":"horizontal"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["sb-divider"]],hostVars:1,hostBindings:function(t,e){2&t&&i.Db("orientation",e.orientation)},inputs:{vertical:"vertical"},decls:0,vars:0,template:function(t,e){},styles:["[_nghost-%COMP%]{background-color:var(--divider-color,rgba(var(--ghost-colour-rgb),.5))}[orientation=horizontal][_nghost-%COMP%]{display:block;height:var(--divider-thickness,1px);width:var(--divider-size,calc(100% - var(--spacing-l)));margin:var(--divider-margin,0 auto)}[orientation=vertical][_nghost-%COMP%]{display:inline-block;width:var(--divider-thickness,1px);height:var(--divider-size,calc(100% - var(--spacing-l)))}"],changeDetection:0}),t})()},TDnQ:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("1XZd"),r=n("KZGf");e.default=function(){function t(t,e){this.width=t,this.height=e;for(var n=new Array(e),i=0;i!==e;i++)n[i]=new Uint8Array(t);this.bytes=n}return t.prototype.getHeight=function(){return this.height},t.prototype.getWidth=function(){return this.width},t.prototype.get=function(t,e){return this.bytes[e][t]},t.prototype.getArray=function(){return this.bytes},t.prototype.setNumber=function(t,e,n){this.bytes[e][t]=n},t.prototype.setBoolean=function(t,e,n){this.bytes[e][t]=n?1:0},t.prototype.clear=function(t){for(var e=0,n=this.bytes;e40)throw new c.default;return t.VERSIONS[e-1]},t.decodeVersionInformation=function(e){for(var n=Number.MAX_SAFE_INTEGER,i=0,s=0;s6&&(e.setRegion(t-11,0,3,6),e.setRegion(0,t-11,6,3)),e},t.prototype.toString=function(){return""+this.versionNumber},t.VERSION_DECODE_INFO=Int32Array.from([31892,34236,39577,42195,48118,51042,55367,58893,63784,68472,70749,76311,79154,84390,87683,92361,96236,102084,102881,110507,110734,117786,119615,126325,127568,133589,136944,141498,145311,150283,152622,158308,161089,167017]),t.VERSIONS=[new t(1,new Int32Array(0),new s.default(7,new o.default(1,19)),new s.default(10,new o.default(1,16)),new s.default(13,new o.default(1,13)),new s.default(17,new o.default(1,9))),new t(2,Int32Array.from([6,18]),new s.default(10,new o.default(1,34)),new s.default(16,new o.default(1,28)),new s.default(22,new o.default(1,22)),new s.default(28,new o.default(1,16))),new t(3,Int32Array.from([6,22]),new s.default(15,new o.default(1,55)),new s.default(26,new o.default(1,44)),new s.default(18,new o.default(2,17)),new s.default(22,new o.default(2,13))),new t(4,Int32Array.from([6,26]),new s.default(20,new o.default(1,80)),new s.default(18,new o.default(2,32)),new s.default(26,new o.default(2,24)),new s.default(16,new o.default(4,9))),new t(5,Int32Array.from([6,30]),new s.default(26,new o.default(1,108)),new s.default(24,new o.default(2,43)),new s.default(18,new o.default(2,15),new o.default(2,16)),new s.default(22,new o.default(2,11),new o.default(2,12))),new t(6,Int32Array.from([6,34]),new s.default(18,new o.default(2,68)),new s.default(16,new o.default(4,27)),new s.default(24,new o.default(4,19)),new s.default(28,new o.default(4,15))),new t(7,Int32Array.from([6,22,38]),new s.default(20,new o.default(2,78)),new s.default(18,new o.default(4,31)),new s.default(18,new o.default(2,14),new o.default(4,15)),new s.default(26,new o.default(4,13),new o.default(1,14))),new t(8,Int32Array.from([6,24,42]),new s.default(24,new o.default(2,97)),new s.default(22,new o.default(2,38),new o.default(2,39)),new s.default(22,new o.default(4,18),new o.default(2,19)),new s.default(26,new o.default(4,14),new o.default(2,15))),new t(9,Int32Array.from([6,26,46]),new s.default(30,new o.default(2,116)),new s.default(22,new o.default(3,36),new o.default(2,37)),new s.default(20,new o.default(4,16),new o.default(4,17)),new s.default(24,new o.default(4,12),new o.default(4,13))),new t(10,Int32Array.from([6,28,50]),new s.default(18,new o.default(2,68),new o.default(2,69)),new s.default(26,new o.default(4,43),new o.default(1,44)),new s.default(24,new o.default(6,19),new o.default(2,20)),new s.default(28,new o.default(6,15),new o.default(2,16))),new t(11,Int32Array.from([6,30,54]),new s.default(20,new o.default(4,81)),new s.default(30,new o.default(1,50),new o.default(4,51)),new s.default(28,new o.default(4,22),new o.default(4,23)),new s.default(24,new o.default(3,12),new o.default(8,13))),new t(12,Int32Array.from([6,32,58]),new s.default(24,new o.default(2,92),new o.default(2,93)),new s.default(22,new o.default(6,36),new o.default(2,37)),new s.default(26,new o.default(4,20),new o.default(6,21)),new s.default(28,new o.default(7,14),new o.default(4,15))),new t(13,Int32Array.from([6,34,62]),new s.default(26,new o.default(4,107)),new s.default(22,new o.default(8,37),new o.default(1,38)),new s.default(24,new o.default(8,20),new o.default(4,21)),new s.default(22,new o.default(12,11),new o.default(4,12))),new t(14,Int32Array.from([6,26,46,66]),new s.default(30,new o.default(3,115),new o.default(1,116)),new s.default(24,new o.default(4,40),new o.default(5,41)),new s.default(20,new o.default(11,16),new o.default(5,17)),new s.default(24,new o.default(11,12),new o.default(5,13))),new t(15,Int32Array.from([6,26,48,70]),new s.default(22,new o.default(5,87),new o.default(1,88)),new s.default(24,new o.default(5,41),new o.default(5,42)),new s.default(30,new o.default(5,24),new o.default(7,25)),new s.default(24,new o.default(11,12),new o.default(7,13))),new t(16,Int32Array.from([6,26,50,74]),new s.default(24,new o.default(5,98),new o.default(1,99)),new s.default(28,new o.default(7,45),new o.default(3,46)),new s.default(24,new o.default(15,19),new o.default(2,20)),new s.default(30,new o.default(3,15),new o.default(13,16))),new t(17,Int32Array.from([6,30,54,78]),new s.default(28,new o.default(1,107),new o.default(5,108)),new s.default(28,new o.default(10,46),new o.default(1,47)),new s.default(28,new o.default(1,22),new o.default(15,23)),new s.default(28,new o.default(2,14),new o.default(17,15))),new t(18,Int32Array.from([6,30,56,82]),new s.default(30,new o.default(5,120),new o.default(1,121)),new s.default(26,new o.default(9,43),new o.default(4,44)),new s.default(28,new o.default(17,22),new o.default(1,23)),new s.default(28,new o.default(2,14),new o.default(19,15))),new t(19,Int32Array.from([6,30,58,86]),new s.default(28,new o.default(3,113),new o.default(4,114)),new s.default(26,new o.default(3,44),new o.default(11,45)),new s.default(26,new o.default(17,21),new o.default(4,22)),new s.default(26,new o.default(9,13),new o.default(16,14))),new t(20,Int32Array.from([6,34,62,90]),new s.default(28,new o.default(3,107),new o.default(5,108)),new s.default(26,new o.default(3,41),new o.default(13,42)),new s.default(30,new o.default(15,24),new o.default(5,25)),new s.default(28,new o.default(15,15),new o.default(10,16))),new t(21,Int32Array.from([6,28,50,72,94]),new s.default(28,new o.default(4,116),new o.default(4,117)),new s.default(26,new o.default(17,42)),new s.default(28,new o.default(17,22),new o.default(6,23)),new s.default(30,new o.default(19,16),new o.default(6,17))),new t(22,Int32Array.from([6,26,50,74,98]),new s.default(28,new o.default(2,111),new o.default(7,112)),new s.default(28,new o.default(17,46)),new s.default(30,new o.default(7,24),new o.default(16,25)),new s.default(24,new o.default(34,13))),new t(23,Int32Array.from([6,30,54,78,102]),new s.default(30,new o.default(4,121),new o.default(5,122)),new s.default(28,new o.default(4,47),new o.default(14,48)),new s.default(30,new o.default(11,24),new o.default(14,25)),new s.default(30,new o.default(16,15),new o.default(14,16))),new t(24,Int32Array.from([6,28,54,80,106]),new s.default(30,new o.default(6,117),new o.default(4,118)),new s.default(28,new o.default(6,45),new o.default(14,46)),new s.default(30,new o.default(11,24),new o.default(16,25)),new s.default(30,new o.default(30,16),new o.default(2,17))),new t(25,Int32Array.from([6,32,58,84,110]),new s.default(26,new o.default(8,106),new o.default(4,107)),new s.default(28,new o.default(8,47),new o.default(13,48)),new s.default(30,new o.default(7,24),new o.default(22,25)),new s.default(30,new o.default(22,15),new o.default(13,16))),new t(26,Int32Array.from([6,30,58,86,114]),new s.default(28,new o.default(10,114),new o.default(2,115)),new s.default(28,new o.default(19,46),new o.default(4,47)),new s.default(28,new o.default(28,22),new o.default(6,23)),new s.default(30,new o.default(33,16),new o.default(4,17))),new t(27,Int32Array.from([6,34,62,90,118]),new s.default(30,new o.default(8,122),new o.default(4,123)),new s.default(28,new o.default(22,45),new o.default(3,46)),new s.default(30,new o.default(8,23),new o.default(26,24)),new s.default(30,new o.default(12,15),new o.default(28,16))),new t(28,Int32Array.from([6,26,50,74,98,122]),new s.default(30,new o.default(3,117),new o.default(10,118)),new s.default(28,new o.default(3,45),new o.default(23,46)),new s.default(30,new o.default(4,24),new o.default(31,25)),new s.default(30,new o.default(11,15),new o.default(31,16))),new t(29,Int32Array.from([6,30,54,78,102,126]),new s.default(30,new o.default(7,116),new o.default(7,117)),new s.default(28,new o.default(21,45),new o.default(7,46)),new s.default(30,new o.default(1,23),new o.default(37,24)),new s.default(30,new o.default(19,15),new o.default(26,16))),new t(30,Int32Array.from([6,26,52,78,104,130]),new s.default(30,new o.default(5,115),new o.default(10,116)),new s.default(28,new o.default(19,47),new o.default(10,48)),new s.default(30,new o.default(15,24),new o.default(25,25)),new s.default(30,new o.default(23,15),new o.default(25,16))),new t(31,Int32Array.from([6,30,56,82,108,134]),new s.default(30,new o.default(13,115),new o.default(3,116)),new s.default(28,new o.default(2,46),new o.default(29,47)),new s.default(30,new o.default(42,24),new o.default(1,25)),new s.default(30,new o.default(23,15),new o.default(28,16))),new t(32,Int32Array.from([6,34,60,86,112,138]),new s.default(30,new o.default(17,115)),new s.default(28,new o.default(10,46),new o.default(23,47)),new s.default(30,new o.default(10,24),new o.default(35,25)),new s.default(30,new o.default(19,15),new o.default(35,16))),new t(33,Int32Array.from([6,30,58,86,114,142]),new s.default(30,new o.default(17,115),new o.default(1,116)),new s.default(28,new o.default(14,46),new o.default(21,47)),new s.default(30,new o.default(29,24),new o.default(19,25)),new s.default(30,new o.default(11,15),new o.default(46,16))),new t(34,Int32Array.from([6,34,62,90,118,146]),new s.default(30,new o.default(13,115),new o.default(6,116)),new s.default(28,new o.default(14,46),new o.default(23,47)),new s.default(30,new o.default(44,24),new o.default(7,25)),new s.default(30,new o.default(59,16),new o.default(1,17))),new t(35,Int32Array.from([6,30,54,78,102,126,150]),new s.default(30,new o.default(12,121),new o.default(7,122)),new s.default(28,new o.default(12,47),new o.default(26,48)),new s.default(30,new o.default(39,24),new o.default(14,25)),new s.default(30,new o.default(22,15),new o.default(41,16))),new t(36,Int32Array.from([6,24,50,76,102,128,154]),new s.default(30,new o.default(6,121),new o.default(14,122)),new s.default(28,new o.default(6,47),new o.default(34,48)),new s.default(30,new o.default(46,24),new o.default(10,25)),new s.default(30,new o.default(2,15),new o.default(64,16))),new t(37,Int32Array.from([6,28,54,80,106,132,158]),new s.default(30,new o.default(17,122),new o.default(4,123)),new s.default(28,new o.default(29,46),new o.default(14,47)),new s.default(30,new o.default(49,24),new o.default(10,25)),new s.default(30,new o.default(24,15),new o.default(46,16))),new t(38,Int32Array.from([6,32,58,84,110,136,162]),new s.default(30,new o.default(4,122),new o.default(18,123)),new s.default(28,new o.default(13,46),new o.default(32,47)),new s.default(30,new o.default(48,24),new o.default(14,25)),new s.default(30,new o.default(42,15),new o.default(32,16))),new t(39,Int32Array.from([6,26,54,82,110,138,166]),new s.default(30,new o.default(20,117),new o.default(4,118)),new s.default(28,new o.default(40,47),new o.default(7,48)),new s.default(30,new o.default(43,24),new o.default(22,25)),new s.default(30,new o.default(10,15),new o.default(67,16))),new t(40,Int32Array.from([6,30,58,86,114,142,170]),new s.default(30,new o.default(19,118),new o.default(6,119)),new s.default(28,new o.default(18,47),new o.default(31,48)),new s.default(30,new o.default(34,24),new o.default(34,25)),new s.default(30,new o.default(20,15),new o.default(61,16)))],t}()},TLy2:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("YtkY"),r=n("GoAz"),s=n("uCWR");function o(t,e){return"function"==typeof e?n=>n.pipe(o((n,s)=>Object(r.a)(t(n,s)).pipe(Object(i.a)((t,i)=>e(n,t,s,i))))):e=>e.lift(new a(t))}class a{constructor(t){this.project=t}call(t,e){return e.subscribe(new c(t,this.project))}}class c extends s.b{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const n=new s.a(this),i=this.destination;i.add(n),this.innerSubscription=Object(s.c)(t,n),this.innerSubscription!==n&&i.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}},TMzY:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("kZht"),r=n("LaGA");let s=(()=>{class t{constructor(t,e){this.element=t,this.renderer=e,this.orientationChange=new i.o,this.observer=new r.a(()=>this.determineOrientation())}ngOnInit(){this.observer.observe(this.element.nativeElement)}ngOnDestroy(){this.observer.disconnect()}determineOrientation(){const t=this.element.nativeElement,e=t.offsetHeight,n=t.offsetWidth;let i;this.renderer.removeAttribute(t,"orientation"),this.breakpoints?e>this.breakpoints.vertical?(i="vertical",this.renderer.setAttribute(t,"orientation",i)):n>this.breakpoints.horizontal&&(i="horizontal",this.renderer.setAttribute(t,"orientation",i)):(i=this.minVertical?e>n&&e>this.minVertical?"vertical":"horizontal":this.minHorizontal?n>e&&n>this.minHorizontal?"horizontal":"vertical":n>e?"horizontal":"vertical",this.renderer.setAttribute(t,"orientation",i)),this.orientationChange.emit(i)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(i.G))},t.\u0275dir=i.Jb({type:t,selectors:[["","orientation",""]],inputs:{breakpoints:"breakpoints",minVertical:"minVertical",minHorizontal:"minHorizontal"},outputs:{orientationChange:"orientationChange"}}),t})()},TNp2:function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var i=n("KQpv"),r=n.n(i),s=n("ZTXN"),o=n("+6xv");const a=[Object(o.n)("scaleFade",[Object(o.k)("void, initial, hidden",Object(o.l)({opacity:0,transform:"scale(0)"})),Object(o.k)("visible",Object(o.l)({transform:"scale(1)"})),Object(o.m)("* => visible",Object(o.e)("200ms cubic-bezier(0.215, 0.610, 0.355, 1.000)",Object(o.h)([Object(o.l)({opacity:0,transform:"scale(0)",offset:0}),Object(o.l)({opacity:.5,transform:"scale(0.99)",offset:.5}),Object(o.l)({opacity:1,transform:"scale(1)",offset:1})]))),Object(o.m)("* => hidden",Object(o.e)("100ms cubic-bezier(0.215, 0.610, 0.355, 1.000)",Object(o.l)({opacity:0})))])];var c=n("kZht"),l=n("An66"),u=n("aDqW");function h(t,e){if(1&t&&(c.Sb(0),c.Qc(1),c.gc(2,"translate"),c.Rb()),2&t){const t=c.fc();c.Cb(1),c.Sc(" ",c.hc(2,1,t.stringContent)," ")}}function d(t,e){if(1&t&&c.Qb(0,3),2&t){const t=c.fc();c.mc("ngTemplateOutlet",t.content)}}const p=r()("trace:sb:tooltip-wrapper");let f=(()=>{class t{constructor(t){this.cdr=t,this.closeInInteraction=!1,this.onHide$=new s.b,this.visibility="initial"}ngOnDestroy(){this.onHide$.complete()}get isStringContent(){return"object"!=typeof this.content}get stringContent(){return(""+this.content).trim()}get isVisible(){return"visible"===this.visibility}show(t=0){p("showing in",t,"ms"),this.hideDelayId&&(clearTimeout(this.hideDelayId),this.hideDelayId=void 0),this.closeInInteraction=!0,this.showDelayId=window.setTimeout(()=>{this.visibility="visible",this.showDelayId=void 0,this.markForCheck()},t)}hide(t=0){p("hiding in",t,"ms"),this.showDelayId&&(clearTimeout(this.showDelayId),this.showDelayId=void 0),this.hideDelayId=window.setTimeout(()=>{this.visibility="hidden",this.hideDelayId=void 0,this.markForCheck()},t)}get afterHidden(){return this.onHide$.asObservable()}animationStart(t){p("animation start",t),this.closeInInteraction=!1}animationDone(t){p("animation done",t);const e=t.toState;"hidden"===e&&this.onHide$.next(),"visible"!==e&&"hidden"!==e||(this.closeInInteraction=!0)}markForCheck(){p("marking for check"),this.cdr.markForCheck()}handleOutsideInteraction(t){this.closeInInteraction&&this.hide(0)}}return t.\u0275fac=function(e){return new(e||t)(c.Ob(c.h))},t.\u0275cmp=c.Ib({type:t,selectors:[["sb-tooltip-wrapper"]],hostAttrs:["aria-hidden","true"],hostBindings:function(t,e){1&t&&c.bc("click",(function(t){return e.handleOutsideInteraction(t)}),!1,c.Bc)},inputs:{content:"content"},decls:4,vars:3,consts:[[1,"sb-tooltip"],[4,"ngIf","ngIfElse"],["templateContent",""],[3,"ngTemplateOutlet"]],template:function(t,e){if(1&t&&(c.Ub(0,"div",0),c.bc("@scaleFade.start",(function(t){return e.animationStart(t)}))("@scaleFade.done",(function(t){return e.animationDone(t)})),c.Oc(1,h,3,3,"ng-container",1),c.Oc(2,d,1,1,"ng-template",null,2,c.Pc),c.Tb()),2&t){const t=c.Ac(3);c.mc("@scaleFade",e.visibility),c.Cb(1),c.mc("ngIf",e.isStringContent)("ngIfElse",t)}},directives:[l.n,l.s],pipes:[u.d],styles:[".sb-tooltip[_ngcontent-%COMP%]{z-index:101;padding:var(--spacing);max-width:var(--mw,350px);font-family:var(--typeface);color:var(--text-colour);font-size:.9rem;background-color:rgba(var(--tooltip-bg-rgb),.9);border:1px solid var(--border-colour);border-radius:var(--bdrs);box-shadow:var(--shadow100)}@supports ((-webkit-backdrop-filter:blur(0)) or (backdrop-filter:blur(0))){.sb-tooltip[_ngcontent-%COMP%]{background-color:rgba(var(--tooltip-bg-rgb),.75);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}}"],data:{animation:[a]},changeDetection:0}),t})()},TYVA:function(t,e,n){"use strict";n.d(e,"q",(function(){return c})),n.d(e,"c",(function(){return f})),n.d(e,"b",(function(){return b})),n.d(e,"u",(function(){return v})),n.d(e,"t",(function(){return _})),n.d(e,"x",(function(){return y})),n.d(e,"d",(function(){return O})),n.d(e,"v",(function(){return C})),n.d(e,"j",(function(){return w})),n.d(e,"o",(function(){return T})),n.d(e,"m",(function(){return S})),n.d(e,"p",(function(){return k})),n.d(e,"n",(function(){return E})),n.d(e,"z",(function(){return x})),n.d(e,"k",(function(){return P})),n.d(e,"l",(function(){return A})),n.d(e,"s",(function(){return I})),n.d(e,"g",(function(){return M})),n.d(e,"i",(function(){return D})),n.d(e,"f",(function(){return R})),n.d(e,"e",(function(){return j})),n.d(e,"w",(function(){return L})),n.d(e,"r",(function(){return N})),n.d(e,"y",(function(){return U})),n.d(e,"B",(function(){return F})),n.d(e,"h",(function(){return B})),n.d(e,"a",(function(){return z})),n.d(e,"A",(function(){return V}));var i=n("KQpv"),r=n.n(i),s=n("VmIW"),o=n("lx5p");const a=r()("lib:futures:utils:fees");function c(t,e){const n=Object(o.g)(Object(o.F)("usdVolume"),o.i);return t.map((i,r)=>{const o=e.get(r),c=i.tiers.slice().sort(n),l=c.findIndex(t=>t.usdVolume<=o);return-1===l&&a(`no fee tier found for ${r.slice(0,4)}...`,{feeSchedules:t,volumes:e}),[c[l],s.Maybe.fromNull(c[l-1])]})}var l=n("Yu3e"),u=n.n(l),h=n("orIj"),d=n("9hG1");const p=r()("lib:market"),f=":",b="/",g=/^\s*(?[FPO])(?[IVLF]?)_(?10+)?(?(?[A-Z0-9]+)(?USD|USDC|EUR|BTC|XBT))(?:_(?(?[0-9]{2})(?[0-9]{2})(?[0-9]{2})))?(?:_(?[0-9]+(\.[0-9]+)?)_(?P|C))?\s*$/i,m=/^\s*P([IVF])_(([A-Z0-9]{1,7})([A-Z0-9]{3,4}))(?:_(\w+))\s*$/i,v=u()((function(t){const e=t.toUpperCase(),n=function(t){return Object(o.y)(g,t).flatMap(e=>{if(null==(null==e?void 0:e.groups))return s.Maybe.None();const{group:n,type:i,multiplier:r,pair:o,base:a,quote:c,date:l,year:u,month:h,day:d}=e.groups,p=a.replace("XBT","BTC"),f=c.replace("XBT","BTC"),g="P"===n,m="I"===i,v={original:t,perpetual:g,inverse:m,collateral:m?p:f,traded:m?f:p,pair:`${p}${b}${f}`,customTag:void 0,parts:{family:"F"===i?"flex":"cryp",group:n,type:i,multiplier:r,currencies:{raw:o,base:p,quote:f},maturity:g?void 0:{raw:l,day:d,month:h,year:u,date:new Date(`20${u}-${h}-${d}`)}}};return s.Maybe.Just(v)})}(e);if(n.isSome())return n.some();const i=_(e);if(i.isSome())return i.some();const r=new Error(t+" is not a parsable symbol");throw p(r),r}));function _(t){return Object(o.y)(m,t).map(e=>{const[n,i,r,s,o]=e.slice(1),a=r.replace("XBT","BTC"),c=s.replace("XBT","BTC"),l="I"===n;return{original:t,perpetual:!0,inverse:l,collateral:l?a:c,traded:l?c:a,pair:`${a}/${c}`,customTag:o,parts:{family:"F"===n?"flex":"cryp",group:"P",type:n,multiplier:void 0,currencies:{raw:i,base:a,quote:c},maturity:void 0}}})}function y(t){try{return v(t)}catch(e){return null}}const O=t=>t.parts.currencies.base,C=t=>t.parts.currencies.quote;function w(t){return v(t).pair}function T(t){return v(t).pair}function S(t){return v(t).parts.currencies.base}function k(t){return v(t).parts.currencies.quote}function E(t){return v(t).collateral}function x(t){return v(t).traded}function P(t){return t.split("/")[0]}function A(t){return t.split("/")[1]}function I(t,e){return(t+e)/2}function M(t){if(!t)return t;const e=t.toUpperCase();return e in h.a?h.a[e]:e}function D(t,e="long",n=!0){const i=v(t);if(i.perpetual)return n?"long"===e?"TAG.PERPETUAL":"TAG.PERP":"long"===e?"Perpetual":"Perp";{const t=d.DateTime.fromJSDate(i.parts.maturity.date);return"long"===e?t.monthLong:t.monthShort}}function R(t){return"F"===v(t).parts.type?"mc":"sc"}const j=["XBT","BTC","ETH","LTC","BCH","XRP","EUR"],L=["USD","EUR","XBT","BTC"],N=["perpetual","week","month","quarter","semiannual"],U=Object(o.E)(Object(o.F)("tag"),t=>N.indexOf(t)),F=["holding","flex","futures"];function B(t=0,e=!1){const n=d.DateTime.local(),i=d.DateTime.fromMillis(t),r=d.Interval.fromDateTimes(n,i).toDuration(["months","days","hours","minutes","seconds"]);return n>i?"0d:00h:00m":r.months>0?`${function(t,e){const n=d.DateTime.local().plus(d.Duration.fromObject({months:t,days:e,conversionAccuracy:"longterm"})).diffNow().as("days");return Math.round(n)}(r.months,r.days)}d:${r.hours}h:${Math.floor(r.minutes)}m`:e?`${r.days}d:${r.hours}h:${Math.floor(r.minutes)}m:${Math.floor(r.seconds)}s`:`${r.days}d:${r.hours}h:${Math.floor(r.minutes)}m`}const z={trading:"order",wallet:"face"};function V(){const t=window.innerWidth;return t>=1920?"desktop-max":t>=1441?"desktop-large":t>=1367?"desktop-medium":"desktop-small"}},Tcl6:function(t,e,n){"use strict";n.d(e,"a",(function(){return f})),n.d(e,"b",(function(){return _})),n.d(e,"c",(function(){return y}));var i=n("O1jd"),r=n("kZht"),s=n("5XID"),o=n("6Oco"),a=n("ZTXN");n("KTx3"),n("prE9"),n("kuMc"),n("An66");const c=Object(i.f)({passive:!0});let l=(()=>{class t{constructor(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return o.a;const e=Object(s.e)(t),n=this._monitoredElements.get(e);if(n)return n.subject;const i=new a.b,r="cdk-text-field-autofilled",l=t=>{"cdk-text-field-autofill-start"!==t.animationName||e.classList.contains(r)?"cdk-text-field-autofill-end"===t.animationName&&e.classList.contains(r)&&(e.classList.remove(r),this._ngZone.run(()=>i.next({target:t.target,isAutofilled:!1}))):(e.classList.add(r),this._ngZone.run(()=>i.next({target:t.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{e.addEventListener("animationstart",l,c),e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(e,{subject:i,unlisten:()=>{e.removeEventListener("animationstart",l,c)}}),i}stopMonitoring(t){const e=Object(s.e)(t),n=this._monitoredElements.get(e);n&&(n.unlisten(),n.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}ngOnDestroy(){this._monitoredElements.forEach((t,e)=>this.stopMonitoring(e))}}return t.\u0275fac=function(e){return new(e||t)(r.Yb(i.a),r.Yb(r.B))},t.\u0275prov=Object(r.Kb)({factory:function(){return new t(Object(r.Yb)(i.a),Object(r.Yb)(r.B))},token:t,providedIn:"root"}),t})(),u=(()=>{class t{}return t.\u0275mod=r.Mb({type:t}),t.\u0275inj=r.Lb({factory:function(e){return new(e||t)},imports:[[i.b]]}),t})();var h=n("3kIJ"),d=n("pTnX"),p=n("EmXI");const f=new r.s("MAT_INPUT_VALUE_ACCESSOR"),b=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let g=0;class m{constructor(t,e,n,i){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=n,this.ngControl=i}}const v=Object(d.z)(m);let _=(()=>{class t extends v{constructor(t,e,n,r,s,o,c,l,u,h){super(o,r,s,n),this._elementRef=t,this._platform=e,this.ngControl=n,this._autofillMonitor=l,this._formField=h,this._uid="mat-input-"+g++,this.focused=!1,this.stateChanges=new a.b,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(t=>Object(i.e)().has(t));const d=this._elementRef.nativeElement,p=d.nodeName.toLowerCase();this._inputValueAccessor=c||d,this._previousNativeValue=this.value,this.id=this.id,e.IOS&&u.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",t=>{let e=t.target;e.value||e.selectionStart||e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===p,this._isTextarea="textarea"===p,this._isNativeSelect&&(this.controlType=d.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=Object(s.c)(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){return this._required}set required(t){this._required=Object(s.c)(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&Object(i.e)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=Object(s.c)(t)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(t){this._elementRef.nativeElement.focus(t)}_focusChanged(t){t===this.focused||this.readonly&&t||(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var t,e;const n=(null===(e=null===(t=this._formField)||void 0===t?void 0:t._hideControlPlaceholder)||void 0===e?void 0:e.call(t))?null:this.placeholder;if(n!==this._previousPlaceholder){const t=this._elementRef.nativeElement;this._previousPlaceholder=n,n?t.setAttribute("placeholder",n):t.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_validateType(){b.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}}return t.\u0275fac=function(e){return new(e||t)(r.Ob(r.l),r.Ob(i.a),r.Ob(h.n,10),r.Ob(h.q,8),r.Ob(h.h,8),r.Ob(d.d),r.Ob(f,10),r.Ob(l),r.Ob(r.B),r.Ob(p.a,8))},t.\u0275dir=r.Jb({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(t,e){1&t&&r.bc("focus",(function(){return e._focusChanged(!0)}))("blur",(function(){return e._focusChanged(!1)}))("input",(function(){return e._onInput()})),2&t&&(r.Xb("disabled",e.disabled)("required",e.required),r.Db("id",e.id)("data-placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-invalid",e.errorState)("aria-required",e.required.toString()),r.Gb("mat-input-server",e._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[r.Bb([{provide:p.d,useExisting:t}]),r.zb,r.Ab]}),t})(),y=(()=>{class t{}return t.\u0275mod=r.Mb({type:t}),t.\u0275inj=r.Lb({factory:function(e){return new(e||t)},providers:[d.d],imports:[[u,p.e],u,p.e]}),t})()},Ti3e:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return s}));var i=n("5E2i");function r(...t){return s(t)}function s(t){return 0===t.length?i.a:1===t.length?t[0]:function(e){return t.reduce((t,e)=>e(t),e)}}},Tjvn:function(t,e,n){"use strict";function i(t,e,n){return`${n}`}function r(t){return`

${t}

`}function s(t){return`
  • ${t}
  • `}n.d(e,"a",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"b",(function(){return s}))},TuP6:function(t,e,n){var i=n("VTjg");function r(t,e){var n=t.a/255,i=e+'="'+t.hex+'"';return n<1?i+" "+e+'-opacity="'+n.toFixed(2).slice(1)+'"':i}function s(t,e,n){var i=t+e;return void 0!==n&&(i+=" "+n),i}e.render=function(t,e,n){var o=i.getOptions(e),a=t.modules.size,c=t.modules.data,l=a+2*o.margin,u=o.color.light.a?"':"",h="0&&l>0&&t[c-1]||(i+=o?s("M",l+n,.5+u+n):s("m",r,0),r=0,o=!1),l+1',d=''+u+h+"\n";return"function"==typeof n&&n(null,d),d}},TzY9:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var i=n("Tcl6"),r=n("kZht"),s=n("EmXI"),o=n("3kIJ"),a=n("aDqW");let c=(()=>{class t{constructor(){this.controlName="otp"}ngOnInit(){this.input.focus()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Ib({type:t,selectors:[["input-otp-entry"]],viewQuery:function(t,e){var n;1&t&&r.Jc(i.b,!0),2&t&&r.zc(n=r.cc())&&(e.input=n.first)},inputs:{form:"form",controlName:"controlName"},decls:5,vars:5,consts:[["color","accent","appearance","fill",3,"formGroup"],["matInput","","maxlength","6","autocomplete","off",3,"formControlName"]],template:function(t,e){1&t&&(r.Ub(0,"mat-form-field",0),r.Ub(1,"mat-label"),r.Qc(2),r.gc(3,"translate"),r.Tb(),r.Pb(4,"input",1),r.Tb()),2&t&&(r.mc("formGroup",e.form),r.Cb(2),r.Rc(r.hc(3,3,"FORM.GOOGLE_AUTH_CODE")),r.Cb(2),r.mc("formControlName",e.controlName))},directives:[s.c,o.p,o.h,s.f,i.b,o.c,o.k,o.o,o.g],pipes:[a.d],styles:["[_nghost-%COMP%]{display:block}mat-form-field[_ngcontent-%COMP%]{margin-top:var(--margin-top,0);width:100%}"],changeDetection:0}),t})()},UDV5:function(t,e,n){"use strict";n.d(e,"a",(function(){return y})),n.d(e,"b",(function(){return S})),n.d(e,"c",(function(){return C}));var i=n("jL3B"),r=n("5XID"),s=n("kZht"),o=n("3kIJ"),a=n("pTnX"),c=n("FxgA"),l=n("s2U3");const u=["input"],h=function(){return{enterDuration:150}},d=["*"],p=new s.s("mat-checkbox-default-options",{providedIn:"root",factory:function(){return{color:"accent",clickAction:"check-indeterminate"}}}),f=new s.s("mat-checkbox-click-action");let b=0;const g={provide:o.m,useExisting:Object(s.V)(()=>y),multi:!0};class m{}class v{constructor(t){this._elementRef=t}}const _=Object(a.B)(Object(a.w)(Object(a.x)(Object(a.y)(v))));let y=(()=>{class t extends _{constructor(t,e,n,i,r,o,a,c){super(t),this._changeDetectorRef=e,this._focusMonitor=n,this._ngZone=i,this._clickAction=o,this._animationMode=a,this._options=c,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++b,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new s.o,this.indeterminateChange=new s.o,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||{},this._options.color&&(this.color=this.defaultColor=this._options.color),this.tabIndex=parseInt(r)||0,this._clickAction=this._clickAction||this._options.clickAction}get inputId(){return(this.id||this._uniqueId)+"-input"}get required(){return this._required}set required(t){this._required=Object(r.c)(t)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{t||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){const e=Object(r.c)(t);e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(t){const e=t!=this._indeterminate;this._indeterminate=Object(r.c)(t),e&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(t){this.checked=!!t}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(t){let e=this._currentCheckState,n=this._elementRef.nativeElement;if(e!==t&&(this._currentAnimationClass.length>0&&n.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(e,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){n.classList.add(this._currentAnimationClass);const t=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{n.classList.remove(t)},1e3)})}}_emitChangeEvent(){const t=new m;t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t)}toggle(){this.checked=!this.checked}_onInputClick(t){t.stopPropagation(),this.disabled||"noop"===this._clickAction?this.disabled||"noop"!==this._clickAction||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==this._clickAction&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(t="keyboard",e){this._focusMonitor.focusVia(this._inputElement,t,e)}_onInteractionEvent(t){t.stopPropagation()}_getAnimationClassForCheckStateTransition(t,e){if("NoopAnimations"===this._animationMode)return"";let n="";switch(t){case 0:if(1===e)n="unchecked-checked";else{if(3!=e)return"";n="unchecked-indeterminate"}break;case 2:n=1===e?"unchecked-checked":"unchecked-indeterminate";break;case 1:n=2===e?"checked-unchecked":"checked-indeterminate";break;case 3:n=1===e?"indeterminate-checked":"indeterminate-unchecked"}return"mat-checkbox-anim-"+n}_syncIndeterminate(t){const e=this._inputElement;e&&(e.nativeElement.indeterminate=t)}}return t.\u0275fac=function(e){return new(e||t)(s.Ob(s.l),s.Ob(s.h),s.Ob(i.h),s.Ob(s.B),s.Zb("tabindex"),s.Ob(f,8),s.Ob(c.a,8),s.Ob(p,8))},t.\u0275cmp=s.Ib({type:t,selectors:[["mat-checkbox"]],viewQuery:function(t,e){var n;1&t&&(s.Wc(u,!0),s.Wc(a.r,!0)),2&t&&(s.zc(n=s.cc())&&(e._inputElement=n.first),s.zc(n=s.cc())&&(e.ripple=n.first))},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(t,e){2&t&&(s.Xb("id",e.id),s.Db("tabindex",null),s.Gb("mat-checkbox-indeterminate",e.indeterminate)("mat-checkbox-checked",e.checked)("mat-checkbox-disabled",e.disabled)("mat-checkbox-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[s.Bb([g]),s.zb],ngContentSelectors:d,decls:17,vars:20,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(t,e){if(1&t&&(s.lc(),s.Ub(0,"label",0,1),s.Ub(2,"div",2),s.Ub(3,"input",3,4),s.bc("change",(function(t){return e._onInteractionEvent(t)}))("click",(function(t){return e._onInputClick(t)})),s.Tb(),s.Ub(5,"div",5),s.Pb(6,"div",6),s.Tb(),s.Pb(7,"div",7),s.Ub(8,"div",8),s.ec(),s.Ub(9,"svg",9),s.Pb(10,"path",10),s.Tb(),s.dc(),s.Pb(11,"div",11),s.Tb(),s.Tb(),s.Ub(12,"span",12,13),s.bc("cdkObserveContent",(function(){return e._onLabelTextChange()})),s.Ub(14,"span",14),s.Qc(15,"\xa0"),s.Tb(),s.kc(16),s.Tb(),s.Tb()),2&t){const t=s.Ac(1),n=s.Ac(13);s.Db("for",e.inputId),s.Cb(2),s.Gb("mat-checkbox-inner-container-no-side-margin",!n.textContent||!n.textContent.trim()),s.Cb(1),s.mc("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),s.Db("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked())("aria-describedby",e.ariaDescribedby),s.Cb(2),s.mc("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",s.qc(19,h))}},directives:[a.r,l.a],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-frame{border-style:dotted}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),t})();const O={provide:o.l,useExisting:Object(s.V)(()=>C),multi:!0};let C=(()=>{class t extends o.a{}return t.\u0275fac=function(e){return w(e||t)},t.\u0275dir=s.Jb({type:t,selectors:[["mat-checkbox","required","","formControlName",""],["mat-checkbox","required","","formControl",""],["mat-checkbox","required","","ngModel",""]],features:[s.Bb([O]),s.zb]}),t})();const w=s.Wb(C);let T=(()=>{class t{}return t.\u0275mod=s.Mb({type:t}),t.\u0275inj=s.Lb({factory:function(e){return new(e||t)}}),t})(),S=(()=>{class t{}return t.\u0275mod=s.Mb({type:t}),t.\u0275inj=s.Lb({factory:function(e){return new(e||t)},imports:[[a.s,a.j,l.c,T],a.j,T]}),t})()},UVER:function(t,e,n){"use strict";n.d(e,"a",(function(){return tt}));var i=n("D57K"),r=n("kZht"),s=n("O30t"),o=n("LoUP"),a=n("EZWv"),c=n("gxtV"),l=n("jIqt"),u=n("+vck"),h=n("UVqw"),d=n("IkSM"),p=n("B6Vo"),f=n("Cc4E"),b=n("zho4"),g=n("anSm"),m=n("1o0v"),v=n("yPvj"),_=n("rBBj"),y=n("chaP"),O=n("+I9z"),C=n("LbKT"),w=n("NxuZ"),T=n("WYJo"),S=n("aDqW"),k=n("An66"),E=n("rUBT"),x=n("DpwM"),P=n("rqGg");function A(t,e){1&t&&r.Pb(0,"tr",26)}function I(t,e){if(1&t){const t=r.Vb();r.Ub(0,"tr",27),r.bc("click",(function(){r.Ec(t);const n=e.$implicit;return r.fc().selectTicker.emit({symbol:n.instrument,replaceUrl:!1})})),r.Tb()}}const M=function(){return[250,100]};function D(t,e){if(1&t&&(r.Ub(0,"th",28),r.Qc(1),r.gc(2,"translate"),r.Tb()),2&t){const t=r.fc();r.mc("sbDisabled",!t.displayTooltips)("sbDelay",r.qc(5,M)),r.Cb(1),r.Sc(" ",r.hc(2,3,"COLUMN.DATE_TIME")," ")}}function R(t,e){if(1&t&&(r.Ub(0,"td",29),r.Ub(1,"span"),r.Qc(2),r.gc(3,"date"),r.Tb(),r.Ub(4,"span",30),r.Qc(5),r.gc(6,"date"),r.Tb(),r.Tb()),2&t){const t=e.$implicit;r.Cb(2),r.Rc(r.ic(3,2,t.time,"HH:mm:ss")),r.Cb(3),r.Rc(r.ic(6,5,t.time,"dd/MMM/yyyy"))}}function j(t,e){if(1&t&&(r.Ub(0,"th",31),r.Qc(1),r.gc(2,"translate"),r.Tb()),2&t){const t=r.fc();r.mc("sbDisabled",!t.displayTooltips)("sbDelay",r.qc(5,M)),r.Cb(1),r.Sc(" ",r.hc(2,3,"COLUMN.MARKET")," ")}}function L(t,e){if(1&t&&(r.Ub(0,"td",29),r.Ub(1,"span"),r.Pb(2,"market-icon",32),r.gc(3,"base"),r.Qc(4),r.gc(5,"pair"),r.Tb(),r.Ub(6,"span"),r.Qc(7),r.gc(8,"uppercase"),r.gc(9,"contractFamily"),r.gc(10,"translate"),r.gc(11,"maturityMonth"),r.Tb(),r.Tb()),2&t){const t=e.$implicit;r.Cb(2),r.mc("base",r.hc(3,4,t.instrument)),r.Cb(2),r.Sc(" ",r.hc(5,6,t.instrument)," "),r.Cb(3),r.Tc(" ",r.hc(8,8,r.hc(9,10,t.instrument))," ",r.hc(10,12,r.ic(11,14,t.instrument,"short"))," ")}}function N(t,e){if(1&t&&(r.Ub(0,"th",33),r.Qc(1),r.gc(2,"translate"),r.Tb()),2&t){const t=r.fc();r.mc("sbDisabled",!t.displayTooltips)("sbDelay",r.qc(5,M)),r.Cb(1),r.Sc(" ",r.hc(2,3,"COLUMN.TRIGGER")," ")}}function U(t,e){if(1&t&&(r.Ub(0,"td",34),r.Qc(1),r.gc(2,"titlecase"),r.Ub(3,"span",35),r.Qc(4),r.gc(5,"sato"),r.Tb(),r.Tb()),2&t){const t=e.$implicit,n=r.fc();r.Cb(1),r.Tc(" ",r.hc(2,3,t.triggerSignal)," ",n.getTriggerSign(t)," "),r.Cb(3),r.Sc(" ",r.ic(5,5,t.stop_price,t)," ")}}function F(t,e){if(1&t&&(r.Ub(0,"th",36),r.Qc(1),r.gc(2,"translate"),r.Tb()),2&t){const t=r.fc();r.mc("sbDisabled",!t.displayTooltips)("sbDelay",r.qc(5,M)),r.Cb(1),r.Sc(" ",r.hc(2,3,"COLUMN.TYPE")," ")}}function B(t,e){if(1&t&&(r.Ub(0,"td",34),r.Qc(1),r.gc(2,"titlecase"),r.Tb()),2&t){const t=e.$implicit;r.Cb(1),r.Sc(" ",r.hc(2,1,t.type.replace("_"," "))," ")}}function z(t,e){if(1&t&&(r.Ub(0,"th",37),r.Qc(1),r.gc(2,"translate"),r.Tb()),2&t){const t=r.fc();r.mc("sbDisabled",!t.displayTooltips)("sbDelay",r.qc(5,M)),r.Cb(1),r.Sc(" ",r.hc(2,3,"COLUMN.SIDE")," ")}}function V(t,e){if(1&t&&(r.Ub(0,"td",34),r.Ub(1,"strong",38),r.Qc(2),r.gc(3,"translate"),r.Tb(),r.Tb()),2&t){const t=e.$implicit,n=r.fc();r.Cb(1),r.mc("pnlBool",0===t.direction),r.Cb(1),r.Sc(" ",r.hc(3,2,n.getDirection(t))," ")}}function $(t,e){if(1&t&&(r.Ub(0,"th",39),r.Qc(1),r.gc(2,"translate"),r.Tb()),2&t){const t=r.fc();r.mc("sbDisabled",!t.displayTooltips)("sbDelay",r.qc(5,M)),r.Cb(1),r.Sc(" ",r.hc(2,3,"COLUMN.PRICE")," ")}}function H(t,e){if(1&t&&(r.Ub(0,"td",29),r.Ub(1,"span",40),r.Qc(2),r.gc(3,"sato"),r.gc(4,"translate"),r.Tb(),r.Ub(5,"span",30),r.Qc(6),r.gc(7,"quote"),r.Tb(),r.Tb()),2&t){const t=e.$implicit;r.Cb(2),r.Sc(" ",t.limit_price?r.ic(3,2,t.limit_price,t):r.hc(4,5,"LABEL.MARKET")," "),r.Cb(4),r.Rc(t.limit_price?r.hc(7,7,t.instrument):null)}}function q(t,e){if(1&t&&(r.Ub(0,"th",41),r.Qc(1),r.gc(2,"translate"),r.Tb()),2&t){const t=r.fc();r.mc("sbDisabled",!t.displayTooltips)("sbDelay",r.qc(5,M)),r.Cb(1),r.Sc(" ",r.hc(2,3,"COLUMN.SIZE")," ")}}function Q(t,e){if(1&t&&(r.Ub(0,"td",42),r.Pb(1,"ghost-trail",43),r.Ub(2,"span",30),r.Qc(3),r.gc(4,"asset"),r.Tb(),r.Tb()),2&t){const t=e.$implicit;r.Cb(1),r.nc("content",t.displayQty),r.mc("showZeros",!1),r.Cb(2),r.Rc(r.hc(4,3,t.tradingDisplayAsset))}}function W(t,e){if(1&t&&(r.Ub(0,"th",44),r.Qc(1),r.gc(2,"translate"),r.Tb()),2&t){const t=r.fc();r.mc("sbDisabled",!t.displayTooltips)("sbDelay",r.qc(5,M)),r.Cb(1),r.Sc(" ",r.hc(2,3,"BUTTON.REDUCE_ONLY")," ")}}function G(t,e){if(1&t&&(r.Ub(0,"td",45),r.Qc(1),r.Tb()),2&t){const t=e.$implicit;r.mc("pnl",t.reduce_only),r.Cb(1),r.Sc(" ",t.reduce_only," ")}}function Y(t,e){if(1&t){const t=r.Vb();r.Ub(0,"th",46),r.bc("click",(function(){return r.Ec(t),r.fc().cancelAllOrders.emit()})),r.Pb(1,"fa-icon",47),r.Ub(2,"p"),r.Qc(3),r.gc(4,"translate"),r.Tb(),r.Tb()}2&t&&(r.Cb(3),r.Rc(r.hc(4,1,"BUTTON.CANCEL_ALL_ORDERS")))}function K(t,e){if(1&t){const t=r.Vb();r.Ub(0,"td",34),r.Ub(1,"div",48),r.bc("click",(function(n){r.Ec(t);const i=e.$implicit;return r.fc().viewDetailed.emit({order:i}),n.stopPropagation()})),r.Pb(2,"fa-icon",49),r.Tb(),r.Ub(3,"div",50),r.bc("click",(function(n){r.Ec(t);const i=e.$implicit;return r.fc().editOrder.emit({order:i}),n.stopPropagation()})),r.Pb(4,"fa-icon",51),r.gc(5,"translate"),r.Ub(6,"p"),r.Qc(7),r.gc(8,"translate"),r.Tb(),r.Tb(),r.Ub(9,"div",52),r.bc("click",(function(n){r.Ec(t);const i=e.$implicit;return r.fc().cancelOrder.emit({id:i.order_id}),n.stopPropagation()})),r.Pb(10,"fa-icon",53),r.gc(11,"translate"),r.Ub(12,"p"),r.Qc(13),r.gc(14,"translate"),r.Tb(),r.Tb(),r.Tb()}2&t&&(r.Cb(4),r.mc("matTooltip",r.hc(5,4,"BUTTON.EDIT")),r.Cb(3),r.Rc(r.hc(8,6,"BUTTON.EDIT")),r.Cb(3),r.mc("matTooltip",r.hc(11,8,"BUTTON.CANCEL")),r.Cb(3),r.Rc(r.hc(14,10,"BUTTON.CANCEL")))}const Z=function(){return{small:100,medium:400,large:800}},X=function(){return[10,20,50]},J=(t,e)=>{var n;const i={symbol:t.instrument,price:null!==(n=t.limit_price)&&void 0!==n?n:0,trigger_when:t.stop_price,filled:t.qty,side:t.direction};return e in i?i[e]:t[e]};let tt=(()=>{let t=class{constructor(){this.tableData=new s.k([]),this.tableColumns=["time","symbol","trigger_when","type","side","qty","price","reduce_only","order_actions"],this.selectTicker=new r.o,this.editOrder=new r.o,this.cancelOrder=new r.o,this.cancelAllOrders=new r.o,this.viewDetailed=new r.o}set orders(t){this.tableData.data=t.valueSeq().toArray()}ngOnInit(){this.tableData.sortingDataAccessor=J,this.tableData.paginator=this.paginator}ngAfterViewInit(){this.tableSort.changes.pipe(Object(l.a)(this.tableSort),Object(c.b)(this)).subscribe(t=>{t.first&&(this.tableData.sort=t.first)})}trackByOrderId(t,e){return e.order_id}getTriggerSign(t){return"stop"===t.type==(t.direction===u.a.Buy)?"\u2265":"\u2264"}getDirection(t){return t.direction===u.a.Sell?"SIDE.SELL":"SIDE.BUY"}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Ib({type:t,selectors:[["trigger-orders-desktop"]],viewQuery:function(t,e){var n;1&t&&(r.Jc(a.a,!0),r.Wc(o.a,!0)),2&t&&(r.zc(n=r.cc())&&(e.paginator=n.first),r.zc(n=r.cc())&&(e.tableSort=n))},inputs:{orders:"orders",displayTooltips:"displayTooltips"},outputs:{selectTicker:"selectTicker",editOrder:"editOrder",cancelOrder:"cancelOrder",cancelAllOrders:"cancelAllOrders",viewDetailed:"viewDetailed"},decls:31,vars:10,consts:[["breakpoint","","mat-table","","matSort","",3,"breakpoints","dataSource","trackBy"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",3,"click",4,"matRowDef","matRowDefColumns"],["matColumnDef","time"],["mat-header-cell","","mat-sort-header","","tooltip","","sbTooltip","TOOLTIP.TRIGGER_ORDERS.DATE",3,"sbDisabled","sbDelay",4,"matHeaderCellDef"],["class","block-cell","mat-cell","","body","",4,"matCellDef"],["matColumnDef","symbol"],["mat-header-cell","","mat-sort-header","","tooltip","","sbTooltip","TOOLTIP.TRIGGER_ORDERS.MARKET",3,"sbDisabled","sbDelay",4,"matHeaderCellDef"],["matColumnDef","trigger_when"],["mat-header-cell","","mat-sort-header","","tooltip","","sbTooltip","TOOLTIP.TRIGGER_ORDERS.SIGNAL",3,"sbDisabled","sbDelay",4,"matHeaderCellDef"],["mat-cell","","body","",4,"matCellDef"],["matColumnDef","type"],["mat-header-cell","","mat-sort-header","","tooltip","","sbTooltip","TOOLTIP.TRIGGER_ORDERS.TYPE",3,"sbDisabled","sbDelay",4,"matHeaderCellDef"],["matColumnDef","side"],["mat-header-cell","","mat-sort-header","","tooltip","","sbTooltip","TOOLTIP.TRIGGER_ORDERS.SIDE",3,"sbDisabled","sbDelay",4,"matHeaderCellDef"],["matColumnDef","price"],["mat-header-cell","","mat-sort-header","","tooltip","","sbTooltip","TOOLTIP.TRIGGER_ORDERS.PRICE",3,"sbDisabled","sbDelay",4,"matHeaderCellDef"],["matColumnDef","qty"],["mat-header-cell","","mat-sort-header","","tooltip","","sbTooltip","TOOLTIP.TRIGGER_ORDERS.SIZE",3,"sbDisabled","sbDelay",4,"matHeaderCellDef"],["mat-cell","","body","","mono","",4,"matCellDef"],["matColumnDef","reduce_only"],["mat-header-cell","","tooltip","","sbTooltip","TOOLTIP.TRIGGER_ORDERS.REDUCE_ONLY",3,"sbDisabled","sbDelay",4,"matHeaderCellDef"],["mat-cell","","body","",3,"pnl",4,"matCellDef"],["matColumnDef","order_actions"],["class","cancel-all-button","body","","mat-header-cell","",3,"click",4,"matHeaderCellDef"],[3,"pageSize","pageSizeOptions"],["mat-header-row",""],["mat-row","",3,"click"],["mat-header-cell","","mat-sort-header","","tooltip","","sbTooltip","TOOLTIP.TRIGGER_ORDERS.DATE",3,"sbDisabled","sbDelay"],["mat-cell","","body","",1,"block-cell"],["ghost",""],["mat-header-cell","","mat-sort-header","","tooltip","","sbTooltip","TOOLTIP.TRIGGER_ORDERS.MARKET",3,"sbDisabled","sbDelay"],[3,"base"],["mat-header-cell","","mat-sort-header","","tooltip","","sbTooltip","TOOLTIP.TRIGGER_ORDERS.SIGNAL",3,"sbDisabled","sbDelay"],["mat-cell","","body",""],[1,"global__text--mono"],["mat-header-cell","","mat-sort-header","","tooltip","","sbTooltip","TOOLTIP.TRIGGER_ORDERS.TYPE",3,"sbDisabled","sbDelay"],["mat-header-cell","","mat-sort-header","","tooltip","","sbTooltip","TOOLTIP.TRIGGER_ORDERS.SIDE",3,"sbDisabled","sbDelay"],[3,"pnlBool"],["mat-header-cell","","mat-sort-header","","tooltip","","sbTooltip","TOOLTIP.TRIGGER_ORDERS.PRICE",3,"sbDisabled","sbDelay"],["mono",""],["mat-header-cell","","mat-sort-header","","tooltip","","sbTooltip","TOOLTIP.TRIGGER_ORDERS.SIZE",3,"sbDisabled","sbDelay"],["mat-cell","","body","","mono",""],[3,"content","showZeros"],["mat-header-cell","","tooltip","","sbTooltip","TOOLTIP.TRIGGER_ORDERS.REDUCE_ONLY",3,"sbDisabled","sbDelay"],["mat-cell","","body","",3,"pnl"],["body","","mat-header-cell","",1,"cancel-all-button",3,"click"],["icon","close","size","lg"],[1,"copy-button",3,"click"],["icon","file","size","lg"],[1,"edit-button",3,"click"],["primary","","icon","edit","size","lg",3,"matTooltip"],[1,"cancel-button",3,"click"],["icon","close","size","lg",3,"matTooltip"]],template:function(t,e){1&t&&(r.Ub(0,"table",0),r.Oc(1,A,1,0,"tr",1),r.Oc(2,I,1,0,"tr",2),r.Sb(3,3),r.Oc(4,D,3,6,"th",4),r.Oc(5,R,7,8,"td",5),r.Rb(),r.Sb(6,6),r.Oc(7,j,3,6,"th",7),r.Oc(8,L,12,17,"td",5),r.Rb(),r.Sb(9,8),r.Oc(10,N,3,6,"th",9),r.Oc(11,U,6,8,"td",10),r.Rb(),r.Sb(12,11),r.Oc(13,F,3,6,"th",12),r.Oc(14,B,3,3,"td",10),r.Rb(),r.Sb(15,13),r.Oc(16,z,3,6,"th",14),r.Oc(17,V,4,4,"td",10),r.Rb(),r.Sb(18,15),r.Oc(19,$,3,6,"th",16),r.Oc(20,H,8,9,"td",5),r.Rb(),r.Sb(21,17),r.Oc(22,q,3,6,"th",18),r.Oc(23,Q,5,5,"td",19),r.Rb(),r.Sb(24,20),r.Oc(25,W,3,6,"th",21),r.Oc(26,G,2,2,"td",22),r.Rb(),r.Sb(27,23),r.Oc(28,Y,5,3,"th",24),r.Oc(29,K,15,12,"td",10),r.Rb(),r.Tb(),r.Pb(30,"mat-paginator",25)),2&t&&(r.mc("breakpoints",r.qc(8,Z))("dataSource",e.tableData)("trackBy",e.trackByOrderId),r.Cb(1),r.mc("matHeaderRowDef",e.tableColumns)("matHeaderRowDefSticky",!0),r.Cb(1),r.mc("matRowDefColumns",e.tableColumns),r.Cb(28),r.mc("pageSize",20)("pageSizeOptions",r.qc(9,X)))},directives:[s.j,h.a,o.a,s.g,s.i,s.c,s.e,s.b,a.a,s.f,s.h,s.d,o.b,d.a,p.a,f.a,b.a,s.a,g.a,m.a,v.a,_.a,y.a,O.a,C.a,w.b,T.a],pipes:[S.d,k.e,E.a,E.e,k.x,E.c,E.d,k.w,x.c,E.f,P.a],styles:["market-icon[_ngcontent-%COMP%]{font-size:20px}table[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%]{height:calc(var(--table-row-height) + var(--spacing))!important}table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]:last-of-type, table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]:last-of-type{text-align:right}.block-cell[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:block;line-height:1.25em}.actions-header[_ngcontent-%COMP%]{cursor:pointer}.actions-header[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{display:inline}.actions-header[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{color:var(--warn-colour);margin-right:var(--spacing-s)}.actions-header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--warn-colour);text-transform:capitalize!important}.cancel-button[_ngcontent-%COMP%], .copy-button[_ngcontent-%COMP%], .edit-button[_ngcontent-%COMP%], .info-button[_ngcontent-%COMP%], .limit-button[_ngcontent-%COMP%], .market-button[_ngcontent-%COMP%]{cursor:pointer;display:inline-block}.cancel-button[_ngcontent-%COMP%] > *[_ngcontent-%COMP%], .copy-button[_ngcontent-%COMP%] > *[_ngcontent-%COMP%], .edit-button[_ngcontent-%COMP%] > *[_ngcontent-%COMP%], .info-button[_ngcontent-%COMP%] > *[_ngcontent-%COMP%], .limit-button[_ngcontent-%COMP%] > *[_ngcontent-%COMP%], .market-button[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{display:inline}.cancel-button[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .copy-button[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .edit-button[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .info-button[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .limit-button[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .market-button[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding-left:var(--spacing-s)}.copy-button[_ngcontent-%COMP%], .edit-button[_ngcontent-%COMP%], .info-button[_ngcontent-%COMP%], .limit-button[_ngcontent-%COMP%], .market-button[_ngcontent-%COMP%]{margin-right:var(--spacing)}.copy-button[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%], .edit-button[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%], .info-button[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%], .limit-button[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%], .market-button[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{color:var(--brand)}.cancel-button[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{color:var(--warn-colour)}.cancel-all-button[_ngcontent-%COMP%]{cursor:pointer}.cancel-all-button[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{display:inline}.cancel-all-button[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{color:var(--warn-colour);margin-right:var(--spacing-s)}.cancel-all-button[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--warn-colour);text-transform:capitalize!important}table[breakpoint=medium][_ngcontent-%COMP%] .mat-column-reduce_only[_ngcontent-%COMP%]{display:none}table[breakpoint=medium][_ngcontent-%COMP%] .mat-column-trigger_when[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block}table[breakpoint=medium][_ngcontent-%COMP%] .cancel-button[_ngcontent-%COMP%] p[_ngcontent-%COMP%], table[breakpoint=medium][_ngcontent-%COMP%] .copy-button[_ngcontent-%COMP%] p[_ngcontent-%COMP%], table[breakpoint=medium][_ngcontent-%COMP%] .edit-button[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:none}.mat-column-reduce_only[_ngcontent-%COMP%]{text-align:right;text-transform:capitalize;padding-right:var(--spacing)}"],changeDetection:0}),t=Object(i.d)([Object(c.a)()],t),t})()},UVqw:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("LaGA"),r=n("kZht");let s=(()=>{class t{constructor(t,e){this.element=t,this.renderer=e,this.breakpoints={small:100,medium:400,large:500},this.observer=new i.a(()=>this.determineBreakpoint())}ngOnInit(){this.observer.observe(this.element.nativeElement)}ngOnDestroy(){this.observer.disconnect()}determineBreakpoint(){const t=this.element.nativeElement,e=t.offsetWidth;this.renderer.removeAttribute(t,"breakpoint");for(const[n,i]of Object.entries(this.breakpoints).reverse())if(e>=i){this.renderer.setAttribute(t,"breakpoint",n);break}}}return t.\u0275fac=function(e){return new(e||t)(r.Ob(r.l),r.Ob(r.G))},t.\u0275dir=r.Jb({type:t,selectors:[["","breakpoint",""]],inputs:{breakpoints:"breakpoints"}}),t})()},UZ8P:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return B}));var i=n("D57K"),r=n("An66"),s=n("zqNl"),o=n("C05f"),a=n("KTx3"),c=n("VvXq"),l=n("gxtV"),u=n("YtkY"),h=n("prE9"),d=n("8j5Y"),p=n("Wg7D"),f=n("mWib"),b=n("LaGA"),g=n("KQpv"),m=n.n(g),v=n("bCr7"),_=n("/sr6"),y=n("IncQ"),O=n("sXtk"),C=n("NloN"),w=n("ylpo"),T=n("bjK4"),S=n("rxqU"),k=n("i67J"),E=n("lx5p"),x=n("qAYy"),P=n("YyhG"),A=n("kZht"),I=n("1etq"),M=n("B6Vo"),D=n("zho4"),R=n("Cc4E"),j=n("NxuZ"),L=n("aDqW");const N=["canvas"],U=function(){return[1e3,0]},F=m()("app:depth-chart");let B=(()=>{let e=class{constructor(e,n,i,r){this.el=e,this.store=n,this.env=i,this.document=r,this.workerInner=new Worker(t,{type:void 0,name:"depth-chart"}),this.worker=new y.a(this.workerInner),this.span$=new o.a(Object(C.b)(w.f,.01)),this.ticker$=this.store.pipe(Object(s.m)(x.p)),this.theme$=this.store.pipe(Object(s.m)(T.q)),this.noobtips$=this.store.pipe(Object(s.m)(S.y)),this.userPairOrders$=this.store.pipe(Object(s.m)(P.f),Object(u.a)(t=>t.valueSeq().map(Object(E.F)("limit_price")).filter(E.m).toArray())),this.tradingUnits$=this.store.pipe(Object(s.m)(S.r),Object(u.a)(Object(E.F)("trading"))),this.observer=new b.a(this.tryCanvasResize.bind(this))}ngOnInit(){this.observer.observe(this.el.nativeElement);const t=this.canvas.nativeElement;t.width=this.el.nativeElement.offsetWidth,t.height=this.el.nativeElement.offsetHeight,this.span$.pipe(Object(l.b)(this)).subscribe(t=>this.worker.dispatch("span",t)),this.worker.on("ready",()=>{F("worker ready");const e={wsUrl:this.env.urls.websocket,dimensions:Object(v.b)(t.width,t.height),span:this.span$.value,debug:m.a.enabled("app:worker:depth-chart")};if(t.transferControlToOffscreen){const n=t.transferControlToOffscreen();this.worker.dispatch("init",Object.assign(Object.assign({},e),{canvas:n}),[n])}else{const n=new _.a,i=t.getContext("2d");this.worker.dispatch("init",Object.assign(Object.assign({},e),{canvas:void 0})),this.worker.on("paint",({drawCalls:t})=>{n.replaceDrawCalls(t),n.flushTo(i)})}this.ticker$.pipe(Object(k.g)(),Object(l.b)(this)).subscribe(t=>{var e,n;const{product_id:i}=t,r=null!==(n=null===(e=t.numericPrecision)||void 0===e?void 0:e.short)&&void 0!==n?n:2;this.worker.dispatch("market-change",{symbol:i,precision:r,exchangeRate:t.markPrice})}),setTimeout(this.tryCanvasResize.bind(this),10)}),Object(a.a)(this.canvas.nativeElement,"mousemove").pipe(Object(l.b)(this),Object(h.a)(0,c.a)).subscribe(t=>this.worker.dispatch("mouse-move",[t.timeStamp,Object(v.c)(t.offsetX||t.layerX||0,t.offsetY||t.layerY||0)])),Object(a.a)(this.canvas.nativeElement,"mouseleave").pipe(Object(l.b)(this)).subscribe(t=>this.worker.dispatch("mouse-leave",t.timeStamp));const e=()=>{this.worker.dispatch("visibility-change",this.document.visibilityState)};e(),Object(a.a)(this.document,"visibilitychange").pipe(Object(l.b)(this)).subscribe(e),Object(a.a)(this.el.nativeElement,"wheel").pipe(Object(d.a)(t=>t.preventDefault()),Object(p.a)(0,c.a),Object(l.b)(this)).subscribe(t=>{this.alterSpan(t.deltaY)}),this.span$.pipe(Object(f.a)(500),Object(l.b)(this)).subscribe(t=>Object(C.c)(w.f,t)),this.theme$.pipe(Object(l.b)(this)).subscribe(t=>this.worker.dispatch("theme",t)),this.tradingUnits$.pipe(Object(l.b)(this)).subscribe(t=>this.worker.dispatch("trading-units-change",t)),this.userPairOrders$.pipe(Object(l.b)(this)).subscribe(t=>this.worker.dispatch("pair-orders",t))}ngOnDestroy(){this.worker.dispatch("stop",void 0),this.observer.disconnect()}alterSpan(t){const e=Math.pow(t>0?.99:1/.99,Math.abs(t)),n=Object(_.b)(this.span$.value*e),i=Number(n.toPrecision(4));this.span$.next(i)}tryCanvasResize(){const{offsetWidth:t,offsetHeight:e}=this.el.nativeElement,n=this.canvas.nativeElement;n.transferControlToOffscreen||(n.width=t,n.height=e),this.worker.dispatch("resize",Object(v.b)(t,e))}};return e.\u0275fac=function(t){return new(t||e)(A.Ob(A.l),A.Ob(s.b),A.Ob(O.a),A.Ob(r.d))},e.\u0275cmp=A.Ib({type:e,selectors:[["depth-chart"]],viewQuery:function(t,e){var n;1&t&&A.Jc(N,!0),2&t&&A.zc(n=A.cc())&&(e.canvas=n.first)},decls:11,vars:18,consts:[["canvas",""],["subheading","","sbTooltip","TOOLTIP.DEPTH_CHART_SCROLL",1,"span",3,"sbDelay","sbDisabled"],["icon","plus","size","lg",3,"click"],["icon","minus","size","lg",3,"click"]],template:function(t,e){1&t&&(A.Pb(0,"canvas",null,0),A.Ub(2,"div",1),A.gc(3,"async"),A.Qc(4),A.gc(5,"translate"),A.Ub(6,"fa-icon",2),A.bc("click",(function(){return e.alterSpan(5)})),A.Tb(),A.Ub(7,"fa-icon",3),A.bc("click",(function(){return e.alterSpan(-5)})),A.Tb(),A.Qc(8),A.gc(9,"percent"),A.gc(10,"async"),A.Tb()),2&t&&(A.Lc("width",100,"%")("height",100,"%"),A.Cb(2),A.mc("sbDelay",A.qc(17,U))("sbDisabled",!1===A.hc(3,8,e.noobtips$)),A.Cb(2),A.Sc(" ",A.hc(5,10,"LABEL.SPAN")," "),A.Cb(4),A.Sc(" ",A.ic(9,12,A.hc(10,15,e.span$),"1.3-3"),"\n"))},directives:[I.a,M.a,D.a,R.a,j.b],pipes:[r.b,L.d,r.u],styles:["[_nghost-%COMP%]{display:grid;overflow:hidden;height:100%}.span[_ngcontent-%COMP%]{margin:1em;position:absolute;z-index:2;-webkit-user-select:none;-moz-user-select:none;user-select:none}.span[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{cursor:pointer}"],changeDetection:0}),e=Object(i.d)([Object(l.a)()],e),e})()}).call(this,n("71O4"))},UbJG:function(t,e,n){"use strict";n.d(e,"g",(function(){return f})),n.d(e,"f",(function(){return g})),n.d(e,"b",(function(){return m})),n.d(e,"d",(function(){return v})),n.d(e,"a",(function(){return _})),n.d(e,"c",(function(){return y})),n.d(e,"h",(function(){return O})),n.d(e,"e",(function(){return C}));var i=n("zqNl"),r=n("og7C"),s=n("VmIW"),o=n("p5wL"),a=n("lx5p"),c=n("YzTY"),l=n("yN5A"),u=n("NloN"),h=n("ylpo");function d(t,e,n){const i=Object(o.b)(e,t,"workspaces");return Object(o.b)(n,i,"activeWorkspace")}const p=Object(i.i)(function(){const t=Object(c.e)(),e=Object(u.b)(h.v,[t]),n=Object(u.b)(h.a,t.id),i=e.map(Object(a.F)("id")).includes(n)?n:e[0].id;return{workspaces:e,activeWorkspace:i,draggedComponent:Object(s.None)()}}(),Object(i.k)(l.l,(t,{workspaces:e})=>Object(o.b)(e,t,"workspaces")),Object(i.k)(l.i,t=>{const e=Object(c.e)();return d(t,[e],e.id)}),Object(i.k)(l.b,(t,{workspace:e})=>d(t,[...t.workspaces,e],e.id)),Object(i.k)(l.c,(t,{config:e})=>{const n=Object(c.c)(e);return d(t,[...t.workspaces,n],n.id)}),Object(i.k)(l.h,(t,{id:e,name:n})=>{const i=Object(c.n)(e,n)(t.workspaces);return Object(o.b)(i,t,"workspaces")}),Object(i.k)(l.e,(t,{id:e})=>{if(t.workspaces.length<=1)return t;const n=Object(c.l)(e)(t.workspaces),i=n.map(Object(a.F)("id")).includes(t.activeWorkspace)?t.activeWorkspace:n[0].id;return d(t,n,i)}),Object(i.k)(l.j,(t,{id:e})=>Object(o.b)(e,t,"activeWorkspace")),Object(i.k)(l.a,(t,{component:e,location:n})=>{const{workspaces:i,activeWorkspace:r}=t,s=Object(c.j)(e,n,r)(i);return Object(o.b)(s,t,"workspaces")}),Object(i.k)(l.g,(t,{component:e,location:n,position:i})=>{const{workspaces:r,activeWorkspace:s}=t,l=Object(a.E)(Object(c.k)(e,s),Object(c.j)(e,n,s,i))(r);return Object(o.b)(l,t,"workspaces")}),Object(i.k)(l.d,(t,{component:e})=>{const{workspaces:n,activeWorkspace:i}=t,r=Object(c.k)(e,i)(n);return Object(o.b)(r,t,"workspaces")}),Object(i.k)(l.f,(t,{component:e,location:n})=>{const{workspaces:i,activeWorkspace:r}=t,s=Object(c.m)(e,n,r)(i);return Object(o.b)(s,t,"workspaces")}),Object(i.k)(l.k,(t,{tab:e})=>Object(o.b)(e,t,"draggedComponent")));function f(t,e){return p(t,e)}const b=Object(i.h)("workspace"),g=Object(i.j)(b,t=>t.workspaces),m=Object(i.j)(b,t=>t.activeWorkspace),v=Object(i.j)(b,t=>t.draggedComponent),_=Object(i.j)(b,({workspaces:t,activeWorkspace:e})=>Object(a.u)(t,t=>t.id===e)),y=Object(i.j)(_,t=>t.map(Object(a.F)("name")).orSome("")),O=Object(i.j)(v,_,(t,e)=>Object(a.w)(t,e).map(([t,e])=>{const n=c.i[t],i=Object.keys(e.panels),s=Object(c.b)(n);return Object(r.f)(i).filter(t=>s(e.panels[t].size))}).orSome(Object(r.f)())),C=Object(i.j)(_,t=>t.map(t=>Object(r.f)(Object.values(t.panels).filter(a.m).flatMap(t=>t.components))).orSome(Object(r.f)()))},UdWo:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("oCyE"),r=n("vI0g"),s=n("nmFE"),o=n("Zg5S"),a=n("o7Rf"),c=n("sPys");e.default=function(){function t(){this.rsDecoder=new i.default(r.default.DATA_MATRIX_FIELD_256)}return t.prototype.decode=function(t){for(var e=new s.default(t),n=e.getVersion(),i=e.readCodewords(),r=o.default.getDataBlocks(i,n),c=0,l=0,u=r;l8)throw new Error("Invalid hex color: "+t);3!==e.length&&4!==e.length||(e=Array.prototype.concat.apply([],e.map((function(t){return[t,t]})))),6===e.length&&e.push("F","F");var n=parseInt(e.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+e.slice(0,6).join("")}}e.getOptions=function(t){t||(t={}),t.color||(t.color={});var e=t.width&&t.width>=21?t.width:void 0;return{width:e,scale:e?4:t.scale||4,margin:null==t.margin||t.margin<0?4:t.margin,color:{dark:n(t.color.dark||"#000000ff"),light:n(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},e.getScale=function(t,e){return e.width&&e.width>=t+2*e.margin?e.width/(t+2*e.margin):e.scale},e.getImageWidth=function(t,n){var i=e.getScale(t,n);return Math.floor((t+2*n.margin)*i)},e.qrToImageData=function(t,n,i){for(var r=n.modules.size,s=n.modules.data,o=e.getScale(r,i),a=Math.floor((r+2*i.margin)*o),c=i.margin*o,l=[i.color.light,i.color.dark],u=0;u=c&&h>=c&&u{let t=class{constructor(t,e,n){this.store=t,this.dialogRef=e,this.formBuilder=n,this.form=this.buildForm(),this.tour$=this.store.pipe(Object(s.m)(a.k))}ngAfterViewInit(){this.tour$.pipe(Object(c.b)(this),Object(l.a)(t=>t.inProgress),Object(l.a)(t=>"workspaces"===t.type),Object(l.a)(({step:t})=>2===t||3===t)).subscribe(({step:t})=>{2===t?this.presetPopper.centerTrigger():3===t&&this.customPopper.centerTrigger()})}buildForm(){return this.formBuilder.group({type:["",[r.x.required]],name:["",[r.x.required]]})}setLayoutType(t){this.form.get("type").setValue(t),this.layoutNameInput.nativeElement.focus()}closeDialog(){this.dialogRef.close()}onSubmit(){this.closeDialog(),this.store.dispatch(Object(o.c)({config:this.form.value}))}switchTab(t){this.tabGroup.selectedIndex=t}};return t.\u0275fac=function(e){return new(e||t)(h.Ob(s.b),h.Ob(d.d),h.Ob(r.d))},t.\u0275cmp=h.Ib({type:t,selectors:[["create-layout"]],viewQuery:function(t,e){var n;1&t&&(h.Wc(x,!0),h.Jc(u.c,!0),h.Jc(P,!0),h.Jc(A,!0)),2&t&&(h.zc(n=h.cc())&&(e.layoutNameInput=n.first),h.zc(n=h.cc())&&(e.tabGroup=n.first),h.zc(n=h.cc())&&(e.presetPopper=n.first),h.zc(n=h.cc())&&(e.customPopper=n.first))},decls:117,vars:55,consts:[["heading","DIALOG.CREATE_PAGE",3,"padding"],["dynamicHeight",""],[3,"label"],[1,"create-layout"],["body","",3,"formGroup","ngSubmit"],[1,"layouts"],[1,"layout-container",3,"ngClass","click"],[1,"single"],[1,"center"],["subtitle",""],[1,"double"],[1,"left"],[1,"right"],[1,"triple"],[1,"topLeft"],[1,"bottomLeft"],[1,"quad"],[1,"topRight"],[1,"bottomRight"],[1,"layout1"],[1,"layout2"],[1,"layout3"],[1,"layout4"],[1,"layout5"],[1,"top"],[1,"bottom"],[1,"layout6"],[1,"layout7"],[1,"default"],[1,"topCenter"],[1,"bottomCenter"],["color","accent","appearance","fill","body",""],["formControlName","name","required","","matInput","","maxlength","24","autocomplete","off"],["layoutName",""],[1,"buttons"],["type","button","mat-button","","body","",3,"click"],["mat-raised-button","","body","",3,"disabled"],["sbPlacement","topStart"],["presetPopper",""],[3,"title","nextRouteTo","dispose","nextEvent","previousEvent",4,"sbContent"],["customPopper",""],[3,"title","nextRouteTo","dispose","nextEvent","previousEvent"],["subheading","","translate",""]],template:function(t,e){1&t&&(h.Ub(0,"pro-dialog",0),h.Ub(1,"mat-tab-group",1),h.Ub(2,"mat-tab",2),h.gc(3,"translate"),h.Ub(4,"section",3),h.Ub(5,"form",4),h.bc("ngSubmit",(function(){return e.onSubmit()})),h.Ub(6,"section"),h.Ub(7,"div",5),h.Ub(8,"div",6),h.bc("click",(function(){return e.setLayoutType("single")})),h.Ub(9,"div",7),h.Pb(10,"div",8),h.Tb(),h.Ub(11,"p",9),h.Qc(12,"Single"),h.Tb(),h.Tb(),h.Ub(13,"div",6),h.bc("click",(function(){return e.setLayoutType("double")})),h.Ub(14,"div",10),h.Pb(15,"div",11),h.Pb(16,"div",12),h.Tb(),h.Ub(17,"p",9),h.Qc(18,"Double"),h.Tb(),h.Tb(),h.Ub(19,"div",6),h.bc("click",(function(){return e.setLayoutType("triple")})),h.Ub(20,"div",13),h.Pb(21,"div",14),h.Pb(22,"div",15),h.Pb(23,"div",12),h.Tb(),h.Ub(24,"p",9),h.Qc(25,"Triple"),h.Tb(),h.Tb(),h.Ub(26,"div",6),h.bc("click",(function(){return e.setLayoutType("quad")})),h.Ub(27,"div",16),h.Pb(28,"div",14),h.Pb(29,"div",15),h.Pb(30,"div",17),h.Pb(31,"div",18),h.Tb(),h.Ub(32,"p",9),h.Qc(33,"Quad"),h.Tb(),h.Tb(),h.Tb(),h.Ub(34,"div",5),h.Ub(35,"div",6),h.bc("click",(function(){return e.setLayoutType("layout1")})),h.Ub(36,"div",19),h.Pb(37,"div",11),h.Pb(38,"div",17),h.Pb(39,"div",18),h.Tb(),h.Ub(40,"p",9),h.Qc(41,"Layout 1"),h.Tb(),h.Tb(),h.Ub(42,"div",6),h.bc("click",(function(){return e.setLayoutType("layout2")})),h.Ub(43,"div",20),h.Pb(44,"div",14),h.Pb(45,"div",15),h.Pb(46,"div",8),h.Pb(47,"div",12),h.Tb(),h.Ub(48,"p",9),h.Qc(49,"Layout 2"),h.Tb(),h.Tb(),h.Ub(50,"div",6),h.bc("click",(function(){return e.setLayoutType("layout3")})),h.Ub(51,"div",21),h.Pb(52,"div",14),h.Pb(53,"div",15),h.Pb(54,"div",17),h.Pb(55,"div",18),h.Tb(),h.Ub(56,"p",9),h.Qc(57,"Layout 3"),h.Tb(),h.Tb(),h.Ub(58,"div",6),h.bc("click",(function(){return e.setLayoutType("layout4")})),h.Ub(59,"div",22),h.Pb(60,"div",11),h.Pb(61,"div",8),h.Pb(62,"div",12),h.Tb(),h.Ub(63,"p",9),h.Qc(64,"Layout 4"),h.Tb(),h.Tb(),h.Tb(),h.Ub(65,"div",5),h.Ub(66,"div",6),h.bc("click",(function(){return e.setLayoutType("layout5")})),h.Ub(67,"div",23),h.Pb(68,"div",24),h.Pb(69,"div",25),h.Tb(),h.Ub(70,"p",9),h.Qc(71,"Layout 5"),h.Tb(),h.Tb(),h.Ub(72,"div",6),h.bc("click",(function(){return e.setLayoutType("layout6")})),h.Ub(73,"div",26),h.Pb(74,"div",14),h.Pb(75,"div",17),h.Pb(76,"div",25),h.Tb(),h.Ub(77,"p",9),h.Qc(78,"Layout 6"),h.Tb(),h.Tb(),h.Ub(79,"div",6),h.bc("click",(function(){return e.setLayoutType("layout7")})),h.Ub(80,"div",27),h.Pb(81,"div",24),h.Pb(82,"div",15),h.Pb(83,"div",18),h.Tb(),h.Ub(84,"p",9),h.Qc(85,"Layout 7"),h.Tb(),h.Tb(),h.Ub(86,"div",6),h.bc("click",(function(){return e.setLayoutType("default")})),h.Ub(87,"div",28),h.Pb(88,"div",11),h.Pb(89,"div",29),h.Pb(90,"div",30),h.Pb(91,"div",17),h.Pb(92,"div",18),h.Tb(),h.Ub(93,"p",9),h.Qc(94,"Default"),h.Tb(),h.Tb(),h.Tb(),h.Ub(95,"mat-form-field",31),h.Ub(96,"mat-label"),h.Qc(97),h.gc(98,"translate"),h.Tb(),h.Pb(99,"input",32,33),h.Tb(),h.Tb(),h.Ub(101,"section",34),h.Ub(102,"button",35),h.bc("click",(function(){return e.closeDialog()})),h.Qc(103),h.gc(104,"translate"),h.Tb(),h.Ub(105,"button",36),h.Qc(106),h.gc(107,"translate"),h.Tb(),h.Tb(),h.Tb(),h.Tb(),h.Tb(),h.Ub(108,"mat-tab",2),h.gc(109,"translate"),h.Pb(110,"custom-layout"),h.Tb(),h.Tb(),h.Tb(),h.Ub(111,"sb-popper",37,38),h.Oc(113,I,3,2,"tour-step",39),h.Tb(),h.Ub(114,"sb-popper",37,40),h.Oc(116,M,3,2,"tour-step",39),h.Tb()),2&t&&(h.mc("padding",!1),h.Cb(1),h.mc("@.disabled",!0),h.Cb(1),h.mc("label",h.hc(3,21,"LABEL.PRESET")),h.Cb(3),h.mc("formGroup",e.form),h.Cb(3),h.mc("ngClass",h.rc(31,D,"single"===e.form.get("type").value)),h.Cb(5),h.mc("ngClass",h.rc(33,D,"double"===e.form.get("type").value)),h.Cb(6),h.mc("ngClass",h.rc(35,D,"triple"===e.form.get("type").value)),h.Cb(7),h.mc("ngClass",h.rc(37,D,"quad"===e.form.get("type").value)),h.Cb(9),h.mc("ngClass",h.rc(39,D,"layout1"===e.form.get("type").value)),h.Cb(7),h.mc("ngClass",h.rc(41,D,"layout2"===e.form.get("type").value)),h.Cb(8),h.mc("ngClass",h.rc(43,D,"layout3"===e.form.get("type").value)),h.Cb(8),h.mc("ngClass",h.rc(45,D,"layout4"===e.form.get("type").value)),h.Cb(8),h.mc("ngClass",h.rc(47,D,"layout5"===e.form.get("type").value)),h.Cb(6),h.mc("ngClass",h.rc(49,D,"layout6"===e.form.get("type").value)),h.Cb(7),h.mc("ngClass",h.rc(51,D,"layout7"===e.form.get("type").value)),h.Cb(7),h.mc("ngClass",h.rc(53,D,"default"===e.form.get("type").value)),h.Cb(11),h.Rc(h.hc(98,23,"FORM.LAYOUT_NAME")),h.Cb(6),h.Sc(" ",h.hc(104,25,"BUTTON.CANCEL")," "),h.Cb(2),h.mc("disabled",e.form.invalid),h.Cb(1),h.Sc(" ",h.hc(107,27,"BUTTON.CREATE_LAYOUT")," "),h.Cb(2),h.mc("label",h.hc(109,29,"LABEL.CUSTOM")))},directives:[p.a,f.a,u.c,u.a,b.a,r.z,r.p,g.a,r.h,m.l,v.c,v.f,r.c,_.b,r.o,r.g,r.v,r.k,y.b,O.a,C.a,w.a,T.a,S.a,k.a,E.a],pipes:[E.d],styles:['form[_ngcontent-%COMP%]{margin-top:var(--spacing-l);flex-direction:"column"}mat-form-field[_ngcontent-%COMP%]{width:100%}.create-layout[_ngcontent-%COMP%]{padding:var(--spacing)}.layouts[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;margin-bottom:var(--spacing-l)}.layouts[_ngcontent-%COMP%] .layout-container[_ngcontent-%COMP%]:not(:last-child){margin-right:var(--spacing)}.layout-container[_ngcontent-%COMP%]{border-radius:8px;border:2px solid transparent;box-sizing:border-box;width:176px;justify-content:center;cursor:pointer}@media (min-width:1367px) and (max-width:1440px){.layout-container[_ngcontent-%COMP%]{width:calc(176px - 20px)}}@media (min-width:1025px) and (max-width:1366px){.layout-container[_ngcontent-%COMP%]{width:calc(176px - 20px)}}.layout-container[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:grid;background-color:var(--background-colour);border-radius:4px;box-sizing:border-box;border:1px solid var(--border-colour);padding:var(--spacing);margin-bottom:var(--spacing);height:106px}@media (min-width:1367px) and (max-width:1440px){.layout-container[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:calc(106px - 20px)}}@media (min-width:1025px) and (max-width:1366px){.layout-container[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:calc(106px - 20px)}}.layout-container[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{background-color:var(--form-input-colour);border:1px solid var(--border-colour);border-radius:2px}.layout-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-align:center;padding:var(--spacing) 0}.layout-container.selected[_ngcontent-%COMP%], .layout-container[_ngcontent-%COMP%]:hover{background:var(--brand)}.layout-container.selected[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .layout-container[_ngcontent-%COMP%]:hover p[_ngcontent-%COMP%]{color:var(--white)}.buttons[_ngcontent-%COMP%]{justify-content:flex-end}.buttons[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{margin-left:var(--spacing)}.default[_ngcontent-%COMP%]{grid-gap:var(--spacing);grid-template:"left topCenter topRight" .6fr "left bottomCenter bottomRight" .4fr/.2fr .6fr .2fr}.default[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{grid-area:left}.default[_ngcontent-%COMP%] .topCenter[_ngcontent-%COMP%]{grid-area:topCenter}.default[_ngcontent-%COMP%] .bottomCenter[_ngcontent-%COMP%]{grid-area:bottomCenter}.default[_ngcontent-%COMP%] .topRight[_ngcontent-%COMP%]{grid-area:topRight}.default[_ngcontent-%COMP%] .bottomRight[_ngcontent-%COMP%]{grid-area:bottomRight}.single[_ngcontent-%COMP%]{grid-template-columns:1fr;grid-template-rows:1fr}.double[_ngcontent-%COMP%]{grid-template-columns:1fr 1fr}.double[_ngcontent-%COMP%], .triple[_ngcontent-%COMP%]{grid-gap:var(--spacing)}.triple[_ngcontent-%COMP%]{grid-template:"topLeft right" 1fr "bottomLeft right" 1fr/1fr 1fr}.triple[_ngcontent-%COMP%] .topLeft[_ngcontent-%COMP%]{grid-area:topLeft}.triple[_ngcontent-%COMP%] .bottomLeft[_ngcontent-%COMP%]{grid-area:bottomLeft}.triple[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{grid-area:right}.quad[_ngcontent-%COMP%]{grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr}.layout1[_ngcontent-%COMP%], .quad[_ngcontent-%COMP%]{grid-gap:var(--spacing)}.layout1[_ngcontent-%COMP%]{grid-template:"left topRight" 1fr "left bottomRight" 1fr/.6fr .4fr}.layout1[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{grid-area:left}.layout1[_ngcontent-%COMP%] .topRight[_ngcontent-%COMP%]{grid-area:topRight}.layout1[_ngcontent-%COMP%] .bottomRight[_ngcontent-%COMP%]{grid-area:bottomRight}.layout2[_ngcontent-%COMP%]{grid-template:"topLeft center right" 1fr "bottomLeft center right" 1fr/1fr .5fr .5fr;grid-gap:var(--spacing)}.layout2[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{grid-area:left}.layout2[_ngcontent-%COMP%] .bottomLeft[_ngcontent-%COMP%]{grid-area:bottomLeft}.layout2[_ngcontent-%COMP%] .center[_ngcontent-%COMP%]{grid-area:center}.layout2[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{grid-area:right}.layout3[_ngcontent-%COMP%]{grid-template:"topLeft topRight" 1fr "bottomLeft bottomRight" 1fr/.6fr .4fr;grid-gap:var(--spacing)}.layout3[_ngcontent-%COMP%] .topLeft[_ngcontent-%COMP%]{grid-area:topLeft}.layout3[_ngcontent-%COMP%] .bottomLeft[_ngcontent-%COMP%]{grid-area:bottomLeft}.layout3[_ngcontent-%COMP%] .topRight[_ngcontent-%COMP%]{grid-area:topRight}.layout3[_ngcontent-%COMP%] .bottomRight[_ngcontent-%COMP%]{grid-area:bottomRight}.layout4[_ngcontent-%COMP%]{grid-template:"left center right" 1fr/.25fr .5fr .25fr;grid-gap:var(--spacing)}.layout4[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{grid-area:left}.layout4[_ngcontent-%COMP%] .center[_ngcontent-%COMP%]{grid-area:center}.layout4[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{grid-area:right}.layout5[_ngcontent-%COMP%]{grid-template:"top" .6fr "bottom" .4fr/1fr;grid-gap:var(--spacing)}.layout5[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{grid-area:top}.layout5[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{grid-area:bottom}.layout6[_ngcontent-%COMP%]{grid-template:"topLeft topRight" .6fr "bottom bottom" .4fr/1fr 1fr;grid-gap:var(--spacing)}.layout6[_ngcontent-%COMP%] .topLeft[_ngcontent-%COMP%]{grid-area:topLeft}.layout6[_ngcontent-%COMP%] .topRight[_ngcontent-%COMP%]{grid-area:topRight}.layout6[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{grid-area:bottom}.layout7[_ngcontent-%COMP%]{grid-template:"top top" .6fr "bottomLeft bottomRight" .4fr/1fr 1fr;grid-gap:var(--spacing)}.layout7[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{grid-area:top}.layout7[_ngcontent-%COMP%] .bottomRight[_ngcontent-%COMP%]{grid-area:bottomRight}.layout7[_ngcontent-%COMP%] .bottomLeft[_ngcontent-%COMP%]{grid-area:bottomLeft}'],changeDetection:0}),t=Object(i.d)([Object(c.a)()],t),t})()},VbQ3:function(t,e,n){"use strict";n.d(e,"a",(function(){return A})),n.d(e,"b",(function(){return M})),n.d(e,"c",(function(){return U})),n.d(e,"d",(function(){return N})),n.d(e,"e",(function(){return j})),n.d(e,"f",(function(){return I})),n.d(e,"g",(function(){return F})),n.d(e,"h",(function(){return D}));var i=n("5XID"),r=n("kZht"),s=n("ZTXN"),o=n("ROBh"),a=n("IdLP"),c=n("KTx3"),l=n("VvXq"),u=n("vT4p"),h=n("bwdy"),d=n("9bRT"),p=n("Ohay"),f=n("prE9"),b=n("xVbo"),g=n("kuMc"),m=n("jIqt"),v=n("0Woy"),_=n("TLy2"),y=n("wqq/"),O=n("O1jd"),C=n("An66"),w=n("vE5V"),T=n("sBeF");const S=["contentWrapper"],k=["*"],E=new r.s("VIRTUAL_SCROLL_STRATEGY");class x{constructor(t,e,n){this._scrolledIndexChange=new s.b,this.scrolledIndexChange=this._scrolledIndexChange.pipe(Object(p.a)()),this._viewport=null,this._itemSize=t,this._minBufferPx=e,this._maxBufferPx=n}attach(t){this._viewport=t,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(t,e,n){this._itemSize=t,this._minBufferPx=e,this._maxBufferPx=n,this._updateTotalContentSize(),this._updateRenderedRange()}onContentScrolled(){this._updateRenderedRange()}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange()}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(t,e){this._viewport&&this._viewport.scrollToOffset(t*this._itemSize,e)}_updateTotalContentSize(){this._viewport&&this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}_updateRenderedRange(){if(!this._viewport)return;const t=this._viewport.getRenderedRange(),e={start:t.start,end:t.end},n=this._viewport.getViewportSize(),i=this._viewport.getDataLength();let r=this._viewport.measureScrollOffset(),s=r/this._itemSize;if(e.end>i){const t=Math.ceil(n/this._itemSize),o=Math.max(0,Math.min(s,i-t));s!=o&&(s=o,r=o*this._itemSize,e.start=Math.floor(s)),e.end=Math.max(0,Math.min(i,e.start+t))}const o=r-e.start*this._itemSize;if(o0&&(e.end=Math.min(i,e.end+n),e.start=Math.max(0,Math.floor(s-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(e),this._viewport.setRenderedContentOffset(this._itemSize*e.start),this._scrolledIndexChange.next(Math.floor(s))}}function P(t){return t._scrollStrategy}let A=(()=>{class t{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new x(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(t){this._itemSize=Object(i.f)(t)}get minBufferPx(){return this._minBufferPx}set minBufferPx(t){this._minBufferPx=Object(i.f)(t)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(t){this._maxBufferPx=Object(i.f)(t)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Jb({type:t,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[r.Bb([{provide:E,useFactory:P,deps:[Object(r.V)(()=>t)]}]),r.Ab]}),t})(),I=(()=>{class t{constructor(t,e,n){this._ngZone=t,this._platform=e,this._scrolled=new s.b,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new a.a(e=>{this._globalSubscription||this._addGlobalListener();const n=t>0?this._scrolled.pipe(Object(f.a)(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Object(o.a)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Object(b.a)(t=>!t||n.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((n,i)=>{this._scrollableContainsElement(i,t)&&e.push(i)}),e}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollableContainsElement(t,e){let n=e.nativeElement,i=t.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const t=this._getWindow();return Object(c.a)(t.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(r.Yb(r.B),r.Yb(O.a),r.Yb(C.d,8))},t.\u0275prov=Object(r.Kb)({factory:function(){return new t(Object(r.Yb)(r.B),Object(r.Yb)(O.a),Object(r.Yb)(C.d,8))},token:t,providedIn:"root"}),t})(),M=(()=>{class t{constructor(t,e,n,i){this.elementRef=t,this.scrollDispatcher=e,this.ngZone=n,this.dir=i,this._destroyed=new s.b,this._elementScrolled=new a.a(t=>this.ngZone.runOutsideAngular(()=>Object(c.a)(this.elementRef.nativeElement,"scroll").pipe(Object(g.a)(this._destroyed)).subscribe(t)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){const e=this.elementRef.nativeElement,n=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=n?t.end:t.start),null==t.right&&(t.right=n?t.start:t.end),null!=t.bottom&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),n&&0!=Object(O.d)()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==Object(O.d)()?t.left=t.right:1==Object(O.d)()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){const e=this.elementRef.nativeElement;Object(O.g)()?e.scrollTo(t):(null!=t.top&&(e.scrollTop=t.top),null!=t.left&&(e.scrollLeft=t.left))}measureScrollOffset(t){const e=this.elementRef.nativeElement;if("top"==t)return e.scrollTop;if("bottom"==t)return e.scrollHeight-e.clientHeight-e.scrollTop;const n=this.dir&&"rtl"==this.dir.value;return"start"==t?t=n?"right":"left":"end"==t&&(t=n?"left":"right"),n&&2==Object(O.d)()?"left"==t?e.scrollWidth-e.clientWidth-e.scrollLeft:e.scrollLeft:n&&1==Object(O.d)()?"left"==t?e.scrollLeft+e.scrollWidth-e.clientWidth:-e.scrollLeft:"left"==t?e.scrollLeft:e.scrollWidth-e.clientWidth-e.scrollLeft}}return t.\u0275fac=function(e){return new(e||t)(r.Ob(r.l),r.Ob(I),r.Ob(r.B),r.Ob(w.b,8))},t.\u0275dir=r.Jb({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),D=(()=>{class t{constructor(t,e,n){this._platform=t,this._change=new s.b,this._changeListener=t=>{this._change.next(t)},this._document=n,e.runOutsideAngular(()=>{if(t.isBrowser){const t=this._getWindow();t.addEventListener("resize",this._changeListener),t.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:n}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+n,right:t.left+e,height:n,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._getDocument(),e=this._getWindow(),n=t.documentElement,i=n.getBoundingClientRect();return{top:-i.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-i.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(Object(f.a)(t)):this._change}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(r.Yb(O.a),r.Yb(r.B),r.Yb(C.d,8))},t.\u0275prov=Object(r.Kb)({factory:function(){return new t(Object(r.Yb)(O.a),Object(r.Yb)(r.B),Object(r.Yb)(C.d,8))},token:t,providedIn:"root"}),t})();const R="undefined"!=typeof requestAnimationFrame?l.a:u.a;let j=(()=>{class t extends M{constructor(t,e,n,i,r,o,c){super(t,o,n,r),this.elementRef=t,this._changeDetectorRef=e,this._scrollStrategy=i,this._detachedSubject=new s.b,this._renderedRangeSubject=new s.b,this._orientation="vertical",this.scrolledIndexChange=new a.a(t=>this._scrollStrategy.scrolledIndexChange.subscribe(e=>Promise.resolve().then(()=>this.ngZone.run(()=>t.next(e))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=h.a.EMPTY,c&&(this._viewportChanges=c.change().subscribe(()=>{this.checkViewportSize()}))}get orientation(){return this._orientation}set orientation(t){this._orientation!==t&&(this._orientation=t,this._calculateSpacerSize())}ngOnInit(){super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.elementScrolled().pipe(Object(m.a)(null),Object(f.a)(0,R)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()}))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(t){this.ngZone.runOutsideAngular(()=>{this._forOf=t,this._forOf.dataStream.pipe(Object(g.a)(this._detachedSubject)).subscribe(t=>{const e=t.length;e!==this._dataLength&&(this._dataLength=e,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}setTotalContentSize(t){this._totalContentSize!==t&&(this._totalContentSize=t,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(t){var e,n;((e=this._renderedRange).start!=(n=t).start||e.end!=n.end)&&(this._renderedRangeSubject.next(this._renderedRange=t),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(t,e="to-start"){const n="horizontal"==this.orientation,i=n?"X":"Y";let r=`translate${i}(${Number((n&&this.dir&&"rtl"==this.dir.value?-1:1)*t)}px)`;this._renderedContentOffset=t,"to-end"===e&&(r+=` translate${i}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=r&&(this._renderedContentTransform=r,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(t,e="auto"){const n={behavior:e};"horizontal"===this.orientation?n.start=t:n.top=t,this.scrollTo(n)}scrollToIndex(t,e="auto"){this._scrollStrategy.scrollToIndex(t,e)}measureScrollOffset(t){return super.measureScrollOffset(t||("horizontal"===this.orientation?"start":"top"))}measureRenderedContentSize(){const t=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?t.offsetWidth:t.offsetHeight}measureRangeSize(t){return this._forOf?this._forOf.measureRangeSize(t,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){const t=this.elementRef.nativeElement;this._viewportSize="horizontal"===this.orientation?t.clientWidth:t.clientHeight}_markChangeDetectionNeeded(t){t&&this._runAfterChangeDetection.push(t),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const t=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const e of t)e()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":this._totalContentSize+"px",this._totalContentWidth="horizontal"===this.orientation?this._totalContentSize+"px":""}}return t.\u0275fac=function(e){return new(e||t)(r.Ob(r.l),r.Ob(r.h),r.Ob(r.B),r.Ob(E,8),r.Ob(w.b,8),r.Ob(I),r.Ob(D))},t.\u0275cmp=r.Ib({type:t,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(t,e){var n;1&t&&r.Jc(S,!0),2&t&&r.zc(n=r.cc())&&(e._contentWrapper=n.first)},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(t,e){2&t&&r.Gb("cdk-virtual-scroll-orientation-horizontal","horizontal"===e.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==e.orientation)},inputs:{orientation:"orientation"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[r.Bb([{provide:M,useExisting:t}]),r.zb],ngContentSelectors:k,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(t,e){1&t&&(r.lc(),r.Ub(0,"div",0,1),r.kc(2),r.Tb(),r.Pb(3,"div",2)),2&t&&(r.Cb(3),r.Lc("width",e._totalContentWidth)("height",e._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0}[dir=rtl] .cdk-virtual-scroll-spacer{right:0;left:auto;transform-origin:100% 0}\n"],encapsulation:2,changeDetection:0}),t})();function L(t,e,n){if(!n.getBoundingClientRect)return 0;const i=n.getBoundingClientRect();return"horizontal"===t?"start"===e?i.left:i.right:"start"===e?i.top:i.bottom}let N=(()=>{class t{constructor(t,e,n,i,r,o){this._viewContainerRef=t,this._template=e,this._differs=n,this._viewRepeater=i,this._viewport=r,this.viewChange=new s.b,this._dataSourceChanges=new s.b,this.dataStream=this._dataSourceChanges.pipe(Object(m.a)(null),Object(v.a)(),Object(_.a)(([t,e])=>this._changeDataSource(t,e)),Object(y.a)(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new s.b,this.dataStream.subscribe(t=>{this._data=t,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe(Object(g.a)(this._destroyed)).subscribe(t=>{this._renderedRange=t,o.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(t){this._cdkVirtualForOf=t,Object(T.h)(t)?this._dataSourceChanges.next(t):this._dataSourceChanges.next(new T.a(Object(d.a)(t)?t:Array.prototype.slice.call(t||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(t){this._needsUpdate=!0,this._cdkVirtualForTrackBy=t?(e,n)=>t(e+(this._renderedRange?this._renderedRange.start:0),n):void 0}set cdkVirtualForTemplate(t){t&&(this._needsUpdate=!0,this._template=t)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(t){this._viewRepeater.viewCacheSize=Object(i.f)(t)}measureRangeSize(t,e){if(t.start>=t.end)return 0;const n=t.start-this._renderedRange.start,i=t.end-t.start;let r,s;for(let o=0;o-1;o--){const t=this._viewContainerRef.get(o+n);if(t&&t.rootNodes.length){s=t.rootNodes[t.rootNodes.length-1];break}}return r&&s?L(e,"end",s)-L(e,"start",r):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const t=this._differ.diff(this._renderedItems);t?this._applyChanges(t):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){this._renderedRange&&(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create(this.cdkVirtualForTrackBy)),this._needsUpdate=!0)}_changeDataSource(t,e){return t&&t.disconnect(this),this._needsUpdate=!0,e?e.connect(this):Object(o.a)()}_updateContext(){const t=this._data.length;let e=this._viewContainerRef.length;for(;e--;){let n=this._viewContainerRef.get(e);n.context.index=this._renderedRange.start+e,n.context.count=t,this._updateComputedContextProperties(n.context),n.detectChanges()}}_applyChanges(t){this._viewRepeater.applyChanges(t,this._viewContainerRef,(t,e,n)=>this._getEmbeddedViewArgs(t,n),t=>t.item),t.forEachIdentityChange(t=>{this._viewContainerRef.get(t.currentIndex).context.$implicit=t.item});const e=this._data.length;let n=this._viewContainerRef.length;for(;n--;){const t=this._viewContainerRef.get(n);t.context.index=this._renderedRange.start+n,t.context.count=e,this._updateComputedContextProperties(t.context)}}_updateComputedContextProperties(t){t.first=0===t.index,t.last=t.index===t.count-1,t.even=t.index%2==0,t.odd=!t.even}_getEmbeddedViewArgs(t,e){return{templateRef:this._template,context:{$implicit:t.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:e}}}return t.\u0275fac=function(e){return new(e||t)(r.Ob(r.R),r.Ob(r.N),r.Ob(r.u),r.Ob(T.g),r.Ob(j,4),r.Ob(r.B))},t.\u0275dir=r.Jb({type:t,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[r.Bb([{provide:T.g,useClass:T.f}])]}),t})(),U=(()=>{class t{}return t.\u0275mod=r.Mb({type:t}),t.\u0275inj=r.Lb({factory:function(e){return new(e||t)}}),t})(),F=(()=>{class t{}return t.\u0275mod=r.Mb({type:t}),t.\u0275inj=r.Lb({factory:function(e){return new(e||t)},imports:[[w.a,O.b,U],w.a,U]}),t})()},VmIW:function(t,e,n){var i,r;"undefined"!=typeof self&&self,void 0===(r="function"==typeof(i=function(){"use strict";var t={apply2:b,assign:l(Object.assign)?Object.assign:function(t,e){for(var n in e)e.hasOwnProperty(n)&&void 0!==e[n]&&(t[n]=e[n]);return t},compose:c,curry:a(f(a),[])([]),idFunction:u,isFunction:l,noop:s,swap:f};function e(t,e){t["@@type"]="monet.js/"+e}function n(t){return function(e){return(e["@@type"]||e.constructor["@@type"])==="monet.js/"+t}}function i(t){return function(e){var n=e["@@type"]||e.constructor&&e.constructor["@@type"];return Boolean(n)&&n.length>=t.length&&n.indexOf(t)===n.length-t.length}}function r(t){return null==t}function s(){}function o(t){return Array.prototype.slice.call(t)}function a(t,e){return function(){var n=e.concat(o(arguments));return n.length>=t.length?t.apply(null,n.slice(0,n.length)):a(t,n)}}function c(t,e){return function(n){return t(e(n))}}function l(t){return Boolean(t&&t.constructor&&t.call&&t.apply)}function u(t){return t}function h(t,e){return t===e||t!=t&&e!=e||!(!t||!e)&&!(!l(t.equals)||!l(e.equals))&&t.equals(e)}function d(t){return function(e){return h(t,e)}}function p(){return!1}function f(t){return function(e,n){return t(n,e)}}function b(t,e,n){return e.ap(t.map(a(n,[])))}function g(t,e){for(var n=t,i=e;!n.isNil&&!i.isNil;){if(!d(n.head())(i.head()))return!1;n=n.tail(),i=i.tail()}return n.isNil&&i.isNil}function m(t,e){return function t(e,n){return n.isNil?W(n):Q((function(){return t(e,n.tail())})).map(a(O,[])(e(n.head())))}(t,e).run()}function v(t,e){return t.foldRight(w)((function(t,n){return e(t)?O(t,n):n}))}function _(t,e){return function t(e,n){if(e.isNil)return W(R());var i=e.head();return n(i)?W(D(i)):Q((function(){return t(e.tail(),n)}))}(t,e).run()}function y(t,e){return function t(e,n){return e.isNil?W(!1):h(e.head(),n)?W(!0):Q((function(){return t(e.tail(),n)}))}(t,e).run()}function O(t,e){return e.cons(t)}function C(){switch(arguments.length){case 0:return new C.fn.init;case 1:return new C.fn.init(arguments[0]);default:return new C.fn.init(arguments[0],arguments[1])}}t.List=C;var w,T=function(t,e){e.isNil||(t(e.head()),T(t,e.tail()))},S=function(t,e,n){return function e(n,i){return i.isNil?W(n):Q((function(){return e(t(n,i.head()),i.tail())}))}(e,n).run()},k=function(t,e,n){return function e(n,i){return n.isNil?W(i):Q((function(){return e(n.tail(),i)})).map((function(e){return t(n.head(),e)}))}(e,n).run()},E=function(t,e){return function t(e,n){return e.isNil?W(n):Q((function(){return t(e.tail(),n).map((function(t){return t.cons(e.head())}))}))}(t,e).run()},x=function(t,e){return t.foldRight(e.of(w))(e.map2(O))},P=function(t){return t.foldLeft(w)(f(O))};function A(t){return new Error("Cannot create an empty Non-Empty List. Passed head is "+t+".")}function I(t,e){if(r(t))throw A(t);return new I.fn.init(t,e)}(C.fn=C.prototype={init:function(){var t=arguments[0],n=arguments[1];0===arguments.length?(this.isNil=!0,this.size_=0):(this.isNil=!1,this.head_=t,this.tail_=n||w,this.size_=this.tail_.size()+1),e(this,"List")},of:function(t){return new C(t)},size:function(){return this.size_},equals:function(t){return(C.isOfType(t)||I.isOfType(t))&&g(this,t)},cons:function(t){return C(t,this)},snoc:function(t){return this.concat(C(t))},map:function(t){return m(t,this)},toArray:function(){return S((function(t,e){return t.push(e),t}),[],this)},toSet:function(){return new Set(this)},foldLeft:function(t){var e=this;return function(n){return S(n,t,e)}},foldRight:function(t){var e=this;return function(n){return k(n,e,t)}},append:function(t){return E(this,t)},filter:function(t){return v(this,t)},find:function(t){return _(this,t)},flatten:function(){return k(E,this,w)},flattenMaybe:function(){return this.flatMap(M.toList)},reverse:function(){return P(this)},bind:function(t){return this.map(t).flatten()},forEach:function(t){T(t,this)},contains:function(t){return y(this,t)},sequenceMaybe:function(){return x(this,M)},sequenceValidation:function(){return this.foldLeft(L(w))((function(t,e){return t.ap(e.map((function(t){return function(e){return O(t,e)}})))})).map(P)},sequenceEither:function(){return x(this,z)},sequenceIO:function(){return x(this,B)},sequenceReader:function(){return x(this,H)},sequence:function(t){return x(this,t)},head:function(){return this.head_},headMaybe:function(){return this.isNil?R():D(this.head_)},tail:function(){return this.isNil?w:this.tail_},tails:function(){return this.isNil?C(w,w):this.tail().tails().cons(this)},ap:function(t){return e=t,this.bind((function(t){return e.map((function(e){return e(t)}))}));var e},isNEL:p,toString:function(){return this.isNil?"Nil":"List("+this.toArray().join(", ")+")"},inspect:function(){return this.toString()}}).init.prototype=C.fn,e(C,"List"),e(C.fn.init,"List"),C.isInstance=n("List"),C.isOfType=i("List"),C.prototype.empty=function(){return w},C.fromArray=function(t){return t.reduceRight((function(t,e){return t.cons(e)}),w)},C.from=function(t){return C.fromArray(Array.from(t))},C.of=function(t){return new C(t,w)},C.prototype.each=C.prototype.forEach,w=t.Nil=new C.fn.init,t.NEL=t.NonEmptyList=I,I.of=function(t){return I(t,w)},I.fn=I.prototype={init:function(t,n){if(r(t))throw A(t);this.isNil=!1,this.head_=t,this.tail_=r(n)?w:n,this.size_=this.tail_.size()+1,e(this,"NEL")},equals:function(t){return C.isOfType(t)||I.isOfType(t)&&g(this,t)},cons:function(t){return I(t,this.toList())},snoc:function(t){return this.concat(I(t))},map:function(t){return I(t(this.head_),m(t,this.tail_))},bind:function(t){var e=t(this.head_);if(!e.isNEL())throw new Error("NEL.fn.bind: Passed function must return a NonEmptyList.");var n=this.tail().foldLeft(w.snoc(e.head()).append(e.tail()))((function(e,n){var i=t(n).toList();return e.snoc(i.head()).append(i.tail())}));return new I(n.head(),n.tail())},head:function(){return this.head_},tail:function(){return this.tail_},tails:function(){var t=this.toList().tails().map(I.fromList).flattenMaybe();return I(t.head(),t.tail())},toList:function(){return C(this.head_,this.tail_)},reverse:function(){if(this.tail().isNil)return this;var t=this.tail().reverse();return I(t.head(),t.tail().append(C(this.head())))},foldLeft:function(t){return this.toList().foldLeft(t)},foldRight:function(t){return this.toList().foldRight(t)},reduceLeft:function(t){return this.tail().foldLeft(this.head())(t)},filter:function(t){return v(this.toList(),t)},find:function(t){return _(this.toList(),t)},flatten:function(){return k(E,this.toList().map((function(t){return t.isNEL()?t.toList():t})),w)},flattenMaybe:function(){return this.toList().flatMap(M.toList)},contains:function(t){return y(this.toList(),t)},append:function(t){return I.fromList(this.toList().append(t.toList())).some()},cobind:function(t){return this.cojoin().map(t)},size:function(){return this.size_},forEach:function(t){return this.toList().forEach(t)},isNEL:function(){return!0},toString:function(){return"NEL("+this.toArray().join(", ")+")"},inspect:function(){return this.toString()}},I.fromList=function(t){return t.isNil?R():D(I(t.head(),t.tail()))},I.fromArray=function(t){return I.fromList(C.fromArray(t))},I.from=function(t){return I.fromList(C.from(t))},I.fn.init.prototype=I.fn,e(I,"NEL"),e(I.fn.init,"NEL"),I.isInstance=n("NEL"),I.isOfType=i("NEL"),I.prototype.toArray=C.prototype.toArray,I.prototype.toSet=C.prototype.toSet,I.prototype.extract=I.prototype.copure=I.prototype.head,I.prototype.cojoin=I.prototype.tails,I.prototype.coflatMap=I.prototype.mapTails=I.prototype.cobind,I.prototype.ap=C.prototype.ap;var M=t.Maybe={};M.fromFalsy=function(t){return t?M.Some(t):M.None()},M.fromNull=function(t){return r(t)?M.None():M.Some(t)},M.fromUndefined=function(t){return void 0===t?M.None():M.Some(t)},M.fromEmpty=function(t){return r(e=t)||""===e||Array.isArray(e)&&0===e.length||"object"==typeof e&&0===Object.keys(e).length?M.None():M.Some(t);var e},M.of=function(t){return D(t)};var D=M.Just=M.Some=M.some=t.Some=t.Just=function(t){return new M.fn.init(!0,t)},R=M.Nothing=M.None=M.none=t.None=t.Nothing=function(){return new M.fn.init(!1,null)};M.toList=function(t){return t.toList()},M.fn=M.prototype={init:function(t,n){if(this.isValue=t,t&&r(n))throw new Error("Can not create Some with illegal value: "+n+".");this.val=n,e(this,"Maybe")},isSome:function(){return this.isValue},isNone:function(){return!this.isSome()},bind:function(t){return this.isValue?t(this.val):this},some:function(){if(this.isValue)return this.val;throw new Error("Cannot call .some() on a None.")},orSome:function(t){return this.isValue?this.val:t},orLazy:function(t){return this.cata(t,u)},orNull:function(){return this.orSome(null)},orUndefined:function(){return this.orSome(void 0)},orElse:function(t){return this.catchMap((function(){return t}))},ap:function(t){var e=this.val;return this.isValue?t.map((function(t){return t(e)})):this},equals:function(t){return M.isOfType(t)&&this.cata((function(){return t.isNone()}),(function(e){return t.fold(!1)(d(e))}))},toArray:function(){return this.map((function(t){return[t]})).orLazy((function(){return[]}))},toSet:function(){return new Set(this)},toList:function(){return this.map(C).orLazy((function(){return w}))},toEither:function(t){return this.isSome()?V(this.val):$(t)},toValidation:function(t){return this.isSome()?L(this.val):N(t)},fold:function(t){var e=this;return function(n){return e.isSome()?n(e.val):t}},foldLeft:function(t){return this.toList().foldLeft(t)},foldRight:function(t){return this.toList().foldRight(t)},cata:function(t,e){return this.isSome()?e(this.val):t()},catchMap:function(t){return this.isSome()?this:t()},filter:function(t){var e=this;return e.flatMap((function(n){return t(n)?e:R()}))},orNoneIf:function(t){return t?R():this},contains:function(t){return!!this.isSome()&&h(this.val,t)},forEach:function(t){this.cata(s,t)},orElseRun:function(t){this.cata(t,s)},toString:function(){return this.isSome()?"Just("+this.val+")":"Nothing"},inspect:function(){return this.toString()}},M.prototype.orJust=M.prototype.getOrElse=M.prototype.orSome,M.prototype.just=M.prototype.some,M.prototype.isJust=M.prototype.isSome,M.prototype.isNothing=M.prototype.isNone,M.prototype.orNothingIf=M.prototype.orNoneIf,M.fn.init.prototype=M.fn,e(M,"Maybe"),e(M.fn.init,"Maybe"),M.isInstance=n("Maybe"),M.isOfType=i("Maybe");var j=t.Validation={},L=j.Success=j.success=t.Success=function(t){return new j.fn.init(t,!0)},N=j.Fail=j.fail=t.Fail=function(t){return new j.fn.init(t,!1)};j.of=function(t){return L(t)},j.fn=j.prototype={init:function(t,n){this.val=t,this.isSuccessValue=n,e(this,"Validation")},success:function(){if(this.isSuccess())return this.val;throw new Error("Cannot call success() on a Fail.")},isSuccess:function(){return this.isSuccessValue},isFail:function(){return!this.isSuccessValue},fail:function(){if(this.isSuccess())throw new Error("Cannot call fail() on a Success.");return this.val},bind:function(t){return this.isSuccess()?t(this.val):this},ap:function(t){var e=this.val;return this.isSuccess()?t.map((function(t){return t(e)})):t.isFail()?j.Fail(U.append(e,t.fail())):this},acc:function(){var t=function(){return t};return this.isSuccessValue?j.success(t):this},foldLeft:function(t){return this.toMaybe().toList().foldLeft(t)},foldRight:function(t){return this.toMaybe().toList().foldRight(t)},cata:function(t,e){return this.isSuccessValue?e(this.val):t(this.val)},catchMap:function(t){return this.isSuccess()?this:t(this.val)},swap:function(){return this.isSuccess()?N(this.val):L(this.val)},failMap:function(t){return this.isFail()?N(t(this.val)):this},bimap:function(t,e){return this.isSuccessValue?this.map(e):this.failMap(t)},forEach:function(t){this.cata(s,t)},forEachFail:function(t){this.cata(t,s)},equals:function(t){return j.isOfType(t)&&this.cata((function(e){return t.cata(d(e),p)}),(function(e){return t.cata(p,d(e))}))},toMaybe:function(){return this.isSuccess()?D(this.val):R()},toEither:function(){return(this.isSuccess()?V:$)(this.val)},toString:function(){return(this.isSuccess()?"Success(":"Fail(")+this.val+")"},inspect:function(){return this.toString()}},j.prototype.fold=j.prototype.cata,j.fn.init.prototype=j.fn,e(j,"Validation"),e(j.fn.init,"Validation"),j.isInstance=n("Validation"),j.isOfType=i("Validation");var U=t.Semigroup={append:function(t,e){if(l(t.concat))return t.concat(e);throw new Error("Couldn't find a semigroup appender in the environment, please specify your own append function")}},F=t.monadTransformer=t.MonadT=t.monadT=function(t){return new F.fn.init(t)};F.of=function(t){return F(t)},F.fn=F.prototype={init:function(t){this.monad=t,e(j,"MonadT")},map:function(t){return F(this.monad.map((function(e){return e.map(t)})))},bind:function(t){return F(this.monad.map((function(e){return e.flatMap(t)})))},ap:function(t){return F(this.monad.flatMap((function(e){return t.perform().map((function(t){return e.ap(t)}))})))},perform:function(){return this.monad}},F.fn.init.prototype=F.fn;var B=t.IO=t.io=function(t){return new B.fn.init(t)};B.of=function(t){return B((function(){return t}))},B.fn=B.prototype={init:function(t){if(!l(t))throw new Error("IO requires a function.");this.effectFn=t,e(this,"IO")},map:function(t){var e=this;return B((function(){return t(e.effectFn())}))},bind:function(t){var e=this;return B((function(){return t(e.effectFn()).run()}))},ap:function(t){var e=this;return t.map((function(t){return t(e.effectFn())}))},run:function(){return this.effectFn()}},B.fn.init.prototype=B.fn,e(B,"IO"),e(B.fn.init,"IO"),B.isInstance=n("IO"),B.isOfType=i("IO"),B.prototype.perform=B.prototype.performUnsafeIO=B.prototype.run;var z=t.Either={};z.of=function(t){return V(t)},z.fromTry=function(t){try{return z.right(t())}catch(e){return z.left(e)}},z.fromPromise=function(t){return t.then(z.Right,z.Left)};var V=z.Right=z.right=t.Right=function(t){return new z.fn.init(t,!0)},$=z.Left=z.left=t.Left=function(t){return new z.fn.init(t,!1)};z.fn=z.prototype={init:function(t,n){this.isRightValue=n,this.value=t,e(this,"Either")},bind:function(t){return this.isRightValue?t(this.value):this},ap:function(t){var e=this;return this.isRightValue?t.map((function(t){return t(e.value)})):this},leftMap:function(t){return this.isLeft()?$(t(this.value)):this},isRight:function(){return this.isRightValue},isLeft:function(){return!this.isRight()},right:function(){if(this.isRightValue)return this.value;throw new Error("Cannot call right() on a Left.")},left:function(){if(this.isRightValue)throw new Error("Cannot call left() on a Right.");return this.value},foldLeft:function(t){return this.toMaybe().toList().foldLeft(t)},foldRight:function(t){return this.toMaybe().toList().foldRight(t)},cata:function(t,e){return this.isRightValue?e(this.value):t(this.value)},catchMap:function(t){return this.isRight()?this:t(this.value)},swap:function(){return this.isRight()?$(this.value):V(this.value)},forEach:function(t){this.cata(s,t)},forEachLeft:function(t){this.cata(t,s)},equals:function(t){return z.isOfType(t)&&this.cata((function(e){return t.cata(d(e),p)}),(function(e){return t.cata(p,d(e))}))},bimap:function(t,e){return this.isRightValue?this.map(e):this.leftMap(t)},toMaybe:function(){return this.isRight()?D(this.value):R()},toValidation:function(){return this.isRight()?L(this.value):N(this.value)},toString:function(){return this.cata((function(t){return"Left("+t+")"}),(function(t){return"Right("+t+")"}))},toPromise:function(){return this.cata((function(t){return Promise.reject(t)}),(function(t){return Promise.resolve(t)}))},inspect:function(){return this.toString()}},z.prototype.fold=z.prototype.cata,z.fn.init.prototype=z.fn,e(z,"Either"),e(z.fn.init,"Either"),z.isInstance=n("Either"),z.isOfType=i("Either");var H=t.Reader=function(t){return new H.fn.init(t)};H.of=function(t){return H((function(e){return t}))},H.ask=function(){return H(u)},H.fn=H.prototype={init:function(t){this.f=t,e(this,"Reader")},run:function(t){return this.f(t)},bind:function(t){var e=this;return H((function(n){return t(e.run(n)).run(n)}))},ap:function(t){var e=this;return t.bind((function(t){return H((function(n){return t(e.run(n))}))}))},map:function(t){var e=this;return H((function(n){return t(e.run(n))}))},local:function(t){var e=this;return H((function(n){return e.run(t(n))}))}},H.fn.init.prototype=H.fn,e(H,"Reader"),e(H.fn.init,"Reader"),H.isInstance=n("Reader"),H.isOfType=i("Reader");var q=t.Free={},Q=q.Suspend=t.Suspend=function(t){return new q.fn.init(t,!0)},W=q.Return=t.Return=function(t){return new q.fn.init(t,!1)};function G(t){return new G.fn.init(t)}function Y(t){(function(t){t.prototype.flatMap=t.prototype.chain=t.prototype.bind,t.pure=t.unit=t.of,t.prototype.of=t.of,l(t.prototype.append)&&(t.prototype.concat=t.prototype.append),t.prototype.point=t.prototype.pure=t.prototype.unit=t.prototype.of})(t),function(t){l(t.prototype.filter)&&(t.prototype.filterNot=function(t){return this.filter((function(e){return!t(e)}))})}(t),function(t){t.prototype.join=function(){return this.flatMap(u)},t.map2=function(t){return function(e,n){return e.flatMap((function(e){return n.map((function(n){return t(e,n)}))}))}}}(t),function(t){l(t.prototype.map)||(t.prototype.map=function(t){return this.bind(c(this.of,t))})}(t),function(t){t.prototype.takeLeft=function(t){return b(this,t,(function(t,e){return t}))},t.prototype.takeRight=function(t){return b(this,t,(function(t,e){return e}))}}(t),function(t){l(t.prototype.toArray)&&(t.prototype.every=t.prototype.forall=function(t){return this.toArray().every(t)},t.prototype.exists=function(t){return this.toArray().some(t)})}(t),function(t){["equals","map","ap","chain"].filter((function(e){return l(t.prototype[e])})).forEach((function(e){t.prototype["fantasy-land/"+e]=t.prototype[e]}))}(t),function(t){l(t.prototype.toArray)&&(t.prototype[Symbol.iterator]=function(){return this.toArray()[Symbol.iterator]()})}(t),function(t){l(t.prototype.toArray)&&(t.prototype.to=function(t){return t(this)})}(t)}return q.of=function(t){return W(t)},q.liftF=function(t){return l(t)?Q(c(W,t)):Q(t.map(W))},q.fn=q.prototype={init:function(t,n){this.isSuspend=n,n?this.functor=t:this.val=t,e(this,"Free")},run:function(){return this.go((function(t){return t()}))},bind:function(t){return this.isSuspend?l(this.functor)?Q(c((function(e){return e.bind(t)}),this.functor)):Q(this.functor.map((function(e){return e.bind(t)}))):t(this.val)},ap:function(t){return this.bind((function(e){return t.map((function(t){return t(e)}))}))},resume:function(){return this.isSuspend?$(this.functor):V(this.val)},go1:function(t){return function e(n){return n.resume().cata((function(n){return e(t(n))}),u)}(this)},go:function(t){for(var e=this.resume();e.isLeft();){var n=t(e.left());e=n.resume()}return e.right()}},q.fn.init.prototype=q.fn,e(q,"Free"),e(q.fn.init,"Free"),q.isInstance=n("Free"),q.isOfType=i("Free"),t.Identity=G,G.of=function(t){return new G(t)},(G.fn=G.prototype={init:function(t){this.val=t,e(this,"Identity")},bind:function(t){return t(this.val)},get:function(){return this.val},forEach:function(t){t(this.val)},equals:function(t){return G.isOfType(t)&&d(this.get())(t.get())},contains:function(t){return h(this.val,t)},toString:function(){return"Identity("+this.val+")"},inspect:function(){return this.toString()},ap:function(t){var e=this.val;return t.map((function(t){return t(e)}))},toArray:function(){return[this.get()]},toList:function(){return C(this.get(),w)},toSet:function(){return new Set(this)}}).init.prototype=G.fn,e(G,"Identity"),e(G.fn.init,"Identity"),G.isInstance=n("Identity"),G.isOfType=i("Identity"),Y(F),Y(z),Y(M),Y(B),Y(I),Y(C),Y(j),Y(H),Y(q),Y(G),t})?i.call(e,n,e,t):i)||(t.exports=r)},VvXq:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("EWqr");class r extends i.a{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,n=0){return null!==n&&n>0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(t,e,n);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}}var s=n("DG/E");class o extends s.a{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,i=-1,r=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++i{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})()},W7x1:function(t,e,n){"use strict";n.r(e),n.d(e,"FeeSchedulesDialogComponent",(function(){return T}));var i=n("zqNl"),r=n("YtkY"),s=n("i67J"),o=n("lx5p"),a=n("rxqU"),c=n("+Px6"),l=n("kZht"),u=n("rfPA"),h=n("bBQR"),d=n("An66"),p=n("anSm"),f=n("1etq"),b=n("chaP"),g=n("DTJn"),m=n("+I9z"),v=n("aDqW");const _=function(t){return{difference:t}};function y(t,e){if(1&t&&(l.Ub(0,"p",9),l.Qc(1),l.gc(2,"translate"),l.gc(3,"number"),l.Tb()),2&t){const t=e.ngIf;l.Cb(1),l.Sc(" ",l.ic(2,1,"EXPLAIN.NEXT_FEE_TIER",l.rc(6,_,l.hc(3,4,t)))," ")}}function O(t,e){if(1&t&&(l.Ub(0,"sb-table-row"),l.Ub(1,"sb-table-cell",13),l.Qc(2),l.gc(3,"number"),l.Tb(),l.Ub(4,"sb-table-cell",13),l.Pb(5,"ghost-trail",14),l.gc(6,"number"),l.Tb(),l.Ub(7,"sb-table-cell",13),l.Pb(8,"ghost-trail",14),l.gc(9,"number"),l.Tb(),l.Tb()),2&t){const t=e.$implicit,n=l.fc().ngIf;l.Db("active",n.usdVolume===t.usdVolume),l.Cb(2),l.Rc(l.hc(3,4,t.usdVolume)),l.Cb(3),l.mc("content",l.ic(6,6,t.makerFee,"1.5-5")),l.Cb(3),l.mc("content",l.ic(9,9,t.takerFee,"1.5-5"))}}function C(t,e){if(1&t&&(l.Ub(0,"sb-table"),l.Ub(1,"sb-table-row",10),l.Ub(2,"sb-table-cell",11),l.Qc(3),l.gc(4,"translate"),l.Tb(),l.Ub(5,"sb-table-cell",11),l.Qc(6),l.gc(7,"translate"),l.Tb(),l.Ub(8,"sb-table-cell",11),l.Qc(9),l.gc(10,"translate"),l.Tb(),l.Tb(),l.Oc(11,O,10,12,"sb-table-row",12),l.Tb()),2&t){const t=l.fc().ngIf;l.Cb(1),l.mc("header",!0),l.Cb(2),l.Sc(" ",l.hc(4,5,"COLUMN.MINIMUM_VOLUME")," "),l.Cb(3),l.Sc(" ",l.hc(7,7,"COLUMN.MAKER_FEE_PERCENTAGE")," "),l.Cb(3),l.Sc(" ",l.hc(10,9,"COLUMN.TAKER_FEE_PERCENTAGE")," "),l.Cb(2),l.mc("ngForOf",t.tiers)}}function w(t,e){if(1&t&&(l.Ub(0,"section",2),l.Ub(1,"section",3),l.Ub(2,"h2",4),l.Qc(3),l.gc(4,"translate"),l.Tb(),l.Ub(5,"p",5),l.Qc(6),l.gc(7,"number"),l.gc(8,"async"),l.Tb(),l.Oc(9,y,4,8,"p",6),l.gc(10,"async"),l.Tb(),l.Ub(11,"section",7),l.Ub(12,"h2",4),l.Qc(13),l.gc(14,"translate"),l.Tb(),l.Oc(15,C,12,11,"sb-table",8),l.gc(16,"async"),l.Tb(),l.Tb()),2&t){const t=l.fc();l.Cb(3),l.Rc(l.hc(4,5,"HEADING.YOUR_30_DAY_ROLLING_VOLUME")),l.Cb(3),l.Sc("$",l.hc(7,7,l.hc(8,9,t.userVolume$)),""),l.Cb(3),l.mc("ngIf",l.hc(10,11,t.volToNextTier$)),l.Cb(4),l.Rc(l.hc(14,13,"HEADING.TIERS")),l.Cb(2),l.mc("ngIf",l.hc(16,15,t.userFees$))}}let T=(()=>{class t{constructor(t){this.store=t,this.feeSchedules$=this.store.pipe(Object(i.m)(c.e)),this.feeSchedule$=this.store.pipe(Object(i.m)(c.m),Object(r.a)(o.O)),this.userVolume$=this.store.pipe(Object(i.m)(a.x),Object(r.a)(o.O)),this.userFees$=this.store.pipe(Object(i.m)(a.v),Object(s.f)(),Object(s.k)(0)),this.volToNextTier$=this.store.pipe(Object(i.m)(a.w),Object(r.a)(o.O))}}return t.\u0275fac=function(e){return new(e||t)(l.Ob(i.b))},t.\u0275cmp=l.Ib({type:t,selectors:[["fee-schedule"]],decls:3,vars:3,consts:[["heading","DIALOG.FEE_SCHEDULE.TITLE"],["body","",4,"ngIf"],["body",""],[1,"rolling-vol"],["subheading",""],["mono","",1,"vol"],["class","next global__text--paragraph",4,"ngIf"],[1,"tiers"],[4,"ngIf"],[1,"next","global__text--paragraph"],[3,"header"],["align","right","whiteSpace","nowrap"],[4,"ngFor","ngForOf"],["align","right"],[3,"content"]],template:function(t,e){1&t&&(l.Ub(0,"pro-dialog",0),l.Oc(1,w,17,17,"section",1),l.gc(2,"async"),l.Tb()),2&t&&(l.Cb(1),l.mc("ngIf",l.hc(2,1,e.feeSchedule$)))},directives:[u.a,h.a,d.n,p.a,f.a,b.a,g.b,g.c,g.a,d.m,m.a],pipes:[d.b,v.d,d.f],styles:["section[_ngcontent-%COMP%]:not(:first-of-type){margin-top:var(--spacing-l)}.rolling-vol[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin-bottom:var(--spacing)}.rolling-vol[_ngcontent-%COMP%] .vol[_ngcontent-%COMP%]{font-size:1.25rem}.rolling-vol[_ngcontent-%COMP%] .next[_ngcontent-%COMP%]{margin-top:var(--spacing-s);max-width:50ch}.tiers[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin-bottom:var(--spacing-s)}.tiers[_ngcontent-%COMP%] sb-table-row[active=true][_ngcontent-%COMP%]{background-color:rgba(var(--brand-rgb),.5)}"],changeDetection:0}),t})()},WRMk:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var i=n("kZht"),r=n("An66"),s=n("anSm"),o=n("1o0v");function a(t,e){if(1&t&&(i.Ub(0,"p",3),i.Qc(1),i.gc(2,"percent"),i.Tb()),2&t){const t=i.fc();i.Cb(1),i.Sc(" ",i.hc(2,1,t.percentage),"\n")}}let c=(()=>{class t{constructor(){this.progress=0,this.showPercentage=!1}get percentage(){return this.progress/100}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["progress-bar"]],inputs:{progress:"progress",showPercentage:"showPercentage"},decls:4,vars:5,consts:[[1,"progress-bar"],[1,"progress-fill"],["class","progress-percentage","body","","ghost","",4,"ngIf"],["body","","ghost","",1,"progress-percentage"]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.gc(2,"percent"),i.Tb(),i.Tb(),i.Oc(3,a,3,3,"p",2)),2&t&&(i.Cb(1),i.Lc("width",i.hc(2,3,e.percentage)),i.Cb(2),i.mc("ngIf",e.showPercentage))},directives:[r.n,s.a,o.a],pipes:[r.u],styles:["[_nghost-%COMP%]{display:flex;align-items:center}.progress-bar[_ngcontent-%COMP%]{height:6px;flex:1;border:1px solid var(--i400);border-radius:3px;padding:1px}.progress-fill[_ngcontent-%COMP%]{background-color:var(--i200);position:relative;height:2px;border-radius:2px}.progress-percentage[_ngcontent-%COMP%]{padding-left:var(--spacing-s)}"],changeDetection:0}),t})()},WYJo:function(t,e,n){"use strict";n.d(e,"a",(function(){return T})),n.d(e,"b",(function(){return k}));var i=n("5GZx"),r=n("jL3B"),s=n("An66"),o=n("kZht"),a=n("pTnX"),c=n("VbQ3"),l=n("vE5V"),u=n("5XID"),h=n("Hq54"),d=n("Asjx"),p=n("O1jd"),f=n("ZtZA"),b=n("ZTXN"),g=n("kuMc"),m=n("J+dc"),v=n("+6xv");const _={tooltipState:Object(v.n)("state",[Object(v.k)("initial, void, hidden",Object(v.l)({opacity:0,transform:"scale(0)"})),Object(v.k)("visible",Object(v.l)({transform:"scale(1)"})),Object(v.m)("* => visible",Object(v.e)("200ms cubic-bezier(0, 0, 0.2, 1)",Object(v.h)([Object(v.l)({opacity:0,transform:"scale(0)",offset:0}),Object(v.l)({opacity:.5,transform:"scale(0.99)",offset:.5}),Object(v.l)({opacity:1,transform:"scale(1)",offset:1})]))),Object(v.m)("* => hidden",Object(v.e)("100ms cubic-bezier(0, 0, 0.2, 1)",Object(v.l)({opacity:0})))])},y=Object(p.f)({passive:!0}),O=new o.s("mat-tooltip-scroll-strategy"),C={provide:O,deps:[i.c],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},w=new o.s("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let T=(()=>{class t{constructor(t,e,n,i,r,s,o,a,c,l,u){this._overlay=t,this._elementRef=e,this._scrollDispatcher=n,this._viewContainerRef=i,this._ngZone=r,this._platform=s,this._ariaDescriber=o,this._focusMonitor=a,this._dir=l,this._defaultOptions=u,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new b.b,this._handleKeydown=t=>{this._isTooltipVisible()&&t.keyCode===h.f&&!Object(h.r)(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=c,u&&(u.position&&(this.position=u.position),u.touchGestures&&(this.touchGestures=u.touchGestures)),r.runOutsideAngular(()=>{e.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=Object(u.c)(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message),this._message=null!=t?(""+t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message)})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Object(g.a)(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([e,n])=>{t.removeEventListener(e,n,y)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const e=this._createOverlay();this._detach(),this._portal=this._portal||new f.d(S,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Object(g.a)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),e=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(t);return e.positionChanges.pipe(Object(g.a)(this._destroyed)).subscribe(t=>{this._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:e,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(Object(g.a)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(){const t=this._overlayRef.getConfig().positionStrategy,e=this._getOrigin(),n=this._getOverlayPosition();t.withPositions([Object.assign(Object.assign({},e.main),n.main),Object.assign(Object.assign({},e.fallback),n.fallback)])}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let n;"above"==e||"below"==e?n={originX:"center",originY:"above"==e?"top":"bottom"}:"before"==e||"left"==e&&t||"right"==e&&!t?n={originX:"start",originY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(n={originX:"end",originY:"center"});const{x:i,y:r}=this._invertPosition(n.originX,n.originY);return{main:n,fallback:{originX:i,originY:r}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let n;"above"==e?n={overlayX:"center",overlayY:"bottom"}:"below"==e?n={overlayX:"center",overlayY:"top"}:"before"==e||"left"==e&&t||"right"==e&&!t?n={overlayX:"end",overlayY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(n={overlayX:"start",overlayY:"center"});const{x:i,y:r}=this._invertPosition(n.overlayX,n.overlayY);return{main:n,fallback:{overlayX:i,overlayY:r}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Object(m.a)(1),Object(g.a)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}_setupPointerEnterEventsIfNeeded(){!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",()=>this.hide()]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const e=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",e],["touchcancel",e])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([t,e])=>{this._elementRef.nativeElement.addEventListener(t,e,y)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const e=this._elementRef.nativeElement,n=e.style;("on"===t||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),"on"!==t&&e.draggable||(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){return new(e||t)(o.Ob(i.c),o.Ob(o.l),o.Ob(c.f),o.Ob(o.R),o.Ob(o.B),o.Ob(p.a),o.Ob(r.c),o.Ob(r.h),o.Ob(O),o.Ob(l.b,8),o.Ob(w,8))},t.\u0275dir=o.Jb({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),t})(),S=(()=>{class t{constructor(t,e){this._changeDetectorRef=t,this._breakpointObserver=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new b.b,this._isHandset=this._breakpointObserver.observe(d.b.Handset)}show(t){this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=null,this._markForCheck()},t)}hide(t){this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=null,this._markForCheck()},t)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(t){const e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(o.Ob(o.h),o.Ob(d.a))},t.\u0275cmp=o.Ib({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&o.bc("click",(function(){return e._handleBodyInteraction()}),!1,o.Bc),2&t&&o.Lc("zoom","visible"===e._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){var n;1&t&&(o.Ub(0,"div",0),o.bc("@state.start",(function(){return e._animationStart()}))("@state.done",(function(t){return e._animationDone(t)})),o.gc(1,"async"),o.Qc(2),o.Tb()),2&t&&(o.Gb("mat-tooltip-handset",null==(n=o.hc(1,5,e._isHandset))?null:n.matches),o.mc("ngClass",e.tooltipClass)("@state",e._visibility),o.Cb(2),o.Rc(e.message))},directives:[s.l],pipes:[s.b],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[_.tooltipState]},changeDetection:0}),t})(),k=(()=>{class t{}return t.\u0275mod=o.Mb({type:t}),t.\u0275inj=o.Lb({factory:function(e){return new(e||t)},providers:[C],imports:[[r.a,s.c,i.f,a.j],a.j,c.c]}),t})()},Wg7D:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("5uGe"),r=n("Efrr");n("uCWR");const s={leading:!0,trailing:!1};function o(t,e=r.a,n=s){return i=>i.lift(new a(t,e,n.leading,n.trailing))}class a{constructor(t,e,n,i){this.duration=t,this.scheduler=e,this.leading=n,this.trailing=i}call(t,e){return e.subscribe(new c(t,this.duration,this.scheduler,this.leading,this.trailing))}}class c extends i.a{constructor(t,e,n,i,r){super(t),this.duration=e,this.scheduler=n,this.leading=i,this.trailing=r,this._hasTrailingValue=!1,this._trailingValue=null}_next(t){this.throttled?this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(l,this.duration,{subscriber:this})),this.leading?this.destination.next(t):this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0))}_complete(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}clearThrottle(){const t=this.throttled;t&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),t.unsubscribe(),this.remove(t),this.throttled=null)}}function l(t){const{subscriber:e}=t;e.clearThrottle()}},WncL:function(t,e,n){"use strict";n.d(e,"a",(function(){return k}));var i=n("D57K"),r=n("gxtV"),s=n("zqNl"),o=n("HM3f"),a=n("YtkY"),c=n("wqq/"),l=n("+Px6"),u=n("qAYy"),h=n("rxqU"),d=n("sxqi"),p=n("vYTc"),f=n("kZht"),b=n("An66"),g=n("1etq"),m=n("NxuZ"),v=n("ZEHW"),_=n("9BXW"),y=n("aDqW");function O(t,e){1&t&&(f.Ub(0,"h2",1),f.Qc(1),f.gc(2,"translate"),f.Pb(3,"fa-icon",7),f.Tb()),2&t&&(f.Cb(1),f.Sc(" ",f.hc(2,1,"HEADING.FAVORITES")," "))}function C(t,e){if(1&t){const t=f.Vb();f.Ub(0,"market-preview-favorite",10),f.bc("click",(function(){f.Ec(t);const n=e.$implicit;return f.fc(3).selectMarket(n)})),f.gc(1,"async"),f.Tb()}if(2&t){const t=e.$implicit,i=f.fc(3);var n;f.mc("ticker",t),f.Db("active",(null==(n=f.hc(1,2,i.selected$))?null:n.symbol)===t.product_id)}}function w(t,e){if(1&t&&(f.Ub(0,"div",8),f.Oc(1,C,2,4,"market-preview-favorite",9),f.Tb()),2&t){const t=f.fc().ngIf,e=f.fc();f.Cb(1),f.mc("ngForOf",t.values())("ngForTrackBy",e.trackByProductId)}}function T(t,e){if(1&t&&(f.Sb(0),f.Oc(1,O,4,3,"h2",5),f.Oc(2,w,2,2,"div",6),f.Rb()),2&t){const t=e.ngIf;f.Cb(1),f.mc("ngIf",t.size>0),f.Cb(1),f.mc("ngIf",t.size>0)}}function S(t,e){if(1&t){const t=f.Vb();f.Ub(0,"market-preview-compact",11),f.bc("click",(function(){f.Ec(t);const n=e.$implicit;return f.fc().selectMarket(n)})),f.gc(1,"async"),f.gc(2,"async"),f.Tb()}if(2&t){const t=e.$implicit,i=f.fc();var n;f.mc("ticker",t)("maxVol",f.hc(1,3,i.maxVol$)),f.Db("active",(null==(n=f.hc(2,5,i.selected$))?null:n.symbol)===t.product_id)}}let k=(()=>{let t=class{constructor(t,e){this.store=t,this.market=e,this.selected$=this.store.pipe(Object(s.m)(l.n)),this.futures$=this.store.pipe(Object(s.m)(u.g)),this.favorites$=this.store.pipe(Object(s.m)(h.p)),this.tickers$=this.futures$.pipe(Object(a.a)(t=>t.valueSeq().sortBy(t=>t.volumeQuote).reverse()),Object(c.a)(1)),this.maxVol$=this.tickers$.pipe(Object(a.a)(t=>{var e;return null!==(e=t.map(t=>t.volumeQuote).max())&&void 0!==e?e:1})),this.favoriteTickers$=Object(o.a)([this.favorites$,this.tickers$]).pipe(Object(a.a)(([t,e])=>e.filter(e=>t.has(Object(p.i)(e))).toList()))}trackByProductId(t,e){return e.product_id}selectMarket(t){this.market.navigateToMarket(t.product_id)}};return t.\u0275fac=function(e){return new(e||t)(f.Ob(s.b),f.Ob(d.a))},t.\u0275cmp=f.Ib({type:t,selectors:[["market-preview-panel"]],decls:9,vars:10,consts:[[4,"ngIf"],["subheading",""],["icon","chart-candlestick","size","lg"],[1,"open"],[3,"ticker","maxVol","click",4,"ngFor","ngForOf","ngForTrackBy"],["subheading","",4,"ngIf"],["subheading","","class","favorites",4,"ngIf"],["icon","star-filled","size","lg"],["subheading","",1,"favorites"],[3,"ticker","click",4,"ngFor","ngForOf","ngForTrackBy"],[3,"ticker","click"],[3,"ticker","maxVol","click"]],template:function(t,e){if(1&t&&(f.Oc(0,T,3,2,"ng-container",0),f.gc(1,"async"),f.Ub(2,"h2",1),f.Pb(3,"fa-icon",2),f.Qc(4),f.gc(5,"translate"),f.Tb(),f.Ub(6,"div",3),f.Oc(7,S,3,7,"market-preview-compact",4),f.gc(8,"async"),f.Tb()),2&t){var n=null;f.mc("ngIf",f.hc(1,4,e.favoriteTickers$)),f.Cb(4),f.Sc(" ",f.hc(5,6,"HEADING.OPEN_MARKETS"),"\n"),f.Cb(3),f.mc("ngForOf",null==(n=f.hc(8,8,e.tickers$))?null:n.values())("ngForTrackBy",e.trackByProductId)}},directives:[b.n,g.a,m.b,b.m,v.a,_.a],pipes:[b.b,y.d],styles:["[_nghost-%COMP%]{display:block;overflow-x:hidden;padding:var(--spacing)}h2[_ngcontent-%COMP%]{font-weight:700;margin-bottom:var(--spacing)}h2[_ngcontent-%COMP%]:not(:first-of-type){margin-top:var(--spacing-l)}h2[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{color:var(--icon-colour)}.favorites[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:var(--spacing)}@media (min-width:1441px){.favorites[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fill,minmax(280px,1fr))}}.open[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:var(--spacing)}market-preview-favorite[active=true][_ngcontent-%COMP%]{border-color:var(--brand)}market-preview-compact[active=true][_ngcontent-%COMP%]{--symbol-color:var(--link-colour)}"],changeDetection:0}),t=Object(i.d)([Object(r.a)()],t),t})()},Wxxs:function(t,e,n){"use strict";n.d(e,"c",(function(){return r})),n.d(e,"b",(function(){return s})),n.d(e,"d",(function(){return o})),n.d(e,"g",(function(){return a})),n.d(e,"f",(function(){return c})),n.d(e,"e",(function(){return l})),n.d(e,"a",(function(){return u}));var i=n("zqNl");const r=Object(i.g)("Reset Verification State"),s=Object(i.g)("Check Tier"),o=Object(i.g)("Set Account Type",Object(i.l)()),a=Object(i.g)("Set Tier Status",Object(i.l)()),c=Object(i.g)("Set Temp Tier Status",Object(i.l)()),l=Object(i.g)("Set Classification",Object(i.l)()),u=Object(i.g)("Affirm UK Classification",Object(i.l)())},Wzsi:function(t,e,n){var i=n("67SP"),r=n("yBEi"),s=n("ECQc"),o=n("LxLQ"),a=n("188V"),c=n("PqQh"),l=n("HnIH"),u=n("OpOv"),h=n("nwte"),d=n("wCIf"),p=n("ZR2N"),f=n("Amke"),b=n("JgBV"),g=n("iRqU"),m=n("B9MG");function v(t,e,n){var i,r,s=t.size,o=f.getEncodedBits(e,n);for(i=0;i<15;i++)t.set(i<6?i:i<8?i+1:s-15+i,8,r=1==(o>>i&1),!0),t.set(8,i<8?s-i-1:i<9?15-i-1+1:15-i-1,r,!0);t.set(s-8,8,1,!0)}e.create=function(t,e){if(void 0===t||""===t)throw new Error("No input text");var n,f,_=s.M;return void 0!==e&&(_=s.from(e.errorCorrectionLevel,s.M),n=p.from(e.version),f=u.from(e.maskPattern),e.toSJISFunc&&r.setToSJISFunction(e.toSJISFunc)),function(t,e,n,s){var f;if(m(t))f=g.fromArray(t);else{if("string"!=typeof t)throw new Error("Invalid data");var _=e;if(!_){var y=g.rawSplit(t);_=p.getBestVersionForData(y,n)}f=g.fromString(t,_||40)}var O=p.getBestVersionForData(f,n);if(!O)throw new Error("The amount of data is too big to be stored in a QR Code");if(e){if(e=0&&a<=6&&(0===c||6===c)||c>=0&&c<=6&&(0===a||6===a)||a>=2&&a<=4&&c>=2&&c<=4,!0)}(T,e),function(t){for(var e=t.size,n=8;n=7&&function(t,e){for(var n,i,r,s=t.size,o=p.getEncodedBits(e),a=0;a<18;a++)n=Math.floor(a/3),t.set(n,i=a%3+s-8-3,r=1==(o>>a&1),!0),t.set(i,n,r,!0)}(T,e),function(t,e){for(var n=t.size,i=-1,r=n-1,s=7,o=0,a=n-1;a>0;a-=2)for(6===a&&a--;;){for(var c=0;c<2;c++)if(!t.isReserved(r,a-c)){var l=!1;o>>s&1)),t.set(r,a-c,l),-1==--s&&(o++,s=7)}if((r+=i)<0||n<=r){r-=i,i=-i;break}}}(T,C),isNaN(s)&&(s=u.getBestMask(T,v.bind(null,T,n))),u.applyMask(s,T),v(T,n,s),{modules:T,version:e,errorCorrectionLevel:n,maskPattern:s,segments:f}}(t,n,_,f)}},X0qr:function(t,e,n){"use strict";function i(t){return null!==t&&"object"==typeof t}n.d(e,"a",(function(){return i}))},XOQS:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s=n("neWc"),o=n("q+cW");e.default=function(t){function e(e){var n=t.call(this,e)||this;return n.matrix=null,n}return r(e,t),e.prototype.getBlackMatrix=function(){if(null!==this.matrix)return this.matrix;var n=this.getLuminanceSource(),i=n.getWidth(),r=n.getHeight();if(i>=e.MINIMUM_DIMENSION&&r>=e.MINIMUM_DIMENSION){var s=n.getMatrix(),a=i>>e.BLOCK_SIZE_POWER;0!=(i&e.BLOCK_SIZE_MASK)&&a++;var c=r>>e.BLOCK_SIZE_POWER;0!=(r&e.BLOCK_SIZE_MASK)&&c++;var l=e.calculateBlackPoints(s,a,c,i,r),u=new o.default(i,r);e.calculateThresholdForBlock(s,a,c,i,r,l,u),this.matrix=u}else this.matrix=t.prototype.getBlackMatrix.call(this);return this.matrix},e.prototype.createBinarizer=function(t){return new e(t)},e.calculateThresholdForBlock=function(t,n,i,r,s,o,a){for(var c=s-e.BLOCK_SIZE,l=r-e.BLOCK_SIZE,u=0;uc&&(h=c);for(var d=e.cap(u,2,i-3),p=0;pl&&(f=l);for(var b=e.cap(p,2,n-3),g=0,m=-2;m<=2;m++){var v=o[d+m];g+=v[b-2]+v[b-1]+v[b]+v[b+1]+v[b+2]}e.thresholdBlock(t,f,h,g/25,r,a)}}},e.cap=function(t,e,n){return tn?n:t},e.thresholdBlock=function(t,n,i,r,s,o){for(var a=0,c=i*s+n;ao&&(u=o);for(var h=0;ha&&(d=a);for(var p=0,f=255,b=0,g=0,m=u*r+d;gb&&(b=_)}if(b-f>e.MIN_DYNAMIC_RANGE)for(g++,m+=r;g>2*e.BLOCK_SIZE_POWER;if(b-f<=e.MIN_DYNAMIC_RANGE&&(y=f/2,l>0&&h>0)){var O=(c[l-1][h]+2*c[l][h-1]+c[l-1][h-1])/4;ft.order?(t=>{if(t.order){const{side:e,quantity:n,symbol:i,limitPrice:r,filled:a}=t.order,{takerReducedQuantity:c}=t,l="buy"===e?"Long":"Short";return`${Object(o.j)(i).replace(s.b,"BTC")} ${Object(o.i)(i,"short",!1)} - ${l} ${n} @ ${r} ${c?"- Reduced by: "+c:""} ${a&&n?`

    Remaining: ${n}/${a+n}`:""}`}return""})(t):t.orderPriorExecution?(t=>{if(t.orderPriorExecution){const{side:e,symbol:n}=t.orderPriorExecution,{amount:i,takerReducedQuantity:r,price:a}=t,c="buy"===e?"Long":"Short";return`${Object(o.j)(n).replace(s.b,"BTC")} ${Object(o.i)(n,"short",!1)} - ${c} ${i} @ ${a} ${r?"- Reduced by: "+r:""} ${t.orderPriorEdit?"(Edit caused execution)":""}`}return""})(t):t.old&&t.new?(t=>{var e,n;if(t.old&&t.new){const i=t.old.quantity,r=t.new.quantity,a=i!==r,c=null!==(e=t.old.limitPrice)&&void 0!==e?e:"MKT",l=null!==(n=t.new.limitPrice)&&void 0!==n?n:"MKT",u=c!==l,h=t.old.triggerPrice,d=t.new.triggerPrice,p=h!==d,f=!!t.new.triggerSignal,b=t.new.triggerSignal,{side:g,symbol:m}=t.new,v="buy"===g?"Long":"Short",_=p?`, Trigger: ${h} => ${d}`:", Trigger: "+d;return`${Object(o.j)(m).replace(s.b,"BTC")} ${Object(o.i)(m,"short",!1)} - ${v} ${a?`${i} => ${r}`:r} @ ${u?`${c} => ${l}`:l} ${f?_:""} ${b?`(${b.toUpperCase()})`:""}`}return""})(t):t.orderTrigger?(t=>{if(t.orderTrigger){const{side:e,quantity:n,symbol:i,limitPrice:r,triggerPrice:a,triggerSignal:c}=t.orderTrigger,l="buy"===e?"Long":"Short";return`${Object(o.j)(i).replace(s.b,"BTC")} ${Object(o.i)(i,"short",!1)} - ${l} ${n} @ ${null!=r?r:"MKT"} , Trigger: ${a} (${null==c?void 0:c.toUpperCase()})`}return""})(t):""},XrPM:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s=n("ssKD"),o=n("qvG1"),a=n("unaY"),c=n("oznm");e.default=function(t){function e(e,n,i,r,s,o,a,l){var u=t.call(this,o,a)||this;if(u.yuvData=e,u.dataWidth=n,u.dataHeight=i,u.left=r,u.top=s,r+o>n||s+a>i)throw new c.default("Crop rectangle does not fit within image data.");return l&&u.reverseHorizontal(o,a),u}return r(e,t),e.prototype.getRow=function(t,e){if(t<0||t>=this.getHeight())throw new c.default("Requested row is outside the image: "+t);var n=this.getWidth();return(null==e||e.length{class t{constructor(t,e){this.clipboard=t,this.store=e}onClick(){const t=this.clipboard.copy(this.clipboardText);this.store.dispatch(t?Object(i.j)({message:this.clipboardSuccessMsg||"SNACKBAR.COPIED"}):Object(i.j)({message:"SNACKBAR.FAILED_TO_COPY",class:"warn"}))}}return t.\u0275fac=function(e){return new(e||t)(r.Ob(s.a),r.Ob(o.b))},t.\u0275dir=r.Jb({type:t,selectors:[["","clipboard",""]],hostBindings:function(t,e){1&t&&r.bc("click",(function(){return e.onClick()}))},inputs:{clipboardText:["clipboard","clipboardText"],clipboardSuccessMsg:"clipboardSuccessMsg"}}),t})()},YbHt:function(t,e,n){"use strict";n.r(e),n.d(e,"MarginDetailsComponent",(function(){return c}));var i=n("mcff"),r=n("kZht"),s=n("rfPA"),o=n("bBQR"),a=n("/dWT");let c=(()=>{class t{constructor(t){this.inputs=t}get displayTooltips(){return this.inputs.displayTooltips}get wallet(){return this.inputs.wallet}get margin(){return this.inputs.margin}}return t.\u0275fac=function(e){return new(e||t)(r.Ob(i.a))},t.\u0275cmp=r.Ib({type:t,selectors:[["margin-details"]],decls:2,vars:3,consts:[["heading","DIALOG.WALLET_DETAILS.TITLE"],[3,"displayTooltips","wallet","details"]],template:function(t,e){1&t&&(r.Ub(0,"pro-dialog",0),r.Pb(1,"margin-details-list",1),r.Tb()),2&t&&(r.Cb(1),r.mc("displayTooltips",e.displayTooltips)("wallet",e.wallet)("details",e.margin))},directives:[s.a,o.a,a.a],styles:[".wallet-details__details[_ngcontent-%COMP%]{text-align:center}.wallet-details__detail[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:space-between;padding:var(--spacing) 0;border-bottom:1px dashed var(--ghost-colour)}"],changeDetection:0}),t})()},YrFw:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s=n("4Pxi"),o=n("sPys"),a=n("nB6u"),c=n("LqyJ"),l=n("iiuT"),u=n("KFdt"),h=n("Qkwj");e.default=function(t){function e(e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var i=t.call(this)||this;return i.usingCheckDigit=e,i.extendedMode=n,i.decodeRowResult="",i.counters=new Array(9),i}return r(e,t),e.prototype.decodeRow=function(t,n,i){var r=this.counters;r.fill(0),this.decodeRowResult="";var a,l,d,p=e.findAsteriskPattern(n,r),f=n.getNextSet(p[1]),b=n.getSize();do{e.recordPattern(n,f,r);var g=e.toNarrowWidePattern(r);if(g<0)throw new c.default;a=e.patternToChar(g),this.decodeRowResult+=a,l=f;for(var m=0,v=r;mi&&(r=u);i=r,e=0;for(var a=0,c=0,l=0;li&&(c|=1<0;l++){var u;if((u=t[l])>i&&(e--,2*u>=a))return-1}return c}}while(e>3);return-1},e.patternToChar=function(t){for(var n=0;n="A"&&s<="Z"))throw new a.default;o=String.fromCharCode(s.charCodeAt(0)+32);break;case"$":if(!(s>="A"&&s<="Z"))throw new a.default;o=String.fromCharCode(s.charCodeAt(0)-64);break;case"%":if(s>="A"&&s<="E")o=String.fromCharCode(s.charCodeAt(0)-38);else if(s>="F"&&s<="J")o=String.fromCharCode(s.charCodeAt(0)-11);else if(s>="K"&&s<="O")o=String.fromCharCode(s.charCodeAt(0)+16);else if(s>="P"&&s<="T")o=String.fromCharCode(s.charCodeAt(0)+43);else if("U"===s)o="\0";else if("V"===s)o="@";else if("W"===s)o="`";else{if("X"!==s&&"Y"!==s&&"Z"!==s)throw new a.default;o="\x7f"}break;case"/":if(s>="A"&&s<="O")o=String.fromCharCode(s.charCodeAt(0)-32);else{if("Z"!==s)throw new a.default;o=":"}}n+=o,i++}else n+=r}return n},e.ALPHABET_STRING="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%",e.CHARACTER_ENCODINGS=[52,289,97,352,49,304,112,37,292,100,265,73,328,25,280,88,13,268,76,28,259,67,322,19,274,82,7,262,70,22,385,193,448,145,400,208,133,388,196,168,162,138,42],e.ASTERISK_ENCODING=148,e}(l.default)},YtkY:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("5uGe");function r(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new s(t,e))}}class s{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new o(t,this.project,this.thisArg))}}class o extends i.a{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}},Yu3e:function(t,e){function n(t,e,n,i){var r,s=null==(r=i)||"number"==typeof r||"boolean"==typeof r?i:n(i),o=e.get(s);return void 0===o&&(o=t.call(this,i),e.set(s,o)),o}function i(t,e,n){var i=Array.prototype.slice.call(arguments,3),r=n(i),s=e.get(r);return void 0===s&&(s=t.apply(this,i),e.set(r,s)),s}function r(t,e,n,i,r){return n.bind(e,t,i,r)}function s(t,e){return r(t,this,1===t.length?n:i,e.cache.create(),e.serializer)}function o(){return JSON.stringify(arguments)}function a(){this.cache=Object.create(null)}a.prototype.has=function(t){return t in this.cache},a.prototype.get=function(t){return this.cache[t]},a.prototype.set=function(t,e){this.cache[t]=e};var c={create:function(){return new a}};t.exports=function(t,e){return(e&&e.strategy?e.strategy:s)(t,{cache:e&&e.cache?e.cache:c,serializer:e&&e.serializer?e.serializer:o})},t.exports.strategies={variadic:function(t,e){return r(t,this,i,e.cache.create(),e.serializer)},monadic:function(t,e){return r(t,this,n,e.cache.create(),e.serializer)}}},YwYi:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("vI0g"),r=n("ssKD"),s=n("oznm");e.default=function(){function t(t,e){if(0===e.length)throw new s.default;this.field=t;var n=e.length;if(n>1&&0===e[0]){for(var i=1;io.length){var a=n;n=o,o=a}var c=new Int32Array(o.length),l=o.length-n.length;r.default.arraycopy(o,0,c,0,l);for(var u=l;u=t.getDegree()&&!i.isZero();){var a=i.getDegree()-t.getDegree(),c=e.multiply(i.getCoefficient(i.getDegree()),o),l=t.multiplyByMonomial(a,c),u=e.buildMonomial(a,c);n=n.addOrSubtract(u),i=i.addOrSubtract(l)}return[n,i]},t.prototype.toString=function(){for(var t="",e=this.getDegree();e>=0;e--){var n=this.getCoefficient(e);if(0!==n){if(n<0?(t+=" - ",n=-n):t.length>0&&(t+=" + "),0===e||1!==n){var i=this.field.log(n);0===i?t+="1":1===i?t+="a":(t+="a^",t+=i)}0!==e&&(1===e?t+="x":(t+="x^",t+=e))}}return t},t}()},YyhG:function(t,e,n){"use strict";n.d(e,"b",(function(){return m})),n.d(e,"k",(function(){return C})),n.d(e,"c",(function(){return w})),n.d(e,"l",(function(){return S})),n.d(e,"o",(function(){return k})),n.d(e,"d",(function(){return E})),n.d(e,"n",(function(){return x})),n.d(e,"m",(function(){return P})),n.d(e,"f",(function(){return A})),n.d(e,"g",(function(){return I})),n.d(e,"h",(function(){return M})),n.d(e,"j",(function(){return D})),n.d(e,"i",(function(){return R})),n.d(e,"e",(function(){return j})),n.d(e,"p",(function(){return L})),n.d(e,"a",(function(){return U})),n.d(e,"q",(function(){return B}));var i=n("zqNl"),r=n("og7C"),s=n("p5wL"),o=n("lx5p"),a=n("a1kK"),c=n("h3eB"),l=n("+Px6"),u=n("rxqU"),h=n("Gbfs"),d=n("7KkP"),p=n("TYVA"),f=n("J/3c");const b={positions:[],orders:Object(r.b)(),fills:Object(r.b)()},g=Object(i.i)(b,Object(i.k)(c.j,()=>b),Object(i.k)(c.m,(t,{positions:e})=>Object(s.b)(e,t,"positions")),Object(i.k)(c.l,(t,{orders:e})=>Object(s.b)(Object(s.c)(e,"order_id"),t,"orders")),Object(i.k)(c.b,(t,{order:e})=>Object(s.a)(Object(r.b)([[e.order_id,e]]),t,"orders")),Object(i.k)(c.i,(t,{orderId:e})=>Object(s.b)(t.orders.remove(e),t,"orders")),Object(i.k)(c.k,(t,{fills:e})=>Object(s.b)(Object(s.c)(e,"fill_id"),t,"fills")),Object(i.k)(c.a,(t,{fills:e})=>Object(s.a)(Object(s.c)(e,"fill_id"),t,"fills")));function m(t,e){return g(t,e)}const v=Object(i.h)("trades"),_=Object(i.j)(v,t=>t.positions),y=Object(i.j)(v,t=>t.orders),O=Object(i.j)(v,t=>t.fills),C=Object(i.j)(_,l.d,l.j,l.r,u.a,u.r,l.g,l.k,(t,e,n,i,r,s,o,c,l)=>{var u;const h=Object(a.f)(n,t,"instrument").map(Object(d.c)(e,s)).map(Object(d.d)(o,c,i));return(null==l?void 0:l.ignorePairFilter)?h:null!==(u=null==r?void 0:r.activityPairFilterOn)&&void 0!==u&&u?h.filter(Object(a.h)(i)):h}),w=Object(i.j)(y,l.r,(t,e)=>t.filter(t=>"limit"===t.type).filter(t=>t.instrument===e).map(t=>t.limit_price).toSet()),T=Object(i.j)(y,l.d,l.j,l.r,u.a,u.r,(t,e,n,i,r,s,c)=>{var l;const u=Object(a.d)(n,t,"instrument").map(Object(d.b)(e,s)).toOrderedMap().sortBy(Object(o.F)("time"),o.i);return(null==c?void 0:c.ignorePairFilter)?u:null!==(l=null==r?void 0:r.activityPairFilterOn)&&void 0!==l&&l?u.filter(Object(a.h)(i)):u}),S=Object(i.j)(T,t=>t.filter(t=>"limit"===t.type)),k=Object(i.j)(T,t=>t.filter(t=>"limit"!==t.type)),E=Object(i.j)(O,l.d,l.j,l.r,u.a,u.r,(t,e,n,i,r,s,c)=>{var l;const u=Object(a.d)(n,t,"instrument").map(Object(d.a)(e,s)).toOrderedMap().sortBy(Object(o.F)("time"),o.i);return(null==c?void 0:c.ignorePairFilter)?u:null!==(l=null==r?void 0:r.activityPairFilterOn)&&void 0!==l&&l?u.filter(Object(a.h)(i)):u}),x=Object(i.j)(u.r,l.t,l.n,(t,e,n)=>"futures_inverse"===(null==n?void 0:n.type)?""+e.parts.currencies.quote:""+e.parts.currencies.base),P=Object(i.j)(u.r,l.t,l.d,(t,e,n)=>{const i="order"===t.trading,r="flex"===e.parts.family,s=n.get(r?e.parts.currencies.base:e.collateral);return i&&!r?h.a:s}),A=Object(i.j)(l.r,T,(t,e)=>e.filter(e=>e.instrument===t)),I=Object(i.j)(l.r,C,(t,e)=>e.find(e=>e.instrument===t)),M=Object(i.j)(S,t=>t.size),D=Object(i.j)(k,t=>t.size),R=Object(i.j)(_,t=>t.length),j=Object(i.j)(C,t=>t.filter(t=>"mc"===Object(p.f)(t.instrument))),L=Object(i.j)(I,j,f.l,l.o,(t,e,n,i)=>n&&function(t,e,n,i){const r=n.margin_equity&&n.mm/n.margin_equity;if(i.cross){const t=n.cv||0,i=e.filter(t=>{var e;return!(null===(e=t.leveragePref)||void 0===e?void 0:e.cross)}).map(t=>t.initial_margin||0).reduce((t,e)=>t+e,0),s=e.filter(t=>{var e;return null===(e=t.leveragePref)||void 0===e?void 0:e.cross}).map(t=>t.maintenance_margin||0).reduce((t,e)=>t+e,0),o=e.filter(t=>{var e;return null===(e=t.leveragePref)||void 0===e?void 0:e.cross}).map(t=>t.pnl).reduce((t,e)=>t+e,0);return 1-Math.max(r,1/((t-i)/(s-o)))}return t&&t.initial_margin&&t.maintenance_margin&&r?1-Math.max(r,t.maintenance_margin/(t.initial_margin+t.pnl)):1}(t,e,n,i)),N=Object(i.j)(j,l.o,(t,e)=>t.filter(t=>{var e;return null===(e=t.leveragePref)||void 0===e?void 0:e.cross})),U=Object(i.j)(N,t=>t.length>0),F=(Object(i.j)(N,t=>t.reduce((t,e)=>t+e.pnl,0)),Object(i.j)(N,t=>{var e,n;return null!==(n=null===(e=t[0])||void 0===e?void 0:e.effective_leverage)&&void 0!==n?n:0})),B=Object(i.j)(l.o,F,(t,e)=>t.cross?e:t.maxLeverage)},YzTY:function(t,e,n){"use strict";function i(t){return e=>!(t.lowerBounds&&(e[0]t.upperBounds[0]||e[1]>t.upperBounds[1]))}function r(t,e){return i(t)(e)}n.d(e,"b",(function(){return i})),n.d(e,"h",(function(){return r})),n.d(e,"f",(function(){return l})),n.d(e,"d",(function(){return h})),n.d(e,"g",(function(){return d})),n.d(e,"e",(function(){return b})),n.d(e,"c",(function(){return g})),n.d(e,"i",(function(){return y})),n.d(e,"a",(function(){return a})),n.d(e,"n",(function(){return w})),n.d(e,"l",(function(){return T})),n.d(e,"m",(function(){return S})),n.d(e,"j",(function(){return k})),n.d(e,"k",(function(){return E}));var s=n("u7r1"),o=n("lx5p"),a=function(t){return t[t.ORDER_FORM=1]="ORDER_FORM",t[t.MARKET_PREVIEWS=2]="MARKET_PREVIEWS",t[t.MARKET_CHART=3]="MARKET_CHART",t[t.OPEN_POSITIONS=4]="OPEN_POSITIONS",t[t.OPEN_ORDERS=5]="OPEN_ORDERS",t[t.TRIGGER_ORDERS=6]="TRIGGER_ORDERS",t[t.FILLED_ORDERS=7]="FILLED_ORDERS",t[t.ORDERBOOK=8]="ORDERBOOK",t[t.MARKET_DETAILS=9]="MARKET_DETAILS",t[t.PAIR_WALLET=10]="PAIR_WALLET",t[t.TRADE_HISTORY=11]="TRADE_HISTORY",t[t.BRACKET_ORDER=12]="BRACKET_ORDER",t[t.DEPTH_CHART=13]="DEPTH_CHART",t[t.ACCOUNT_ACTIVITY=14]="ACCOUNT_ACTIVITY",t}({}),c=function(t){return t[t.center="c"]="center",t[t.top="t"]="top",t[t.bottom="b"]="bottom",t[t.left="l"]="left",t[t.right="r"]="right",t[t.topCenter="tc"]="topCenter",t[t.topLeft="tl"]="topLeft",t[t.topRight="tr"]="topRight",t[t.bottomCenter="bc"]="bottomCenter",t[t.bottomLeft="bl"]="bottomLeft",t[t.bottomRight="br"]="bottomRight",t[t.c00="c00"]="c00",t[t.c01="c01"]="c01",t[t.c02="c02"]="c02",t[t.c03="c03"]="c03",t[t.c04="c04"]="c04",t[t.c10="c10"]="c10",t[t.c11="c11"]="c11",t[t.c12="c12"]="c12",t[t.c13="c13"]="c13",t[t.c14="c14"]="c14",t[t.c20="c20"]="c20",t[t.c21="c21"]="c21",t[t.c22="c22"]="c22",t[t.c23="c23"]="c23",t[t.c24="c24"]="c24",t[t.c30="c30"]="c30",t[t.c31="c31"]="c31",t[t.c32="c32"]="c32",t[t.c33="c33"]="c33",t[t.c34="c34"]="c34",t[t.c40="c40"]="c40",t[t.c41="c41"]="c41",t[t.c42="c42"]="c42",t[t.c43="c43"]="c43",t[t.c44="c44"]="c44",t}({});function l(t){const{name:e,type:n,panels:i}=t;let r=n;r+="$";const s=Object.entries(i).map(([t,e])=>function(t,e){let n="";return n+=c[t],n+="!",e.size&&(n+=e.size.map(t=>t.toString(16)).join(",")),n+="!",n+=e.components.map(t=>{const n=t.toString(16);return e.activeComponent===t?"@"+n:n}).join(","),n}(t,e)).join("_");return r+=s,r+="$",r+=escape(e),r}function u(t){const e={},n=t.split("!");if(3!==n.length)throw new Error("Encoded panel has wrong number of parts.");const[i,r,s]=n;if(!(i in c))throw new Error("Encoded panel location does not exist.");const l=c[i],u=r.split(",");if(2!==u.length)throw new Error("Encoded tab size has wrong number of parts.");const[h,d]=u.map(t=>parseInt(t,16));if([h,d].some(Number.isNaN))throw new Error("Encoded panel size is not hexadecimal.");if([h,d].some(o.o))throw new Error("Encoded panel size is negative.");return e.size=[h,d],e.components=s.split(",").filter(t=>t.length>0).map(t=>{if("@"===t[0]){const n=parseInt(t.substring(1),16);return e.activeComponent=n,n}return parseInt(t,16)}).filter(t=>t in a),[l,e]}function h(t){const e={},n=Object(o.K)("$",3)(t);if(3!==n.length)throw new Error("Encoded workspace has wrong number of parts.");const[i,r,a]=n;return e.type=i,e.name=unescape(a),e.id=Object(s.a)(11),e.panels={},r.split("_").map(u).forEach(([t,n])=>{e.panels[t]=n}),e}function d(t,e){const n=t.slice(1).split("").slice(0,2).map(Number);return`${n[0]+1} / ${n[1]+1} / span ${e.size[1]/2} / span ${e.size[0]/2}`}var p=n("TYVA");const f={name:"WORKSPACE.__DEFAULT__",type:"default"};function b(){return g(f)}function g(t){var e;return Object.assign(Object.assign({},t),{id:Object(s.a)(10),panels:null!==(e=t.panels)&&void 0!==e?e:_[t.type]})}const m={left:{size:[2,10],components:[a.ORDER_FORM,a.MARKET_PREVIEWS]},topCenter:{size:[6,6],components:[a.MARKET_CHART,a.DEPTH_CHART]},bottomCenter:{size:[6,4],components:[a.OPEN_POSITIONS,a.OPEN_ORDERS,a.TRIGGER_ORDERS,a.FILLED_ORDERS]},topRight:{size:[2,6],components:[a.ORDERBOOK,a.MARKET_DETAILS]},bottomRight:{size:[2,4],components:[a.TRADE_HISTORY,a.PAIR_WALLET]}},v={left:{size:[2,10],components:[a.ORDER_FORM,a.MARKET_PREVIEWS]},topCenter:{size:[6,6],components:[a.MARKET_CHART,a.DEPTH_CHART,a.MARKET_DETAILS]},bottomCenter:{size:[8,4],components:[a.OPEN_POSITIONS,a.OPEN_ORDERS,a.TRIGGER_ORDERS,a.FILLED_ORDERS]},topRight:{size:[2,6],components:[a.ORDERBOOK,a.TRADE_HISTORY]}},_={default:"desktop-max"===Object(p.A)()||"desktop-large"===Object(p.A)()?m:v,single:{center:{size:[10,10],components:[a.MARKET_CHART]}},double:{left:{size:[5,10],components:[a.ORDER_FORM]},right:{size:[5,10],components:[a.MARKET_CHART,a.ORDERBOOK]}},triple:{topLeft:{size:[5,5],components:[a.OPEN_POSITIONS]},bottomLeft:{size:[5,5],components:[a.OPEN_ORDERS,a.TRIGGER_ORDERS,a.FILLED_ORDERS]},right:{size:[5,10],components:[a.MARKET_CHART,a.ORDERBOOK]}},quad:{topLeft:{size:[5,5],components:[a.MARKET_CHART]},topRight:{size:[5,5],components:[a.ORDERBOOK,a.TRADE_HISTORY]},bottomLeft:{size:[5,5],components:[a.ORDER_FORM,a.PAIR_WALLET]},bottomRight:{size:[5,5],components:[a.OPEN_POSITIONS,a.OPEN_ORDERS,a.TRIGGER_ORDERS,a.FILLED_ORDERS]}},layout1:{left:{size:[6,10],components:[a.MARKET_CHART]},topRight:{size:[4,5],components:[a.ORDERBOOK,a.MARKET_PREVIEWS]},bottomRight:{size:[4,5],components:[a.OPEN_POSITIONS,a.OPEN_ORDERS,a.TRIGGER_ORDERS,a.FILLED_ORDERS]}},layout2:{topLeft:{size:[5,5],components:[a.MARKET_PREVIEWS]},bottomLeft:{size:[5,5],components:[a.OPEN_POSITIONS,a.OPEN_ORDERS,a.TRIGGER_ORDERS,a.FILLED_ORDERS]},center:{size:[2.5,10],components:[a.ORDERBOOK]},right:{size:[2.5,10],components:[a.ORDER_FORM,a.TRADE_HISTORY]}},layout3:{topLeft:{size:[6,5],components:[a.ORDER_FORM,a.MARKET_PREVIEWS]},bottomLeft:{size:[6,5],components:[a.OPEN_POSITIONS,a.OPEN_ORDERS,a.TRIGGER_ORDERS,a.FILLED_ORDERS]},topRight:{size:[4,5],components:[a.ORDERBOOK]},bottomRight:{size:[4,5],components:[a.PAIR_WALLET]}},layout4:{left:{size:[2.5,10],components:[a.ORDER_FORM]},center:{size:[5,10],components:[a.MARKET_CHART]},right:{size:[2.5,10],components:[a.ORDERBOOK,a.MARKET_PREVIEWS]}},layout5:{top:{size:[10,6],components:[a.MARKET_CHART]},bottom:{size:[10,4],components:[a.OPEN_POSITIONS,a.OPEN_ORDERS,a.TRIGGER_ORDERS,a.FILLED_ORDERS]}},layout6:{topLeft:{size:[5,6],components:[a.MARKET_CHART]},topRight:{size:[5,6],components:[a.ORDERBOOK]},bottom:{size:[10,4],components:[a.OPEN_POSITIONS,a.OPEN_ORDERS,a.TRIGGER_ORDERS,a.FILLED_ORDERS]}},layout7:{top:{size:[10,6],components:[a.MARKET_CHART]},bottomLeft:{size:[5,4],components:[a.OPEN_POSITIONS,a.PAIR_WALLET]},bottomRight:{size:[5,4],components:[a.OPEN_ORDERS,a.TRIGGER_ORDERS,a.FILLED_ORDERS]}},custom:{}},y={[a.MARKET_DETAILS]:{id:a.MARKET_DETAILS,upperBounds:[6,10]},[a.MARKET_CHART]:{id:a.MARKET_CHART,lowerBounds:[2,1]},[a.MARKET_PREVIEWS]:{id:a.MARKET_PREVIEWS},[a.ORDERBOOK]:{id:a.ORDERBOOK},[a.ORDER_FORM]:{id:a.ORDER_FORM},[a.TRADE_HISTORY]:{id:a.TRADE_HISTORY},[a.OPEN_ORDERS]:{id:a.OPEN_ORDERS},[a.TRIGGER_ORDERS]:{id:a.TRIGGER_ORDERS},[a.OPEN_POSITIONS]:{id:a.OPEN_POSITIONS},[a.FILLED_ORDERS]:{id:a.FILLED_ORDERS},[a.PAIR_WALLET]:{id:a.PAIR_WALLET},[a.BRACKET_ORDER]:{id:a.BRACKET_ORDER,deprecated:!0},[a.ACCOUNT_ACTIVITY]:{id:a.ACCOUNT_ACTIVITY,deprecated:!0},[a.DEPTH_CHART]:{id:a.DEPTH_CHART,lowerBounds:[2,2]}};var O=n("p5wL");function C(t,e){return n=>n.map(n=>n.id===e?t(n):n)}function w(t,e){return C(t=>t.name!==e?Object(O.b)(e,t,"name"):t,t)}function T(t){return e=>e.map(Object(o.F)("id")).includes(t)?e.filter(e=>e.id!==t):e}function S(t,e,n){return C(n=>Object(O.b)(t,n,"panels",e,"activeComponent"),n)}function k(t,e,n,i){return C(n=>{if([...Object.values(n.panels)].flatMap(t=>{var e;return null!==(e=null==t?void 0:t.components)&&void 0!==e?e:[]}).includes(t))return n;{const r=n,s=(()=>{var n,s;const a=null!==(s=null===(n=r.panels[e])||void 0===n?void 0:n.components)&&void 0!==s?s:[];return Object(o.m)(i)?[...a.slice(0,i),t,...a.slice(i)]:[...a,t]})(),a=Object(O.b)(s,r,"panels",e,"components");return Object(O.b)(t,a,"panels",e,"activeComponent")}},n)}function E(t,e){return C(e=>{if([...Object.values(e.panels)].flatMap(t=>{var e;return null!==(e=null==t?void 0:t.components)&&void 0!==e?e:[]}).includes(t)){const n=Object(o.A)(e=>{if(!e)return e;if(e.components.includes(t)){const n=e.activeComponent?e.components.indexOf(e.activeComponent):void 0,i=e.components.filter(Object(o.p)(t)),r=Object(O.b)(i,e,"components");if(void 0===n)return r;if(0===i.length)return Object(O.b)(void 0,r,"activeComponent");const s=i[Math.min(n,i.length-1)];return Object(O.b)(s,r,"activeComponent")}return e},e.panels);return Object(O.b)(n,e,"panels")}return e},e)}},YzW0:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("+luX"),r=n("Nxx2"),s=n("IkhO"),o=n("sP54"),a=n("XveA"),c=n("oznm");e.default=function(){function t(){}return t.clearMatrix=function(t){t.clear(255)},t.buildMatrix=function(e,n,i,r,s){t.clearMatrix(s),t.embedBasicPatterns(i,s),t.embedTypeInfo(n,r,s),t.maybeEmbedVersionInfo(i,s),t.embedDataBits(e,r,s)},t.embedBasicPatterns=function(e,n){t.embedPositionDetectionPatternsAndSeparators(n),t.embedDarkDotAtLeftBottomCorner(n),t.maybeEmbedPositionAdjustmentPatterns(e,n),t.embedTimingPatterns(n)},t.embedTypeInfo=function(e,n,r){var s=new i.default;t.makeTypeInfoBits(e,n,s);for(var o=0,a=s.getSize();o0;){for(6===c&&(c-=1);l>=0&&l=i;)e^=n<=0)for(var c=0;c!==o;c++){var l=r[c];l>=0&&t.isEmpty(n.get(l,a))&&t.embedPositionAdjustmentPattern(l-2,a-2,n)}}},t.POSITION_DETECTION_PATTERN=Array.from([Int32Array.from([1,1,1,1,1,1,1]),Int32Array.from([1,0,0,0,0,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,0,0,0,0,1]),Int32Array.from([1,1,1,1,1,1,1])]),t.POSITION_ADJUSTMENT_PATTERN=Array.from([Int32Array.from([1,1,1,1,1]),Int32Array.from([1,0,0,0,1]),Int32Array.from([1,0,1,0,1]),Int32Array.from([1,0,0,0,1]),Int32Array.from([1,1,1,1,1])]),t.POSITION_ADJUSTMENT_PATTERN_COORDINATE_TABLE=Array.from([Int32Array.from([-1,-1,-1,-1,-1,-1,-1]),Int32Array.from([6,18,-1,-1,-1,-1,-1]),Int32Array.from([6,22,-1,-1,-1,-1,-1]),Int32Array.from([6,26,-1,-1,-1,-1,-1]),Int32Array.from([6,30,-1,-1,-1,-1,-1]),Int32Array.from([6,34,-1,-1,-1,-1,-1]),Int32Array.from([6,22,38,-1,-1,-1,-1]),Int32Array.from([6,24,42,-1,-1,-1,-1]),Int32Array.from([6,26,46,-1,-1,-1,-1]),Int32Array.from([6,28,50,-1,-1,-1,-1]),Int32Array.from([6,30,54,-1,-1,-1,-1]),Int32Array.from([6,32,58,-1,-1,-1,-1]),Int32Array.from([6,34,62,-1,-1,-1,-1]),Int32Array.from([6,26,46,66,-1,-1,-1]),Int32Array.from([6,26,48,70,-1,-1,-1]),Int32Array.from([6,26,50,74,-1,-1,-1]),Int32Array.from([6,30,54,78,-1,-1,-1]),Int32Array.from([6,30,56,82,-1,-1,-1]),Int32Array.from([6,30,58,86,-1,-1,-1]),Int32Array.from([6,34,62,90,-1,-1,-1]),Int32Array.from([6,28,50,72,94,-1,-1]),Int32Array.from([6,26,50,74,98,-1,-1]),Int32Array.from([6,30,54,78,102,-1,-1]),Int32Array.from([6,28,54,80,106,-1,-1]),Int32Array.from([6,32,58,84,110,-1,-1]),Int32Array.from([6,30,58,86,114,-1,-1]),Int32Array.from([6,34,62,90,118,-1,-1]),Int32Array.from([6,26,50,74,98,122,-1]),Int32Array.from([6,30,54,78,102,126,-1]),Int32Array.from([6,26,52,78,104,130,-1]),Int32Array.from([6,30,56,82,108,134,-1]),Int32Array.from([6,34,60,86,112,138,-1]),Int32Array.from([6,30,58,86,114,142,-1]),Int32Array.from([6,34,62,90,118,146,-1]),Int32Array.from([6,30,54,78,102,126,150]),Int32Array.from([6,24,50,76,102,128,154]),Int32Array.from([6,28,54,80,106,132,158]),Int32Array.from([6,32,58,84,110,136,162]),Int32Array.from([6,26,54,82,110,138,166]),Int32Array.from([6,30,58,86,114,142,170])]),t.TYPE_INFO_COORDINATES=Array.from([Int32Array.from([8,0]),Int32Array.from([8,1]),Int32Array.from([8,2]),Int32Array.from([8,3]),Int32Array.from([8,4]),Int32Array.from([8,5]),Int32Array.from([8,7]),Int32Array.from([8,8]),Int32Array.from([7,8]),Int32Array.from([5,8]),Int32Array.from([4,8]),Int32Array.from([3,8]),Int32Array.from([2,8]),Int32Array.from([1,8]),Int32Array.from([0,8])]),t.VERSION_INFO_POLY=7973,t.TYPE_INFO_POLY=1335,t.TYPE_INFO_MASK_PATTERN=21522,t}()},ZCEf:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t[t.OTHER=0]="OTHER",t[t.PURE_BARCODE=1]="PURE_BARCODE",t[t.POSSIBLE_FORMATS=2]="POSSIBLE_FORMATS",t[t.TRY_HARDER=3]="TRY_HARDER",t[t.CHARACTER_SET=4]="CHARACTER_SET",t[t.ALLOWED_LENGTHS=5]="ALLOWED_LENGTHS",t[t.ASSUME_CODE_39_CHECK_DIGIT=6]="ASSUME_CODE_39_CHECK_DIGIT",t[t.ASSUME_GS1=7]="ASSUME_GS1",t[t.RETURN_CODABAR_START_END=8]="RETURN_CODABAR_START_END",t[t.NEED_RESULT_POINT_CALLBACK=9]="NEED_RESULT_POINT_CALLBACK",t[t.ALLOWED_EAN_EXTENSIONS=10]="ALLOWED_EAN_EXTENSIONS",t}({})},ZEHW:function(t,e,n){"use strict";n.d(e,"a",(function(){return v}));var i=n("vYTc"),r=n("kZht"),s=n("1etq"),o=n("yPvj"),a=n("1o0v"),c=n("za3o"),l=n("anSm"),u=n("LbKT"),h=n("aDqW"),d=n("BeMo"),p=n("rUBT"),f=n("DpwM"),b=n("FUqb"),g=n("An66"),m=n("Knqz");let v=(()=>{class t{constructor(){this.mid=i.j}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Ib({type:t,selectors:[["market-preview-favorite"]],inputs:{ticker:"ticker"},decls:34,vars:32,consts:[["subheading","",1,"grid-min-1","gap-m","vcenter","symbol"],[3,"pair"],[1,"pair"],["ghost","","capitalize","",1,"maturity"],["body","",1,"price"],[1,"mid"],[1,"amount"],[1,"unit"],["pnlZero","",1,"change",3,"pnl"],["body","",1,"volume"],["translate","","ghost","",1,"label"],[1,"shade"],[3,"market","filled"]],template:function(t,e){1&t&&(r.Ub(0,"h2",0),r.Pb(1,"market-icon",1),r.Ub(2,"div"),r.Ub(3,"div",2),r.Qc(4),r.gc(5,"pair"),r.Tb(),r.Ub(6,"div",3),r.Qc(7),r.gc(8,"translate"),r.gc(9,"maturityMonth"),r.Tb(),r.Tb(),r.Tb(),r.Ub(10,"div",4),r.Ub(11,"div",5),r.Ub(12,"span",6),r.Qc(13),r.gc(14,"sato"),r.Tb(),r.Ub(15,"span",7),r.Qc(16),r.gc(17,"quote"),r.Tb(),r.Tb(),r.Ub(18,"div",8),r.Qc(19),r.gc(20,"change"),r.gc(21,"percent"),r.Tb(),r.Tb(),r.Ub(22,"div",9),r.Ub(23,"div",10),r.Qc(24,"LABEL.24H_VOLUME"),r.Tb(),r.Ub(25,"div"),r.Ub(26,"span",6),r.Qc(27),r.gc(28,"humanNumber"),r.Tb(),r.Ub(29,"span"),r.Qc(30),r.gc(31,"base"),r.Tb(),r.Tb(),r.Tb(),r.Pb(32,"div",11),r.Pb(33,"sparkline",12)),2&t&&(r.Cb(1),r.mc("pair",e.ticker.pair),r.Cb(3),r.Rc(r.hc(5,11,e.ticker.product_id)),r.Cb(3),r.Sc(" ",r.hc(8,13,r.ic(9,15,e.ticker.product_id,"short")||"")," "),r.Cb(6),r.Rc(r.ic(14,18,e.mid(e.ticker),e.ticker)),r.Cb(3),r.Sc(" ",r.hc(17,21,e.ticker.product_id),""),r.Cb(2),r.mc("pnl",e.ticker.change),r.Cb(1),r.Sc(" ",r.hc(20,23,r.ic(21,25,e.ticker.change/100,"1.2-2"))," "),r.Cb(8),r.Rc(r.hc(28,28,e.ticker.volume)),r.Cb(3),r.Sc(" ",r.hc(31,30,e.ticker.product_id),""),r.Cb(3),r.mc("market",e.ticker.product_id)("filled",!0))},directives:[s.a,o.a,a.a,c.a,l.a,u.a,h.a,d.a],pipes:[p.e,h.d,p.d,f.c,p.f,b.b,g.u,m.a,p.a],styles:['[_nghost-%COMP%]{display:grid;grid-template:"symbol symbol" auto "volume price" auto/auto auto;gap:var(--spacing);padding:var(--spacing);border:1px solid var(--border-colour);border-radius:var(--bdrs);background-color:var(--background-colour)}[_nghost-%COMP%]:hover{background:rgba(var(--text-colour-rgb),.1);cursor:pointer}[active=true][_nghost-%COMP%]{border:1px solid var(--brand)}.price[_ngcontent-%COMP%], .symbol[_ngcontent-%COMP%], .volprop[_ngcontent-%COMP%], .volume[_ngcontent-%COMP%]{z-index:2}.symbol[_ngcontent-%COMP%]{grid-area:symbol;font-size:1.1em}.symbol[_ngcontent-%COMP%] .pair[_ngcontent-%COMP%]{color:var(--symbol-color,var(--text-colour))}.symbol[_ngcontent-%COMP%] market-icon[_ngcontent-%COMP%]{font-size:1.5em}.symbol[_ngcontent-%COMP%] .maturity[_ngcontent-%COMP%]{margin-top:var(--spacing-s);font-size:.8em}.price[_ngcontent-%COMP%]{grid-area:price;align-self:end;text-align:right}.price[_ngcontent-%COMP%] .mid[_ngcontent-%COMP%]{margin-bottom:var(--spacing-s)}.price[_ngcontent-%COMP%] .mid[_ngcontent-%COMP%] .amount[_ngcontent-%COMP%]{font-size:1.4em}.volume[_ngcontent-%COMP%]{grid-area:volume;align-self:end}.volume[_ngcontent-%COMP%] .amount[_ngcontent-%COMP%]{font-size:1.25em}.volume[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{margin-bottom:var(--spacing-s)}.shade[_ngcontent-%COMP%]{width:auto;height:calc(100% + var(--spacing) * 2);z-index:1;background-image:linear-gradient(0deg,rgba(0,0,0,.4),transparent);background-size:100% 40%;background-position:bottom;background-repeat:repeat-x;pointer-events:none}.shade[_ngcontent-%COMP%], sparkline[_ngcontent-%COMP%]{grid-area:1/1/-1/-1;margin:calc(var(--spacing) * -1)}sparkline[_ngcontent-%COMP%]{align-self:center;z-index:0;opacity:.6}'],changeDetection:0}),t})()},ZR2N:function(t,e,n){var i=n("yBEi"),r=n("nwte"),s=n("ECQc"),o=n("JgBV"),a=n("p3rJ"),c=n("B9MG"),l=i.getBCHDigit(7973);function u(t,e){return o.getCharCountIndicator(t,e)+4}function h(t,e){var n=0;return t.forEach((function(t){var i=u(t.mode,e);n+=i+t.getBitsLength()})),n}e.from=function(t,e){return a.isValid(t)?parseInt(t,10):e},e.getCapacity=function(t,e,n){if(!a.isValid(t))throw new Error("Invalid QR Code version");void 0===n&&(n=o.BYTE);var s=8*(i.getSymbolTotalCodewords(t)-r.getTotalCodewordsCount(t,e));if(n===o.MIXED)return s;var c=s-u(n,t);switch(n){case o.NUMERIC:return Math.floor(c/10*3);case o.ALPHANUMERIC:return Math.floor(c/11*2);case o.KANJI:return Math.floor(c/13);case o.BYTE:default:return Math.floor(c/8)}},e.getBestVersionForData=function(t,n){var i,r=s.from(n,s.M);if(c(t)){if(t.length>1)return function(t,n){for(var i=1;i<=40;i++)if(h(t,i)<=e.getCapacity(i,n,o.MIXED))return i}(t,r);if(0===t.length)return 1;i=t[0]}else i=t;return function(t,n,i){for(var r=1;r<=40;r++)if(n<=e.getCapacity(r,i,t))return r}(i.mode,i.getLength(),r)},e.getEncodedBits=function(t){if(!a.isValid(t)||t<7)throw new Error("Invalid QR Code version");for(var e=t<<12;i.getBCHDigit(e)-l>=0;)e^=7973<{class t extends i.a{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[c.a](){return new l(this)}lift(t){const e=new h(this,this);return e.operator=t,e}next(t){if(this.closed)throw new o.a;if(!this.isStopped){const{observers:e}=this,n=e.length,i=e.slice();for(let r=0;rnew h(t,e),t})();class h extends u{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):s.a.EMPTY}}},Zg5S:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("oznm");e.default=function(){function t(t,e){this.numDataCodewords=t,this.codewords=e}return t.getDataBlocks=function(e,n){for(var r=n.getECBlocks(),s=0,o=r.getECBlocks(),a=0,c=o;a7?f-1:f]=e[_++]}if(_!==e.length)throw new i.default;return l},t.prototype.getNumDataCodewords=function(){return this.numDataCodewords},t.prototype.getCodewords=function(){return this.codewords},t}()},ZtZA:function(t,e,n){"use strict";n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return h})),n.d(e,"c",(function(){return d})),n.d(e,"d",(function(){return o})),n.d(e,"e",(function(){return u})),n.d(e,"f",(function(){return p})),n.d(e,"g",(function(){return b})),n.d(e,"h",(function(){return a}));var i=n("kZht"),r=n("An66");class s{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class o extends s{constructor(t,e,n,i){super(),this.component=t,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=i}}class a extends s{constructor(t,e,n){super(),this.templateRef=t,this.viewContainerRef=e,this.context=n}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class c extends s{constructor(t){super(),this.element=t instanceof i.l?t.nativeElement:t}}class l{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof o?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof a?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof c?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class u extends l{constructor(t,e,n,i,r){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=i,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=r}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let n;return t.viewContainerRef?(n=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>n.destroy())):(n=e.create(t.injector||this._defaultInjector),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.detachView(n.hostView),n.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(n)),n}attachTemplatePortal(t){let e=t.viewContainerRef,n=e.createEmbeddedView(t.templateRef,t.context);return n.rootNodes.forEach(t=>this.outletElement.appendChild(t)),n.detectChanges(),this.setDisposeFn(()=>{let t=e.indexOf(n);-1!==t&&e.remove(t)}),n}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let h=(()=>{class t extends a{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.N),i.Ob(i.R))},t.\u0275dir=i.Jb({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[i.zb]}),t})(),d=(()=>{class t extends l{constructor(t,e,n){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new i.o,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(n,e),this._getRootNode().appendChild(e),super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=n}get portal(){return this._attachedPortal}set portal(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,n=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),i=e.createComponent(n,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(i.hostView.rootNodes[0]),super.setDisposeFn(()=>i.destroy()),this._attachedPortal=t,this._attachedRef=i,this.attached.emit(i),i}attachTemplatePortal(t){t.setAttachedHost(this);const e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.j),i.Ob(i.R),i.Ob(r.d))},t.\u0275dir=i.Jb({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.zb]}),t})(),p=(()=>{class t extends d{}return t.\u0275fac=function(e){return f(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","cdkPortalHost",""],["","portalHost",""]],inputs:{portal:["cdkPortalHost","portal"]},exportAs:["cdkPortalHost"],features:[i.Bb([{provide:d,useExisting:t}]),i.zb]}),t})();const f=i.Wb(p);let b=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)}}),t})()},"a+Rm":function(t,e){var n=1e3,i=60*n,r=60*i,s=24*r;function o(t,e,n,i){var r=e>=1.5*n;return Math.round(t/n)+" "+i+(r?"s":"")}t.exports=function(t,e){e=e||{};var a,c,l=typeof t;if("string"===l&&t.length>0)return function(t){if(!((t=String(t)).length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var o=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*o;case"weeks":case"week":case"w":return 6048e5*o;case"days":case"day":case"d":return o*s;case"hours":case"hour":case"hrs":case"hr":case"h":return o*r;case"minutes":case"minute":case"mins":case"min":case"m":return o*i;case"seconds":case"second":case"secs":case"sec":case"s":return o*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return o;default:return}}}}(t);if("number"===l&&isFinite(t))return e.long?(a=t,(c=Math.abs(a))>=s?o(a,c,s,"day"):c>=r?o(a,c,r,"hour"):c>=i?o(a,c,i,"minute"):c>=n?o(a,c,n,"second"):a+" ms"):function(t){var e=Math.abs(t);return e>=s?Math.round(t/s)+"d":e>=r?Math.round(t/r)+"h":e>=i?Math.round(t/i)+"m":e>=n?Math.round(t/n)+"s":t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},a1kK:function(t,e,n){"use strict";n.d(e,"f",(function(){return o})),n.d(e,"d",(function(){return a})),n.d(e,"e",(function(){return c})),n.d(e,"h",(function(){return l})),n.d(e,"g",(function(){return u})),n.d(e,"b",(function(){return h})),n.d(e,"a",(function(){return d})),n.d(e,"c",(function(){return p}));var i=n("VmIW"),r=n("lx5p"),s=n("TYVA");function o(t,e,n){return e.map(e=>c(t,e,n))}function a(t,e,n){return e.map(e=>c(t,e,n))}function c(t,e,n){const r=i.Maybe.fromUndefined(t.get(e[n])).map(t=>({numericPrecision:t.numericPrecision,numericFormat:t.numericFormat,category:t.category}));return Object.assign(Object.assign({},e),r.orUndefined())}const l=t=>Object(r.E)(Object(r.F)("instrument"),s.o,Object(r.n)(Object(s.o)(t)));function u(t,e){if(0===t.length||0===e.length)return;const n=t[0].price,i=n-e[0].price;return{percent:i/n,value:i}}const h="PI_XBTUSD",d="PF_XBTUSD",p="futures"},a3or:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){function t(t,e){this.dataBytes=t,this.errorCorrectionBytes=e}return t.prototype.getDataBytes=function(){return this.dataBytes},t.prototype.getErrorCorrectionBytes=function(){return this.errorCorrectionBytes},t}()},aDqW:function(t,e,n){"use strict";n.d(e,"a",(function(){return R})),n.d(e,"b",(function(){return f})),n.d(e,"c",(function(){return L})),n.d(e,"d",(function(){return j})),n.d(e,"e",(function(){return D}));var i=n("kZht"),r=n("ROBh"),s=n("9bRT"),o=n("P4Xx"),a=n("qZtG"),c=n("i9xl"),l=n("J+dc"),u=n("wqq/"),h=n("YtkY"),d=n("5uDM"),p=n("TLy2");class f{}let b=(()=>{class t extends f{getTranslation(t){return Object(r.a)({})}}return t.\u0275fac=function(e){return g(e||t)},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();const g=i.Wb(b);class m{}let v=(()=>{class t{handle(t){return t.key}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();function _(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;let n,i,r,s=typeof t;if(s==typeof e&&"object"==s){if(!Array.isArray(t)){if(Array.isArray(e))return!1;for(i in r=Object.create(null),t){if(!_(t[i],e[i]))return!1;r[i]=!0}for(i in e)if(!(i in r)&&void 0!==e[i])return!1;return!0}if(!Array.isArray(e))return!1;if((n=t.length)==e.length){for(i=0;i{class t extends C{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(t,e){let n;return n="string"==typeof t?this.interpolateString(t,e):"function"==typeof t?this.interpolateFunction(t,e):t,n}getValue(t,e){let n="string"==typeof e?e.split("."):[e];e="";do{e+=n.shift(),!y(t)||!y(t[e])||"object"!=typeof t[e]&&n.length?n.length?e+=".":t=void 0:(t=t[e],e="")}while(n.length);return t}interpolateFunction(t,e){return t(e)}interpolateString(t,e){return e?t.replace(this.templateMatcher,(t,n)=>{let i=this.getValue(e,n);return y(i)?i:t}):t}}return t.\u0275fac=function(e){return T(e||t)},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();const T=i.Wb(w);class S{}let k=(()=>{class t extends S{compile(t,e){return t}compileTranslations(t,e){return t}}return t.\u0275fac=function(e){return E(e||t)},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();const E=i.Wb(k);class x{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new i.o,this.onLangChange=new i.o,this.onDefaultLangChange=new i.o}}const P=new i.s("USE_STORE"),A=new i.s("USE_DEFAULT_LANG"),I=new i.s("DEFAULT_LANGUAGE"),M=new i.s("USE_EXTEND");let D=(()=>{class t{constructor(t,e,n,r,s,o=!0,a=!1,c=!1,l){this.store=t,this.currentLoader=e,this.compiler=n,this.parser=r,this.missingTranslationHandler=s,this.useDefaultLang=o,this.isolate=a,this.extend=c,this.pending=!1,this._onTranslationChange=new i.o,this._onLangChange=new i.o,this._onDefaultLangChange=new i.o,this._langs=[],this._translations={},this._translationRequests={},l&&this.setDefaultLang(l)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(t){this.isolate?this._defaultLang=t:this.store.defaultLang=t}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(t){this.isolate?this._currentLang=t:this.store.currentLang=t}get langs(){return this.isolate?this._langs:this.store.langs}set langs(t){this.isolate?this._langs=t:this.store.langs=t}get translations(){return this.isolate?this._translations:this.store.translations}set translations(t){this.isolate?this._translations=t:this.store.translations=t}setDefaultLang(t){if(t===this.defaultLang)return;let e=this.retrieveTranslations(t);void 0!==e?(null==this.defaultLang&&(this.defaultLang=t),e.pipe(Object(l.a)(1)).subscribe(e=>{this.changeDefaultLang(t)})):this.changeDefaultLang(t)}getDefaultLang(){return this.defaultLang}use(t){if(t===this.currentLang)return Object(r.a)(this.translations[t]);let e=this.retrieveTranslations(t);return void 0!==e?(this.currentLang||(this.currentLang=t),e.pipe(Object(l.a)(1)).subscribe(e=>{this.changeLang(t)}),e):(this.changeLang(t),Object(r.a)(this.translations[t]))}retrieveTranslations(t){let e;return(void 0===this.translations[t]||this.extend)&&(this._translationRequests[t]=this._translationRequests[t]||this.getTranslation(t),e=this._translationRequests[t]),e}getTranslation(t){this.pending=!0;const e=this.currentLoader.getTranslation(t).pipe(Object(u.a)(1),Object(l.a)(1));return this.loadingTranslations=e.pipe(Object(h.a)(e=>this.compiler.compileTranslations(e,t)),Object(u.a)(1),Object(l.a)(1)),this.loadingTranslations.subscribe({next:e=>{this.translations[t]=this.extend&&this.translations[t]?Object.assign(Object.assign({},e),this.translations[t]):e,this.updateLangs(),this.pending=!1},error:t=>{this.pending=!1}}),e}setTranslation(t,e,n=!1){e=this.compiler.compileTranslations(e,t),this.translations[t]=(n||this.extend)&&this.translations[t]?function t(e,n){let i=Object.assign({},e);return O(e)&&O(n)&&Object.keys(n).forEach(r=>{O(n[r])?r in e?i[r]=t(e[r],n[r]):Object.assign(i,{[r]:n[r]}):Object.assign(i,{[r]:n[r]})}),i}(this.translations[t],e):e,this.updateLangs(),this.onTranslationChange.emit({lang:t,translations:this.translations[t]})}getLangs(){return this.langs}addLangs(t){t.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(t,e,n){let i;if(e instanceof Array){let i={},a=!1;for(let r of e)i[r]=this.getParsedResult(t,r,n),Object(s.a)(i[r])&&(a=!0);if(a){const t=e.map(t=>Object(s.a)(i[t])?i[t]:Object(r.a)(i[t]));return Object(o.a)(t).pipe(Object(h.a)(t=>{let n={};return t.forEach((t,i)=>{n[e[i]]=t}),n}))}return i}if(t&&(i=this.parser.interpolate(this.parser.getValue(t,e),n)),void 0===i&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(i=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],e),n)),void 0===i){let t={key:e,translateService:this};void 0!==n&&(t.interpolateParams=n),i=this.missingTranslationHandler.handle(t)}return void 0!==i?i:e}get(t,e){if(!y(t)||!t.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(Object(d.a)(n=>(n=this.getParsedResult(n,t,e),Object(s.a)(n)?n:Object(r.a)(n))));{let n=this.getParsedResult(this.translations[this.currentLang],t,e);return Object(s.a)(n)?n:Object(r.a)(n)}}getStreamOnTranslationChange(t,e){if(!y(t)||!t.length)throw new Error('Parameter "key" required');return Object(a.a)(Object(c.a)(()=>this.get(t,e)),this.onTranslationChange.pipe(Object(p.a)(n=>{const i=this.getParsedResult(n.translations,t,e);return"function"==typeof i.subscribe?i:Object(r.a)(i)})))}stream(t,e){if(!y(t)||!t.length)throw new Error('Parameter "key" required');return Object(a.a)(Object(c.a)(()=>this.get(t,e)),this.onLangChange.pipe(Object(p.a)(n=>{const i=this.getParsedResult(n.translations,t,e);return Object(s.a)(i)?i:Object(r.a)(i)})))}instant(t,e){if(!y(t)||!t.length)throw new Error('Parameter "key" required');let n=this.getParsedResult(this.translations[this.currentLang],t,e);if(Object(s.a)(n)){if(t instanceof Array){let e={};return t.forEach((n,i)=>{e[t[i]]=t[i]}),e}return t}return n}set(t,e,n=this.currentLang){this.translations[n][t]=this.compiler.compile(e,n),this.updateLangs(),this.onTranslationChange.emit({lang:n,translations:this.translations[n]})}changeLang(t){this.currentLang=t,this.onLangChange.emit({lang:t,translations:this.translations[t]}),null==this.defaultLang&&this.changeDefaultLang(t)}changeDefaultLang(t){this.defaultLang=t,this.onDefaultLangChange.emit({lang:t,translations:this.translations[t]})}reloadLang(t){return this.resetLang(t),this.getTranslation(t)}resetLang(t){this._translationRequests[t]=void 0,this.translations[t]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void 0!==t?(-1!==t.indexOf("-")&&(t=t.split("-")[0]),-1!==t.indexOf("_")&&(t=t.split("_")[0]),t):void 0}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,t}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(x),i.Yb(f),i.Yb(S),i.Yb(C),i.Yb(m),i.Yb(A),i.Yb(P),i.Yb(M),i.Yb(I))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),R=(()=>{class t{constructor(t,e,n){this.translateService=t,this.element=e,this._ref=n,this.onTranslationChangeSub||(this.onTranslationChangeSub=this.translateService.onTranslationChange.subscribe(t=>{t.lang===this.translateService.currentLang&&this.checkNodes(!0,t.translations)})),this.onLangChangeSub||(this.onLangChangeSub=this.translateService.onLangChange.subscribe(t=>{this.checkNodes(!0,t.translations)})),this.onDefaultLangChangeSub||(this.onDefaultLangChangeSub=this.translateService.onDefaultLangChange.subscribe(t=>{this.checkNodes(!0)}))}set translate(t){t&&(this.key=t,this.checkNodes())}set translateParams(t){_(this.currentParams,t)||(this.currentParams=t,this.checkNodes(!0))}ngAfterViewChecked(){this.checkNodes()}checkNodes(t=!1,e){let n=this.element.nativeElement.childNodes;n.length||(this.setContent(this.element.nativeElement,this.key),n=this.element.nativeElement.childNodes);for(let i=0;i{n!==t&&(e.lastKey=t),e.originalContent||(e.originalContent=this.getContent(e)),e.currentValue=y(n)?n:e.originalContent||t,this.setContent(e,this.key?e.currentValue:e.originalContent.replace(t,e.currentValue)),this._ref.markForCheck()};if(y(n)){let e=this.translateService.getParsedResult(n,t,this.currentParams);Object(s.a)(e)?e.subscribe(i):i(e)}else this.translateService.get(t,this.currentParams).subscribe(i)}}getContent(t){return y(t.textContent)?t.textContent:t.data}setContent(t,e){y(t.textContent)?t.textContent=e:t.data=e}ngOnDestroy(){this.onLangChangeSub&&this.onLangChangeSub.unsubscribe(),this.onDefaultLangChangeSub&&this.onDefaultLangChangeSub.unsubscribe(),this.onTranslationChangeSub&&this.onTranslationChangeSub.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(D),i.Ob(i.l),i.Ob(i.h))},t.\u0275dir=i.Jb({type:t,selectors:[["","translate",""],["","ngx-translate",""]],inputs:{translate:"translate",translateParams:"translateParams"}}),t})(),j=(()=>{class t{constructor(t,e){this.translate=t,this._ref=e,this.value=""}updateValue(t,e,n){let i=e=>{this.value=void 0!==e?e:t,this.lastKey=t,this._ref.markForCheck()};if(n){let r=this.translate.getParsedResult(n,t,e);Object(s.a)(r.subscribe)?r.subscribe(i):i(r)}this.translate.get(t,e).subscribe(i)}transform(t,...e){if(!t||!t.length)return t;if(_(t,this.lastKey)&&_(e,this.lastParams))return this.value;let n;if(y(e[0])&&e.length)if("string"==typeof e[0]&&e[0].length){let t=e[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{n=JSON.parse(t)}catch(i){throw new SyntaxError("Wrong parameter in TranslatePipe. Expected a valid Object, received: "+e[0])}}else"object"!=typeof e[0]||Array.isArray(e[0])||(n=e[0]);return this.lastKey=t,this.lastParams=e,this.updateValue(t,n),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(e=>{this.lastKey&&e.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(t,n,e.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(e=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,n,e.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,n))})),this.value}_dispose(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(D),i.Ob(i.h))},t.\u0275pipe=i.Nb({name:"translate",type:t,pure:!1}),t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),L=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[e.loader||{provide:f,useClass:b},e.compiler||{provide:S,useClass:k},e.parser||{provide:C,useClass:w},e.missingTranslationHandler||{provide:m,useClass:v},x,{provide:P,useValue:e.isolate},{provide:A,useValue:e.useDefaultLang},{provide:M,useValue:e.extend},{provide:I,useValue:e.defaultLanguage},D]}}static forChild(e={}){return{ngModule:t,providers:[e.loader||{provide:f,useClass:b},e.compiler||{provide:S,useClass:k},e.parser||{provide:C,useClass:w},e.missingTranslationHandler||{provide:m,useClass:v},{provide:P,useValue:e.isolate},{provide:A,useValue:e.useDefaultLang},{provide:M,useValue:e.extend},{provide:I,useValue:e.defaultLanguage},D]}}}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)}}),t})()},aEDl:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s=n("4Pxi"),o=n("n5WT"),a=n("LqyJ");e.default=function(t){function e(){var e=t.call(this)||this;return e.decodeMiddleCounters=[0,0,0,0],e}return r(e,t),e.prototype.decodeMiddle=function(t,n,i){var r=this.decodeMiddleCounters;r[0]=0,r[1]=0,r[2]=0,r[3]=0;for(var s=t.getSize(),a=n[1],c=0,l=0;l<6&&a=10&&(c|=1<<5-l)}for(i=e.determineFirstDigit(i,c),a=o.default.findGuardPattern(t,a,!0,o.default.MIDDLE_PATTERN,new Array(o.default.MIDDLE_PATTERN.length).fill(0))[1],l=0;l<6&&a{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t})(),d=(()=>{class t extends u{constructor(t,e,n){super(t),this._platform=e,this._document=n}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(s.a),i.Ob(o.d))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-toolbar"]],contentQueries:function(t,e,n){var r;1&t&&i.Hb(n,h,!0),2&t&&i.zc(r=i.cc())&&(e._toolbarRows=r)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&i.Gb("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[i.zb],ngContentSelectors:c,decls:2,vars:0,template:function(t,e){1&t&&(i.lc(a),i.kc(0),i.kc(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),t})(),p=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},imports:[[r.j],r.j]}),t})()},aaFr:function(t,e,n){"use strict";n.d(e,"a",(function(){return w}));var i=n("jL3B"),r=n("5XID"),s=n("Hq54"),o=n("kZht"),a=n("bwdy"),c=n("ZTXN"),l=n("g6G6"),u=n("jIqt"),h=n("TLy2"),d=n("J+dc"),p=n("hvMX"),f=n("bW1x"),b=n("njz0"),g=n("ROO/"),m=n("2yS1"),v=n("An66");function _(t,e){if(1&t){const t=o.Vb();o.Ub(0,"div",0),o.bc("keydown",(function(e){return o.Ec(t),o.fc()._handleKeydown(e)}))("click",(function(){return o.Ec(t),o.fc().closed.emit("click")}))("@transformMenu.start",(function(e){return o.Ec(t),o.fc()._onAnimationStart(e)}))("@transformMenu.done",(function(e){return o.Ec(t),o.fc()._onAnimationDone(e)})),o.kc(1),o.Tb()}if(2&t){const t=o.fc();o.mc("id",t.panelId)("ngClass",t._classList)("@transformMenu",t._panelAnimationState),o.Db("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const y=["*"],O=new o.s("sb-menu-default-options",{providedIn:"root",factory:function(){return{overlapTrigger:!1,xPosition:"center",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let C=0,w=(()=>{class t{constructor(t,e,n){this._elementRef=t,this._ngZone=e,this._defaultOptions=n,this._directDescendantItems=new o.F,this._tabSubscription=a.a.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new c.b,this.backdropClass=this._defaultOptions.backdropClass,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new o.o,this.panelId="sb-menu-panel-"+C++}get xPosition(){return this._xPosition}set xPosition(t){["center","before","after"].includes(t)||Object(b.a)(),this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){"above"!==t&&"below"!==t&&Object(b.b)(),this._yPosition=t,this.setPositionClasses()}set overlapTrigger(t){this._overlapTrigger=Object(r.c)(t)}get overlapTrigger(){return this._overlapTrigger}set hasBackdrop(t){this._hasBackdrop=Object(r.c)(t)}get hasBackdrop(){return this._hasBackdrop}set panelClass(t){const e=this._previousPanelClass;e&&e.length&&e.split(" ").forEach(t=>{this._classList[t]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(t=>{this._classList[t]=!0}),this._elementRef.nativeElement.className="")}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new i.g(this._directDescendantItems).withWrap().withTypeAhead(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Object(u.a)(this._directDescendantItems),Object(h.a)(t=>Object(l.a)(...t.map(t=>t.focused)))).subscribe(t=>this._keyManager.updateActiveItem(t))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(Object(u.a)(this._directDescendantItems),Object(h.a)(t=>Object(l.a)(...t.map(t=>t.hovered))))}_handleKeydown(t){const{key:e}=t,n=this._keyManager;switch(e){case"Escape":Object(s.r)(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case"ArrowLeft":this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case"ArrowRight":this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;case"Home":case"End":Object(s.r)(t)||("Home"===e?n.setFirstItemActive():n.setLastItemActive(),t.preventDefault());break;default:"ArrowUp"!==e&&"ArrowDown"!==e||n.setFocusOrigin("keyboard"),n.onKeydown(t)}}focusFirstItem(t="program"){this.lazyContent?this._ngZone.onStable.asObservable().pipe(Object(d.a)(1)).subscribe(()=>this._focusFirstItem(t)):this._focusFirstItem(t)}_focusFirstItem(t){const e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length){let t=this._directDescendantItems.first._getHostElement().parentElement;for(;t;){if("menu"===t.getAttribute("role")){t.focus();break}t=t.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setPositionClasses(t=this.xPosition,e=this.yPosition){const n=this._classList;n["sb-menu-center"]="center"===t,n["sb-menu-before"]="before"===t,n["sb-menu-after"]="after"===t,n["sb-menu-above"]="above"===e,n["sb-menu-below"]="below"===e}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Object(u.a)(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(t=>t.parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return t.\u0275fac=function(e){return new(e||t)(o.Ob(o.l),o.Ob(o.B),o.Ob(O))},t.\u0275cmp=o.Ib({type:t,selectors:[["sb-menu"]],contentQueries:function(t,e,n){var i;1&t&&(o.Hb(n,f.a,!0),o.Hb(n,g.a,!0)),2&t&&(o.zc(i=o.cc())&&(e.lazyContent=i.first),o.zc(i=o.cc())&&(e._allItems=i))},viewQuery:function(t,e){var n;1&t&&o.Wc(o.N,!0),2&t&&o.zc(n=o.cc())&&(e.templateRef=n.first)},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"]},outputs:{closed:"closed"},exportAs:["sbMenu"],features:[o.Bb([{provide:m.a,useExisting:t}])],ngContentSelectors:y,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"sb-menu",3,"id","ngClass","keydown","click"]],template:function(t,e){1&t&&(o.lc(),o.Oc(0,_,2,6,"ng-template"))},directives:[v.l],styles:[".sb-menu[_ngcontent-%COMP%]{display:flex;flex-flow:column nowrap;padding:var(--spacing-s,5px);min-width:112px;color:var(--c,var(--text-colour,#fff));font-family:var(--typeface,Arial);background-color:var(--menu-bg,#000);border-radius:var(--bdrs,5px);border:1px solid var(--border-colour);box-shadow:0 4px 20px 0 rgba(0,0,0,.3)}.sb-menu[_ngcontent-%COMP%]:focus{outline:0}.sb-menu[_ngcontent-%COMP%]{--divider-size:calc(100% + var(--spacing-s) * 2);--divider-margin:var(--spacing-s) calc(var(--spacing-s) * -1);--divider-color:var(--border-colour)}"],data:{animation:[p.a]},changeDetection:0}),t})()},aeRQ:function(t,e,n){"use strict";n.d(e,"a",(function(){return D}));var i=n("ZTXN"),r=n("HM3f"),s=n("yBos"),o=n("xVbo"),a=n("Wg7D"),c=n("iT4G"),l=n("KQpv"),u=n.n(l),h=n("p5wL"),d=n("i67J"),p=n("TYVA"),f=n("nXdR"),b=n("sXtk"),g=n("uJYd"),m=n("GGXD"),v=n("+Px6"),_=n("ND+C"),y=n("1OAy"),O=n("h3eB"),C=n("lE9u"),w=n("vYTc"),T=n("H0/1"),S=n("wMit"),k=n("7KkP"),E=n("MUfl"),x=n("dWHr"),P=n("kZht"),A=n("zqNl"),I=n("aDqW");const M=u()("app:websocket");let D=(()=>{class t{constructor(t,e,n,s){this.store=t,this.translateService=e,this.env=n,this.feature=s,this.liteTickers=new i.b,this.detailedTickers=new i.b,this.trades=new i.b,this.userWallets=new i.b,this.holdingWallets=new i.b,this.crypWallets=new i.b,this.flexWallet=new i.b,this.prices=new i.b,this.feeds=[],this.retryDelay=100,document.addEventListener("visibilitychange",()=>{document.hidden&&this.socket?(M("document hidden; closing all feeds except selected ticker"),this.socket.complete(),this.store.pipe(Object(d.n)(v.n)).subscribe(t=>{this.startSocket(),this.socket.next({event:"subscribe",feed:"ticker",product_ids:[t.symbol]})})):this.restartSocket()}),this.prices.pipe(Object(d.c)(1e3,"base"),Object(o.a)(t=>t.size>0)).subscribe(t=>{this.store.dispatch(Object(x.b)({prices:t}))}),this.liteTickers.pipe(Object(d.c)(1e3,"product_id"),Object(o.a)(t=>t.size>0)).subscribe(t=>{this.store.dispatch(Object(_.b)({tickers:t}))}),this.trades.pipe(Object(d.d)(100),Object(o.a)(t=>t.length>0)).subscribe(t=>{this.store.dispatch(Object(y.c)({trades:t}))}),this.detailedTickers.pipe(Object(d.c)(250,"product_id"),Object(o.a)(t=>t.size>0)).subscribe(t=>{this.store.dispatch(Object(_.d)({tickers:t}))}),this.feature.isEnabled("flex")?Object(r.a)([this.holdingWallets,this.crypWallets,this.flexWallet]).pipe(Object(a.a)(1e3)).subscribe(([t,e,n])=>{const i=Object(f.k)(t),r=Object(f.i)(e),s=Object(f.j)(n);this.store.dispatch(Object(C.w)({margin:Object(h.c)([],"name"),futures:Object(h.c)(r,"name"),holding:Object(h.c)(i,"name"),flex:s}))}):this.userWallets.pipe(Object(a.a)(1e3)).subscribe(t=>{const e=t.filter(t=>t.name.startsWith("m-")).map(t=>Object.assign(Object.assign({},t),{type:"margin",currency:Object(f.d)(t.name).toUpperCase(),pair:t.name.substring(2).replace(f.a,p.b)})).map(f.l),n=t.filter(t=>t.name.startsWith("f-")).map(t=>Object.assign(Object.assign({},t),{type:"futures",currency:Object(f.d)(t.name).toUpperCase(),pair:t.name.substring(2).replace(f.a,p.b)})).map(f.l),i=t.filter(t=>!t.name.includes("-")).map(t=>Object.assign(Object.assign({},t),{type:"holding",currency:t.name.toUpperCase()})).map(f.l);this.store.dispatch(Object(C.w)({margin:Object(h.c)(e,"name"),futures:Object(h.c)(n,"name"),holding:Object(h.c)(i,"name")}))})}openFeed(t){M("opening feed",t),this.socket||this.startSocket(),this.socket.next(Object.assign({event:"subscribe"},t)),this.feeds=[...this.feeds,t]}closeFeed(t){M("closing feed",t),this.socket.next(Object.assign({event:"unsubscribe"},t)),this.feeds=this.feeds.filter(e=>e.feed!==t.feed)}closeAllFeeds(){M("closing all feeds",[...this.feeds]),this.feeds.forEach(t=>this.socket.next(Object.assign({event:"unsubscribe"},t)))}restartSocket(){this.socket&&this.socket.complete(),M("restarting socket",this.feeds),setTimeout(()=>{this.startSocket(),this.feeds.forEach(t=>this.socket.next(Object.assign({event:"subscribe"},t)))},this.retryDelay)}startSocket(){M("starting socket"),this.socket=Object(s.a)(this.env.urls.websocket+"?general"),this.socket.next({event:"subscribe",feed:"heartbeat"}),this.socket.pipe(Object(c.a)(11e3)).subscribe(t=>{"event"in t?"error"===t.event&&this.handleError(t):this.handleResponse(t)},t=>this.handleError(t),()=>M("WS complete"))}handleResponse(t){if("prices_snapshot"===t.feed){const{prices:e}=t,n=Object(h.c)(e.map(t=>Object(w.b)(t)),"base");this.store.dispatch(Object(x.b)({prices:n}))}if("prices"!==t.feed)if("ticker"!==t.feed)if("ticker_lite"!==t.feed)if("trade_snapshot"!==t.feed)if("trade"!==t.feed)if("account_balances_and_margins"!==t.feed){if("balances_snapshot"===t.feed||"balances"===t.feed){const{holding:e,futures:n,flex_futures:i}=t;e&&Object.keys(e).length>0&&this.holdingWallets.next(e),n&&Object.keys(n).length>0&&this.crypWallets.next(n),i&&Object.keys(i).length>0&&this.flexWallet.next(i)}if("open_positions"!==t.feed)if("open_orders_snapshot"!==t.feed)if("open_orders"!==t.feed)if("fills_snapshot"!==t.feed)if("fills"!==t.feed)if("account_log_snapshot"!==t.feed){if("account_log"===t.feed){const{new_entry:e}=t;return"cross-exchange transfer"===e.info&&e.new_balance>e.old_balance&&this.store.dispatch(Object(g.j)({message:"SNACKBAR.CROSS_EXCHANGE_TRANSFER_SUCCESS"})),void("cross-exchange transfer failed"===e.info&&this.store.dispatch(Object(g.j)({message:"SNACKBAR.CROSS_EXCHANGE_TRANSFER_FAILED",class:"warn"})))}if("deposits_withdrawals"!==t.feed)if("notifications"!==t.feed)if("notifications_auth"!==t.feed)this.retryDelay=100;else{const{notifications:e}=t;this.store.dispatch(Object(m.d)({notifications:e}))}else{const{notifications:e}=t;this.store.dispatch(Object(m.e)({notifications:e}))}else{const{elements:e}=t;this.store.dispatch(Object(y.o)({transfers:e}))}}else this.store.dispatch(Object(y.m)({logs:Object(T.c)(t.logs)}));else this.store.dispatch(Object(O.a)({fills:Object(k.h)(t.fills)}));else this.store.dispatch(Object(O.k)({fills:Object(k.h)(t.fills)}));else{const{is_cancel:e,order_id:n,order:i,reason:r}=t;if(e){const t=n||i.order_id;this.store.dispatch(Object(O.i)({orderId:t}))}else this.store.dispatch(Object(O.b)({order:Object(k.i)(i)})),"full_fill"===r?this.store.dispatch(Object(g.j)({message:"SNACKBAR.ORDER_EXECUTED_FULL"})):"partial_fill"===r&&this.store.dispatch(Object(g.j)({message:this.translateService.instant("SNACKBAR.ORDER_PARTIALLY_FILLED_VARS",{filled:i.filled,total:i.filled+i.qty,qty:i.qty})}))}else this.store.dispatch(Object(O.l)({orders:Object(k.j)(t.orders)}));else this.store.dispatch(Object(O.m)({positions:Object(k.k)(t.positions)}))}else{const{margin_accounts:e}=t;this.userWallets.next(e)}else this.trades.next(t);else{const{trades:e}=t;this.store.dispatch(Object(y.p)({trades:e}))}else{const e=t;this.liteTickers.next(Object(w.c)(e))}else{const e=t;this.detailedTickers.next(Object(w.c)(e))}else{const e=t;this.prices.next(Object(w.b)(e))}}handleError(t){console.error("websocket error",t);try{"invalid product id"===(null==t?void 0:t.message)&&this.store.dispatch(Object(S.c)())}catch(t){console.error(t)}this.retryDelay=Object(d.b)(this.retryDelay),M(`General WS Error; Restarting in ${this.retryDelay}ms`,t),this.restartSocket()}}return t.\u0275fac=function(e){return new(e||t)(P.Yb(A.b),P.Yb(I.e),P.Yb(b.a),P.Yb(E.a))},t.\u0275prov=P.Kb({token:t,factory:t.\u0275fac}),t})()},afE0:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("kZht"),r=n("NxuZ");let s=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["dialog-badge"]],inputs:{icon:"icon"},decls:1,vars:1,consts:[[3,"icon"]],template:function(t,e){1&t&&i.Pb(0,"fa-icon",0),2&t&&i.mc("icon",e.icon)},directives:[r.b],styles:["[_nghost-%COMP%]{display:block;text-align:center}fa-icon[_ngcontent-%COMP%]{display:inline-block;padding:var(--spacing);color:var(--accent-colour);font-size:34px;border:2px solid;border-radius:25%}"],changeDetection:0}),t})()},anA8:function(t,e,n){"use strict";n.d(e,"a",(function(){return W}));var i=n("D57K"),r=n("kZht"),s=n("O30t"),o=n("LoUP"),a=n("EZWv"),c=n("gxtV"),l=n("jIqt"),u=n("UVqw"),h=n("IkSM"),d=n("B6Vo"),p=n("Cc4E"),f=n("zho4"),b=n("anSm"),g=n("1o0v"),m=n("yPvj"),v=n("rBBj"),_=n("chaP"),y=n("+I9z"),O=n("NxuZ"),C=n("aDqW"),w=n("An66"),T=n("rUBT"),S=n("rqGg"),k=n("DpwM");function E(t,e){1&t&&r.Pb(0,"tr",22)}function x(t,e){1&t&&r.Pb(0,"tr",23)}const P=function(){return[250,100]};function A(t,e){if(1&t&&(r.Ub(0,"th",24),r.Qc(1),r.gc(2,"translate"),r.Tb()),2&t){const t=r.fc();r.mc("sbDisabled",!t.displayTooltips)("sbDelay",r.qc(5,P)),r.Cb(1),r.Sc(" ",r.hc(2,3,"COLUMN.DATE_TIME")," ")}}function I(t,e){if(1&t&&(r.Ub(0,"td",25),r.Ub(1,"span"),r.Qc(2),r.gc(3,"date"),r.Tb(),r.Ub(4,"span",26),r.Qc(5),r.gc(6,"date"),r.Tb(),r.Tb()),2&t){const t=e.$implicit;r.Cb(2),r.Rc(r.ic(3,2,t.time,"HH:mm:ss")),r.Cb(3),r.Rc(r.ic(6,5,t.time,"dd/MMM/yyyy"))}}function M(t,e){if(1&t&&(r.Ub(0,"th",27),r.Qc(1),r.gc(2,"translate"),r.Tb()),2&t){const t=r.fc();r.mc("sbDisabled",!t.displayTooltips)("sbDelay",r.qc(5,P)),r.Cb(1),r.Sc(" ",r.hc(2,3,"COLUMN.MARKET")," ")}}function D(t,e){if(1&t&&(r.Ub(0,"td",28),r.Pb(1,"market-icon",29),r.gc(2,"base"),r.Qc(3),r.gc(4,"uppercase"),r.gc(5,"contractFamily"),r.gc(6,"pair"),r.gc(7,"translate"),r.gc(8,"maturityMonth"),r.Tb()),2&t){const t=e.$implicit;r.Cb(1),r.mc("base",r.hc(2,4,t.instrument)),r.Cb(2),r.Uc(" ",r.hc(4,6,r.hc(5,8,t.instrument))," ",r.hc(6,10,t.instrument)," ",r.hc(7,12,r.ic(8,14,t.instrument,"short"))," ")}}function R(t,e){if(1&t&&(r.Ub(0,"th",30),r.Qc(1),r.gc(2,"translate"),r.Tb()),2&t){const t=r.fc();r.mc("sbDisabled",!t.displayTooltips)("sbDelay",r.qc(5,P)),r.Cb(1),r.Sc(" ",r.hc(2,3,"COLUMN.TYPE")," ")}}function j(t,e){if(1&t&&(r.Ub(0,"td",28),r.Qc(1),r.gc(2,"titlecase"),r.Tb()),2&t){const t=e.$implicit;r.Cb(1),r.Sc(" ",r.hc(2,1,t.fill_type)," ")}}function L(t,e){if(1&t&&(r.Ub(0,"th",31),r.Qc(1),r.gc(2,"translate"),r.Tb()),2&t){const t=r.fc();r.mc("sbDisabled",!t.displayTooltips)("sbDelay",r.qc(5,P)),r.Cb(1),r.Sc(" ",r.hc(2,3,"COLUMN.SIDE")," ")}}function N(t,e){if(1&t&&(r.Ub(0,"td",32),r.Ub(1,"strong",33),r.Qc(2),r.gc(3,"translate"),r.Tb(),r.Tb()),2&t){const t=e.$implicit;r.Cb(1),r.mc("pnlBool",t.buy),r.Cb(1),r.Sc(" ",r.hc(3,2,t.buy?"SIDE.BUY":"SIDE.SELL")," ")}}function U(t,e){if(1&t&&(r.Ub(0,"th",34),r.Qc(1),r.gc(2,"translate"),r.Tb()),2&t){const t=r.fc();r.mc("sbDisabled",!t.displayTooltips)("sbDelay",r.qc(5,P)),r.Cb(1),r.Sc(" ",r.hc(2,3,"COLUMN.SIZE")," ")}}function F(t,e){if(1&t&&(r.Ub(0,"td",35),r.Pb(1,"ghost-trail",36),r.Qc(2),r.Ub(3,"span",26),r.Qc(4),r.gc(5,"asset"),r.Tb(),r.Tb()),2&t){const t=e.$implicit;r.Cb(1),r.nc("content",t.displayQty),r.mc("showZeros",!1),r.Cb(1),r.Sc(" "," "," "),r.Cb(2),r.Rc(r.hc(5,4,t.tradingDisplayAsset))}}function B(t,e){if(1&t&&(r.Ub(0,"th",37),r.Qc(1),r.gc(2,"translate"),r.Tb()),2&t){const t=r.fc();r.mc("sbDisabled",!t.displayTooltips)("sbDelay",r.qc(5,P)),r.Cb(1),r.Sc(" ",r.hc(2,3,"COLUMN.FILL_PRICE")," ")}}function z(t,e){if(1&t&&(r.Ub(0,"td",25),r.Ub(1,"span",38),r.Qc(2),r.gc(3,"sato"),r.Tb(),r.Ub(4,"span",26),r.Qc(5),r.gc(6,"quote"),r.Tb(),r.Tb()),2&t){const t=e.$implicit;r.Cb(2),r.Rc(r.ic(3,2,t.price,t)),r.Cb(3),r.Rc(r.hc(6,5,t.instrument))}}function V(t,e){1&t&&r.Pb(0,"th",39)}function $(t,e){if(1&t){const t=r.Vb();r.Ub(0,"td",28),r.Ub(1,"div",40),r.bc("click",(function(n){r.Ec(t);const i=e.$implicit;return r.fc().viewDetailed.emit(i),n.stopPropagation()})),r.Pb(2,"fa-icon",41),r.Ub(3,"p"),r.Qc(4),r.gc(5,"translate"),r.Tb(),r.Tb(),r.Tb()}2&t&&(r.Cb(4),r.Rc(r.hc(5,1,"BUTTON.DETAILS")))}const H=function(){return{small:100,medium:400,large:800}},q=function(){return[10,20,50]},Q=(t,e)=>{const n={symbol:t.instrument,fill_price:t.price,size:t.qty};return e in n?n[e]:t[e]};let W=(()=>{let t=class{constructor(){this.tableColumns=["time","symbol","type","side","size","fill_price","order_actions"],this.tableData=new s.k([]),this.viewDetailed=new r.o}set fills(t){this.tableData.data=t.valueSeq().toArray()}ngOnInit(){this.tableData.sortingDataAccessor=Q,this.tableData.paginator=this.tablePaginator}ngAfterViewInit(){this.tableSort.changes.pipe(Object(l.a)(this.tableSort),Object(c.b)(this)).subscribe(t=>{t.first&&(this.tableData.sort=t.first)})}trackByFillId(t,e){return e.fill_id}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Ib({type:t,selectors:[["filled-orders-desktop"]],viewQuery:function(t,e){var n;1&t&&(r.Jc(a.a,!0),r.Wc(o.a,!0)),2&t&&(r.zc(n=r.cc())&&(e.tablePaginator=n.first),r.zc(n=r.cc())&&(e.tableSort=n))},inputs:{fills:"fills",displayTooltips:"displayTooltips"},outputs:{viewDetailed:"viewDetailed"},decls:25,vars:10,consts:[["breakpoint","","mat-table","","matSort","",3,"breakpoints","dataSource","trackBy"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["matColumnDef","time"],["mat-header-cell","","mat-sort-header","","tooltip","","sbTooltip","TOOLTIP.FILLED_ORDERS.DATE",3,"sbDisabled","sbDelay",4,"matHeaderCellDef"],["class","block-cell","mat-cell","","body","",4,"matCellDef"],["matColumnDef","symbol"],["mat-header-cell","","mat-sort-header","","tooltip","","sbTooltip","TOOLTIP.FILLED_ORDERS.SYMBOL",3,"sbDisabled","sbDelay",4,"matHeaderCellDef"],["mat-cell","","body","",4,"matCellDef"],["matColumnDef","type"],["mat-header-cell","","mat-sort-header","","tooltip","","sbTooltip","TOOLTIP.FILLED_ORDERS.TYPE",3,"sbDisabled","sbDelay",4,"matHeaderCellDef"],["matColumnDef","side"],["mat-header-cell","","mat-sort-header","","tooltip","","sbTooltip","TOOLTIP.FILLED_ORDERS.SIDE",3,"sbDisabled","sbDelay",4,"matHeaderCellDef"],["body","","mat-cell","",4,"matCellDef"],["matColumnDef","size"],["mat-header-cell","","mat-sort-header","","tooltip","","sbTooltip","TOOLTIP.FILLED_ORDERS.SIZE",3,"sbDisabled","sbDelay",4,"matHeaderCellDef"],["mat-cell","","body","","mono","",4,"matCellDef"],["matColumnDef","fill_price"],["mat-header-cell","","mat-sort-header","","tooltip","","sbTooltip","TOOLTIP.FILLED_ORDERS.FILL_PRICE",3,"sbDisabled","sbDelay",4,"matHeaderCellDef"],["matColumnDef","order_actions"],["body","","mat-header-cell","",4,"matHeaderCellDef"],[3,"pageSize","pageSizeOptions"],["mat-header-row",""],["mat-row",""],["mat-header-cell","","mat-sort-header","","tooltip","","sbTooltip","TOOLTIP.FILLED_ORDERS.DATE",3,"sbDisabled","sbDelay"],["mat-cell","","body","",1,"block-cell"],["ghost",""],["mat-header-cell","","mat-sort-header","","tooltip","","sbTooltip","TOOLTIP.FILLED_ORDERS.SYMBOL",3,"sbDisabled","sbDelay"],["mat-cell","","body",""],[3,"base"],["mat-header-cell","","mat-sort-header","","tooltip","","sbTooltip","TOOLTIP.FILLED_ORDERS.TYPE",3,"sbDisabled","sbDelay"],["mat-header-cell","","mat-sort-header","","tooltip","","sbTooltip","TOOLTIP.FILLED_ORDERS.SIDE",3,"sbDisabled","sbDelay"],["body","","mat-cell",""],[3,"pnlBool"],["mat-header-cell","","mat-sort-header","","tooltip","","sbTooltip","TOOLTIP.FILLED_ORDERS.SIZE",3,"sbDisabled","sbDelay"],["mat-cell","","body","","mono",""],[3,"content","showZeros"],["mat-header-cell","","mat-sort-header","","tooltip","","sbTooltip","TOOLTIP.FILLED_ORDERS.FILL_PRICE",3,"sbDisabled","sbDelay"],["mono",""],["body","","mat-header-cell",""],["body","",1,"copy-button",3,"click"],["icon","file","size","lg"]],template:function(t,e){1&t&&(r.Ub(0,"table",0),r.Oc(1,E,1,0,"tr",1),r.Oc(2,x,1,0,"tr",2),r.Sb(3,3),r.Oc(4,A,3,6,"th",4),r.Oc(5,I,7,8,"td",5),r.Rb(),r.Sb(6,6),r.Oc(7,M,3,6,"th",7),r.Oc(8,D,9,17,"td",8),r.Rb(),r.Sb(9,9),r.Oc(10,R,3,6,"th",10),r.Oc(11,j,3,3,"td",8),r.Rb(),r.Sb(12,11),r.Oc(13,L,3,6,"th",12),r.Oc(14,N,4,4,"td",13),r.Rb(),r.Sb(15,14),r.Oc(16,U,3,6,"th",15),r.Oc(17,F,6,6,"td",16),r.Rb(),r.Sb(18,17),r.Oc(19,B,3,6,"th",18),r.Oc(20,z,7,7,"td",5),r.Rb(),r.Sb(21,19),r.Oc(22,V,1,0,"th",20),r.Oc(23,$,6,3,"td",8),r.Rb(),r.Tb(),r.Pb(24,"mat-paginator",21)),2&t&&(r.mc("breakpoints",r.qc(8,H))("dataSource",e.tableData)("trackBy",e.trackByFillId),r.Cb(1),r.mc("matHeaderRowDef",e.tableColumns)("matHeaderRowDefSticky",!0),r.Cb(1),r.mc("matRowDefColumns",e.tableColumns),r.Cb(22),r.mc("pageSize",20)("pageSizeOptions",r.qc(9,q)))},directives:[s.j,u.a,o.a,s.g,s.i,s.c,s.e,s.b,a.a,s.f,s.h,s.d,o.b,h.a,d.a,p.a,f.a,s.a,b.a,g.a,m.a,v.a,_.a,y.a,O.b],pipes:[C.d,w.e,T.a,w.x,T.c,T.e,T.d,w.w,S.a,k.c,T.f],styles:["market-icon[_ngcontent-%COMP%]{font-size:20px}table[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%]{height:calc(var(--table-row-height) + var(--spacing))!important}table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]:last-of-type, table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]:last-of-type{text-align:right}.block-cell[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:block;line-height:1.25em}.actions-header[_ngcontent-%COMP%]{cursor:pointer}.actions-header[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{display:inline}.actions-header[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{color:var(--warn-colour);margin-right:var(--spacing-s)}.actions-header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--warn-colour);text-transform:capitalize!important}.cancel-button[_ngcontent-%COMP%], .copy-button[_ngcontent-%COMP%], .edit-button[_ngcontent-%COMP%], .info-button[_ngcontent-%COMP%], .limit-button[_ngcontent-%COMP%], .market-button[_ngcontent-%COMP%]{cursor:pointer;display:inline-block}.cancel-button[_ngcontent-%COMP%] > *[_ngcontent-%COMP%], .copy-button[_ngcontent-%COMP%] > *[_ngcontent-%COMP%], .edit-button[_ngcontent-%COMP%] > *[_ngcontent-%COMP%], .info-button[_ngcontent-%COMP%] > *[_ngcontent-%COMP%], .limit-button[_ngcontent-%COMP%] > *[_ngcontent-%COMP%], .market-button[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{display:inline}.cancel-button[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .copy-button[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .edit-button[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .info-button[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .limit-button[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .market-button[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding-left:var(--spacing-s)}.copy-button[_ngcontent-%COMP%], .edit-button[_ngcontent-%COMP%], .info-button[_ngcontent-%COMP%], .limit-button[_ngcontent-%COMP%], .market-button[_ngcontent-%COMP%]{margin-right:var(--spacing)}.copy-button[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%], .edit-button[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%], .info-button[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%], .limit-button[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%], .market-button[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{color:var(--brand)}.cancel-button[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{color:var(--warn-colour)}.cancel-all-button[_ngcontent-%COMP%]{cursor:pointer}.cancel-all-button[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{display:inline}.cancel-all-button[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{color:var(--warn-colour);margin-right:var(--spacing-s)}.cancel-all-button[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--warn-colour);text-transform:capitalize!important}table[breakpoint=medium][_ngcontent-%COMP%] .copy-button[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:none}"],changeDetection:0}),t=Object(i.d)([Object(c.a)()],t),t})()},anSm:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("kZht");let r=(()=>{class t{constructor(t,e){this.renderer=t,this.element=e}ngOnInit(){this.renderer.addClass(this.element.nativeElement,"global__text"),this.renderer.addClass(this.element.nativeElement,"global__text-body")}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.G),i.Ob(i.l))},t.\u0275dir=i.Jb({type:t,selectors:[["","body",""]]}),t})()},aygZ:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("kZht"),r=n("hCLc"),s=n("NxuZ");const o=["*"];let a=(()=>{class t{constructor(){this.dismissed=null,this.dismissEvent=new i.o}dismiss(){this.dismissed=!0,this.dismissEvent.emit()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["popup-banner"]],hostVars:1,hostBindings:function(t,e){2&t&&i.Db("dismissed",e.dismissed)},outputs:{dismissEvent:"dismiss"},ngContentSelectors:o,decls:4,vars:0,consts:[["mat-button","","color","positive",3,"click"],["icon","close-large","size","2x"]],template:function(t,e){1&t&&(i.lc(),i.Ub(0,"section"),i.kc(1),i.Tb(),i.Ub(2,"button",0),i.bc("click",(function(){return e.dismiss()})),i.Pb(3,"fa-icon",1),i.Tb())},directives:[r.b,s.b],styles:["[_nghost-%COMP%]{position:fixed;bottom:0;width:100%;z-index:10;display:grid;grid-template-columns:1fr auto;padding:var(--spacing);color:var(--text-colour);text-align:center;background:rgba(var(--accent-colour-rgb),.8);box-shadow:0 0 10px rgba(0,0,0,.5)}@supports ((-webkit-backdrop-filter:blur(0)) or (backdrop-filter:blur(0))){[_nghost-%COMP%]{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background:rgba(var(--accent-colour-rgb),.6)}}@media (max-width:1024px){[_nghost-%COMP%]{bottom:46px}}[dismissed][_nghost-%COMP%]{display:none}section[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}"],changeDetection:0}),t})()},bBQR:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("kZht");let r=(()=>{class t{constructor(t,e){this.renderer=t,this.element=e}ngOnInit(){this.renderer.addClass(this.element.nativeElement,"global__text"),this.renderer.addClass(this.element.nativeElement,"global__text-heading")}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.G),i.Ob(i.l))},t.\u0275dir=i.Jb({type:t,selectors:[["","heading",""]]}),t})()},bCr7:function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"f",(function(){return a})),n.d(e,"e",(function(){return c})),n.d(e,"d",(function(){return l}));class i{constructor(t){this.components=t}static fromRgba(t,e,n,r){return new i([t,e,n,r])}static fromRgb(t,e,n){return i.fromRgba(t,e,n,1)}static fromGrey(t){return i.fromRgb(t,t,t)}static fromHex(t){return i.fromRgb(t>>16&255,t>>8&255,255&t)}get rgba(){return this.components}get rgbaPartial(){return this.components.join(", ")}get rgb(){return this.components.slice(0,3)}get rgbPartial(){return this.rgb.join(", ")}withOpacity(t){return`rgba(${this.rgbPartial}, ${t})`}toString(){return`rgba(${this.rgbaPartial})`}}function r(t,e){return{width:t,height:e}}var s=n("lx5p");function o(t,e){return{x:t,y:e}}function a(t){const e=Object(s.H)(t);return({x:t,y:n})=>o(e(t),e(n))}function c(t){return e=>o(e.x+t.x,e.y+t.y)}function l({orientation:t,center:e}){return({x:n,y:i})=>"horizontal"===t?o(e.x+(e.x-n),i):o(n,e.y+(e.y-i))}},bSqp:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VideoInputDevice=function(){function t(t,e,n){this.deviceId=t,this.label=e,this.kind="videoinput",this.groupId=n||void 0}return t.prototype.toJSON=function(){return{kind:this.kind,groupId:this.groupId,deviceId:this.deviceId,label:this.label}},t}()},bT3u:function(t,e,n){var i=n("67SP"),r=n("r9nU");e.mul=function(t,e){var n=new i(t.length+e.length-1);n.fill(0);for(var s=0;s=0;){for(var s=n[0],o=0;o{class t{get orderValue(){if(this.selectedMarket&&this.form&&this.selectedTicker){const t=this.form.get("size").value*this.selectedMarket.contractSize,e=this.form.get("limitPrice")?this.form.get("limitPrice").value:Object(r.j)(this.selectedTicker);return Object(i.d)(t,e,"futures_inverse"===this.selectedMarket.type)}return 0}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Ib({type:t,selectors:[["order-form-details"]],inputs:{side:"side",form:"form",displayTooltips:"displayTooltips",wallet:"wallet",selectedMarket:"selectedMarket",selectedTicker:"selectedTicker",isTrigger:"isTrigger",initialMargin:"initialMargin",imOverBalance:"imOverBalance"},decls:5,vars:4,consts:[[1,"order-form-details"],["class","detail",4,"ngIf"],[1,"detail"],["label","","translate",""],["body","","tooltip","",3,"matTooltip"],["label","","translate","","tooltip","","sbTooltip","TOOLTIP.AVAILABLE_MARGIN",3,"sbDisabled","sbDelay"],["body","","mono",""],[3,"content"],["label","","translate","","tooltip","","sbTooltip","TOOLTIP.BUY_REQ",3,"sbDisabled","sbDelay"],["label","","translate","","tooltip","","sbTooltip","TOOLTIP.SELL_REQ",3,"sbDisabled","sbDelay"]],template:function(t,e){1&t&&(s.Ub(0,"section",0),s.Oc(1,_,7,6,"div",1),s.Oc(2,O,9,15,"div",1),s.Oc(3,C,8,14,"div",1),s.Oc(4,w,8,14,"div",1),s.Tb()),2&t&&(s.Cb(1),s.mc("ngIf",e.isTrigger),s.Cb(1),s.mc("ngIf",e.wallet),s.Cb(1),s.mc("ngIf",!e.isTrigger&&"buy"===e.side),s.Cb(1),s.mc("ngIf",!e.isTrigger&&"sell"===e.side))},directives:[o.n,a.a,c.a,l.a,u.a,h.a,d.a,p.a,f.a,b.a,g.a],pipes:[c.d,m.b,v.b],styles:[".order-form-details[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-around;margin-top:var(--spacing-l)}.detail[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;border-bottom:1px dashed var(--border-colour-dark);margin-bottom:5px;padding-bottom:5px}.margin[_ngcontent-%COMP%]{margin-top:var(--spacing)}"],changeDetection:0}),t})()},bW1x:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("kZht"),r=n("An66"),s=n("ZtZA");let o=(()=>{class t{constructor(t,e,n,r,s,o,a){this.template=t,this.componentFactoryResolver=e,this.appRef=n,this.injector=r,this.vcr=s,this.cdr=o,this.document=a,this.attached=new i.o}attach(t={}){this.portal||(this.portal=new s.h(this.template,this.vcr)),this.detach(),this.outlet||(this.outlet=new s.e(this.document.createElement("div"),this.componentFactoryResolver,this.appRef,this.injector));const e=this.template.elementRef.nativeElement;e.parentNode.insertBefore(this.outlet.outletElement,e),this.cdr.markForCheck(),this.portal.attach(this.outlet,t),this.attached.next()}detach(){this.portal.isAttached&&this.portal.detach()}ngOnDestroy(){var t;null===(t=this.outlet)||void 0===t||t.dispose()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.N),i.Ob(i.j),i.Ob(i.g),i.Ob(i.t),i.Ob(i.R),i.Ob(i.h),i.Ob(r.d))},t.\u0275dir=i.Jb({type:t,selectors:[["ng-template","sbMenuContent",""]]}),t})()},bZCB:function(t,e,n){"use strict";n.d(e,"a",(function(){return _}));var i=n("zqNl"),r=n("+Px6"),s=n("qAYy"),o=n("sxqi"),a=n("xVbo"),c=n("Wg7D"),l=n("kZht"),u=n("An66"),h=n("3W1Y"),d=n("yPvj"),p=n("+e22"),f=n("rUBT");function b(t,e){if(1&t){const t=l.Vb();l.Ub(0,"div",4),l.bc("click",(function(){l.Ec(t);const n=e.$implicit;return l.fc(2).navTicker(n)})),l.Ub(1,"p",5),l.Pb(2,"market-icon",6),l.gc(3,"base"),l.Qc(4),l.Pb(5,"change",7),l.Tb(),l.Tb()}if(2&t){const t=e.$implicit;l.Cb(2),l.mc("base",l.hc(3,3,t.product_id)),l.Cb(2),l.Sc(" ",t.pair," "),l.Cb(1),l.mc("value",t.change)}}function g(t,e){if(1&t&&(l.Sb(0),l.Oc(1,b,6,5,"div",3),l.gc(2,"async"),l.Rb()),2&t){const t=l.fc();l.Cb(1),l.mc("ngForOf",l.hc(2,1,t.flexTickers$))}}function m(t,e){if(1&t){const t=l.Vb();l.Ub(0,"div",4),l.bc("click",(function(){l.Ec(t);const n=e.$implicit;return l.fc(2).navTicker(n)})),l.Ub(1,"p",5),l.Pb(2,"market-icon",6),l.gc(3,"base"),l.Qc(4),l.Pb(5,"change",7),l.Tb(),l.Tb()}if(2&t){const t=e.$implicit;l.Cb(2),l.mc("base",l.hc(3,3,t.product_id)),l.Cb(2),l.Sc(" ",t.pair," "),l.Cb(1),l.mc("value",t.change)}}function v(t,e){if(1&t&&(l.Oc(0,m,6,5,"div",3),l.gc(1,"async")),2&t){const t=l.fc();l.mc("ngForOf",l.hc(1,1,t.legacyTickers$))}}let _=(()=>{class t{constructor(t,e){this.store=t,this.market=e,this.isFlexMarket$=this.store.pipe(Object(i.m)(r.a)),this.legacyTickers$=this.store.pipe(Object(i.m)(s.j),Object(a.a)(t=>t.length>0),Object(c.a)(6e4)),this.flexTickers$=this.store.pipe(Object(i.m)(s.f),Object(a.a)(t=>t.length>0),Object(c.a)(6e4))}navTicker(t){this.market.navigateToMarket(t.product_id,!0)}}return t.\u0275fac=function(e){return new(e||t)(l.Ob(i.b),l.Ob(o.a))},t.\u0275cmp=l.Ib({type:t,selectors:[["ticker-bar"]],decls:5,vars:4,consts:[[1,"ticker-bar"],[4,"ngIf","ngIfElse"],["legacyTickers",""],["class","ticker",3,"click",4,"ngFor","ngForOf"],[1,"ticker",3,"click"],["caption",""],[3,"base"],[3,"value"]],template:function(t,e){if(1&t&&(l.Ub(0,"section",0),l.Oc(1,g,3,3,"ng-container",1),l.gc(2,"async"),l.Tb(),l.Oc(3,v,2,3,"ng-template",null,2,l.Pc)),2&t){const t=l.Ac(4);l.Cb(1),l.mc("ngIf",l.hc(2,2,e.isFlexMarket$))("ngIfElse",t)}},directives:[u.n,u.m,h.a,d.a,p.a],pipes:[u.b,f.a],styles:[".ticker-bar[_ngcontent-%COMP%]{display:flex;flex-direction:row;width:100%;flex-wrap:wrap;overflow-y:hidden;background:var(--toolbar-colour);border:1px solid var(--border-colour);border-radius:var(--bdrs);padding-left:var(--spacing);height:20px}.ticker-bar[_ngcontent-%COMP%] .ticker[_ngcontent-%COMP%]{white-space:nowrap;display:inline-flex;box-sizing:border-box;cursor:pointer;padding:3px var(--spacing-l) 3px var(--spacing-l);border-radius:var(--bdrs)}.ticker-bar[_ngcontent-%COMP%] .ticker[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{vertical-align:middle}.ticker-bar[_ngcontent-%COMP%] .ticker[_ngcontent-%COMP%]:hover{background-color:var(--table-row-alt)}"],changeDetection:0}),t})()},bjK4:function(t,e,n){"use strict";n.d(e,"a",(function(){return g})),n.d(e,"n",(function(){return _})),n.d(e,"e",(function(){return O})),n.d(e,"h",(function(){return C})),n.d(e,"d",(function(){return T})),n.d(e,"c",(function(){return S})),n.d(e,"o",(function(){return E})),n.d(e,"p",(function(){return x})),n.d(e,"j",(function(){return A})),n.d(e,"l",(function(){return I})),n.d(e,"b",(function(){return M})),n.d(e,"i",(function(){return D})),n.d(e,"k",(function(){return R})),n.d(e,"g",(function(){return N})),n.d(e,"m",(function(){return U})),n.d(e,"q",(function(){return F})),n.d(e,"f",(function(){return B}));var i=n("zqNl"),r=n("og7C"),s=n("VmIW"),o=n("p5wL"),a=n("lx5p"),c=n("rTkt"),l=n("uJYd"),u=n("NloN"),h=n("ylpo"),d=n("QmxK"),p=n("5JSY");const f=[1,2,5,10,20,50,100,200,500,1e3,2e3,5e3],b=f.length-1,g={"trading-dashboard":8,wallets:5,workspaces:6,flex:5},m={pageTitle:"",navigation:{internal:[{name:"NAV.PLATFORM",route:"/futures",icon:"trade",alwaysDisplay:!1},{name:"NAV.WALLETS",route:"/wallets",icon:"wallet",alwaysDisplay:!1},{name:"NAV.LOGS",route:"/history",icon:"list",alwaysDisplay:!1},{name:"NAV.SETTINGS",route:"/settings",icon:"cog",alwaysDisplay:!0},{name:"NAV.VERIFICATION",route:"/verification",icon:"check",alwaysDisplay:!0},{name:"NAV.ASSIGNMENT",route:"/assignment",icon:"thunder",alwaysDisplay:!0},{name:"NAV.SUPPORT",route:"/support",icon:"support",alwaysDisplay:!1}],external:[{name:"NAV.EXTERNAL_INDICES",url:"https://www.cfbenchmarks.com/"},{name:"NAV.EXTERNAL_RESOURCES",supportCategory:360001977131},{name:"NAV.EXTERNAL_API",url:"https://support.kraken.com/hc/en-us/sections/360012894412-Futures-API"},{name:"NAV.EXTERNAL_TESTING",supportArticle:360024809011},{name:"NAV.EXTERNAL_HISTORY",supportArticle:360022835871},{name:"NAV.EXTERNAL_RISK",supportArticle:360022629052},{name:"NAV.EXTERNAL_BOT_PARTNERS",supportArticle:360041402071}]},loadingActions:Object(r.f)(),orderbook:{depth:1,grouping:Object(u.b)(h.k,1)},theme:"dark",alt:!1,systemHealth:{"trading-rest":Object(s.None)(),"trading-ws":Object(s.None)(),auth:Object(s.None)(),charts:Object(s.None)()},tour:{type:"trading-dashboard",inProgress:!1,step:1,total:g["trading-dashboard"]},layoutType:Object(u.b)(h.m,"draggable"),enableChartPointer:!0},v=Object(i.i)(m,Object(i.k)(l.y,(t,{title:e})=>Object(o.b)(e,t,"pageTitle")),Object(i.k)(l.b,(t,{action:e})=>Object(o.b)(t.loadingActions.add(e),t,"loadingActions")),Object(i.k)(l.o,(t,{action:e})=>Object(o.b)(t.loadingActions.remove(e),t,"loadingActions")),Object(i.k)(l.v,(t,{depth:e})=>Object(o.b)(e,t,"orderbook","depth")),Object(i.k)(l.w,(t,{direction:e})=>{const n=f.indexOf(t.orderbook.grouping);return"plus"===e&&n0?(Object(u.c)(h.k,f[n-1]),Object(o.b)(f[n-1],t,"orderbook","grouping")):t}),Object(i.k)(l.q,(t,{theme:e})=>Object(o.b)(e,t,"theme")),Object(i.k)(l.s,(t,{alt:e})=>Object(o.b)(e,t,"alt")),Object(i.k)(l.t,(t,{enable:e})=>Object(o.b)(e,t,"enableChartPointer")),Object(i.k)(l.z,(t,{health:e})=>{const n=Object.entries(e).map(([t,e])=>[t,s.Maybe.fromNull(e)]);return Object(o.a)(Object.fromEntries(n),t,"systemHealth")}),Object(i.k)(l.A,(t,{tour:e})=>Object(o.b)({type:e,inProgress:!0,step:1,total:g[e]},t,"tour")),Object(i.k)(l.d,(t,e)=>Object(o.b)(Object.assign(Object.assign({},t.tour),{inProgress:!1,step:1}),t,"tour")),Object(i.k)(l.f,(t,e)=>Object(o.b)(t.tour.step+1,t,"tour","step")),Object(i.k)(l.m,(t,e)=>Object(o.b)(Math.max(t.tour.step-1,1),t,"tour","step")),Object(i.k)(l.u,(t,{layout:e})=>(Object(u.c)(h.m,e),Object(o.b)(e,t,"layoutType"))));function _(t,e){return v(t,e)}const y=Object(i.h)("layout"),O=Object(i.j)(y,t=>t.layoutType),C=Object(i.j)(y,t=>t.pageTitle),w=Object(i.j)(y,t=>t.navigation),T=Object(i.j)(w,t=>t.internal),S=Object(i.j)(w,t=>t.external),k=Object(i.j)(y,t=>t.orderbook),E=Object(i.j)(k,t=>t.depth),x=Object(i.j)(k,t=>t.grouping),P=Object(i.j)(y,t=>t.loadingActions),A=Object(i.j)(y,t=>t.theme),I=Object(i.j)(y,t=>t.alt),M=Object(i.j)(y,t=>t.enableChartPointer),D=Object(i.j)(y,t=>t.systemHealth),R=Object(i.j)(y,t=>t.tour),j=Object(i.j)(D,t=>Object(r.b)(t).filter((t,e)=>d.b[e]).toObject()),L=Object(i.j)(D,t=>Object(r.b)(t).filter((t,e)=>!d.b[e]).toObject()),N=Object(i.j)(D,j,L,(t,e,n)=>Object.values(t).some(a.q)?Object(s.None)():t["trading-rest"].contains("maintenance")?Object(s.Some)("maintenance"):Object(r.b)(e).some(t=>t.contains("offline"))?Object(s.Some)("offline"):Object(r.b)(e).some(t=>t.contains("degraded"))||Object(r.b)(n).some(t=>t.contains("offline")||t.contains("degraded"))?Object(s.Some)("degraded"):Object(s.Some)("operational")),U=Object(i.j)(P,(t,e)=>{const n=Array.isArray(e.filter)?Object(r.f)(e.filter):r.f.of(e.filter);return!t.intersect(n).isEmpty()}),F=Object(i.j)(A,c.b),B=Object(i.j)(F,p.a,(t,e,n)=>{const i=`assets/images/${e}/logo`,r=[];return"dark"===t&&r.push("white"),n&&(n.badge&&r.push("badge"),n.demo&&r.push("demo")),i+(r.length>0?"_"+r.join("-"):"")+".svg"})},"bo+2":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return a}));var i=n("kZht"),r=n("An66"),s=n("VbQ3");let o=(()=>{class t{constructor(t){this.ngFor=t,this.ngFor.ngForTrackBy=(t,e)=>this.field?e[this.field]:e}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(r.m,1))},t.\u0275dir=i.Jb({type:t,selectors:[["","ngForTrackField",""]],inputs:{field:["ngForTrackField","field"]}}),t})(),a=(()=>{class t{constructor(t){this.cdkVirtualFor=t,this.cdkVirtualFor.cdkVirtualForTrackBy=(t,e)=>this.field?e[this.field]:e}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(s.d,1))},t.\u0275dir=i.Jb({type:t,selectors:[["","cdkVirtualForTrackField",""]],inputs:{field:["cdkVirtualForTrackField","field"]}}),t})()},bv5E:function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var i=n("kZht"),r=n("3kIJ"),s=function(t){return t.MultiCollateral="MULTI_COLLATERAL",t.SingleCollateral="SINGLE_COLLATERAL",t}({}),o=n("EmXI"),a=n("IOEv"),c=n("An66"),l=n("hCLc"),u=n("pTnX"),h=n("aDqW");function d(t,e){if(1&t&&(i.Ub(0,"mat-option",5),i.Qc(1),i.Tb()),2&t){const t=e.$implicit,n=i.fc();i.mc("value",t),i.Cb(1),i.Sc(" ",n.getWalletLabel(t)," ")}}let p=(()=>{class t{constructor(t){this.formBuilder=t,this.form=this.buildForm(),this.walletLabels={[s.MultiCollateral]:"Multi-Collateral Wallet",[s.SingleCollateral]:"Single Collateral Wallets"},this.changeTransferPreference$=new i.o}ngOnChanges(t){t.defaultTransferPreference&&t.defaultTransferPreference.currentValue&&(this.form=this.buildForm())}buildForm(){return this.formBuilder.group({transferPreference:[this.defaultTransferPreference,r.x.required]})}submitForm(){const{transferPreference:t}=this.form.value;this.changeTransferPreference$.emit(t)}getWalletLabel(t){return this.walletLabels[t]}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(r.d))},t.\u0275cmp=i.Ib({type:t,selectors:[["inbound-transfer-dropdown"]],inputs:{availablePreferences:"availablePreferences",defaultTransferPreference:"defaultTransferPreference"},outputs:{changeTransferPreference$:"changeTransferPreference"},features:[i.Ab],decls:10,vars:9,consts:[[1,"form",3,"formGroup","ngSubmit"],["color","accent","appearance","fill"],["matNativeControl","","formControlName","transferPreference"],[3,"value",4,"ngFor","ngForOf"],["mat-raised-button","",3,"disabled"],[3,"value"]],template:function(t,e){1&t&&(i.Ub(0,"form",0),i.bc("ngSubmit",(function(){return e.submitForm()})),i.Ub(1,"mat-form-field",1),i.Ub(2,"mat-label"),i.Qc(3),i.gc(4,"translate"),i.Tb(),i.Ub(5,"mat-select",2),i.Oc(6,d,2,2,"mat-option",3),i.Tb(),i.Tb(),i.Ub(7,"button",4),i.Qc(8),i.gc(9,"translate"),i.Tb(),i.Tb()),2&t&&(i.mc("formGroup",e.form),i.Cb(3),i.Rc(i.hc(4,5,"Wallet")),i.Cb(3),i.mc("ngForOf",e.availablePreferences),i.Cb(1),i.mc("disabled",e.form.invalid),i.Cb(1),i.Sc(" ",i.hc(9,7,"BUTTON.SAVE")," "))},directives:[r.z,r.p,r.h,o.c,o.f,a.a,r.o,r.g,c.m,l.b,u.n],pipes:[h.d],styles:[".form[_ngcontent-%COMP%]{padding-top:var(--spacing)}.form[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{padding-bottom:var(--spacing)}.form[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:var(--spacing)}.form[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%]{width:100%}"],changeDetection:0}),t})()},bvVZ:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var i=n("kZht"),r=n("An66");const s=["sbBadge",""];function o(t,e){if(1&t&&(i.Ub(0,"span",1),i.Qc(1),i.Tb()),2&t){const t=i.fc();i.Cb(1),i.Rc(t.content)}}const a=["*"];let c=(()=>{class t{constructor(){this.show=!0,this._permClass=!0}get content(){return this.rawContent.toString().trim()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["","sbBadge",""]],hostVars:2,hostBindings:function(t,e){2&t&&i.Gb("sb-badge",e._permClass)},inputs:{rawContent:["sbBadge","rawContent"],show:["sbBadgeShow","show"]},exportAs:["sbBadge"],attrs:s,ngContentSelectors:a,decls:2,vars:1,consts:[["class","sb-badge-content",4,"ngIf"],[1,"sb-badge-content"]],template:function(t,e){1&t&&(i.lc(),i.kc(0),i.Oc(1,o,2,1,"span",0)),2&t&&(i.Cb(1),i.mc("ngIf",e.show))},directives:[r.n],styles:[".sb-badge[_nghost-%COMP%]{position:relative}.sb-badge-content[_ngcontent-%COMP%]{--private__height:22px;--private__font-size:12px;--private__bg-color:var(--badge-bg,#3b9b4a);--private__text-color:var(--badge-text,#fff);--private__text-weight:var(--badge-weight,normal);height:var(--private-height);position:absolute;padding:.2em .4em;max-width:5ch;overflow:hidden;top:calc(var(--private__height) / 2 * -1);transform:translateX(calc(var(--private__height) / 5 * -1));font-size:var(--private__font-size);font-family:inherit;font-weight:var(--private__text-weight);line-height:var(--private__font-size);color:var(--private__text-color);white-space:nowrap;text-overflow:ellipsis;border-radius:calc(var(--private__height) / 2);background-color:var(--private__bg-color);pointer-events:none}"]}),t})()},bwdy:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("FU6l"),r=n("X0qr"),s=n("IJgj");const o=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let a=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:a,_unsubscribe:l,_subscriptions:u}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(let t=0;tt.concat(e instanceof o?e.errors:e),[])}},bxcy:function(t,e,n){"use strict";n.d(e,"a",(function(){return A}));var i=n("zqNl"),r=n("i67J"),s=n("YyhG"),o=n("uJYd"),a=n("+Px6"),c=n("rxqU"),l=n("kZht"),u=n("Eu46"),h=n("UVqw"),d=n("An66"),p=n("anA8"),f=n("VbQ3"),b=n("mT8l"),g=n("anSm"),m=n("1o0v"),v=n("NxuZ"),_=n("aDqW"),y=n("7J2L");function O(t,e){if(1&t){const t=l.Vb();l.Ub(0,"filled-orders-mobile",8),l.bc("viewDetailed",(function(e){return l.Ec(t),l.fc(3).viewDetailed(e)})),l.Tb()}2&t&&l.mc("fill",e.$implicit)}function C(t,e){if(1&t){const t=l.Vb();l.Sb(0),l.Ub(1,"filled-orders-desktop",5),l.bc("viewDetailed",(function(e){return l.Ec(t),l.fc(2).viewDetailed(e)})),l.gc(2,"async"),l.Tb(),l.Ub(3,"cdk-virtual-scroll-viewport",6),l.Oc(4,O,1,1,"filled-orders-mobile",7),l.Tb(),l.Rb()}if(2&t){const t=l.fc().ngLet,e=l.fc();l.Cb(1),l.mc("fills",t)("displayTooltips",l.hc(2,4,e.displayTooltips$)),l.Cb(2),l.mc("itemSize",86),l.Cb(1),l.mc("cdkVirtualForOf",t.valueSeq().toArray())}}const w=function(){return{small:100,medium:400,large:800}};function T(t,e){if(1&t&&(l.Ub(0,"div",3),l.Oc(1,C,5,6,"ng-container",4),l.Tb()),2&t){const t=e.ngLet;l.fc();const n=l.Ac(3);l.mc("breakpoints",l.qc(3,w)),l.Cb(1),l.mc("ngIf",t&&t.size>0)("ngIfElse",n)}}const S=function(t){return{pair:t}};function k(t,e){if(1&t&&(l.Ub(0,"p"),l.Qc(1),l.gc(2,"translate"),l.Tb()),2&t){const t=e.ngIf;l.Cb(1),l.Sc(" ",l.ic(2,1,"NO_CONTENT.PAIR_FILLS",l.rc(4,S,t))," ")}}function E(t,e){1&t&&(l.Ub(0,"p",12),l.Qc(1,"NO_CONTENT.FILLED_ORDERS"),l.Tb())}function x(t,e){if(1&t&&(l.Ub(0,"section",9),l.Pb(1,"fa-icon",10),l.Oc(2,k,3,6,"p",4),l.gc(3,"async"),l.Oc(4,E,2,0,"ng-template",null,11,l.Pc),l.Tb()),2&t){const t=l.Ac(5),e=l.fc();var n=null;l.Cb(2),l.mc("ngIf",null==(n=l.hc(3,2,e.filterPair$))?null:n.orUndefined())("ngIfElse",t)}}function P(t,e){1&t&&l.Pb(0,"kraken-loading")}let A=(()=>{class t{constructor(t){this.store=t,this.displayTooltips$=this.store.pipe(Object(i.m)(c.y)),this.fills$=this.store.pipe(Object(i.m)(s.d),Object(r.p)()),this.instruments$=this.store.pipe(Object(i.m)(a.f)),this.filterPair$=this.store.pipe(Object(i.m)(c.q))}viewDetailed(t){this.instruments$.pipe(Object(r.h)()).subscribe(e=>{var n;const i=null!==(n=e.get(t.instrument))&&void 0!==n?n:"expired";this.store.dispatch(Object(o.g)({name:"fill-details",inputs:{fill:t,market:i}}))})}}return t.\u0275fac=function(e){return new(e||t)(l.Ob(i.b))},t.\u0275cmp=l.Ib({type:t,selectors:[["filled-orders"]],decls:6,vars:3,consts:[["class","table-wrapper","breakpoint","",3,"breakpoints",4,"ngLet"],["noEntries",""],["loader",""],["breakpoint","",1,"table-wrapper",3,"breakpoints"],[4,"ngIf","ngIfElse"],[3,"fills","displayTooltips","viewDetailed"],[3,"itemSize"],[3,"fill","viewDetailed",4,"cdkVirtualFor","cdkVirtualForOf"],[3,"fill","viewDetailed"],["body","","ghost","",1,"no-activity"],["icon","list","size","3x"],["unfiltered",""],["translate",""]],template:function(t,e){1&t&&(l.Oc(0,T,2,4,"div",0),l.gc(1,"async"),l.Oc(2,x,6,4,"ng-template",null,1,l.Pc),l.Oc(4,P,1,0,"ng-template",null,2,l.Pc)),2&t&&l.mc("ngLet",l.hc(1,1,e.fills$))},directives:[u.a,h.a,d.n,p.a,f.e,f.a,f.d,b.a,g.a,m.a,v.b,_.a,y.a],pipes:[d.b,_.d],styles:["market-icon[_ngcontent-%COMP%]{font-size:20px}[_nghost-%COMP%]{display:flex;flex-direction:column;padding:var(--spacing)}.table-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%]{height:100%}.no-activity[_ngcontent-%COMP%]{text-align:center;padding:var(--spacing-l)}cdk-virtual-scroll-viewport[_ngcontent-%COMP%]{height:100%}@media (max-width:1024px){.table-wrapper[_ngcontent-%COMP%] filled-orders-desktop[_ngcontent-%COMP%]{display:none}.table-wrapper[_ngcontent-%COMP%] cdk-virtual-scroll-viewport[_ngcontent-%COMP%]{display:block!important}}.table-wrapper[breakpoint=large][_ngcontent-%COMP%] cdk-virtual-scroll-viewport[_ngcontent-%COMP%], .table-wrapper[breakpoint=medium][_ngcontent-%COMP%] cdk-virtual-scroll-viewport[_ngcontent-%COMP%], .table-wrapper[breakpoint=small][_ngcontent-%COMP%] filled-orders-desktop[_ngcontent-%COMP%]{display:none}"],changeDetection:0}),t})()},c6U1:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){function t(t){for(var e=[],n=1;ns.pipe(o((n,s)=>Object(r.a)(t(n,s)).pipe(Object(i.a)((t,i)=>e(n,t,s,i))),n)):("number"==typeof e&&(n=e),e=>e.lift(new a(t,n)))}class a{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new c(t,this.project,this.concurrent))}}class c extends s.b{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},cMxr:function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var i=n("D57K"),r=n("kZht"),s=n("gxtV"),o=n("uJYd"),a=n("zqNl"),c=n("An66"),l=n("4g2U");function u(t,e){if(1&t){const t=r.Vb();r.Ub(0,"ngx-slider",3),r.bc("valueChange",(function(e){return r.Ec(t),r.fc().currentValue=e}))("userChange",(function(e){return r.Ec(t),r.fc().change(e)}))("userChangeStart",(function(){return r.Ec(t),r.fc().startSliding()}))("userChangeEnd",(function(){return r.Ec(t),r.fc().stopSliding()})),r.Tb()}if(2&t){const t=r.fc();r.mc("value",t.currentValue)("options",t.options)}}function h(t,e){if(1&t){const t=r.Vb();r.Ub(0,"ngx-slider",4),r.bc("valueChange",(function(e){return r.Ec(t),r.fc().currentValue=e}))("userChangeStart",(function(){return r.Ec(t),r.fc().startSliding()}))("userChangeEnd",(function(e){r.Ec(t);const n=r.fc();return n.change(e),n.stopSliding()})),r.Tb()}if(2&t){const t=r.fc();r.mc("value",t.currentValue)("options",t.options)}}let d=(()=>{let t=class{constructor(t){this.store=t,this.isOverMax=!1,this.fastUpdateMode=!1,this.logSteps=!1,this.min=0,this.stepBetween=1,this.suffix="",this.decimals=0,this.showLegend=!1,this.stepChange=new r.o,this.isSliding=new r.o,this.legend=t=>`${t}${this.suffix}`,this.translate=t=>`${this.isOverMax?">":""}${t.toFixed(this.decimals)}${this.suffix}`}ngOnInit(){this.currentValue=this.step,this.setOptions()}ngOnChanges(t){var e;"adjustedStep"in t&&(this.isOverMax=this.adjustedStep>this.max,this.currentValue=this.adjustedStep),(null===(e=t.min)||void 0===e?void 0:e.currentValue)&&this.setOptions()}setOptions(){var t;this.options=this.max?Object.assign(Object.assign(Object.assign({step:this.stepBetween,floor:this.min,ceil:this.max,showTicks:!1,ticksArray:null!==(t=this.ticks)&&void 0!==t?t:[1,.25*this.max,.5*this.max,.75*this.max,this.max],hidePointerLabels:!1,hideLimitLabels:!0,showSelectionBar:!0,animate:!1,translate:this.translate.bind(this)},this.showLegend&&{getLegend:this.legend.bind(this)}),this.logSteps&&{customValueToPosition:(t,e,n)=>((t=Math.cbrt(t))-(e=Math.cbrt(e)))/((n=Math.cbrt(n))-e)}),this.logSteps&&{customPositionToValue:(t,e,n)=>(e=Math.cbrt(e),n=Math.cbrt(n),Math.pow(t*(n-e)+e,3))}):{step:this.stepBetween,floor:this.min,ceil:this.steps.length-1,showTicks:!0,hidePointerLabels:!1,hideLimitLabels:!0,showSelectionBar:!0,animate:!1,showTicksValues:!0,translate:this.getStepLegend.bind(this)}}change({value:t}){this.stepChange.emit(t)}startSliding(){this.isSliding.emit(!0),this.store.dispatch(Object(o.t)({enable:!1}))}stopSliding(){this.isSliding.emit(!1),this.store.dispatch(Object(o.t)({enable:!0}))}getStepLegend(t){return""+this.steps[t].legend}};return t.\u0275fac=function(e){return new(e||t)(r.Ob(a.b))},t.\u0275cmp=r.Ib({type:t,selectors:[["slider"]],inputs:{fastUpdateMode:"fastUpdateMode",adjustedStep:"adjustedStep",logSteps:"logSteps",step:"step",max:"max",min:"min",stepBetween:"stepBetween",steps:"steps",ticks:"ticks",suffix:"suffix",decimals:"decimals",showLegend:"showLegend"},outputs:{stepChange:"stepChange",isSliding:"isSliding"},features:[r.Ab],decls:4,vars:2,consts:[[1,"slider"],[3,"value","options","valueChange","userChange","userChangeStart","userChangeEnd",4,"ngIf"],[3,"value","options","valueChange","userChangeStart","userChangeEnd",4,"ngIf"],[3,"value","options","valueChange","userChange","userChangeStart","userChangeEnd"],[3,"value","options","valueChange","userChangeStart","userChangeEnd"]],template:function(t,e){1&t&&(r.Sb(0),r.Ub(1,"div",0),r.Oc(2,u,1,2,"ngx-slider",1),r.Oc(3,h,1,2,"ngx-slider",2),r.Tb(),r.Rb()),2&t&&(r.Cb(2),r.mc("ngIf",e.fastUpdateMode),r.Cb(1),r.mc("ngIf",!e.fastUpdateMode))},directives:[c.n,l.b],styles:[".slider{margin-bottom:var(--spacing)} .slider .ngx-slider .ngx-slider-selection-bar .ngx-slider-selection, .slider .ngx-slider .ngx-slider-selection-bar .ngx-slider-tick{background:var(--brand)} .slider .ngx-slider .ngx-slider-bubble{color:var(--input-colour)!important;font-size:12px!important} .slider .ngx-slider .ngx-slider-full-bar .ngx-slider-bar{background:var(--form-input-colour)} .slider .ngx-slider .ngx-slider-pointer{background:var(--brand);outline:none;height:18px;width:18px;top:-8px} .slider .ngx-slider .ngx-slider-pointer:after{display:none} .slider .ngx-slider .ngx-slider-tick{cursor:not-allowed;color:var(--ghost-colour);background:var(--form-input-colour);margin-right:2px;margin-left:4px} .slider .ngx-slider .ngx-slider-tick.ngx-slider-selected{background:var(--brand);color:var(--input-colour)!important} .slider .ngx-slider .ngx-slider-tick-legend{color:var(--ghost-colour);font-size:11px;position:inherit!important;margin-top:var(--spacing-s)!important} .slider .ngx-slider .ngx-slider-tick-legend p{color:var(--input-colour)!important;font-weight:700} .slider .ngx-slider .ngx-slider-bar, .slider .ngx-slider .ngx-slider-selection{background:var(--brand)} .slider .ngx-slider .ngx-slider-active:after{background-color:var(--brand)!important}"],changeDetection:0}),t=Object(i.d)([Object(s.a)()],t),t})()},cedy:function(t,e,n){"use strict";n.r(e),n.d(e,"PrivateKeyComponent",(function(){return m}));var i=n("3kIJ"),r=n("mcff"),s=n("uJYd"),o=n("kZht"),a=n("zqNl"),c=n("rfPA"),l=n("bBQR"),u=n("EmXI"),h=n("Tcl6"),d=n("hCLc"),p=n("YC1o"),f=n("NxuZ"),b=n("B6Vo"),g=n("aDqW");let m=(()=>{class t{constructor(t,e,n,i){this.inputs=t,this.dialogRef=e,this.store=n,this.formBuilder=i}ngOnInit(){this.form=this.buildForm}get buildForm(){return this.formBuilder.group({publicKey:[this.inputs.publicKey,[i.x.required]],privateKey:[this.inputs.privateKey,[i.x.required]]})}copyKey(){this.store.dispatch(Object(s.j)({message:"SNACKBAR.PRIVATE_KEY_COPIED"}))}closeDialog(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(o.Ob(r.a),o.Ob(r.d),o.Ob(a.b),o.Ob(i.d))},t.\u0275cmp=o.Ib({type:t,selectors:[["private-key"]],decls:22,vars:18,consts:[["heading","DIALOG.PRIVATE_API_KEY.TITLE"],[1,"private-key__form","global__text","global__text-body",3,"formGroup"],[1,"global__text","global__text-subheading"],["color","accent","appearance","fill"],["formControlName","publicKey","matInput","","readonly","",3,"value"],["mat-button","","matSuffix","","mat-icon-button","",1,"private-key__key",3,"clipboard"],["icon","copy","size","2x","sbTooltip","TOOLTIP.COPY_TO_CLIPBOARD"],["formControlName","privateKey","matInput","","readonly","",3,"value"],["mat-button","","matSuffix","","mat-icon-button","",1,"private-key__key",3,"clipboard","clipboardSuccessMsg"],["mat-raised-button","",1,"global__text","global__text-body",3,"click"]],template:function(t,e){1&t&&(o.Ub(0,"pro-dialog",0),o.Ub(1,"form",1),o.Ub(2,"p",2),o.Qc(3),o.gc(4,"translate"),o.Tb(),o.Ub(5,"mat-form-field",3),o.Ub(6,"mat-label"),o.Qc(7),o.gc(8,"translate"),o.Tb(),o.Pb(9,"input",4),o.Ub(10,"button",5),o.Pb(11,"fa-icon",6),o.Tb(),o.Tb(),o.Ub(12,"mat-form-field",3),o.Ub(13,"mat-label"),o.Qc(14),o.gc(15,"translate"),o.Tb(),o.Pb(16,"input",7),o.Ub(17,"button",8),o.Pb(18,"fa-icon",6),o.Tb(),o.Tb(),o.Tb(),o.Ub(19,"button",9),o.bc("click",(function(){return e.closeDialog()})),o.Qc(20),o.gc(21,"translate"),o.Tb(),o.Tb()),2&t&&(o.Cb(1),o.mc("formGroup",e.form),o.Cb(2),o.Sc(" ",o.hc(4,10,"DIALOG.PRIVATE_API_KEY.CONTENT")," "),o.Cb(4),o.Rc(o.hc(8,12,"DIALOG.PRIVATE_API_KEY.KEYS.PUBLIC")),o.Cb(2),o.mc("value",e.inputs.publicKey),o.Cb(1),o.mc("clipboard",e.inputs.publicKey),o.Cb(4),o.Rc(o.hc(15,14,"DIALOG.PRIVATE_API_KEY.KEYS.PRIVATE")),o.Cb(2),o.mc("value",e.inputs.privateKey),o.Cb(1),o.mc("clipboard",e.inputs.privateKey)("clipboardSuccessMsg","SNACKBAR.PRIVATE_KEY_COPIED"),o.Cb(3),o.Sc(" ",o.hc(21,16,"BUTTON.CLOSE")," "))},directives:[c.a,l.a,i.z,i.p,i.h,u.c,u.f,i.c,h.b,i.o,i.g,d.b,u.h,p.a,f.b,b.a],pipes:[g.d],styles:[".mat-form-field[_ngcontent-%COMP%]{width:100%}.mat-form-field[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{color:var(--text-colour)!important}.private-key__form[_ngcontent-%COMP%]{margin-top:var(--spacing)!important}.private-key__form[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%]{width:100%}.private-key__form[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]:first-of-type{margin-bottom:var(--spacing)}.private-key__form[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{margin-top:var(--spacing);width:100%}"],changeDetection:0}),t})()},chaP:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("kZht");let r=(()=>{class t{constructor(t,e){this.renderer=t,this.element=e}ngOnInit(){this.renderer.addClass(this.element.nativeElement,"global__text--mono")}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.G),i.Ob(i.l))},t.\u0275dir=i.Jb({type:t,selectors:[["","mono",""]]}),t})()},cjU9:function(t,e,n){var i=n("JgBV"),r=n("yBEi");function s(t){this.mode=i.KANJI,this.data=t}s.getBitsLength=function(t){return 13*t},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(t){var e;for(e=0;e=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[e]+"\nMake sure your charset is UTF-8");n-=49472}t.put(n=192*(n>>>8&255)+(255&n),13)}},t.exports=s},ckkg:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("IdLP"),r=n("dUuy"),s=n("czMQ");function o(t,e){return e?Object(s.a)(t,e):new i.a(Object(r.a)(t))}},cqWG:function(t,e,n){"use strict";n.d(e,"a",(function(){return Y}));var i=n("D57K"),r=n("3kIJ"),s=n("gxtV"),o=n("zqNl"),a=n("C05f"),c=n("47ST"),l=n("ROBh"),u=n("GoAz"),h=n("xVbo"),d=n("BwBJ"),p=n("4e/d"),f=n("TLy2"),b=n("NloN"),g=n("uJYd"),m=n("94ty"),v=n("sXtk"),_=n("bjK4"),y=n("r1OQ"),O=n("MUfl"),C=n("T5QL"),w=n("kZht"),T=n("aDqW"),S=n("Asjx"),k=n("anSm"),E=n("An66"),x=n("hCLc"),P=n("3W1Y"),A=n("EmXI"),I=n("Tcl6"),M=n("7J2L"),D=n("NxuZ"),R=n("TzY9");function j(t,e){1&t&&(w.Sb(0),w.Ub(1,"ul",9),w.Ub(2,"li"),w.Ub(3,"p",10),w.Qc(4,"Bitcoin futures trading with leverage"),w.Tb(),w.Tb(),w.Ub(5,"li"),w.Ub(6,"p",10),w.Qc(7,"Choose your own collateral"),w.Tb(),w.Tb(),w.Ub(8,"li"),w.Ub(9,"p",10),w.Qc(10,"Go long or short to suit your trading strategy"),w.Tb(),w.Tb(),w.Ub(11,"li"),w.Ub(12,"p",10),w.Qc(13,"Lowest fees in the market"),w.Tb(),w.Tb(),w.Tb(),w.Rb())}function L(t,e){1&t&&(w.Ub(0,"small",13),w.Qc(1),w.gc(2,"translate"),w.Tb()),2&t&&(w.Cb(1),w.Rc(w.hc(2,1,"FRAGMENT.OR")))}function N(t,e){if(1&t){const t=w.Vb();w.Sb(0),w.Ub(1,"button",11),w.bc("click",(function(){return w.Ec(t),w.fc(2).openKrakenLogin()})),w.Qc(2),w.gc(3,"translate"),w.Tb(),w.Oc(4,L,3,3,"small",12),w.Rb()}if(2&t){const t=w.fc(2);w.Cb(2),w.Sc(" ",w.hc(3,2,t.includeDirect?"DIALOG.SIGNIN.BUTTONS.SSO":"NAV.SIGN_IN")," "),w.Cb(2),w.mc("ngIf",t.includeDirect)}}function U(t,e){1&t&&(w.Ub(0,"mat-error"),w.Qc(1),w.gc(2,"translate"),w.Tb()),2&t&&(w.Cb(1),w.Sc(" ",w.hc(2,1,"FORM.EMAIL_ERROR")," "))}function F(t,e){if(1&t&&(w.Sb(0),w.Ub(1,"mat-form-field",14),w.Ub(2,"mat-label"),w.Qc(3),w.gc(4,"translate"),w.Tb(),w.Pb(5,"input",15),w.Oc(6,U,3,3,"mat-error",7),w.Tb(),w.Ub(7,"mat-form-field",14),w.Ub(8,"mat-label"),w.Qc(9),w.gc(10,"translate"),w.Tb(),w.Pb(11,"input",16),w.Tb(),w.Ub(12,"button",17),w.gc(13,"async"),w.Qc(14),w.gc(15,"translate"),w.Tb(),w.Rb()),2&t){const t=w.fc(2);w.Cb(3),w.Rc(w.hc(4,5,"FORM.EMAIL")),w.Cb(3),w.mc("ngIf",t.form.get("email").invalid),w.Cb(3),w.Rc(w.hc(10,7,"FORM.PASSWORD")),w.Cb(3),w.mc("disabled",t.form.invalid||w.hc(13,9,t.loading$)),w.Cb(2),w.Sc(" ",w.hc(15,11,"DIALOG.SIGNIN.BUTTONS.EMAIL")," ")}}function B(t,e){if(1&t&&(w.Sb(0),w.Oc(1,j,14,0,"ng-container",7),w.Oc(2,N,5,4,"ng-container",8),w.Oc(3,F,16,13,"ng-container",7),w.Rb()),2&t){const t=w.fc(),e=w.Ac(10);w.Cb(1),w.mc("ngIf",!t.includeDirect),w.Cb(1),w.mc("ngIf",!t.env.demo)("ngIfElse",e),w.Cb(1),w.mc("ngIf",t.includeDirect)}}function z(t,e){1&t&&(w.Ub(0,"div",20),w.Ub(1,"p",21),w.Qc(2,"DIALOG.SIGNIN.HWAUTH_VERIFY"),w.Tb(),w.Pb(3,"kraken-loading",22),w.Tb())}function V(t,e){if(1&t&&(w.Sb(0),w.Oc(1,z,4,0,"div",19),w.Rb()),2&t){const t=w.fc(2);w.Cb(1),w.mc("ngIf",t.mfaPriority.includes("fido2"))}}function $(t,e){if(1&t){const t=w.Vb();w.Sb(0),w.Ub(1,"div",23),w.Pb(2,"fa-icon",24),w.Ub(3,"div"),w.Ub(4,"p",21),w.Qc(5,"DIALOG.SIGNIN.HWAUTH_ERROR"),w.Tb(),w.Ub(6,"button",25),w.bc("click",(function(){return w.Ec(t),w.fc(2).resetFido()})),w.Qc(7),w.gc(8,"translate"),w.Tb(),w.Tb(),w.Tb(),w.Rb()}2&t&&(w.Cb(7),w.Sc(" ",w.hc(8,1,"BUTTON.TRY_AGAIN")," "))}function H(t,e){1&t&&(w.Ub(0,"small",13),w.Qc(1),w.gc(2,"translate"),w.Tb()),2&t&&(w.Cb(1),w.Sc(" ",w.hc(2,1,"FRAGMENT.OR")," "))}function q(t,e){if(1&t&&(w.Ub(0,"div",26),w.Ub(1,"p",21),w.Qc(2,"DIALOG.SIGNIN.TOTP_VERIFY"),w.Tb(),w.Pb(3,"input-otp-entry",27),w.Tb()),2&t){const t=w.fc(2);w.Cb(3),w.mc("form",t.form)}}function Q(t,e){if(1&t&&(w.Sb(0),w.Sb(1,3),w.gc(2,"async"),w.Oc(3,V,2,1,"ng-container",4),w.Oc(4,$,9,3,"ng-container",4),w.Rb(),w.Oc(5,H,3,3,"small",12),w.Oc(6,q,4,1,"div",18),w.Rb()),2&t){const t=w.fc();w.Cb(1),w.mc("ngSwitch",w.hc(2,5,t.fidoState$)),w.Cb(2),w.mc("ngSwitchCase","waiting"),w.Cb(1),w.mc("ngSwitchCase","error"),w.Cb(1),w.mc("ngIf",t.mfaPriority.includes("fido2")&&t.mfaPriority.includes("totp")),w.Cb(1),w.mc("ngIf",t.mfaPriority.includes("totp"))}}function W(t,e){if(1&t){const t=w.Vb();w.Ub(0,"div",28),w.Ub(1,"a",29),w.bc("click",(function(){return w.Ec(t),w.fc().closeDialog({name:"password-reset-request"})})),w.Qc(2),w.gc(3,"translate"),w.Tb(),w.Ub(4,"a",29),w.bc("click",(function(){return w.Ec(t),w.fc().signUp()})),w.Qc(5),w.gc(6,"translate"),w.Tb(),w.Tb()}2&t&&(w.Cb(2),w.Sc(" ",w.hc(3,2,"DIALOG.SIGNIN.PASSWORD_RESET_LINK")," "),w.Cb(3),w.Sc(" ",w.hc(6,4,"DIALOG.SIGNIN.SIGNUP_LINK")," "))}function G(t,e){1&t&&(w.Ub(0,"p",30),w.Qc(1),w.gc(2,"translate"),w.Tb()),2&t&&(w.Cb(1),w.Sc(" ",w.hc(2,1,"LABEL.PROD_INVALID_ON_DEMO")," "))}let Y=(()=>{let t=class{constructor(t,e,n,i,r,s,c,l){this.env=t,this.feature=e,this.store=n,this.fb=i,this.auth=r,this.fido2=s,this.translate=c,this.breakpointObserver=l,this.form=this.buildForm(),this.loading$=this.store.pipe(Object(o.m)(_.m,{filter:m.a})),this.mfaPriority=[],this.fidoState$=new a.a("waiting"),this.step$=new a.a("password"),this.logo$=this.store.pipe(Object(o.m)(_.f,{demo:this.env.demo})),this.includeDirect=!0}ngOnInit(){this.watchTotpInput()}ngOnDestroy(){Object(b.e)("dialog")}openKrakenLogin(){window.open(this.env.urls.externalSignIn,"_blank","noopener")}watchTotpInput(){this.form.get("otp").valueChanges.pipe(Object(h.a)(t=>6===t.length),Object(d.a)(100),Object(s.b)(this)).subscribe(()=>this.submitForm())}buildForm(){return this.fb.group({email:["",[r.x.required,r.x.email]],password:["",[r.x.required]],otp:[""],cred:[void 0]})}get isMobile(){return this.breakpointObserver.isMatched("(max-width: 599px)")}submitForm(){this.signin(this.form.value)}signin(t){this.store.dispatch(Object(g.a)(m.a)),this.auth.signIn(Object.assign(Object.assign({},t),{otp:t.otp||void 0})).pipe(Object(p.a)(t=>Object(c.a)(t.error.error)),Object(f.a)(e=>"token"in e?Object(l.a)(e):"mfaRequired"in e?(this.mfaPriority=e.mfaRequired,this.step$.next("mfa"),this.fidoState$.next("waiting"),"challenge"in e&&e.challenge?Object(u.a)(this.fido2.getAssertion(e.challenge)).pipe(Object(p.a)(t=>(console.error("error in authenticator verify",t),this.fidoState$.next("error"),Object(c.a)("HWAUTH_VERIFY_FAIL"))),Object(f.a)(e=>this.auth.signIn(Object.assign(Object.assign({},t),{cred:e})).pipe(Object(p.a)(t=>Object(c.a)(t.error.error))))):Object(l.a)(null)):Object(c.a)(0)),Object(h.a)(t=>null!==t||(this.store.dispatch(Object(g.n)(m.a)),!1))).subscribe(t=>{this.store.dispatch(Object(g.n)(m.a)),this.store.dispatch(Object(m.D)()),this.store.dispatch(Object(g.c)()),this.store.dispatch(Object(g.j)({message:"SNACKBAR.SIGNIN_SUCCESS"}))},t=>{console.warn({errCode:t}),this.store.dispatch(Object(g.n)(m.a)),"invalid_mfa"===t&&(this.form.get("otp").setValue(""),this.form.get("cred").setValue(void 0));const e=this.translate.instant("ERROR.SIGNIN_ERR"),n=this.translate.instant("ERROR_CODE."+t.toUpperCase());this.store.dispatch(Object(g.j)({message:`${e} - ${n}`,class:"warn"}))})}resetFido(){this.form.get("otp").setValue(""),this.form.get("cred").setValue(void 0),this.submitForm(),this.fidoState$.next("waiting")}signUp(){this.env.demo?this.store.dispatch(Object(g.g)({name:"sign-up-demo"})):window.open("https://www.kraken.com/sign-up","_blank","noopener")}closeDialog(t){this.store.dispatch(Object(g.n)(m.a)),t&&this.store.dispatch(Object(g.g)(t))}};return t.\u0275fac=function(e){return new(e||t)(w.Ob(v.a),w.Ob(O.a),w.Ob(o.b),w.Ob(r.d),w.Ob(y.a),w.Ob(C.a),w.Ob(T.e),w.Ob(S.a))},t.\u0275cmp=w.Ib({type:t,selectors:[["sign-in-form"]],inputs:{includeDirect:"includeDirect"},decls:11,vars:10,consts:[["body","",3,"formGroup","ngSubmit"],[1,"unauth__logo"],["alt","Logo",3,"src"],[3,"ngSwitch"],[4,"ngSwitchCase"],["body","","class","reset vstack gap-s",4,"ngIf"],["demoWarning",""],[4,"ngIf"],[4,"ngIf","ngIfElse"],[1,"marketing-list"],["body",""],["mat-raised-button","","type","button",3,"click"],["caption","",4,"ngIf"],["caption",""],["color","accent","appearance","fill"],["formControlName","email","required","","matInput","","type","email"],["formControlName","password","required","","matInput","","type","password"],["body","","mat-raised-button","",3,"disabled"],["class","totp-verify",4,"ngIf"],["class","hwauth-verify",4,"ngIf"],[1,"hwauth-verify"],["body","","translate",""],["color","accent"],[1,"hwauth-error"],["icon","circle-exclamationmark","size","lg"],["mat-raised-button","",1,"mat-small-button",3,"click"],[1,"totp-verify"],[3,"form"],["body","",1,"reset","vstack","gap-s"],[1,"global__text--link",3,"click"],["body","",1,"global__text--warn","demo-warning"]],template:function(t,e){1&t&&(w.Ub(0,"form",0),w.bc("ngSubmit",(function(){return e.submitForm()})),w.Ub(1,"div",1),w.Pb(2,"img",2),w.gc(3,"async"),w.Tb(),w.Sb(4,3),w.gc(5,"async"),w.Oc(6,B,4,4,"ng-container",4),w.Oc(7,Q,7,7,"ng-container",4),w.Rb(),w.Oc(8,W,7,6,"div",5),w.Tb(),w.Oc(9,G,3,3,"ng-template",null,6,w.Pc)),2&t&&(w.mc("formGroup",e.form),w.Cb(2),w.mc("src",w.hc(3,6,e.logo$),w.Gc),w.Cb(2),w.mc("ngSwitch",w.hc(5,8,e.step$)),w.Cb(2),w.mc("ngSwitchCase","password"),w.Cb(1),w.mc("ngSwitchCase","mfa"),w.Cb(1),w.mc("ngIf",e.includeDirect))},directives:[r.z,r.p,k.a,r.h,E.p,E.q,E.n,x.b,P.a,A.c,A.f,r.c,I.b,r.o,r.g,r.v,A.b,T.a,M.a,D.b,R.a],pipes:[E.b,T.d],styles:["[_nghost-%COMP%], form[_ngcontent-%COMP%]{width:100%}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;text-align:center}form[_ngcontent-%COMP%] > small[_ngcontent-%COMP%]{margin:var(--spacing) 0}.hwauth-error[_ngcontent-%COMP%], .hwauth-verify[_ngcontent-%COMP%], .hwauth-verify[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:var(--spacing)}.hwauth-error[_ngcontent-%COMP%]{display:grid;justify-content:center;align-items:center;gap:var(--spacing);grid-auto-flow:column}.hwauth-error[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{color:var(--warn-colour);transform:scale(1.5)}.hwauth-error[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .totp-verify[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:var(--spacing)}.demo-warning[_ngcontent-%COMP%]{max-width:45ch;margin:var(--spacing);line-height:1.3}.unauth[_ngcontent-%COMP%]{text-align:center;padding:var(--spacing)}.unauth__logo[_ngcontent-%COMP%]{border-bottom:2px solid var(--border-colour-dark);padding:var(--spacing-xl) 0}.unauth__logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:90%;max-width:250px}.marketing-list[_ngcontent-%COMP%], .reset[_ngcontent-%COMP%]{margin:var(--spacing-l) 0}"],changeDetection:0}),t=Object(i.d)([Object(s.a)()],t),t})()},czMQ:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("IdLP"),r=n("bwdy");function s(t,e){return new i.a(n=>{const i=new r.a;let s=0;return i.add(e.schedule((function(){s!==t.length?(n.next(t[s++]),n.closed||i.add(this.schedule())):n.complete()}))),i})}},dUuy:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>e=>{for(let n=0,i=t.length;n=Number.MAX_SAFE_INTEGER?Number.MAX_SAFE_INTEGER:t+(t<0?-.5:.5)|0},t.distance=function(t,e,n,i){var r=t-n,s=e-i;return Math.sqrt(r*r+s*s)},t.sum=function(t){for(var e=0,n=0,i=t.length;n!==i;n++)e+=t[n];return e},t}()},e7kw:function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return o}));var i=n("sXtk"),r=n("kZht");let s=(()=>{class t{constructor(t){this.env=t}transform(t){const e=escape(t.toString());return`${this.env.urls.support}/hc/en-us/articles/${e}`}}return t.\u0275fac=function(e){return new(e||t)(r.Ob(i.a))},t.\u0275pipe=r.Nb({name:"supportArticle",type:t,pure:!0}),t})(),o=(()=>{class t{constructor(t){this.env=t}transform(t){const e=escape(t.toString());return`${this.env.urls.support}/hc/en-us/categories/${e}`}}return t.\u0275fac=function(e){return new(e||t)(r.Ob(i.a))},t.\u0275pipe=r.Nb({name:"supportCategory",type:t,pure:!0}),t})()},e9V9:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("2rk/");e.default=function(){function t(){}return t.setGridSampler=function(e){t.gridSampler=e},t.getInstance=function(){return t.gridSampler},t.gridSampler=new i.default,t}()},eGwX:function(t,e,n){"use strict";n.d(e,"a",(function(){return O}));var i=n("D57K"),r=n("kZht"),s=n("3kIJ"),o=n("ZTXN"),a=n("C05f"),c=n("mWib"),l=n("kuMc"),u=n("wny4"),h=n.n(u),d=n("EmXI"),p=n("Tcl6"),f=n("hCLc"),b=n("NxuZ"),g=n("+Tmv"),m=n("An66"),v=n("aDqW");function _(t,e){1&t&&(r.Ub(0,"mat-error"),r.Qc(1),r.gc(2,"translate"),r.Tb()),2&t&&(r.Cb(1),r.Rc(r.hc(2,1,"FORM.NO_MATCH_ERROR")))}const y=t=>{const e=t.get("password"),n=t.get("confirmPassword");return e&&n?e.value===n.value?null:(n.setErrors({noMatch:!0}),{noMatch:!0}):null};let O=(()=>{class t{constructor(t){this.formBuilder=t,this.destroy$=new o.b,this.inputVisibility={password:!1,confirmPassword:!1},this.passwordStrength$=new a.a(0),this.passwordUpdate$=new r.o}ngOnInit(){this.form=this.buildForm(),this.watchPasswordStrength()}ngOnChanges(t){t.resetToggle&&this.form&&(this.form.reset(),Object.keys(this.form.controls).forEach(t=>this.form.get(t).setErrors(null)))}watchPasswordStrength(){return Object(i.a)(this,void 0,void 0,(function*(){const t=yield h.a.load({});this.form.get("password").valueChanges.pipe(Object(c.a)(100),Object(l.a)(this.destroy$)).subscribe(e=>{this.passwordStrength$.next(e?t(e).score:0)})}))}updatePassword(){this.passwordUpdate$.emit(this.form.valid?this.form.get("password").value:"")}buildForm(){return this.formBuilder.group({password:["",[s.x.required]],confirmPassword:["",[s.x.required]]},{validator:y})}}return t.\u0275fac=function(e){return new(e||t)(r.Ob(s.d))},t.\u0275cmp=r.Ib({type:t,selectors:[["input-password-confirm"]],inputs:{resetToggle:"resetToggle"},outputs:{passwordUpdate$:"passwordUpdate"},features:[r.Ab],decls:18,vars:15,consts:[[1,"input-password-confirm__form","global__text","global__text-body",3,"formGroup"],["color","accent","appearance","fill"],["formControlName","password","required","","matInput","","autocomplete","new-password",3,"type","change","input"],["mat-button","","mat-icon-button","","matSuffix","","tabindex","-1","type","button",3,"click"],["size","2x",3,"icon"],[3,"strength"],["formControlName","confirmPassword","required","","matInput","","autocomplete","new-password",3,"type","change","input"],[4,"ngIf"]],template:function(t,e){1&t&&(r.Ub(0,"form",0),r.Ub(1,"mat-form-field",1),r.Ub(2,"mat-label"),r.Qc(3),r.gc(4,"translate"),r.Tb(),r.Ub(5,"input",2),r.bc("change",(function(){return e.updatePassword()}))("input",(function(){return e.updatePassword()})),r.Tb(),r.Ub(6,"button",3),r.bc("click",(function(){return e.inputVisibility.password=!e.inputVisibility.password})),r.Pb(7,"fa-icon",4),r.Tb(),r.Tb(),r.Pb(8,"strength-meter",5),r.gc(9,"async"),r.Ub(10,"mat-form-field",1),r.Ub(11,"mat-label"),r.Qc(12),r.gc(13,"translate"),r.Tb(),r.Ub(14,"input",6),r.bc("change",(function(){return e.updatePassword()}))("input",(function(){return e.updatePassword()})),r.Tb(),r.Ub(15,"button",3),r.bc("click",(function(){return e.inputVisibility.confirmPassword=!e.inputVisibility.confirmPassword})),r.Pb(16,"fa-icon",4),r.Tb(),r.Oc(17,_,3,3,"mat-error",7),r.Tb(),r.Tb()),2&t&&(r.mc("formGroup",e.form),r.Cb(3),r.Rc(r.hc(4,9,"FORM.PASSWORD")),r.Cb(2),r.mc("type",e.inputVisibility.password?"text":"password"),r.Cb(2),r.mc("icon",e.inputVisibility.password?"privacy-on":"privacy-off"),r.Cb(1),r.mc("strength",r.hc(9,11,e.passwordStrength$)),r.Cb(4),r.Rc(r.hc(13,13,"FORM.CONFIRM_PASSWORD")),r.Cb(2),r.mc("type",e.inputVisibility.confirmPassword?"text":"password"),r.Cb(2),r.mc("icon",e.inputVisibility.confirmPassword?"privacy-on":"privacy-off"),r.Cb(1),r.mc("ngIf",e.form.hasError("noMatch")))},directives:[s.z,s.p,s.h,d.c,d.f,s.c,p.b,s.o,s.g,s.v,f.b,d.h,b.b,g.a,m.n,d.b],pipes:[v.d,m.b],styles:[".input-password-confirm__form[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%]{width:100%}.input-password-confirm__form[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{margin-top:var(--spacing);width:100%}"],changeDetection:0}),t})()},eI8f:function(t,e,n){"use strict";n.r(e),n.d(e,"DemoCredentialsComponent",(function(){return w}));var i=n("3kIJ"),r=n("zqNl"),s=n("u7r1"),o=n("94ty"),a=n("bjK4"),c=n("kZht"),l=n("rfPA"),u=n("bBQR"),h=n("afE0"),d=n("anSm"),p=n("EmXI"),f=n("Tcl6"),b=n("hCLc"),g=n("YC1o"),m=n("NxuZ"),v=n("B6Vo"),_=n("UDV5"),y=n("i9Na"),O=n("An66"),C=n("aDqW");let w=(()=>{class t{constructor(t,e){this.store=t,this.fb=e,this.email=Object(s.a)(8)+"@futures-demo.com",this.password=Object(s.a)(20),this.form=this.buildForm(),this.loading$=this.store.pipe(Object(r.m)(a.m,{filter:o.C.type}))}buildForm(){return this.fb.group({email:[this.email,[i.x.required,i.x.email]],password:[this.password,[i.x.required]],termsConditions:[!1,[i.x.requiredTrue]],privacyPolicy:[!1,[i.x.requiredTrue]]})}submitForm(){this.store.dispatch(Object(o.C)({email:this.form.get("email").value,password:this.form.get("password").value,accountType:"individual",marketing:!1,acknowledgement:!0}))}}return t.\u0275fac=function(e){return new(e||t)(c.Ob(r.b),c.Ob(i.d))},t.\u0275cmp=c.Ib({type:t,selectors:[["demo-credentials"]],decls:31,vars:25,consts:[["heading","DIALOG.DEMO_CREDENTIALS.TITLE",3,"loading"],[1,"dialog-content","vstack","hcenter","gap-l"],["icon","user-full"],["body",""],["body","",1,"vstack","hcenter",3,"formGroup","ngSubmit"],["color","accent","appearance","fill"],["matInput","","readonly","","formControlName","email"],["type","button","mat-button","","matSuffix","","mat-icon-button","",3,"clipboard"],["icon","copy","size","2x","sbTooltip","TOOLTIP.COPY_EMAIL"],["matInput","","readonly","","formControlName","password"],["icon","copy","size","2x","sbTooltip","TOOLTIP.COPY_PASSWORD"],["formControlName","termsConditions",1,"no-border"],[3,"data"],["formControlName","privacyPolicy",1,"no-border"],["body","","mat-raised-button","",1,"signup",3,"disabled"]],template:function(t,e){1&t&&(c.Ub(0,"pro-dialog",0),c.gc(1,"async"),c.Ub(2,"div",1),c.Pb(3,"dialog-badge",2),c.Ub(4,"p",3),c.Qc(5),c.gc(6,"translate"),c.Tb(),c.Ub(7,"form",4),c.bc("ngSubmit",(function(){return e.submitForm()})),c.Ub(8,"mat-form-field",5),c.Ub(9,"mat-label"),c.Qc(10),c.gc(11,"translate"),c.Tb(),c.Pb(12,"input",6),c.Ub(13,"button",7),c.Pb(14,"fa-icon",8),c.Tb(),c.Tb(),c.Ub(15,"mat-form-field",5),c.Ub(16,"mat-label"),c.Qc(17),c.gc(18,"translate"),c.Tb(),c.Pb(19,"input",9),c.Ub(20,"button",7),c.Pb(21,"fa-icon",10),c.Tb(),c.Tb(),c.Ub(22,"mat-checkbox",11),c.Pb(23,"markdown",12),c.gc(24,"translate"),c.Tb(),c.Ub(25,"mat-checkbox",13),c.Pb(26,"markdown",12),c.gc(27,"translate"),c.Tb(),c.Ub(28,"button",14),c.Qc(29),c.gc(30,"translate"),c.Tb(),c.Tb(),c.Tb(),c.Tb()),2&t&&(c.mc("loading",c.hc(1,11,e.loading$)),c.Cb(5),c.Rc(c.hc(6,13,"DIALOG.DEMO_CREDENTIALS.BODY")),c.Cb(2),c.mc("formGroup",e.form),c.Cb(3),c.Rc(c.hc(11,15,"DIALOG.DEMO_CREDENTIALS.EMAIL")),c.Cb(3),c.mc("clipboard",e.email),c.Cb(4),c.Rc(c.hc(18,17,"DIALOG.DEMO_CREDENTIALS.PASSWORD")),c.Cb(3),c.mc("clipboard",e.password),c.Cb(3),c.mc("data",c.hc(24,19,"DIALOG.DEMO_CREDENTIALS.TCS")),c.Cb(3),c.mc("data",c.hc(27,21,"DIALOG.DEMO_CREDENTIALS.PRIVACY")),c.Cb(2),c.mc("disabled",e.form.invalid),c.Cb(1),c.Sc(" ",c.hc(30,23,"BUTTON.COMPLETE_SIGNUP")," "))},directives:[l.a,u.a,h.a,d.a,i.z,i.p,i.h,p.c,p.f,f.b,i.c,i.o,i.g,b.b,p.h,g.a,m.b,v.a,_.a,y.a],pipes:[O.b,C.d],styles:[".dialog-content[_ngcontent-%COMP%]{text-align:center}markdown[_ngcontent-%COMP%] a{color:var(--link-colour)}.signup[_ngcontent-%COMP%]{margin-top:var(--spacing)}"],changeDetection:0}),t})()},eL2r:function(t,e,n){"use strict";n.r(e),n.d(e,"PositionAssignmentComponent",(function(){return E}));var i=n("3kIJ"),r=n("mcff"),s=n("1ONQ"),o=n("kZht"),a=n("zqNl"),c=n("rfPA"),l=n("bBQR"),u=n("An66"),h=n("UDV5"),d=n("EmXI"),p=n("Tcl6"),f=n("IOEv"),b=n("hCLc"),g=n("pTnX"),m=n("1etq"),v=n("scAs"),_=n("1o0v"),y=n("anSm"),O=n("aDqW"),C=n("fvDn");function w(t,e){if(1&t&&(o.Ub(0,"mat-option",14),o.Qc(1),o.gc(2,"cryptoAbbreviation"),o.Tb()),2&t){const t=e.$implicit;o.mc("value",t),o.Cb(1),o.Sc(" ",o.hc(2,2,t)," ")}}function T(t,e){if(1&t&&(o.Ub(0,"mat-form-field",7),o.Ub(1,"mat-label"),o.Qc(2),o.gc(3,"translate"),o.Tb(),o.Ub(4,"mat-select",13),o.Oc(5,w,3,4,"mat-option",11),o.Tb(),o.Tb()),2&t){const t=o.fc();o.Cb(2),o.Rc(o.hc(3,2,"FORM.CONTRACT_TYPE")),o.Cb(3),o.mc("ngForOf",t.inputs.contractTypes)}}function S(t,e){if(1&t&&(o.Ub(0,"section"),o.Ub(1,"p",15),o.Qc(2,"Contracts:"),o.Tb(),o.Ub(3,"p",16),o.Qc(4),o.Tb(),o.Tb()),2&t){const t=o.fc();o.Lc("margin-bottom","var(--spacing)"),o.Cb(4),o.Rc(t.prefLables)}}function k(t,e){if(1&t&&(o.Ub(0,"mat-option",14),o.Qc(1),o.Tb()),2&t){const t=e.$implicit;o.mc("value",t),o.Cb(1),o.Sc(" ",t," ")}}let E=(()=>{class t{constructor(t,e,n){this.inputs=t,this.store=e,this.formBuilder=n,this.timeframes=["All","Weekdays","Weekend"]}ngOnInit(){this.form=this.buildForm}get buildForm(){return this.formBuilder.group("new"===this.inputs.action&&this.inputs.contractTypes?{contractType:[this.inputs.contractTypes[0],[i.x.required]],maxSize:[0,[i.x.required]],maxPosition:[0,[i.x.required]],acceptLong:[!1,[i.x.required]],acceptShort:[!1,[i.x.required]],timeFrame:["Weekdays",[i.x.required]]}:{maxSize:[0,[i.x.required]],maxPosition:[0,[i.x.required]],acceptLong:[!1,[i.x.required]],acceptShort:[!1,[i.x.required]],timeFrame:["Weekdays",[i.x.required]]})}onSubmitForm(){var t;if("new"===this.inputs.action)this.store.dispatch(Object(s.b)(this.form.value));else if("update"===this.inputs.action&&this.inputs.prefs){const e=null===(t=this.inputs.prefs)||void 0===t?void 0:t.map(t=>Object.assign(Object.assign({},this.form.value),{contractType:"flex",contract:t.participant.contract}));this.store.dispatch(Object(s.i)({participants:e}))}}get prefLables(){var t;return null===(t=this.inputs.prefs)||void 0===t?void 0:t.map(t=>t.participant.contract).join(", ")}get quoteLabel(){return"multi-collateral"===this.inputs.family?"(USD)":"(Contracts)"}}return t.\u0275fac=function(e){return new(e||t)(o.Ob(r.a),o.Ob(a.b),o.Ob(i.d))},t.\u0275cmp=o.Ib({type:t,selectors:[["position-assignment"]],decls:30,vars:26,consts:[[1,"position-assignment",3,"heading"],[1,"position-assignment__form","global__text","global__text-body",3,"formGroup","ngSubmit"],["color","accent","appearance","fill","class","global__text global__text-body",4,"ngIf"],[3,"marginBottom",4,"ngIf"],[1,"position-assignment__checkboxes"],["formControlName","acceptLong"],["formControlName","acceptShort"],["color","accent","appearance","fill",1,"global__text","global__text-body"],["formControlName","maxSize","required","","matInput","","type","number"],["formControlName","maxPosition","required","","matInput","","type","number"],["matNativeControl","","formControlName","timeFrame"],[3,"value",4,"ngFor","ngForOf"],["mat-raised-button","",1,"global__text","global__text-body",3,"disabled"],["matNativeControl","","formControlName","contractType"],[3,"value"],["subheading","","bold","","ghost",""],["body",""]],template:function(t,e){1&t&&(o.Ub(0,"pro-dialog",0),o.Ub(1,"form",1),o.bc("ngSubmit",(function(){return e.onSubmitForm()})),o.Oc(2,T,6,4,"mat-form-field",2),o.Oc(3,S,5,3,"section",3),o.Ub(4,"section",4),o.Ub(5,"mat-checkbox",5),o.Qc(6),o.gc(7,"translate"),o.Tb(),o.Ub(8,"mat-checkbox",6),o.Qc(9),o.gc(10,"translate"),o.Tb(),o.Tb(),o.Ub(11,"mat-form-field",7),o.Ub(12,"mat-label"),o.Qc(13),o.gc(14,"translate"),o.Tb(),o.Pb(15,"input",8),o.Tb(),o.Ub(16,"mat-form-field",7),o.Ub(17,"mat-label"),o.Qc(18),o.gc(19,"translate"),o.Tb(),o.Pb(20,"input",9),o.Tb(),o.Ub(21,"mat-form-field",7),o.Ub(22,"mat-label"),o.Qc(23),o.gc(24,"translate"),o.Tb(),o.Ub(25,"mat-select",10),o.Oc(26,k,2,2,"mat-option",11),o.Tb(),o.Tb(),o.Ub(27,"button",12),o.Qc(28),o.gc(29,"translate"),o.Tb(),o.Tb(),o.Tb()),2&t&&(o.mc("heading","new"===e.inputs.action?"New Assignment Preferences":"Update Assignment Preferences"),o.Cb(1),o.mc("formGroup",e.form),o.Cb(1),o.mc("ngIf","new"===e.inputs.action),o.Cb(1),o.mc("ngIf","update"===e.inputs.action&&(null==e.inputs.prefs?null:e.inputs.prefs.length)),o.Cb(3),o.Sc(" ",o.hc(7,14,"FORM.ACCEPT_LONG")," "),o.Cb(3),o.Sc(" ",o.hc(10,16,"FORM.ACCEPT_SHORT")," "),o.Cb(4),o.Tc("",o.hc(14,18,"FORM.MAX_SIZE")," ",e.quoteLabel,""),o.Cb(5),o.Tc("",o.hc(19,20,"FORM.MAX_POSITION")," ",e.quoteLabel,""),o.Cb(5),o.Rc(o.hc(24,22,"FORM.TIMEFRAME")),o.Cb(3),o.mc("ngForOf",e.timeframes),o.Cb(1),o.mc("disabled",e.form.invalid),o.Cb(1),o.Sc(" ",o.hc(29,24,"BUTTON.SUBMIT")," "))},directives:[c.a,l.a,i.z,i.p,i.h,u.n,h.a,i.o,i.g,d.c,d.f,i.c,p.b,i.s,i.v,f.a,u.m,b.b,g.n,m.a,v.a,_.a,y.a],pipes:[O.d,C.a],styles:["form[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%]{width:100%}form[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{margin-top:var(--spacing);width:100%}.position-assignment[_ngcontent-%COMP%]{width:400px}@media (max-width:599px){.position-assignment[_ngcontent-%COMP%]{width:100%}}.position-assignment__checkboxes[_ngcontent-%COMP%]{margin-bottom:var(--spacing)}"],changeDetection:0}),t})()},"eMi/":function(t,e,n){"use strict";n.d(e,"c",(function(){return r})),n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return o})),n.d(e,"e",(function(){return a})),n.d(e,"d",(function(){return c}));var i=n("zqNl");const r=Object(i.g)("Reset Affiliate State"),s=Object(i.g)("Get Affiliate Details"),o=Object(i.g)("Create Affiliate Details"),a=Object(i.g)("Set Affiliate Details",Object(i.l)()),c=Object(i.g)("Set Affiliate Code",Object(i.l)())},"eY+9":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>t&&"number"==typeof t.length&&"function"!=typeof t},ebJJ:function(t,e,n){"use strict";n.d(e,"a",(function(){return At}));var i=n("D57K"),r=n("kZht"),s=n("3kIJ"),o=n("zqNl"),a=n("+Px6"),c=n("rxqU"),l=n("qAYy"),u=n("J/3c"),h=n("KyJX"),d=n("YyhG"),p=n("l5Az"),f=n("YtkY"),b=n("3mST"),g=n("w0kG"),m=n("xVbo"),v=n("TLy2"),_=n("jOdJ"),y=n("gxtV"),O=n("lx5p"),C=n("i67J"),w=n("HM3f"),T=n("C05f"),S=n("8lHc"),k=n("1u95"),E=n("h3eB"),x=n("uJYd"),P=n("VmIW"),A=n("KQpv"),I=n.n(A),M=n("NloN"),D=n("ylpo"),R=n("QdGC"),j=n("CW1w"),L=n("bjK4"),N=n("1VvW"),U=n("An66"),F=n("anSm"),B=n("TMzY"),z=n("EmXI"),V=n("B6Vo"),$=n("Cc4E"),H=n("zho4"),q=n("Tcl6"),Q=n("aaFr"),W=n("ROO/"),G=n("aDqW"),Y=n("UDV5"),K=n("IkSM"),Z=n("bW1a"),X=n("hCLc"),J=n("NxuZ"),tt=n("tOKo"),et=n("8spT"),nt=n("icqo"),it=n("za3o"),rt=n("LbKT"),st=n("FUqb");const ot=function(){return[500,100]};function at(t,e){if(1&t){const t=r.Vb();r.Ub(0,"mat-form-field",32),r.Ub(1,"mat-label"),r.Qc(2),r.gc(3,"translate"),r.Tb(),r.Ub(4,"input",33),r.bc("input",(function(){return r.Ec(t),r.fc(3).setUSDAmount()})),r.Tb(),r.Ub(5,"span",9),r.Qc(6),r.Tb(),r.Tb()}if(2&t){const t=r.fc(2).ngIf,e=r.fc();r.mc("sbDisabled",!t.displayTooltips)("sbDelay",r.qc(7,ot)),r.Cb(2),r.Sc("",r.hc(3,5,"FORM.LIMIT_PRICE"),":"),r.Cb(2),r.mc("step",e.tickSize(t.selectedMarket)),r.Cb(2),r.Rc(t.quoteCurrency)}}function ct(t,e){if(1&t&&(r.Ub(0,"span",9),r.Qc(1),r.Tb()),2&t){const t=r.fc(3).ngIf;r.Cb(1),r.Sc(" ",t.quoteCurrency," ")}}function lt(t,e){if(1&t){const t=r.Vb();r.Ub(0,"mat-form-field",6),r.Ub(1,"mat-label"),r.Qc(2),r.gc(3,"translate"),r.Tb(),r.Ub(4,"input",34,8),r.bc("focus",(function(){return r.Ec(t),r.fc(3).onSizeFocus()}))("input",(function(){r.Ec(t);const e=r.fc(2).ngIf;return r.fc().setAmount(e.selectedMarket)})),r.Tb(),r.Oc(6,ct,2,1,"span",35),r.Tb()}if(2&t){const t=r.fc(2).ngIf;r.mc("sbDisabled",!t.displayTooltips)("sbDelay",r.qc(7,ot)),r.Cb(2),r.Sc("\u2248 ",r.hc(3,5,"Notional"),":"),r.Cb(2),r.mc("step",1),r.Cb(2),r.mc("ngIf",t.isFlexMarket)}}function ut(t,e){if(1&t){const t=r.Vb();r.Sb(0),r.Ub(1,"div",38),r.Ub(2,"button",39),r.bc("click",(function(){r.Ec(t);const e=r.fc(3).ngIf;return r.fc().setBalancePercentage(.25,e.selectedMarket,e.selectedMarketPosition)})),r.Qc(3," 25% "),r.Tb(),r.Ub(4,"button",39),r.bc("click",(function(){r.Ec(t);const e=r.fc(3).ngIf;return r.fc().setBalancePercentage(.5,e.selectedMarket,e.selectedMarketPosition)})),r.Qc(5," 50% "),r.Tb(),r.Ub(6,"button",39),r.bc("click",(function(){r.Ec(t);const e=r.fc(3).ngIf;return r.fc().setBalancePercentage(.75,e.selectedMarket,e.selectedMarketPosition)})),r.Qc(7," 75% "),r.Tb(),r.Ub(8,"button",39),r.bc("click",(function(){r.Ec(t);const e=r.fc(3).ngIf;return r.fc().setBalancePercentage(.98,e.selectedMarket,e.selectedMarketPosition)})),r.Qc(9," 100% "),r.Tb(),r.Tb(),r.Rb()}}function ht(t,e){if(1&t){const t=r.Vb();r.Ub(0,"button",40),r.bc("click",(function(){return r.Ec(t),r.fc(4).viewWallets()})),r.Pb(1,"fa-icon",41),r.Qc(2),r.gc(3,"translate"),r.Tb()}2&t&&(r.Lc("margin-bottom","var(--spacing)"),r.Cb(2),r.Sc(" ",r.hc(3,3,"Transfer Funds")," "))}function dt(t,e){if(1&t&&(r.Sb(0),r.Oc(1,ut,10,0,"ng-container",36),r.Oc(2,ht,4,5,"ng-template",null,37,r.Pc),r.Rb()),2&t){const t=r.Ac(3),e=r.fc(2).ngIf;r.Cb(1),r.mc("ngIf",null==e.wallet?null:e.wallet.am)("ngIfElse",t)}}const pt=function(){return[250,100]};function ft(t,e){if(1&t&&(r.Ub(0,"mat-checkbox",42),r.Ub(1,"span",43),r.Qc(2),r.gc(3,"translate"),r.Tb(),r.Tb()),2&t){const t=r.fc(2).ngIf;r.Cb(1),r.mc("sbDisabled",!t.displayTooltips)("sbDelay",r.qc(5,pt)),r.Cb(1),r.Sc(" ",r.hc(3,3,"BUTTON.MAKER_ONLY")," ")}}function bt(t,e){1&t&&(r.Sb(0),r.Pb(1,"leverage-limiter"),r.Rb())}function gt(t,e){1&t&&(r.Ub(0,"section",44),r.Ub(1,"mat-radio-group",45),r.Ub(2,"mat-radio-button",46),r.Qc(3),r.gc(4,"translate"),r.Tb(),r.Ub(5,"mat-radio-button",47),r.Qc(6),r.gc(7,"translate"),r.Tb(),r.Tb(),r.Tb()),2&t&&(r.Cb(3),r.Sc(" ",r.hc(4,2,"BUTTON.IOC")," "),r.Cb(3),r.Sc(" ",r.hc(7,4,"BUTTON.GOOD_TILL_CANCEL")," "))}function mt(t,e){if(1&t&&(r.Ub(0,"div",48),r.Ub(1,"p",49),r.Qc(2),r.Pb(3,"fa-icon",50),r.Tb(),r.Tb()),2&t){r.fc();const t=r.Ac(15),e=r.fc(2);r.mc("sbMenuTriggerFor",t),r.Cb(2),r.Sc(" ",e.triggerSignal," ")}}function vt(t,e){if(1&t&&(r.Ub(0,"mat-form-field",51),r.Ub(1,"mat-label"),r.Qc(2),r.gc(3,"translate"),r.Tb(),r.Pb(4,"input",52),r.Ub(5,"span",9),r.Qc(6),r.Tb(),r.Tb()),2&t){const t=r.fc(2).ngIf;r.Cb(2),r.Sc("",r.hc(3,2,"SL Price"),":"),r.Cb(4),r.Rc(t.quoteCurrency)}}function _t(t,e){if(1&t&&(r.Ub(0,"mat-form-field",51),r.Ub(1,"mat-label"),r.Qc(2),r.gc(3,"translate"),r.Tb(),r.Pb(4,"input",53),r.Ub(5,"span",9),r.Qc(6),r.Tb(),r.Tb()),2&t){const t=r.fc(2).ngIf;r.Cb(2),r.Sc("",r.hc(3,2,"TP Price"),":"),r.Cb(4),r.Rc(t.quoteCurrency)}}function yt(t,e){if(1&t&&(r.Ub(0,"p",56),r.Ub(1,"span"),r.Qc(2," Stop PnL: "),r.Tb(),r.Ub(3,"span",57),r.Qc(4),r.gc(5,"change"),r.gc(6,"number"),r.Tb(),r.Tb()),2&t){const t=r.fc(3).ngIf,e=r.fc();r.Cb(3),r.mc("pnl",e.stopLoss.some()),r.Cb(1),r.Tc(" ",r.hc(5,3,r.ic(6,5,e.stopLoss.some(),"1.2-2"))," ",t.quoteCurrency," ")}}function Ot(t,e){if(1&t&&(r.Ub(0,"p",56),r.Ub(1,"span"),r.Qc(2," Exit PnL: "),r.Tb(),r.Ub(3,"span",57),r.Qc(4),r.gc(5,"change"),r.gc(6,"number"),r.Tb(),r.Tb()),2&t){const t=r.fc(3).ngIf,e=r.fc();r.Cb(3),r.mc("pnl",e.exitProfit.some()),r.Cb(1),r.Tc(" ",r.hc(5,3,r.ic(6,5,e.exitProfit.some(),"1.2-2"))," ",t.quoteCurrency," ")}}function Ct(t,e){if(1&t&&(r.Ub(0,"section",54),r.Oc(1,yt,7,8,"p",55),r.Oc(2,Ot,7,8,"p",55),r.Tb()),2&t){const t=r.fc(3);r.Cb(1),r.mc("ngIf",t.stopLoss.isSome()&&t.slEnabled),r.Cb(1),r.mc("ngIf",t.exitProfit.isSome()&&t.tpEnabled)}}function wt(t,e){1&t&&(r.Ub(0,"section",58),r.Pb(1,"fa-icon",59),r.Ub(2,"p",56),r.Qc(3,"This market is currently in post-only mode."),r.Tb(),r.Tb())}const Tt=function(){return{horizontal:675,vertical:600}},St=function(t){return{side:t}};function kt(t,e){if(1&t){const t=r.Vb();r.Ub(0,"form",2),r.Ub(1,"section",3),r.Oc(2,at,7,8,"mat-form-field",4),r.Ub(3,"section",5),r.Ub(4,"mat-form-field",6),r.Ub(5,"mat-label"),r.Qc(6),r.gc(7,"translate"),r.Tb(),r.Ub(8,"input",7,8),r.bc("focus",(function(){return r.Ec(t),r.fc(2).onSizeFocus()}))("input",(function(){return r.Ec(t),r.fc(2).setUSDAmount()})),r.Tb(),r.Ub(10,"span",9),r.Qc(11),r.Tb(),r.Tb(),r.Oc(12,lt,7,8,"mat-form-field",10),r.Tb(),r.Oc(13,dt,4,2,"ng-container",0),r.Ub(14,"sb-menu",null,11),r.Ub(16,"button",12),r.bc("click",(function(){return r.Ec(t),r.fc(2).setTriggerSignal("mark")})),r.Ub(17,"span",13),r.Qc(18,"BUTTON.MARK"),r.Tb(),r.Tb(),r.Ub(19,"button",12),r.bc("click",(function(){return r.Ec(t),r.fc(2).setTriggerSignal("last")})),r.Ub(20,"span",13),r.Qc(21,"BUTTON.LAST"),r.Tb(),r.Tb(),r.Ub(22,"button",12),r.bc("click",(function(){return r.Ec(t),r.fc(2).setTriggerSignal("spot")})),r.Ub(23,"span",13),r.Qc(24,"BUTTON.INDEX"),r.Tb(),r.Tb(),r.Tb(),r.Ub(25,"section",14),r.Ub(26,"section",15),r.Oc(27,ft,4,6,"mat-checkbox",16),r.Ub(28,"mat-checkbox",17),r.Ub(29,"span",18),r.Qc(30),r.gc(31,"translate"),r.Tb(),r.Tb(),r.Tb(),r.Oc(32,bt,2,0,"ng-container",0),r.Oc(33,gt,8,6,"section",19),r.Ub(34,"section",20),r.Ub(35,"div",21),r.Ub(36,"mat-checkbox",22),r.Qc(37),r.gc(38,"translate"),r.Tb(),r.Ub(39,"mat-checkbox",23),r.Qc(40),r.gc(41,"translate"),r.Tb(),r.Tb(),r.Oc(42,mt,4,2,"div",24),r.Tb(),r.Ub(43,"section",5),r.Oc(44,vt,7,4,"mat-form-field",25),r.Oc(45,_t,7,4,"mat-form-field",25),r.Tb(),r.Oc(46,Ct,3,2,"section",26),r.Tb(),r.Tb(),r.Pb(47,"order-form-details",27),r.Ub(48,"section",28),r.Oc(49,wt,4,0,"section",29),r.Ub(50,"section",30),r.Ub(51,"button",31),r.bc("click",(function(){r.Ec(t);const e=r.fc().ngIf;return r.fc().submitOrder(e.selectedMarket,e.initialMargin,e.wallet)})),r.Qc(52),r.gc(53,"titlecase"),r.gc(54,"translate"),r.Tb(),r.Tb(),r.Tb(),r.Tb()}if(2&t){const t=r.fc().ngIf,e=r.fc();r.mc("formGroup",e.form)("breakpoints",r.qc(46,Tt)),r.Cb(2),r.mc("ngIf","limit"===e.basicOrderType),r.Cb(2),r.mc("sbDisabled",!t.displayTooltips)("sbDelay",r.qc(47,ot)),r.Cb(2),r.Sc("",r.hc(7,33,"FORM.QUANTITY"),":"),r.Cb(2),r.mc("step",e.stepSize(t.selectedMarket)),r.Cb(3),r.Sc(" ",t.sizeUnit," "),r.Cb(1),r.mc("ngIf",t.isFlexMarket),r.Cb(1),r.mc("ngIf",t.isFlexMarket),r.Cb(14),r.mc("ngIf","limit"===e.basicOrderType),r.Cb(2),r.mc("sbDisabled",!t.displayTooltips)("sbDelay",r.qc(48,pt)),r.Cb(1),r.Sc(" ",r.hc(31,35,"BUTTON.REDUCE_ONLY")," "),r.Cb(2),r.mc("ngIf",!t.isFlexMarket),r.Cb(1),r.mc("ngIf","limit"===e.basicOrderType),r.Cb(4),r.Sc(" ",r.hc(38,37,"LABEL.STOP_LOSS")," "),r.Cb(3),r.Sc(" ",r.hc(41,39,"LABEL.TAKE_PROFIT")," "),r.Cb(2),r.mc("ngIf",e.slEnabled||e.tpEnabled),r.Cb(2),r.mc("ngIf",e.slEnabled),r.Cb(1),r.mc("ngIf",e.tpEnabled),r.Cb(1),r.mc("ngIf",t.isFlexMarket),r.Cb(1),r.mc("side",e.side)("selectedMarket",t.selectedMarket)("selectedTicker",t.selectedTicker)("initialMargin",e.hasPriceAndSize?t.initialMargin:0)("wallet",t.wallet)("isTrigger",!1)("form",e.form)("imOverBalance",t.imOverBalance),r.Cb(2),r.mc("ngIf",t.selectedMarket.postOnly),r.Cb(2),r.mc("disabled",e.form.invalid||0===t.wallet.am||t.loading||t.imOverBalance),r.Cb(1),r.Sc(" ",r.hc(53,41,r.ic(54,43,"LABEL.PLACE_ORDER",r.rc(49,St,e.side)))," ")}}function Et(t,e){if(1&t&&(r.Sb(0),r.Oc(1,kt,55,51,"form",1),r.Rb()),2&t){const t=r.fc();r.Cb(1),r.mc("ngIf",t.form)}}const xt=function(t,e,n,i,r,s,o,a,c,l,u,h,d,p,f,b){return{selectedMarket:t,selectedTicker:e,displayTooltips:n,baseCurrency:i,quoteCurrency:r,wallet:s,initialMargin:o,isFlexMarket:a,userData:c,sizeFormatter:l,maxOrderSize:u,position:h,loading:d,imOverBalance:p,sizeUnit:f,selectedMarketPosition:b}},Pt=I()("trace:app:basic-order-form");let At=(()=>{let t=class{constructor(t,e,n,i,s){this.formBuilder=t,this.store=e,this.trade=n,this.el=i,this.router=s,this.selectedMarket$=this.store.pipe(Object(o.m)(a.n)),this.selectedTicker$=this.store.pipe(Object(o.m)(l.p)),this.displayTooltips$=this.store.pipe(Object(o.m)(c.y)),this.baseCurrency$=this.store.pipe(Object(o.m)(a.s)),this.quoteCurrency$=this.store.pipe(Object(o.m)(a.u)),this.userSelectedFuturesWallet$=this.store.pipe(Object(o.m)(u.n)),this.initialMargin$=this.store.pipe(Object(o.m)(h.d)),this.userSignedIn$=this.store.pipe(Object(o.m)(c.m)),this.isFlexMarket$=this.store.pipe(Object(o.m)(a.a)),this.userData$=this.store.pipe(Object(o.m)(c.a)),this.sizeFormatter$=this.store.pipe(Object(o.m)(d.m)),this.selectedMarketPosition$=this.store.pipe(Object(o.m)(d.g)),this.loading$=this.store.pipe(Object(o.m)(L.m,{filter:[E.o.type,E.n.type]})),this.imOverBalance$=Object(w.a)([this.initialMargin$,this.userSelectedFuturesWallet$]).pipe(Object(f.a)(([t,e])=>e&&t[this.side]>e.am&&t[this.side]>0)),this.isSliding=!1,this.maxOrderSize$=new T.a(null),this.sizeUnit$=this.store.pipe(Object(o.m)(d.n)),this.refreshOptions=new r.o,this.blurFieldEsc=t=>Object(R.a)(t)}ngOnInit(){this.buildForm(),this.getInitialMargin(),this.getMaxOrderSize(),this.selectedMarket$.pipe(Object(b.a)(1),Object(y.b)(this)).subscribe(t=>{var e,n,i,r;null===(e=this.form.get("size"))||void 0===e||e.setValue(0),null===(n=this.form.get("usdSize"))||void 0===n||n.setValue(0),null===(i=this.form.get("slEnabled"))||void 0===i||i.setValue(!1),null===(r=this.form.get("tpEnabled"))||void 0===r||r.setValue(!1)}),this.trade.orderFormPriceUpdated$.pipe(Object(g.a)(this.selectedMarket$),Object(m.a)(([t,e])=>!!t&&!!e),Object(y.b)(this)).subscribe(([t,e])=>{var n;const i=Object(O.I)(e.tickSize)(t);null===(n=this.form.get("limitPrice"))||void 0===n||n.setValue(i)}),this.trade.orderFormQuantityUpdated$.pipe(Object(C.g)(),Object(y.b)(this)).subscribe(t=>{var e;null===(e=this.form.get("size"))||void 0===e||e.setValue(t),this.setUSDAmount()}),this.selectedMarketPosition$.pipe(Object(y.b)(this)).subscribe(t=>{var e;t||null===(e=this.form.get("reduceOnly"))||void 0===e||e.setValue(!1)})}ngOnChanges(t){var e,n,i,r,s,o;if(null===(e=t.basicOrderType)||void 0===e?void 0:e.currentValue){const t=null===(i=null===(n=this.form)||void 0===n?void 0:n.get("size"))||void 0===i?void 0:i.value;this.buildForm(t),setTimeout(()=>{this.setUSDAmount()},1500)}(null===(r=t.side)||void 0===r?void 0:r.currentValue)&&(null===(s=this.form.get("slPrice"))||void 0===s||s.updateValueAndValidity(),null===(o=this.form.get("tpPrice"))||void 0===o||o.updateValueAndValidity())}ngAfterViewInit(){this.setupLocalKeybinds()}ngOnDestroy(){var t;this.clearInitialMargin(),null===(t=this.locallyFocussedKeybinds)||void 0===t||t.reset(),this.locallyFocussedKeybinds=void 0}stopPriceValidatorFn(){return t=>this.selectedTicker$.pipe(Object(C.h)(),Object(f.a)(e=>{var n;const i="buy"===this.side?null==e?void 0:e.bid:null==e?void 0:e.ask,r="limit"===this.basicOrderType?null===(n=this.form.get("limitPrice"))||void 0===n?void 0:n.value:i;return"buy"===this.side?t.valuer&&t.value>=i?null:{stopInvalidWithEntry:!0}}))}exitPriceValidatorFn(){return t=>this.selectedTicker$.pipe(Object(C.h)(),Object(f.a)(e=>{var n;const i="buy"===this.side?null==e?void 0:e.bid:null==e?void 0:e.ask,r="limit"===this.basicOrderType?null===(n=this.form.get("limitPrice"))||void 0===n?void 0:n.value:i;return"buy"===this.side?t.value>r&&t.value>=i?null:{stopInvalidWithEntry:!0}:t.value{if(t){const t=new s.e(this.form.value.limitPrice||"",[s.x.required,s.x.min(1e-9)],this.stopPriceValidatorFn()),e=new s.e("mark",[s.x.required]);this.form.addControl("slPrice",t),this.form.value.triggerSignal||this.form.addControl("triggerSignal",e)}else this.form.removeControl("slPrice")}),null===(r=this.form.get("tpEnabled"))||void 0===r||r.valueChanges.subscribe(t=>{if(t){const t=new s.e(this.form.value.limitPrice||"",[s.x.required,s.x.min(1e-9)],this.exitPriceValidatorFn()),e=new s.e("mark",[s.x.required]);this.form.addControl("tpPrice",t),this.form.value.triggerSignal||this.form.addControl("triggerSignal",e)}else this.form.removeControl("tpPrice")}),this.selectedMarket$.pipe(Object(C.h)(),Object(g.a)(this.selectedTicker$)).subscribe(([t,e])=>{var n;const i=("buy"===this.side?null==e?void 0:e.bid:null==e?void 0:e.ask)||0,r=Object(O.I)(t.tickSize)(i);null===(n=this.form.get("limitPrice"))||void 0===n||n.setValue(r),this.setUSDAmount()})}get hasPriceAndSize(){return this.form.get("limitPrice")?this.form.value.limitPrice&&this.form.value.size:!!this.form.value.size}getInitialMargin(){this.clearInitialMargin(),Object(S.a)(100,1e3).pipe(Object(g.a)(this.userSignedIn$),Object(g.a)(this.selectedMarket$),Object(m.a)(([[,t],e])=>t),Object(m.a)(()=>this.form&&this.form.get("size").value>0&&(!this.form.get("limitPrice")||this.form.get("limitPrice").value>0)),Object(m.a)(([[,t],e])=>!!e&&!e.symbol.startsWith("S")),Object(y.b)(this)).subscribe(([[,t],e])=>{const n=e.contractValueTradePrecision,i=Object.assign(Object.assign({},this.form.value),{symbol:e.symbol.toUpperCase(),orderType:this.basicOrderType,size:Object(O.H)(n)(this.form.value.size)});this.store.dispatch(Object(k.b)({order:i,editMargin:!1}))})}getMaxOrderSize(){Object(S.a)(100,1e3).pipe(Object(g.a)(this.userSignedIn$),Object(g.a)(this.selectedMarket$),Object(m.a)(([[,t]])=>t),Object(m.a)(()=>!this.form.get("limitPrice")||this.form.get("limitPrice").value>0),Object(m.a)(([,t])=>!!t&&!t.symbol.startsWith("S")),Object(y.b)(this),Object(v.a)(([,t])=>this.trade.calculateMaxOrderSize({symbol:t.symbol.toUpperCase(),orderType:this.basicOrderType,limitPrice:this.form.value.limitPrice}))).subscribe(t=>{this.maxOrderSize$.next(t)})}submitOrder(t,e,n){var i,r,s,o;const a=null===(i=this.form.get("limitPrice"))||void 0===i?void 0:i.value,c=null===(r=this.form.get("makerOnly"))||void 0===r?void 0:r.value,l=null===(s=this.form.get("tpEnabled"))||void 0===s?void 0:s.value,u=null===(o=this.form.get("slEnabled"))||void 0===o?void 0:o.value,h=e[this.side],d={side:this.side,symbol:t.symbol.toUpperCase(),orderType:this.basicOrderType,size:this.form.value.size,quantityType:this.form.value.reference,limitPrice:a,reduceOnly:this.form.value.reduceOnly,margin:this.form.value.margin,triggerSignal:this.form.value.triggerSignal},p=l?{side:"buy"===this.side?"sell":"buy",symbol:t.symbol.toUpperCase(),orderType:"take_profit",size:this.form.value.size,stopPrice:this.form.value.tpPrice,reduceOnly:!0,triggerSignal:this.form.value.triggerSignal}:void 0,f=u?{side:"buy"===this.side?"sell":"buy",symbol:t.symbol.toUpperCase(),orderType:"stop",size:this.form.value.size,stopPrice:this.form.value.slPrice,reduceOnly:!0,triggerSignal:this.form.value.triggerSignal}:void 0;c?d.orderType="post":this.form.get("orderTypeOverride")&&(d.orderType=this.form.get("orderTypeOverride").value),this.store.dispatch("flexible_futures"!==t.type&&h>n.am&&h>0?Object(x.j)({message:"SNACKBAR.ORDER_EXCEED_MAX_LVG",class:"warn"}):p||f?Object(E.n)({mainOrder:d,stopLoss:f,takeProfit:p}):Object(E.o)(d))}clearInitialMargin(){this.store.dispatch(Object(k.e)({buy:0,sell:0}))}setupLocalKeybinds(){this.locallyFocussedKeybinds=new Mousetrap(this.el.nativeElement),this.locallyFocussedKeybinds.bind("shift+r",()=>{const t=this.form.get("reduceOnly");null==t||t.setValue(!t.value)}),this.locallyFocussedKeybinds.bind("shift+a",()=>{const t=this.form.get("makerOnly");null==t||t.setValue(!t.value)})}watchFormOptions(){this.form.valueChanges.subscribe(t=>{const e=Object.assign({},this.options);P.Maybe.fromNull(t.makerOnly).forEach(t=>e.makerOnly=t),P.Maybe.fromNull(t.reduceOnly).forEach(t=>e.reduceOnly=t),P.Maybe.fromNull(t.orderTypeOverride).forEach(t=>e.orderTypeOverride=t),Pt("saving form options",e),Object(M.c)(D.j,e),this.refreshOptions.emit()})}setTriggerSignal(t){var e;null===(e=this.form.get("triggerSignal"))||void 0===e||e.setValue(t)}onSizeFocus(){const t=this.form.get("size");0===t.value&&t.setValue("")}setUSDAmount(){var t,e,n;const i=null===(t=this.form.get("size"))||void 0===t?void 0:t.value,r=this.maxOrderSize$.getValue(),s="buy"===this.side?null==r?void 0:r.buyPrice:null==r?void 0:r.sellPrice,o="limit"===this.basicOrderType?null===(e=this.form.get("limitPrice"))||void 0===e?void 0:e.value:s,a="limit"===this.basicOrderType?o:s;null===(n=this.form.get("usdSize"))||void 0===n||n.setValue(Object(O.I)(.01)(i*a))}setAmount(t){var e,n,i;const r=null===(e=this.form.get("usdSize"))||void 0===e?void 0:e.value,s=this.maxOrderSize$.getValue(),o="buy"===this.side?null==s?void 0:s.buyPrice:null==s?void 0:s.sellPrice,a=(null===(n=this.form.get("limitPrice"))||void 0===n?void 0:n.value)||o,c="limit"===this.basicOrderType?a:o;null===(i=this.form.get("size"))||void 0===i||i.setValue(Object(O.H)(t.contractValueTradePrecision)(r/c))}changeSize(t,e){var n;const i=this.maxOrderSize$.getValue();if(i){const r=("buy"===this.side?i.maxBuySize:i.maxSellSize)/100*t;null===(n=this.form.get("size"))||void 0===n||n.setValue(Object(O.H)(e.contractValueTradePrecision)(r)),this.setUSDAmount()}}setSliding(t){this.isSliding=t}closePosition(){this.selectedMarketPosition$.pipe(Object(_.a)(),Object(g.a)(this.selectedMarket$)).subscribe(([t,e])=>{var n,i;const r=Math.abs((null==t?void 0:t.balance)||0),s=e.contractValueTradePrecision;null===(n=this.form.get("size"))||void 0===n||n.setValue(Object(O.H)(s)(r)),null===(i=this.form.get("reduceOnly"))||void 0===i||i.setValue(!0),this.setUSDAmount()})}setBalancePercentage(t,e,n){var i;const r=this.maxOrderSize$.value,s="buy"===this.side?null==r?void 0:r.maxBuySize:null==r?void 0:r.maxSellSize,o=n&&(n.balance>0&&"sell"===this.side||n.balance<0&&"buy"===this.side),a=o?Math.abs(n.balance):s;if(a){const n=a*(.98===t&&o?1:t);null===(i=this.form.get("size"))||void 0===i||i.setValue(Object(O.H)(e.contractValueTradePrecision)(n)),this.setUSDAmount()}}tickSize(t){return"flexible_futures"===t.type?1/Math.pow(10,t.contractValueTradePrecision):t?t.tickSize:1}stepSize(t){return t?1/Math.pow(10,t.contractValueTradePrecision):1}hasClosablePosition(t){return t.balance>0&&"sell"===this.side||t.balance<0&&"buy"===this.side}viewWallets(){this.router.navigate(["wallets"])}get slEnabled(){var t;return null===(t=this.form.get("slEnabled"))||void 0===t?void 0:t.value}get tpEnabled(){var t;return null===(t=this.form.get("tpEnabled"))||void 0===t?void 0:t.value}get triggerSignal(){var t;return null===(t=this.form.get("triggerSignal"))||void 0===t?void 0:t.value}get stopLoss(){var t,e,n;const i=null===(t=this.form.get("slPrice"))||void 0===t?void 0:t.value,r=null===(e=this.form.get("limitPrice"))||void 0===e?void 0:e.value,s=null===(n=this.form.get("size"))||void 0===n?void 0:n.value,o=this.maxOrderSize$.value,a="limit"===this.basicOrderType?r:"buy"===this.side?null==o?void 0:o.buyPrice:null==o?void 0:o.sellPrice,c="buy"===this.side?"long":"short";return i?Object(P.Some)(Object(j.f)({entry:a,exit:i,isInverse:!1,quantity:s,side:c})):Object(P.None)()}get exitProfit(){var t,e,n;const i=null===(t=this.form.get("tpPrice"))||void 0===t?void 0:t.value,r=null===(e=this.form.get("limitPrice"))||void 0===e?void 0:e.value,s=null===(n=this.form.get("size"))||void 0===n?void 0:n.value,o=this.maxOrderSize$.value,a="limit"===this.basicOrderType?r:"buy"===this.side?null==o?void 0:o.buyPrice:null==o?void 0:o.sellPrice,c="buy"===this.side?"long":"short";return i?Object(P.Some)(Object(j.f)({entry:a,exit:i,isInverse:!1,quantity:s,side:c})):Object(P.None)()}};return t.\u0275fac=function(e){return new(e||t)(r.Ob(s.d),r.Ob(o.b),r.Ob(p.a),r.Ob(r.l),r.Ob(N.d))},t.\u0275cmp=r.Ib({type:t,selectors:[["basic-order-form"]],hostBindings:function(t,e){1&t&&r.bc("keydown",(function(t){return e.blurFieldEsc(t)}))},inputs:{side:"side",options:"options",indexPrice:"indexPrice",basicOrderType:"basicOrderType"},outputs:{refreshOptions:"refreshOptions"},features:[r.Ab],decls:17,vars:50,consts:[[4,"ngIf"],["class","basic-order","body","","orientation","",3,"formGroup","breakpoints",4,"ngIf"],["body","","orientation","",1,"basic-order",3,"formGroup","breakpoints"],[1,"inputs"],["color","accent","appearance","fill","sbTooltip","TOOLTIP.LIMIT_PRICE",3,"sbDisabled","sbDelay",4,"ngIf"],[1,"input-row"],["color","accent","appearance","fill","sbTooltip","TOOLTIP.QUANTITY",3,"sbDisabled","sbDelay"],["autocomplete","off","type","number","pattern","\\d*.?\\d*","formControlName","size","matInput","","min","0",3,"step","focus","input"],["quantityField",""],["matSuffix",""],["color","accent","appearance","fill","sbTooltip","TOOLTIP.QUANTITY",3,"sbDisabled","sbDelay",4,"ngIf"],["triggerSignalMenu","sbMenu"],["sb-menu-item","","type","button",3,"click"],["translate",""],[1,"options"],[1,"maker-reduce"],["formControlName","makerOnly",4,"ngIf"],["formControlName","reduceOnly"],["tooltip","","sbTooltip","TOOLTIP.REDUCE_ONLY",3,"sbDisabled","sbDelay"],["class","radio-options radio-options--inline",4,"ngIf"],[1,"trigger"],[1,"trigger-checkboxes"],["formControlName","slEnabled",1,"no-border"],["formControlName","tpEnabled",1,"no-border"],["class","trigger-menu",3,"sbMenuTriggerFor",4,"ngIf"],["color","accent","appearance","fill",4,"ngIf"],["class","trigger-details",4,"ngIf"],[3,"side","selectedMarket","selectedTicker","initialMargin","wallet","isTrigger","form","imOverBalance"],[1,"footer"],["class","post-only-notice",4,"ngIf"],["theme","dark",1,"submit"],["mat-raised-button","","body","",3,"disabled","click"],["color","accent","appearance","fill","sbTooltip","TOOLTIP.LIMIT_PRICE",3,"sbDisabled","sbDelay"],["autocomplete","off","type","number","pattern","^\\d*\\.?\\d*$","formControlName","limitPrice","matInput","",3,"step","input"],["autocomplete","off","type","number","pattern","\\d*.?\\d*","formControlName","usdSize","matInput","","min","0",3,"step","focus","input"],["matSuffix","",4,"ngIf"],[4,"ngIf","ngIfElse"],["noFlexFunds",""],[1,"balance-btns"],["matSuffix","","mat-raised-button","","body","","type","button",1,"balance-btn","mat-small-button",3,"click"],["type","button","body","","mat-raised-button","",1,"mat-small-button",3,"click"],["icon","wallet"],["formControlName","makerOnly"],["tooltip","","sbTooltip","TOOLTIP.MAKER_ONLY",3,"sbDisabled","sbDelay"],[1,"radio-options","radio-options--inline"],["formControlName","orderTypeOverride"],["value","ioc"],["value","limit"],[1,"trigger-menu",3,"sbMenuTriggerFor"],["body","","capitalize",""],["icon","chevron-down","size","lg"],["color","accent","appearance","fill"],["autocomplete","off","type","number","pattern","^\\d*\\.?\\d*$","formControlName","slPrice","matInput","","placeholder","0"],["autocomplete","off","type","number","pattern","^\\d*\\.?\\d*$","formControlName","tpPrice","matInput","","placeholder","0"],[1,"trigger-details"],["body","",4,"ngIf"],["body",""],["pnlZero","",3,"pnl"],[1,"post-only-notice"],["icon","info","size","lg"]],template:function(t,e){1&t&&(r.Oc(0,Et,2,1,"ng-container",0),r.gc(1,"async"),r.gc(2,"async"),r.gc(3,"async"),r.gc(4,"async"),r.gc(5,"async"),r.gc(6,"async"),r.gc(7,"async"),r.gc(8,"async"),r.gc(9,"async"),r.gc(10,"async"),r.gc(11,"async"),r.gc(12,"async"),r.gc(13,"async"),r.gc(14,"async"),r.gc(15,"async"),r.gc(16,"async")),2&t&&r.mc("ngIf",r.yc(33,xt,[r.hc(1,1,e.selectedMarket$),r.hc(2,3,e.selectedTicker$),r.hc(3,5,e.displayTooltips$),r.hc(4,7,e.baseCurrency$),r.hc(5,9,e.quoteCurrency$),r.hc(6,11,e.userSelectedFuturesWallet$),r.hc(7,13,e.initialMargin$),r.hc(8,15,e.isFlexMarket$),r.hc(9,17,e.userData$),r.hc(10,19,e.sizeFormatter$),r.hc(11,21,e.maxOrderSize$),r.hc(12,23,e.selectedMarketPosition$),r.hc(13,25,e.loading$),r.hc(14,27,e.imOverBalance$),r.hc(15,29,e.sizeUnit$),r.hc(16,31,e.selectedMarketPosition$)]))},directives:[U.n,s.z,s.p,F.a,B.a,s.h,z.c,V.a,$.a,H.a,z.f,s.s,s.c,q.b,s.t,s.o,s.g,z.h,Q.a,W.a,G.a,Y.a,K.a,Z.a,X.b,J.b,tt.a,et.b,et.a,nt.b,it.a,rt.a],pipes:[U.b,G.d,U.w,st.b,U.f],styles:["[noauth][_nghost-%COMP%]{pointer-events:none}mat-card[_ngcontent-%COMP%]{box-shadow:none!important;overflow:hidden}form[_ngcontent-%COMP%]{overflow-x:hidden}form[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%]{width:100%}.submit[_ngcontent-%COMP%]{display:flex}.submit[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{flex:1}.submit[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:not(:first-of-type){margin-left:var(--spacing)}.footer[_ngcontent-%COMP%]{margin-top:var(--spacing);background:var(--card-colour);text-align:right;width:100%}.options[_ngcontent-%COMP%]{display:block}.inputs[_ngcontent-%COMP%], .options[_ngcontent-%COMP%]{flex-direction:column}.inputs[_ngcontent-%COMP%]{display:flex}.inputs[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{flex:1}.order-form[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%;padding-left:var(--spacing);padding-top:var(--spacing);padding-bottom:var(--spacing)}.radio-options[_ngcontent-%COMP%] mat-radio-group[_ngcontent-%COMP%]{display:flex;flex-flow:column nowrap;padding-top:var(--spacing)}.radio-options--inline[_ngcontent-%COMP%] mat-radio-group[_ngcontent-%COMP%]{flex-flow:row nowrap;justify-content:space-between}.slider-info[_ngcontent-%COMP%]{cursor:pointer}.slider-info[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{color:var(--icon-colour)}.side-buttons[_ngcontent-%COMP%]{padding-right:var(--spacing)}.side[_ngcontent-%COMP%] .buy[_ngcontent-%COMP%]{color:var(--accent-colour)!important}.side[_ngcontent-%COMP%] .buy.mat-button-toggle-checked[_ngcontent-%COMP%]{color:var(--text-colour)!important;background-color:var(--button-accent-colour)!important}.side[_ngcontent-%COMP%] .sell[_ngcontent-%COMP%]{color:var(--warn-colour)!important}.side[_ngcontent-%COMP%] .sell.mat-button-toggle-checked[_ngcontent-%COMP%]{color:var(--text-colour)!important;background-color:var(--button-warn-colour)!important}.input-row[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex:1}.input-row[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%]{min-width:0}.input-row[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%]:not(:first-child){padding-left:var(--spacing)}@media (max-width:599px){.input-row[_ngcontent-%COMP%]{width:91vw}}.maker-reduce[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between}.maker-reduce[_ngcontent-%COMP%] .mat-checkbox-layout{border-bottom:none!important}.unauth[_ngcontent-%COMP%]{padding:var(--spacing)}.estimate[_ngcontent-%COMP%]{font-size:2em;margin-right:var(--spacing)}.mat-button-toggle-checked.long[_ngcontent-%COMP%]{background:var(--g300)}.mat-button-toggle-checked.short[_ngcontent-%COMP%]{background:var(--warn-colour)}.close-position[_ngcontent-%COMP%]{align-self:flex-end}.trigger-details[_ngcontent-%COMP%]{display:flex;justify-content:space-evenly}.trigger-details[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:flex;flex-direction:column;text-align:center}.trigger[_ngcontent-%COMP%]{display:flex;border-bottom:1px solid var(--border-colour);margin:var(--spacing-s) 0;justify-content:space-between;align-items:center}.trigger-menu[_ngcontent-%COMP%]{cursor:pointer}.trigger-checkboxes[_ngcontent-%COMP%]{display:flex}.trigger-checkboxes[_ngcontent-%COMP%] mat-checkbox[_ngcontent-%COMP%]:first-child{margin-right:var(--spacing-l)}[_nghost-%COMP%]{height:100%;position:relative;overflow-y:auto;padding-right:var(--spacing)}.close-position[_ngcontent-%COMP%]{margin-bottom:var(--spacing)}.balanace-btn[_ngcontent-%COMP%] [_ngcontent-%COMP%]:not(:first-child){margin-left:var(--spacing-s)}.balance-btns[_ngcontent-%COMP%]{justify-content:space-between;flex-wrap:wrap}.balance-btns[_ngcontent-%COMP%], .post-only-notice[_ngcontent-%COMP%]{display:flex;margin-bottom:var(--spacing)}.post-only-notice[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%], .post-only-notice[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--y200)!important}.post-only-notice[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{margin-right:var(--spacing-s)}"],changeDetection:0}),t=Object(i.d)([Object(y.a)()],t),t})()},ekTi:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s=n("w6/c");e.default=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e}(s.default)},fLha:function(t,e,n){"use strict";n.r(e),n.d(e,"WaitingListComponent",(function(){return T}));var i=n("3kIJ"),r=n("Q7YU"),s=n("hsG4"),o=n("zqNl"),a=n("bjK4"),c=n("kZht"),l=n("mcff"),u=n("rfPA"),h=n("bBQR"),d=n("anSm"),p=n("NxuZ"),f=n("1etq"),b=n("EmXI"),g=n("Tcl6"),m=n("An66"),v=n("UDV5"),_=n("hCLc"),y=n("aDqW");function O(t,e){if(1&t&&(c.Ub(0,"option",18),c.Qc(1),c.Tb()),2&t){const t=e.$implicit;c.mc("value",t),c.Cb(1),c.Rc(t)}}function C(t,e){1&t&&(c.Ub(0,"div",19),c.Pb(1,"fa-icon",20),c.Ub(2,"p",21),c.Qc(3),c.gc(4,"translate"),c.Tb(),c.Tb()),2&t&&(c.Cb(3),c.Rc(c.hc(4,1,"Thank you for subscribing!")))}function w(t,e){1&t&&(c.Ub(0,"div",22),c.Pb(1,"fa-icon",23),c.Ub(2,"p",21),c.Qc(3),c.gc(4,"translate"),c.Tb(),c.Tb()),2&t&&(c.Cb(3),c.Rc(c.hc(4,1,"We couldn't validate your request, please try again!")))}let T=(()=>{class t{constructor(t,e,n,i){this.store=t,this.dialogRef=e,this.fb=n,this.userService=i,this.form=this.buildForm(),this.logoUrl$=this.store.pipe(Object(o.m)(a.f,{badge:!0})),this.isSuccess=!1,this.hasErrors=!1}buildForm(){return this.fb.group({fullName:["",[i.x.required]],email:["",[i.x.required,i.x.email]],country:["",[i.x.required]],aum:[""],estTradingVol:[""],companyName:[""],optIn:[!1,[i.x.requiredTrue]]})}submitForm(){this.isSuccess=!1,this.hasErrors=!1,this.userService.signWaitingList(this.form.value).subscribe(()=>{this.isSuccess=!0},()=>{this.hasErrors=!1})}closeDialog(){this.dialogRef.close()}get countries(){return r.a}}return t.\u0275fac=function(e){return new(e||t)(c.Ob(o.b),c.Ob(l.d),c.Ob(i.d),c.Ob(s.a))},t.\u0275cmp=c.Ib({type:t,selectors:[["waiting-list"]],decls:46,vars:32,consts:[[3,"heading"],["body","",1,"dialog-content","vstack","hcenter","gap-l"],[1,"kraken-logo"],["icon","kraken","size","lg"],["subheading",""],["body","",1,"vstack","hcenter",3,"formGroup","ngSubmit"],["color","accent","appearance","fill"],["matInput","","formControlName","fullName","required",""],["matInput","","formControlName","email","required",""],["matNativeControl","","required","","formControlName","country","tabindex","10"],[3,"value",4,"ngFor","ngForOf"],["matInput","","formControlName","aum"],["matInput","","formControlName","estTradingVol"],["matInput","","formControlName","companyName"],["formControlName","optIn",1,"no-border"],["class","success",4,"ngIf"],["class","error",4,"ngIf"],["body","","mat-raised-button","",3,"disabled"],[3,"value"],[1,"success"],["icon","check","size","lg"],["body",""],[1,"error"],["icon","circle-exclamationmark","size","lg"]],template:function(t,e){1&t&&(c.Ub(0,"pro-dialog",0),c.Ub(1,"div",1),c.Ub(2,"div",2),c.Pb(3,"fa-icon",3),c.Tb(),c.Ub(4,"p",4),c.Qc(5," Input your contact information below to be among the first to be notified at launch "),c.Tb(),c.Ub(6,"form",5),c.bc("ngSubmit",(function(){return e.submitForm()})),c.Ub(7,"mat-form-field",6),c.Ub(8,"mat-label"),c.Qc(9),c.gc(10,"translate"),c.Tb(),c.Pb(11,"input",7),c.Tb(),c.Ub(12,"mat-form-field",6),c.Ub(13,"mat-label"),c.Qc(14),c.gc(15,"translate"),c.Tb(),c.Pb(16,"input",8),c.Tb(),c.Ub(17,"mat-form-field",6),c.Ub(18,"mat-label"),c.Qc(19),c.gc(20,"translate"),c.Tb(),c.Ub(21,"select",9),c.Oc(22,O,2,2,"option",10),c.Tb(),c.Tb(),c.Ub(23,"mat-form-field",6),c.Ub(24,"mat-label"),c.Qc(25),c.gc(26,"translate"),c.Tb(),c.Pb(27,"input",11),c.Tb(),c.Ub(28,"mat-form-field",6),c.Ub(29,"mat-label"),c.Qc(30),c.gc(31,"translate"),c.Tb(),c.Pb(32,"input",12),c.Tb(),c.Ub(33,"mat-form-field",6),c.Ub(34,"mat-label"),c.Qc(35),c.gc(36,"translate"),c.Tb(),c.Pb(37,"input",13),c.Tb(),c.Ub(38,"mat-checkbox",14),c.Qc(39),c.gc(40,"translate"),c.Tb(),c.Oc(41,C,5,3,"div",15),c.Oc(42,w,5,3,"div",16),c.Ub(43,"button",17),c.Qc(44),c.gc(45,"translate"),c.Tb(),c.Tb(),c.Tb(),c.Tb()),2&t&&(c.mc("heading","Coming this April - Multi-Collateral Futures"),c.Cb(6),c.mc("formGroup",e.form),c.Cb(3),c.Rc(c.hc(10,16,"Full name")),c.Cb(5),c.Rc(c.hc(15,18,"Email")),c.Cb(5),c.Rc(c.hc(20,20,"FORM.COUNTRY")),c.Cb(3),c.mc("ngForOf",e.countries),c.Cb(3),c.Rc(c.hc(26,22,"Assets under management")),c.Cb(5),c.Rc(c.hc(31,24,"Est. trading volume")),c.Cb(5),c.Rc(c.hc(36,26,"Company name")),c.Cb(4),c.Sc(" ",c.hc(40,28,"I consent to being contacted by Kraken when Multi-Collateral Futures launches. Corporate clients acknowledge they may be contacted before launch by Kraken\u2019s account management team for white glove onboarding support.")," "),c.Cb(2),c.mc("ngIf",e.isSuccess),c.Cb(1),c.mc("ngIf",e.hasErrors),c.Cb(1),c.Lc("margin-top","var(--spacing)"),c.mc("disabled",e.form.invalid||e.isSuccess),c.Cb(1),c.Sc(" ",c.hc(45,30,"Join launch list")," "))},directives:[u.a,h.a,d.a,p.b,f.a,i.z,i.p,i.h,b.c,b.f,g.b,i.c,i.o,i.g,i.v,i.w,m.m,v.a,m.n,_.b,i.r,i.y],pipes:[y.d],styles:["[_nghost-%COMP%]{display:block;width:520px}.kraken-logo[_ngcontent-%COMP%]{display:flex;justify-content:center}.kraken-logo[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{font-size:28px}.success[_ngcontent-%COMP%]{display:grid;justify-content:center;align-items:center;gap:var(--spacing);grid-auto-flow:column;margin:1rem 0}.success[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{color:var(--accent-colour);transform:scale(1.5)}.success[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:1rem}.error[_ngcontent-%COMP%]{display:grid;justify-content:center;align-items:center;gap:var(--spacing);grid-auto-flow:column;margin:1rem 0}.error[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{color:var(--warn-colour);transform:scale(1.5)}.error[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:var(--spacing-s)}"],changeDetection:0}),t})()},fa4l:function(t,e,n){"use strict";n.d(e,"a",(function(){return tt}));var i=n("D57K"),r=n("kZht"),s=n("3kIJ"),o=n("zqNl"),a=n("+Px6"),c=n("rxqU"),l=n("qAYy"),u=n("J/3c"),h=n("KyJX"),d=n("l5Az"),p=n("3mST"),f=n("w0kG"),b=n("xVbo"),g=n("gxtV"),m=n("lx5p"),v=n("i67J"),_=n("h3eB"),y=n("uJYd"),O=n("VmIW"),C=n("NloN"),w=n("ylpo"),T=n("KQpv"),S=n.n(T),k=n("vYTc"),E=n("QdGC"),x=n("YyhG"),P=n("An66"),A=n("anSm"),I=n("TMzY"),M=n("EmXI"),D=n("IOEv"),R=n("pTnX"),j=n("B6Vo"),L=n("Cc4E"),N=n("zho4"),U=n("Tcl6"),F=n("UDV5"),B=n("IkSM"),z=n("8spT"),V=n("WYJo"),$=n("bW1a"),H=n("hCLc"),q=n("aDqW");const Q=function(){return[500,100]};function W(t,e){if(1&t&&(r.Ub(0,"mat-form-field",29),r.Ub(1,"mat-label"),r.Qc(2),r.gc(3,"translate"),r.Tb(),r.Pb(4,"input",30),r.Ub(5,"span",11),r.Qc(6),r.Tb(),r.Tb()),2&t){const t=r.fc().ngIf,e=r.fc();r.mc("sbDisabled",!t.displayTooltips)("sbDelay",r.qc(7,Q)),r.Cb(2),r.Sc("",r.hc(3,5,"FORM.LIMIT_PRICE"),":"),r.Cb(2),r.mc("step",e.tickSize(t.selectedMarket)),r.Cb(2),r.Rc(t.quoteCurrency)}}const G=function(){return{horizontal:675,vertical:600}},Y=function(){return[250,100]},K=function(t){return{side:t}};function Z(t,e){if(1&t){const t=r.Vb();r.Sb(0),r.Ub(1,"form",1),r.Ub(2,"section",2),r.Ub(3,"section",3),r.Ub(4,"mat-form-field",4),r.Ub(5,"mat-label"),r.Qc(6),r.gc(7,"translate"),r.Tb(),r.Ub(8,"mat-select",5),r.bc("selectionChange",(function(){return r.Ec(t),r.fc().toggleLimitControl()})),r.Ub(9,"mat-option",6),r.Qc(10),r.gc(11,"translate"),r.Tb(),r.Ub(12,"mat-option",7),r.Qc(13),r.gc(14,"translate"),r.Tb(),r.Tb(),r.Tb(),r.Ub(15,"mat-form-field",8),r.Ub(16,"mat-label"),r.Qc(17),r.gc(18,"translate"),r.Tb(),r.Ub(19,"input",9,10),r.bc("focus",(function(){return r.Ec(t),r.fc().onSizeFocus()})),r.Tb(),r.Ub(21,"span",11),r.Qc(22),r.Tb(),r.Tb(),r.Tb(),r.Ub(23,"section",3),r.Oc(24,W,7,8,"mat-form-field",12),r.Ub(25,"mat-form-field",4),r.Ub(26,"mat-label"),r.Qc(27),r.gc(28,"translate"),r.Tb(),r.Pb(29,"input",13),r.Ub(30,"span",11),r.Qc(31),r.Tb(),r.Tb(),r.Tb(),r.Ub(32,"section",14),r.Ub(33,"section",15),r.Ub(34,"mat-checkbox",16),r.Ub(35,"span",17),r.Qc(36),r.gc(37,"translate"),r.Tb(),r.Tb(),r.Tb(),r.Ub(38,"section",18),r.Ub(39,"mat-label",19),r.Qc(40),r.gc(41,"uppercase"),r.gc(42,"translate"),r.Tb(),r.Ub(43,"mat-radio-group",20),r.Ub(44,"mat-radio-button",21),r.Ub(45,"p",22),r.gc(46,"translate"),r.Qc(47),r.gc(48,"translate"),r.Tb(),r.Tb(),r.Ub(49,"mat-radio-button",23),r.Ub(50,"p",22),r.gc(51,"translate"),r.Qc(52),r.gc(53,"translate"),r.Tb(),r.Tb(),r.Ub(54,"mat-radio-button",24),r.Ub(55,"p",22),r.gc(56,"translate"),r.Qc(57),r.gc(58,"translate"),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Pb(59,"order-form-details",25),r.Ub(60,"section",26),r.Ub(61,"section",27),r.Ub(62,"button",28),r.bc("click",(function(){r.Ec(t);const n=e.ngIf;return r.fc().submitOrder(n.selectedMarket,n.userData)})),r.Qc(63),r.gc(64,"titlecase"),r.gc(65,"translate"),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Rb()}if(2&t){const t=e.ngIf,n=r.fc();r.Cb(1),r.mc("formGroup",n.form)("breakpoints",r.qc(66,G)),r.Cb(5),r.Rc(r.hc(7,33,"LABEL.TRIGGER_ORDER_TYPE")),r.Cb(4),r.Sc(" ",r.hc(11,35,"BUTTON.LIMIT_ORDER")," "),r.Cb(3),r.Sc(" ",r.hc(14,37,"BUTTON.MARKET_ORDER")," "),r.Cb(2),r.mc("sbDisabled",!t.displayTooltips)("sbDelay",r.qc(67,Q)),r.Cb(2),r.Sc("",r.hc(18,39,"FORM.QUANTITY"),":"),r.Cb(2),r.mc("step",n.stepSize(t.selectedMarket)),r.Cb(3),r.Sc(" ",t.sizeUnit," "),r.Cb(2),r.mc("ngIf",n.isLimit),r.Cb(3),r.Sc("",r.hc(28,41,"FORM.TRIGGER_PRICE"),":"),r.Cb(2),r.mc("step",n.tickSize(t.selectedMarket)),r.Cb(2),r.Rc(t.quoteCurrency),r.Cb(3),r.mc("disabled",n.reduceOnlyDisabled),r.Cb(1),r.mc("sbDisabled",!t.displayTooltips)("sbDelay",r.qc(68,Y)),r.Cb(1),r.Sc(" ",r.hc(37,43,"BUTTON.REDUCE_ONLY")," "),r.Cb(4),r.Sc(" ",r.hc(41,45,r.hc(42,47,"FORM.TRIGGER_SIGNAL")),": "),r.Cb(5),r.mc("matTooltip",r.hc(46,49,n.triggerTooltipText.last)),r.Cb(2),r.Sc(" ",r.hc(48,51,"BUTTON.LAST")," "),r.Cb(3),r.mc("matTooltip",r.hc(51,53,n.triggerTooltipText.mark)),r.Cb(2),r.Sc(" ",r.hc(53,55,"BUTTON.MARK")," "),r.Cb(3),r.mc("matTooltip",r.hc(56,57,n.triggerTooltipText.spot)),r.Cb(2),r.Sc(" ",r.hc(58,59,"BUTTON.INDEX")," "),r.Cb(2),r.mc("selectedMarket",t.selectedMarket)("selectedTicker",t.selectedTicker)("initialMargin",t.initialMargin)("wallet",t.wallet)("isTrigger",!0)("form",n.form),r.Cb(3),r.mc("disabled",n.form.invalid||n.buttonDisabled(n.side,t.selectedTicker)),r.Cb(1),r.Sc(" ",r.hc(64,61,r.ic(65,63,"LABEL.PLACE_ORDER",r.rc(69,K,n.side)))," ")}}const X=function(t,e,n,i,r,s,o,a,c){return{selectedMarket:t,selectedTicker:e,displayTooltips:n,baseCurrency:i,quoteCurrency:r,wallet:s,initialMargin:o,userData:a,sizeUnit:c}},J=S()("trace:app:trigger-order-form");let tt=(()=>{let t=class{constructor(t,e,n){this.formBuilder=t,this.store=e,this.trade=n,this.selectedMarket$=this.store.pipe(Object(o.m)(a.n)),this.selectedTicker$=this.store.pipe(Object(o.m)(l.p)),this.displayTooltips$=this.store.pipe(Object(o.m)(c.y)),this.baseCurrency$=this.store.pipe(Object(o.m)(a.s)),this.quoteCurrency$=this.store.pipe(Object(o.m)(a.u)),this.userSelectedFuturesWallet$=this.store.pipe(Object(o.m)(u.n)),this.initialMargin$=this.store.pipe(Object(o.m)(h.d)),this.userSignedIn$=this.store.pipe(Object(o.m)(c.m)),this.userData$=this.store.pipe(Object(o.m)(c.a)),this.sizeUnit$=this.store.pipe(Object(o.m)(x.n)),this.refreshOptions=new r.o,this.blurFieldEsc=t=>Object(E.a)(t)}ngOnInit(){this.buildForm(),this.selectedMarket$.pipe(Object(p.a)(1),Object(g.b)(this)).subscribe(t=>{var e,n;null===(e=this.form.get("stopPrice"))||void 0===e||e.setValue(0),null===(n=this.form.get("limitPrice"))||void 0===n||n.setValue(0)}),this.trade.orderFormPriceUpdated$.pipe(Object(f.a)(this.selectedMarket$),Object(b.a)(([t,e])=>!!t&&!!e),Object(g.b)(this)).subscribe(([t,e])=>{var n;const i=Object(m.I)(e.tickSize)(t);null===(n=this.form.get("limitPrice"))||void 0===n||n.setValue(i)}),this.trade.orderFormQuantityUpdated$.pipe(Object(v.g)(),Object(g.b)(this)).subscribe(t=>{var e;null===(e=this.form.get("size"))||void 0===e||e.setValue(t)})}buildForm(){var t,e;const n="stop"===this.triggerType||"take_profit"===this.triggerType||(null===(t=this.options)||void 0===t?void 0:t.reduceOnly),i=(null===(e=this.options)||void 0===e?void 0:e.triggerSignal)||"mark",r=new s.e(this.side,[s.x.required]),o=new s.e(0,[s.x.required,s.x.min(1e-9)]),a=new s.e(n,[s.x.required]);this.form=this.formBuilder.group({type:["market",[s.x.required]],side:r,size:o,stopPrice:[0,[s.x.required,s.x.min(1e-9)]],reduceOnly:a,triggerSignal:[i,[s.x.required]]}),this.watchFormOptions()}submitOrder(t,e){const n=this.isLimit?this.form.value.limitPrice:void 0,i={side:this.side,symbol:t.symbol.toUpperCase(),orderType:"trigger_entry"===this.triggerType?"stop":this.triggerType,size:this.form.value.size,reduceOnly:this.form.value.reduceOnly,triggerSignal:this.form.value.triggerSignal,limitPrice:n,stopPrice:this.form.value.stopPrice};this.store.dispatch(e.requireOrderConfirmation?Object(y.g)({name:"order-confirmation",inputs:{order:i,instrument:t}}):Object(_.o)(i))}toggleLimitControl(){if(this.form.get("limitPrice"))this.form.removeControl("limitPrice");else{const t=this.form&&this.form.get("limitPrice")?this.form.get("limitPrice").value:0,e=new s.e(t,[s.x.required,s.x.min(1e-9)]);this.form.addControl("limitPrice",e)}}watchFormOptions(){this.form.valueChanges.subscribe(t=>{const e=Object.assign({},this.options);O.Maybe.fromNull(t.triggerSignal).forEach(t=>e.triggerSignal=t),O.Maybe.fromNull(t.orderTypeOverride).forEach(t=>e.orderTypeOverride=t),J("saving form options",e),Object(C.c)(w.j,e),this.refreshOptions.emit()})}onSizeFocus(){const t=this.form.get("size");0===t.value&&t.setValue("")}tickSize(t){return t?t.tickSize:1}stepSize(t){return t?1/Math.pow(10,t.contractValueTradePrecision):1}buttonDisabled(t,e){const n={last:Object(k.j)(e),mark:e.markPrice,spot:e.index},i=this.form.get("stopPrice").value,r=n[this.form.get("triggerSignal").value];return"stop"===this.triggerType||"trigger_entry"===this.triggerType?"buy"===t?ir:"take_profit"===this.triggerType&&("buy"===t?i>r:ie.lift(new o(t))}class o{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new a(t,this.errorFactory))}}class a extends r.a{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function c(){return new i.a}},fhVT:function(t,e,n){var i=n("67SP"),r=n("JgBV");function s(t){this.mode=r.BYTE,this.data=new i(t)}s.getBitsLength=function(t){return 8*t},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(t){for(var e=0,n=this.data.length;e{class t{transform(t){return Object(i.g)(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Nb({name:"cryptoName",type:t,pure:!0}),t})(),a=(()=>{class t{transform(t){return null==t?null:t.replace(r.b,"BTC")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Nb({name:"cryptoAbbreviation",type:t,pure:!0}),t})()},g6G6:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("IdLP"),r=n("gBlb"),s=n("3lSR"),o=n("ckkg");function a(...t){let e=Number.POSITIVE_INFINITY,n=null,a=t[t.length-1];return Object(r.a)(a)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof a&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof i.a?t[0]:Object(s.a)(e)(Object(o.a)(t,n))}},gBlb:function(t,e,n){"use strict";function i(t){return t&&"function"==typeof t.schedule}n.d(e,"a",(function(){return i}))},gCmX:function(t,e,n){"use strict";n.d(e,"a",(function(){return d})),n.d(e,"b",(function(){return g})),n.d(e,"c",(function(){return v})),n.d(e,"d",(function(){return _}));var i=n("IdLP"),r=n("KTx3"),s={error:"cordova_not_available"},o={error:"plugin_not_installed"};function a(t){if("undefined"!=typeof window&&window.angular){var e=window.document,n=window.angular.element(e.querySelector("[ng-app]")||e.body).injector();if(n)return n.get("$q")((function(e,n){t(e,n)}));console.warn("Angular 1 was detected but $q couldn't be retrieved. This is usually when the app is not bootstrapped on the html or body tag. Falling back to native promises which won't trigger an automatic digest when promises resolve.")}return function(){if(Promise)return new Promise((function(e,n){t(e,n)}));console.error("No Promise support or polyfill found. To enable Ionic Native support, please add the es6-promise polyfill before this script, or run with a library like Angular or on a recent browser.")}()}function c(t,e,n,i){var r,s;void 0===i&&(i={});var o=a((function(o,a){r=i.destruct?f(t,e,n,i,(function(){for(var t=[],e=0;et.length?t[e.successIndex]=n:t.splice(e.successIndex,0,n)},o=function(){e.errorIndex>t.length?t[e.errorIndex]=i:t.splice(e.errorIndex,0,i)};e.successIndex>e.errorIndex?(o(),s()):(s(),o())}else t.push(n),t.push(i);return t}function f(t,e,n,i,r,s){void 0===i&&(i={}),n=p(n,i,r,s);var o=d(t,e);if(!0===o){var a=g(t.constructor.getPluginRef());return a[e].apply(a,n)}return o}function b(t,e,n,i,r,s){if(void 0===i&&(i={}),n=p(n,i,r,s),function(t,e){return t._objectInstance&&(!e||void 0!==t._objectInstance[e])}(t,e))return t._objectInstance[e].apply(t._objectInstance,n)}function g(t){return"undefined"!=typeof window?m(window,t):null}function m(t,e){for(var n=e.split("."),i=t,r=0;rt.length)&&(e=t.length);for(var n=0,i=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(i=t[Symbol.iterator]()).next.bind(i)}var i=function(t){var e={exports:{}};return function(t){function e(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}t.exports={defaults:{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1},getDefaults:e,changeDefaults:function(e){t.exports.defaults=e}}}(e),e.exports}(),r=/[&<>"']/,s=/[&<>"']/g,o=/[<>"']|&(?!#?\w+;)/,a=/[<>"']|&(?!#?\w+;)/g,c={"&":"&","<":"<",">":">",'"':""","'":"'"},l=function(t){return c[t]},u=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function h(t){return t.replace(u,(function(t,e){return"colon"===(e=e.toLowerCase())?":":"#"===e.charAt(0)?"x"===e.charAt(1)?String.fromCharCode(parseInt(e.substring(2),16)):String.fromCharCode(+e.substring(1)):""}))}var d=/(^|[^\[])\^/g,p=/[^\w:]/g,f=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i,b={},g=/^[^:]+:\/*[^/]*$/,m=/^([^:]+:)[\s\S]*$/,v=/^([^:]+:\/*[^/]*)[\s\S]*$/;function _(t,e,n){var i=t.length;if(0===i)return"";for(var r=0;r=0&&"\\"===n[r];)i=!i;return i?"|":" |"})).split(/ \|/),i=0;if(n.length>e)n.splice(e);else for(;n.length1?{type:"space",raw:e[0]}:{raw:"\n"}},e.code=function(t,e){var n=this.rules.block.code.exec(t);if(n){var i=e[e.length-1];if(i&&"paragraph"===i.type)return{raw:n[0],text:n[0].trimRight()};var r=n[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?r:T(r,"\n")}}},e.fences=function(t){var e=this.rules.block.fences.exec(t);if(e){var n=e[0],i=function(t,e){var n=t.match(/^(\s+)(?:```)/);if(null===n)return e;var i=n[1];return e.split("\n").map((function(t){var e=t.match(/^\s+/);return null===e?t:e[0].length>=i.length?t.slice(i.length):t})).join("\n")}(n,e[3]||"");return{type:"code",raw:n,lang:e[2]?e[2].trim():e[2],text:i}}},e.heading=function(t){var e=this.rules.block.heading.exec(t);if(e){var n=e[2].trim();if(/#$/.test(n)){var i=T(n,"#");this.options.pedantic?n=i.trim():i&&!/ $/.test(i)||(n=i.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:n}}},e.nptable=function(t){var e=this.rules.block.nptable.exec(t);if(e){var n={type:"table",header:S(e[1].replace(/^ *| *\| *$/g,"")),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:e[3]?e[3].replace(/\n$/,"").split("\n"):[],raw:e[0]};if(n.header.length===n.align.length){var i,r=n.align.length;for(i=0;i ?/gm,"");return{type:"blockquote",raw:e[0],text:n}}},e.list=function(t){var e=this.rules.block.list.exec(t);if(e){var n,i,r,s,o,a,c,l,u=e[0],h=e[2],d=h.length>1,p={type:"list",raw:u,ordered:d,start:d?+h.slice(0,-1):"",loose:!1,items:[]},f=e[0].match(this.rules.block.item),b=!1,g=f.length;r=this.rules.block.listItemStart.exec(f[0]);for(var m=0;mr[1].length:s[1].length>r[0].length||s[1].length>3){f.splice(m,2,f[m]+"\n"+f[m+1]),m--,g--;continue}(!this.options.pedantic||this.options.smartLists?s[2][s[2].length-1]!==h[h.length-1]:d===(1===s[2].length))&&(o=f.slice(m+1).join("\n"),p.raw=p.raw.substring(0,p.raw.length-o.length),m=g-1),r=s}i=n.length,~(n=n.replace(/^ *([*+-]|\d+[.)]) ?/,"")).indexOf("\n ")&&(i-=n.length,n=n.replace(this.options.pedantic?/^ {1,4}/gm:new RegExp("^ {1,"+i+"}","gm"),"")),a=b||/\n\n(?!\s*$)/.test(n),m!==g-1&&(b="\n"===n.charAt(n.length-1),a||(a=b)),a&&(p.loose=!0),this.options.gfm&&(l=void 0,(c=/^\[[ xX]\] /.test(n))&&(l=" "!==n[1],n=n.replace(/^\[[ xX]\] +/,""))),p.items.push({type:"list_item",raw:u,task:c,checked:l,loose:a,text:n})}return p}},e.html=function(t){var e=this.rules.block.html.exec(t);if(e)return{type:this.options.sanitize?"paragraph":"html",raw:e[0],pre:!this.options.sanitizer&&("pre"===e[1]||"script"===e[1]||"style"===e[1]),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):k(e[0]):e[0]}},e.def=function(t){var e=this.rules.block.def.exec(t);if(e)return e[3]&&(e[3]=e[3].substring(1,e[3].length-1)),{tag:e[1].toLowerCase().replace(/\s+/g," "),raw:e[0],href:e[2],title:e[3]}},e.table=function(t){var e=this.rules.block.table.exec(t);if(e){var n={type:"table",header:S(e[1].replace(/^ *| *\| *$/g,"")),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:e[3]?e[3].replace(/\n$/,"").split("\n"):[]};if(n.header.length===n.align.length){n.raw=e[0];var i,r=n.align.length;for(i=0;i/i.test(i[0])&&(e=!1),!n&&/^<(pre|code|kbd|script)(\s|>)/i.test(i[0])?n=!0:n&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(i[0])&&(n=!1),{type:this.options.sanitize?"text":"html",raw:i[0],inLink:e,inRawBlock:n,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):k(i[0]):i[0]}},e.link=function(t){var e=this.rules.inline.link.exec(t);if(e){var n=e[2].trim();if(!this.options.pedantic&&/^$/.test(n))return;var i=T(n.slice(0,-1),"\\");if((n.length-i.length)%2==0)return}else{var r=function(t,e){if(-1===t.indexOf(e[1]))return-1;for(var n=t.length,i=0,r=0;r-1){var s=(0===e[0].indexOf("!")?5:4)+e[1].length+r;e[2]=e[2].substring(0,r),e[0]=e[0].substring(0,s).trim(),e[3]=""}}var o=e[2],a="";if(this.options.pedantic){var c=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(o);c&&(o=c[1],a=c[3])}else a=e[3]?e[3].slice(1,-1):"";return o=o.trim(),/^$/.test(n)?o.slice(1):o.slice(1,-1)),E(e,{href:o?o.replace(this.rules.inline._escapes,"$1"):o,title:a?a.replace(this.rules.inline._escapes,"$1"):a},e[0])}},e.reflink=function(t,e){var n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){var i=(n[2]||n[1]).replace(/\s+/g," ");if(!(i=e[i.toLowerCase()])||!i.href){var r=n[0].charAt(0);return{type:"text",raw:r,text:r}}return E(n,i,n[0])}},e.strong=function(t,e,n){void 0===n&&(n="");var i=this.rules.inline.strong.start.exec(t);if(i&&(!i[1]||i[1]&&(""===n||this.rules.inline.punctuation.exec(n)))){e=e.slice(-1*t.length);var r,s="**"===i[0]?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;for(s.lastIndex=0;null!=(i=s.exec(e));)if(r=this.rules.inline.strong.middle.exec(e.slice(0,i.index+3)))return{type:"strong",raw:t.slice(0,r[0].length),text:t.slice(2,r[0].length-2)}}},e.em=function(t,e,n){void 0===n&&(n="");var i=this.rules.inline.em.start.exec(t);if(i&&(!i[1]||i[1]&&(""===n||this.rules.inline.punctuation.exec(n)))){e=e.slice(-1*t.length);var r,s="*"===i[0]?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;for(s.lastIndex=0;null!=(i=s.exec(e));)if(r=this.rules.inline.em.middle.exec(e.slice(0,i.index+2)))return{type:"em",raw:t.slice(0,r[0].length),text:t.slice(1,r[0].length-1)}}},e.codespan=function(t){var e=this.rules.inline.code.exec(t);if(e){var n=e[2].replace(/\n/g," "),i=/[^ ]/.test(n),r=/^ /.test(n)&&/ $/.test(n);return i&&r&&(n=n.substring(1,n.length-1)),n=k(n,!0),{type:"codespan",raw:e[0],text:n}}},e.br=function(t){var e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}},e.del=function(t){var e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2]}},e.autolink=function(t,e){var n,i,r=this.rules.inline.autolink.exec(t);if(r)return i="@"===r[2]?"mailto:"+(n=k(this.options.mangle?e(r[1]):r[1])):n=k(r[1]),{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}},e.url=function(t,e){var n;if(n=this.rules.inline.url.exec(t)){var i,r;if("@"===n[2])r="mailto:"+(i=k(this.options.mangle?e(n[0]):n[0]));else{var s;do{s=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(s!==n[0]);i=k(n[0]),r="www."===n[1]?"http://"+i:i}return{type:"link",raw:n[0],text:i,href:r,tokens:[{type:"text",raw:i,text:i}]}}},e.inlineText=function(t,e,n){var i,r=this.rules.inline.text.exec(t);if(r)return i=e?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):k(r[0]):r[0]:k(this.options.smartypants?n(r[0]):r[0]),{type:"text",raw:r[0],text:i}},t}(),P={exec:function(){}},A=function(t,e){t=t.source||t,e=e||"";var n={replace:function(e,i){return i=(i=i.source||i).replace(d,"$1"),t=t.replace(e,i),n},getRegex:function(){return new RegExp(t,e)}};return n},I=C,M={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?! {0,3}bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:P,table:P,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};M.def=A(M.def).replace("label",M._label).replace("title",M._title).getRegex(),M.bullet=/(?:[*+-]|\d{1,9}[.)])/,M.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,M.item=A(M.item,"gm").replace(/bull/g,M.bullet).getRegex(),M.listItemStart=A(/^( *)(bull)/).replace("bull",M.bullet).getRegex(),M.list=A(M.list).replace(/bull/g,M.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+M.def.source+")").getRegex(),M._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",M._comment=/|$)/,M.html=A(M.html,"i").replace("comment",M._comment).replace("tag",M._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),M.paragraph=A(M._paragraph).replace("hr",M.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",M._tag).getRegex(),M.blockquote=A(M.blockquote).replace("paragraph",M.paragraph).getRegex(),M.normal=I({},M),M.gfm=I({},M.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n {0,3}([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n {0,3}\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),M.gfm.nptable=A(M.gfm.nptable).replace("hr",M.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",M._tag).getRegex(),M.gfm.table=A(M.gfm.table).replace("hr",M.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",M._tag).getRegex(),M.pedantic=I({},M.normal,{html:A("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",M._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:P,paragraph:A(M.normal._paragraph).replace("hr",M.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",M.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var D={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:P,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",strong:{start:/^(?:(\*\*(?=[*punctuation]))|\*\*)(?![\s])|__/,middle:/^\*\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*\*$|^__(?![\s])((?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?)__$/,endAst:/[^punctuation\s]\*\*(?!\*)|[punctuation]\*\*(?!\*)(?:(?=[punctuation_\s]|$))/,endUnd:/[^\s]__(?!_)(?:(?=[punctuation*\s])|$)/},em:{start:/^(?:(\*(?=[punctuation]))|\*)(?![*\s])|_/,middle:/^\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*$|^_(?![_\s])(?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?_$/,endAst:/[^punctuation\s]\*(?!\*)|[punctuation]\*(?!\*)(?:(?=[punctuation_\s]|$))/,endUnd:/[^\s]_(?!_)(?:(?=[punctuation*\s])|$)/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:P,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~"};D.punctuation=A(D.punctuation).replace(/punctuation/g,D._punctuation).getRegex(),D._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",D._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",D._comment=A(M._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),D.em.start=A(D.em.start).replace(/punctuation/g,D._punctuation).getRegex(),D.em.middle=A(D.em.middle).replace(/punctuation/g,D._punctuation).replace(/overlapSkip/g,D._overlapSkip).getRegex(),D.em.endAst=A(D.em.endAst,"g").replace(/punctuation/g,D._punctuation).getRegex(),D.em.endUnd=A(D.em.endUnd,"g").replace(/punctuation/g,D._punctuation).getRegex(),D.strong.start=A(D.strong.start).replace(/punctuation/g,D._punctuation).getRegex(),D.strong.middle=A(D.strong.middle).replace(/punctuation/g,D._punctuation).replace(/overlapSkip/g,D._overlapSkip).getRegex(),D.strong.endAst=A(D.strong.endAst,"g").replace(/punctuation/g,D._punctuation).getRegex(),D.strong.endUnd=A(D.strong.endUnd,"g").replace(/punctuation/g,D._punctuation).getRegex(),D.blockSkip=A(D._blockSkip,"g").getRegex(),D.overlapSkip=A(D._overlapSkip,"g").getRegex(),D._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,D._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,D._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,D.autolink=A(D.autolink).replace("scheme",D._scheme).replace("email",D._email).getRegex(),D._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,D.tag=A(D.tag).replace("comment",D._comment).replace("attribute",D._attribute).getRegex(),D._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,D._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,D._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,D.link=A(D.link).replace("label",D._label).replace("href",D._href).replace("title",D._title).getRegex(),D.reflink=A(D.reflink).replace("label",D._label).getRegex(),D.reflinkSearch=A(D.reflinkSearch,"g").replace("reflink",D.reflink).replace("nolink",D.nolink).getRegex(),D.normal=I({},D),D.pedantic=I({},D.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:A(/^!?\[(label)\]\((.*?)\)/).replace("label",D._label).getRegex(),reflink:A(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",D._label).getRegex()}),D.gfm=I({},D.normal,{escape:A(D.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\1;)1&e&&(n+=t),e>>=1,t+=t;return n+t};function F(t){return t.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201c").replace(/"/g,"\u201d").replace(/\.{3}/g,"\u2026")}function B(t){var e,n,i="",r=t.length;for(e=0;e.5&&(n="x"+n.toString(16)),i+="&#"+n+";";return i}var z=function(){function e(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||j,this.options.tokenizer=this.options.tokenizer||new x,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var e={block:L.normal,inline:N.normal};this.options.pedantic?(e.block=L.pedantic,e.inline=N.pedantic):this.options.gfm&&(e.block=L.gfm,e.inline=this.options.breaks?N.breaks:N.gfm),this.tokenizer.rules=e}e.lex=function(t,n){return new e(n).lex(t)},e.lexInline=function(t,n){return new e(n).inlineTokens(t)};var n,i,r=e.prototype;return r.lex=function(t){return t=t.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(t,this.tokens,!0),this.inline(this.tokens),this.tokens},r.blockTokens=function(t,e,n){var i,r,s,o;for(void 0===e&&(e=[]),void 0===n&&(n=!0),this.options.pedantic&&(t=t.replace(/^ +$/gm,""));t;)if(i=this.tokenizer.space(t))t=t.substring(i.raw.length),i.type&&e.push(i);else if(i=this.tokenizer.code(t,e))t=t.substring(i.raw.length),i.type?e.push(i):((o=e[e.length-1]).raw+="\n"+i.raw,o.text+="\n"+i.text);else if(i=this.tokenizer.fences(t))t=t.substring(i.raw.length),e.push(i);else if(i=this.tokenizer.heading(t))t=t.substring(i.raw.length),e.push(i);else if(i=this.tokenizer.nptable(t))t=t.substring(i.raw.length),e.push(i);else if(i=this.tokenizer.hr(t))t=t.substring(i.raw.length),e.push(i);else if(i=this.tokenizer.blockquote(t))t=t.substring(i.raw.length),i.tokens=this.blockTokens(i.text,[],n),e.push(i);else if(i=this.tokenizer.list(t)){for(t=t.substring(i.raw.length),s=i.items.length,r=0;r0)for(;null!=(s=this.tokenizer.rules.inline.reflinkSearch.exec(c));)l.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(c=c.slice(0,s.index)+"["+U("a",s[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(s=this.tokenizer.rules.inline.blockSkip.exec(c));)c=c.slice(0,s.index)+"["+U("a",s[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;t;)if(o||(a=""),o=!1,r=this.tokenizer.escape(t))t=t.substring(r.raw.length),e.push(r);else if(r=this.tokenizer.tag(t,n,i))t=t.substring(r.raw.length),n=r.inLink,i=r.inRawBlock,e.push(r);else if(r=this.tokenizer.link(t))t=t.substring(r.raw.length),"link"===r.type&&(r.tokens=this.inlineTokens(r.text,[],!0,i)),e.push(r);else if(r=this.tokenizer.reflink(t,this.tokens.links))t=t.substring(r.raw.length),"link"===r.type&&(r.tokens=this.inlineTokens(r.text,[],!0,i)),e.push(r);else if(r=this.tokenizer.strong(t,c,a))t=t.substring(r.raw.length),r.tokens=this.inlineTokens(r.text,[],n,i),e.push(r);else if(r=this.tokenizer.em(t,c,a))t=t.substring(r.raw.length),r.tokens=this.inlineTokens(r.text,[],n,i),e.push(r);else if(r=this.tokenizer.codespan(t))t=t.substring(r.raw.length),e.push(r);else if(r=this.tokenizer.br(t))t=t.substring(r.raw.length),e.push(r);else if(r=this.tokenizer.del(t))t=t.substring(r.raw.length),r.tokens=this.inlineTokens(r.text,[],n,i),e.push(r);else if(r=this.tokenizer.autolink(t,B))t=t.substring(r.raw.length),e.push(r);else if(n||!(r=this.tokenizer.url(t,B))){if(r=this.tokenizer.inlineText(t,i,F))t=t.substring(r.raw.length),a=r.raw.slice(-1),o=!0,e.push(r);else if(t){var u="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(u);break}throw new Error(u)}}else t=t.substring(r.raw.length),e.push(r);return e},n=e,i=[{key:"rules",get:function(){return{block:L,inline:N}}}],null&&t(n.prototype,null),i&&t(n,i),e}(),V=i.defaults,$=function(t,e,n){if(t){var i;try{i=decodeURIComponent(h(n)).replace(p,"").toLowerCase()}catch(r){return null}if(0===i.indexOf("javascript:")||0===i.indexOf("vbscript:")||0===i.indexOf("data:"))return null}e&&!f.test(n)&&(n=function(t,e){b[" "+t]||(b[" "+t]=g.test(t)?t+"/":_(t,"/",!0));var n=-1===(t=b[" "+t]).indexOf(":");return"//"===e.substring(0,2)?n?e:t.replace(m,"$1")+e:"/"===e.charAt(0)?n?e:t.replace(v,"$1")+e:t+e}(e,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(r){return null}return n},H=y,q=function(){function t(t){this.options=t||V}var e=t.prototype;return e.code=function(t,e,n){var i=(e||"").match(/\S*/)[0];if(this.options.highlight){var r=this.options.highlight(t,i);null!=r&&r!==t&&(n=!0,t=r)}return t=t.replace(/\n$/,"")+"\n",i?'
    '+(n?t:H(t,!0))+"
    \n":"
    "+(n?t:H(t,!0))+"
    \n"},e.blockquote=function(t){return"
    \n"+t+"
    \n"},e.html=function(t){return t},e.heading=function(t,e,n,i){return this.options.headerIds?"'+t+"\n":""+t+"\n"},e.hr=function(){return this.options.xhtml?"
    \n":"
    \n"},e.list=function(t,e,n){var i=e?"ol":"ul";return"<"+i+(e&&1!==n?' start="'+n+'"':"")+">\n"+t+"\n"},e.listitem=function(t){return"
  • "+t+"
  • \n"},e.checkbox=function(t){return" "},e.paragraph=function(t){return"

    "+t+"

    \n"},e.table=function(t,e){return e&&(e=""+e+""),"\n\n"+t+"\n"+e+"
    \n"},e.tablerow=function(t){return"\n"+t+"\n"},e.tablecell=function(t,e){var n=e.header?"th":"td";return(e.align?"<"+n+' align="'+e.align+'">':"<"+n+">")+t+"\n"},e.strong=function(t){return""+t+""},e.em=function(t){return""+t+""},e.codespan=function(t){return""+t+""},e.br=function(){return this.options.xhtml?"
    ":"
    "},e.del=function(t){return""+t+""},e.link=function(t,e,n){if(null===(t=$(this.options.sanitize,this.options.baseUrl,t)))return n;var i='"+n+""},e.image=function(t,e,n){if(null===(t=$(this.options.sanitize,this.options.baseUrl,t)))return n;var i=''+n+'":">")},e.text=function(t){return t},t}(),Q=function(){function t(){}var e=t.prototype;return e.strong=function(t){return t},e.em=function(t){return t},e.codespan=function(t){return t},e.del=function(t){return t},e.html=function(t){return t},e.text=function(t){return t},e.link=function(t,e,n){return""+n},e.image=function(t,e,n){return""+n},e.br=function(){return""},t}(),W=function(){function t(){this.seen={}}var e=t.prototype;return e.serialize=function(t){return t.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},e.getNextSafeSlug=function(t,e){var n=t,i=0;if(this.seen.hasOwnProperty(n)){i=this.seen[t];do{n=t+"-"+ ++i}while(this.seen.hasOwnProperty(n))}return e||(this.seen[t]=i,this.seen[n]=0),n},e.slug=function(t,e){void 0===e&&(e={});var n=this.serialize(t);return this.getNextSafeSlug(n,e.dryrun)},t}(),G=i.defaults,Y=O,K=function(){function t(t){this.options=t||G,this.options.renderer=this.options.renderer||new q,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Q,this.slugger=new W}t.parse=function(e,n){return new t(n).parse(e)},t.parseInline=function(e,n){return new t(n).parseInline(e)};var e=t.prototype;return e.parse=function(t,e){void 0===e&&(e=!0);var n,i,r,s,o,a,c,l,u,h,d,p,f,b,g,m,v,_,y="",O=t.length;for(n=0;n0&&"text"===g.tokens[0].type?(g.tokens[0].text=_+" "+g.tokens[0].text,g.tokens[0].tokens&&g.tokens[0].tokens.length>0&&"text"===g.tokens[0].tokens[0].type&&(g.tokens[0].tokens[0].text=_+" "+g.tokens[0].tokens[0].text)):g.tokens.unshift({type:"text",text:_}):b+=_),b+=this.parse(g.tokens,f),u+=this.renderer.listitem(b,v,m);y+=this.renderer.list(u,d,p);continue;case"html":y+=this.renderer.html(h.text);continue;case"paragraph":y+=this.renderer.paragraph(this.parseInline(h.tokens));continue;case"text":for(u=h.tokens?this.parseInline(h.tokens):h.text;n+1An error occurred:

    "+J(c.message+"",!0)+"
    ";throw c}}return it.options=it.setOptions=function(t){return Z(it.defaults,t),et(it.defaults),it},it.getDefaults=tt,it.defaults=nt,it.use=function(t){var e=Z({},t);if(t.renderer&&function(){var n=it.defaults.renderer||new q,i=function(e){var i=n[e];n[e]=function(){for(var r=arguments.length,s=new Array(r),o=0;oAn error occurred:

    "+J(i.message+"",!0)+"
    ";throw i}},it.Parser=K,it.parser=K.parse,it.Renderer=q,it.TextRenderer=Q,it.Lexer=z,it.lexer=z.lex,it.Tokenizer=x,it.Slugger=W,it.parse=it,it}()},gPG9:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("gCmX");function r(t,e,n,r){return Object(i.c)(t,e,n).apply(this,r)}},gWyO:function(t,e,n){"use strict";n("gCmX")},gelr:function(t,e,n){"use strict";n.r(e),n.d(e,"FlexPreferencesComponent",(function(){return it}));var i=n("zqNl"),r=n("+Px6"),s=n("J/3c"),o=n("3kIJ"),a=n("C05f"),c=n("HM3f"),l=n("YtkY"),u=n("BwBJ"),h=n("jOdJ"),d=n("mWib"),p=n("w0kG"),f=n("qAYy"),b=n("wMit"),g=n("nXdR"),m=n("l5Az"),v=n("i67J"),_=n("YyhG"),y=n("lx5p"),O=n("kZht"),C=n("rfPA"),w=n("bBQR"),T=n("An66"),S=n("anSm"),k=n("yPvj"),E=n("scAs"),x=n("8spT"),P=n("EmXI"),A=n("aDqW"),I=n("IOEv"),M=n("hCLc"),D=n("1eaT"),R=n("LbKT"),j=n("1o0v"),L=n("1etq"),N=n("Tcl6"),U=n("3W1Y"),F=n("cMxr"),B=n("pTnX"),z=n("7J2L"),V=n("rUBT"),$=n("DpwM"),H=n("rqGg");function q(t,e){1&t&&(O.Ub(0,"div",22),O.Ub(1,"p",23),O.Qc(2," With Cross Margin mode, your total margin will be shared across all your positions. "),O.Tb(),O.Pb(3,"br"),O.Ub(4,"p",23),O.Qc(5," If you want to allocate a certain amount of margin to each specific contract, use isolated margin mode. "),O.Tb(),O.Tb())}function Q(t,e){1&t&&(O.Ub(0,"div",22),O.Ub(1,"p",23),O.Qc(2," If you want to allocate a certain amount of margin to each specific contract, use isolated margin mode. "),O.Tb(),O.Tb())}function W(t,e){if(1&t&&(O.Ub(0,"div",24),O.Ub(1,"div"),O.Ub(2,"nutritional-info"),O.Ub(3,"span",25),O.Qc(4),O.Tb(),O.Ub(5,"span",23),O.Qc(6),O.gc(7,"sato"),O.Ub(8,"span",26),O.Qc(9),O.gc(10,"asset"),O.Tb(),O.Tb(),O.Tb(),O.Ub(11,"nutritional-info"),O.Ub(12,"span",23),O.Qc(13),O.gc(14,"translate"),O.Tb(),O.Ub(15,"span",23),O.Qc(16),O.gc(17,"number"),O.Ub(18,"span",26),O.Qc(19),O.gc(20,"quote"),O.Tb(),O.Tb(),O.Tb(),O.Tb(),O.Ub(21,"div"),O.Ub(22,"nutritional-info"),O.Ub(23,"span",23),O.Qc(24),O.gc(25,"translate"),O.Tb(),O.Ub(26,"span",27),O.Qc(27),O.gc(28,"number"),O.Ub(29,"span",26),O.Qc(30),O.gc(31,"quote"),O.Tb(),O.Tb(),O.Tb(),O.Ub(32,"nutritional-info"),O.Ub(33,"span",23),O.Qc(34),O.Tb(),O.Ub(35,"span",23),O.Qc(36),O.gc(37,"number"),O.Tb(),O.Tb(),O.Tb(),O.Tb()),2&t){const t=O.fc(2).ngIf;O.Cb(3),O.mc("pnl",t.selectedMarketPosition.balance),O.Cb(1),O.Sc("",t.selectedMarketPosition.balance>0?"Long":"Short"," "),O.Cb(2),O.Sc(" ",O.jc(7,13,t.selectedMarketPosition.displaySize,t.selectedMarketPosition.tradingDisplayAsset,"full")," "),O.Cb(3),O.Sc(" ",O.hc(10,17,t.selectedMarketPosition.tradingDisplayAsset)," "),O.Cb(4),O.Sc("",O.hc(14,19,"Current Initial Margin"),":"),O.Cb(3),O.Sc(" ",O.ic(17,21,t.selectedMarketPosition.initial_margin,"1.2-2")," "),O.Cb(3),O.Rc(O.hc(20,24,t.selectedMarketPosition.instrument)),O.Cb(5),O.Sc("",O.hc(25,26,"Available Margin"),":"),O.Cb(2),O.mc("pnl",t.flexWallet.am),O.Cb(1),O.Sc(" ",O.ic(28,28,t.flexWallet.am,"1.2-2")," "),O.Cb(3),O.Rc(O.hc(31,31,t.selectedMarketPosition.instrument)),O.Cb(4),O.Sc(" ","Current Leverage: "," "),O.Cb(2),O.Sc(" ",O.ic(37,33,t.selectedMarketPosition.effective_leverage,"1.2-2"),"x ")}}function G(t,e){if(1&t){const t=O.Vb();O.Sb(0),O.Ub(1,"p",28),O.Qc(2,"New Initial Margin"),O.Tb(),O.Ub(3,"div",29),O.Ub(4,"mat-form-field",30),O.Ub(5,"mat-label",15),O.Qc(6,"Current Margin"),O.Tb(),O.Pb(7,"input",31),O.Ub(8,"span",32),O.Qc(9,"USD"),O.Tb(),O.Tb(),O.Ub(10,"div"),O.Ub(11,"mat-form-field",30),O.Ub(12,"mat-label",15),O.Qc(13,"Change"),O.Tb(),O.Ub(14,"input",33),O.bc("input",(function(){return O.Ec(t),O.fc(3).changeNew()})),O.Tb(),O.Ub(15,"span",32),O.Qc(16,"USD"),O.Tb(),O.Tb(),O.Ub(17,"p",34),O.Qc(18),O.gc(19,"number"),O.Tb(),O.Tb(),O.Ub(20,"mat-form-field",30),O.Ub(21,"mat-label",15),O.Qc(22,"New Margin"),O.Tb(),O.Ub(23,"input",35),O.bc("input",(function(){return O.Ec(t),O.fc(3).changeDiff()})),O.Tb(),O.Ub(24,"span",32),O.Qc(25,"USD"),O.Tb(),O.Tb(),O.Tb(),O.Rb()}if(2&t){const t=O.fc(2).ngIf;O.Cb(1),O.Lc("margin-bottom","var(--spacing-l)"),O.Cb(16),O.mc("pnl",t.flexWallet.am),O.Cb(1),O.Sc(" Available Margin: ",O.ic(19,4,t.flexWallet.am,"1.2-2")," ")}}const Y=function(t){return[1,2,5,10,25,t]};function K(t,e){if(1&t){const t=O.Vb();O.Ub(0,"div"),O.Ub(1,"p",28),O.Qc(2,"New Initial Leverage"),O.Tb(),O.Ub(3,"slider",36),O.bc("stepChange",(function(e){return O.Ec(t),O.fc(3).changeLeverage(e,!0)})),O.Tb(),O.Tb()}if(2&t){const t=O.fc(2).ngIf;O.Cb(3),O.mc("max",t.maxLvg)("logSteps",!0)("min",1)("stepBetween",1)("step",t.currentLvg||1)("adjustedStep",t.sliderLvg)("ticks",O.rc(10,Y,t.maxLvg))("suffix","x")("decimals",0)("showLegend",!0)}}function Z(t,e){if(1&t&&(O.Ub(0,"mat-option",37),O.Pb(1,"market-icon",18),O.Qc(2),O.Tb()),2&t){const t=e.$implicit;O.mc("value",t),O.Cb(1),O.mc("base",t),O.Cb(1),O.Sc(" ",t," ")}}function X(t,e){1&t&&(O.Ub(0,"p",23),O.Qc(1," Change in initial margin exceeds available margin. "),O.Tb())}function J(t,e){if(1&t){const t=O.Vb();O.Ub(0,"form",4),O.bc("ngSubmit",(function(){return O.Ec(t),O.fc(2).submitForm()})),O.Ub(1,"p",5),O.Pb(2,"market-icon",6),O.gc(3,"pair"),O.Ub(4,"span",7),O.Qc(5),O.gc(6,"uppercase"),O.gc(7,"contractFamily"),O.Tb(),O.Qc(8),O.gc(9,"pair"),O.gc(10,"translate"),O.gc(11,"maturityMonth"),O.Tb(),O.Ub(12,"mat-radio-group",8),O.Ub(13,"mat-radio-button",9),O.Qc(14),O.gc(15,"translate"),O.Tb(),O.Ub(16,"mat-radio-button",10),O.Qc(17),O.gc(18,"translate"),O.Tb(),O.Tb(),O.Oc(19,q,6,0,"div",11),O.Oc(20,Q,3,0,"div",11),O.Oc(21,W,38,36,"div",12),O.Oc(22,G,26,7,"ng-container",13),O.Oc(23,K,4,12,"div",13),O.Ub(24,"mat-form-field",14),O.Ub(25,"mat-label",15),O.Qc(26,"LABEL.PROFIT_CURRENCY"),O.Tb(),O.Ub(27,"mat-select",16),O.Oc(28,Z,3,3,"mat-option",17),O.Tb(),O.Pb(29,"market-icon",18),O.Tb(),O.Ub(30,"div",19),O.Oc(31,X,2,0,"p",20),O.Ub(32,"button",21),O.Qc(33),O.gc(34,"translate"),O.Tb(),O.Tb(),O.Tb()}if(2&t){const t=O.fc().ngIf,e=O.fc();var n,i;O.mc("formGroup",e.form),O.Cb(2),O.mc("pair",O.hc(3,18,t.selectedMarket.symbol)),O.Cb(3),O.Tc(""," "," ",O.hc(6,20,O.hc(7,22,t.selectedMarket.symbol)),""),O.Cb(3),O.Tc(" ",O.hc(9,24,t.selectedMarket.symbol)," ",O.hc(10,26,O.ic(11,28,t.selectedMarket.symbol,"short"))," "),O.Cb(6),O.Sc(" ",O.hc(15,31,"Use Cross Margin")," "),O.Cb(3),O.Sc(" ",O.hc(18,33,"Use Isolated Margin")," "),O.Cb(2),O.mc("ngIf","cross"===e.leverageType),O.Cb(1),O.mc("ngIf","isolated"===e.leverageType),O.Cb(1),O.mc("ngIf",t.selectedMarketPosition&&"isolated"===e.leverageType),O.Cb(1),O.mc("ngIf",t.selectedMarketPosition&&"isolated"===e.leverageType),O.Cb(1),O.mc("ngIf",t.maxLvg&&"isolated"===e.leverageType),O.Cb(5),O.mc("ngForOf",t.currencies),O.Cb(1),O.mc("base",null==(n=e.form.get("pnlCurrency"))?null:n.value),O.Cb(2),O.mc("ngIf",null==(i=e.form.get("diffInitialMargin"))||null==i.errors?null:i.errors.marginOverAm),O.Cb(1),O.mc("disabled",e.form.invalid),O.Cb(1),O.Sc(" ",O.hc(34,35,"BUTTON.SAVE")," ")}}function tt(t,e){if(1&t&&(O.Ub(0,"section"),O.Oc(1,J,35,37,"form",3),O.Tb()),2&t){const t=e.ngIf,n=O.fc(),i=O.Ac(15);O.Gb("isolated","isolated"===n.leverageType&&t.selectedMarketPosition),O.Cb(1),O.mc("ngIf",t.currencies&&t.maxLvg)("ngIfElse",i)}}function et(t,e){1&t&&O.Pb(0,"kraken-loading")}const nt=function(t,e,n,i,r,s,o,a,c,l,u,h){return{selectedMarket:t,leverage:e,pnl:n,currencies:i,selectedTicker:r,maxLvg:s,currentLvg:o,sliderLvg:a,selectedMarketPosition:c,flexWallet:l,minLvg:u,newAm:h}};let it=(()=>{class t{constructor(t,e,n){this.store=t,this.formBuilder=e,this.trades=n,this.flexWallet$=this.store.pipe(Object(i.m)(s.l)),this.selectedMarket$=this.store.pipe(Object(i.m)(r.n)),this.leveragePrefs$=this.store.pipe(Object(i.m)(r.o)),this.selectedMarketPosition$=this.store.pipe(Object(i.m)(_.g)),this.pnlPrefs$=this.store.pipe(Object(i.m)(r.q)),this.pnlCurrencies$=this.store.pipe(Object(i.m)(s.e),Object(l.a)(t=>null==t?void 0:t.filter(t=>!!t).sort(g.m))),this.selectedTicker$=this.store.pipe(Object(i.m)(f.p)),this.maxLvg$=this.store.pipe(Object(i.m)(f.q),Object(u.a)(100)),this.maxLvgBeforeLiquidation$=new a.a(0),this.changedLvg$=new a.a(0),this.minLvg$=new a.a(0),this.newAm$=new a.a(0),this.currentLvg$=this.leveragePrefs$.pipe(Object(h.a)(),Object(l.a)(t=>t.cross||!t.maxLeverage?0:t.maxLeverage)),this.sliderLvg$=Object(c.a)([this.changedLvg$,this.currentLvg$]).pipe(Object(l.a)(([t,e])=>t>0?t:e))}ngOnInit(){Object(c.a)([this.selectedMarket$,this.leveragePrefs$,this.pnlPrefs$,this.currentLvg$,this.selectedMarketPosition$]).pipe(Object(h.a)()).subscribe(([t,e,n,i,r])=>{var s;this.defaultLvgType=e.cross?"cross":"isolated",this.defaultMaxLvg=e.cross?void 0:e.maxLeverage,this.defaultPnlCurrency=n.pnlCurrency;const a=Object(y.I)(.01)((null==r?void 0:r.initial_margin)||0);this.form=this.formBuilder.group({symbol:null==t?void 0:t.symbol,leverageType:[this.defaultLvgType],currentInitialMargin:[{value:a,disabled:!0}],diffInitialMargin:[0,[o.x.required],this.marginValidator()],initialMargin:[a],maxLeverage:[this.defaultMaxLvg,[o.x.required]],pnlCurrency:[this.defaultPnlCurrency,[o.x.required]]}),null===(s=this.form.get("initialMargin"))||void 0===s||s.valueChanges.pipe(Object(d.a)(250)).subscribe(t=>{"number"==typeof t&&this.changeMargin(t)}),this.changeLeverage(i,!e.cross)})}submitForm(){const{symbol:t,leverageType:e,maxLeverage:n,pnlCurrency:i}=this.form.value,r="cross"===e,s=0===n?1:n;this.store.dispatch(Object(b.a)({prefs:{symbol:t,maxLeverage:r?null:s}})),i!==this.defaultPnlCurrency&&this.store.dispatch(Object(b.b)({prefs:{symbol:t,pnlCurrency:"XBT"===i?"BTC":i}}))}changeLeverage(t,e=!1){var n;null===(n=this.form.get("maxLeverage"))||void 0===n||n.setValue(t),e&&this.selectedMarket$.pipe(Object(v.g)(),Object(h.a)()).subscribe(e=>{this.trades.calculateMarginFromLeverge({symbol:null==e?void 0:e.symbol,maxLeverage:t}).pipe(Object(h.a)()).subscribe(({initialMarginOfPosition:t,availableMargin:e,minimumLeverage:n})=>{var i;isFinite(t)&&(this.newAm$.next(e),this.minLvg$.next(n),null===(i=this.form.get("initialMargin"))||void 0===i||i.setValue(t.toFixed(2)),this.changeDiff())})})}changeMargin(t){this.selectedMarket$.pipe(Object(v.g)(),Object(h.a)()).subscribe(e=>{this.trades.calculateLeverageFromMargin({symbol:null==e?void 0:e.symbol,desiredInitialMargin:Number(t)}).pipe(Object(h.a)()).subscribe(({maxLeverage:t})=>{var e;this.changedLvg$.next(t),null===(e=this.form.get("maxLeverage"))||void 0===e||e.setValue(t)})})}changeDiff(){var t;const{initialMargin:e}=this.form.value,n=null===(t=this.form.get("currentInitialMargin"))||void 0===t?void 0:t.value,i=this.form.get("diffInitialMargin"),r=Number(e)-Number(n);null==i||i.setValue(Object(y.I)(.01)(r))}changeNew(){var t;const{diffInitialMargin:e}=this.form.value,n=null===(t=this.form.get("currentInitialMargin"))||void 0===t?void 0:t.value,i=this.form.get("initialMargin"),r=Number(n)+Number(e);null==i||i.setValue(Object(y.I)(.01)(r))}get leverageType(){var t;return null===(t=this.form.get("leverageType"))||void 0===t?void 0:t.value}get newMargin(){var t;return null===(t=this.form.get("initialMargin"))||void 0===t?void 0:t.value}get newLvg(){var t;return null===(t=this.form.get("maxLeverage"))||void 0===t?void 0:t.value}get imChange(){var t;return null===(t=this.form.get("diffInitialMargin"))||void 0===t?void 0:t.value}marginValidator(){return t=>this.flexWallet$.pipe(Object(h.a)(),Object(p.a)(this.leveragePrefs$),Object(l.a)(([e,n])=>t.value>=e.am&&!n.cross?{marginOverAm:!0}:null))}}return t.\u0275fac=function(e){return new(e||t)(O.Ob(i.b),O.Ob(o.d),O.Ob(m.a))},t.\u0275cmp=O.Ib({type:t,selectors:[["flex-preferences"]],decls:16,vars:38,consts:[["heading","HEADING.MC_PREFERENCES"],[3,"isolated",4,"ngIf"],["loading",""],["body","",3,"formGroup","ngSubmit",4,"ngIf","ngIfElse"],["body","",3,"formGroup","ngSubmit"],["heading","",1,"heading"],[3,"pair"],["bold","",1,"family"],["formControlName","leverageType"],["value","cross"],["value","isolated"],["class","description",4,"ngIf"],["class","infos",4,"ngIf"],[4,"ngIf"],["color","accent","appearance","fill",1,"pnl","no-padding"],["translate",""],["matNativeControl","","formControlName","pnlCurrency"],[3,"value",4,"ngFor","ngForOf"],["matPrefix","",1,"form-icon",3,"base"],[1,"errors"],["body","",4,"ngIf"],["mat-raised-button","","body","",3,"disabled"],[1,"description"],["body",""],[1,"infos"],["body","",3,"pnl"],["ghost",""],["body","","pnlZero","",3,"pnl"],["subheading",""],[1,"input-row"],["color","accent","appearance","fill"],["disabled","","matInput","","formControlName","currentInitialMargin","type","number","min","0","inputmode","numeric","autocomplete","off"],["matSuffix",""],["matInput","","formControlName","diffInitialMargin","type","number","inputmode","numeric","autocomplete","off",3,"input"],["caption","","pnlZero","",3,"pnl"],["matInput","","formControlName","initialMargin","type","number","min","0","inputmode","numeric","autocomplete","off",3,"input"],[3,"max","logSteps","min","stepBetween","step","adjustedStep","ticks","suffix","decimals","showLegend","stepChange"],[3,"value"]],template:function(t,e){1&t&&(O.Ub(0,"pro-dialog",0),O.Oc(1,tt,2,4,"section",1),O.gc(2,"async"),O.gc(3,"async"),O.gc(4,"async"),O.gc(5,"async"),O.gc(6,"async"),O.gc(7,"async"),O.gc(8,"async"),O.gc(9,"async"),O.gc(10,"async"),O.gc(11,"async"),O.gc(12,"async"),O.gc(13,"async"),O.Tb(),O.Oc(14,et,1,0,"ng-template",null,2,O.Pc)),2&t&&(O.Cb(1),O.mc("ngIf",O.yc(25,nt,[O.hc(2,1,e.selectedMarket$),O.hc(3,3,e.leveragePrefs$),O.hc(4,5,e.pnlPrefs$),O.hc(5,7,e.pnlCurrencies$),O.hc(6,9,e.selectedTicker$),O.hc(7,11,e.maxLvg$),O.hc(8,13,e.currentLvg$),O.hc(9,15,e.sliderLvg$),O.hc(10,17,e.selectedMarketPosition$),O.hc(11,19,e.flexWallet$),O.hc(12,21,e.minLvg$),O.hc(13,23,e.newAm$)])))},directives:[C.a,w.a,T.n,o.z,o.p,S.a,o.h,k.a,E.a,x.b,o.o,o.g,x.a,P.c,P.f,A.a,I.a,T.m,P.g,M.b,D.a,R.a,j.a,L.a,N.b,o.c,o.s,P.h,U.a,F.a,B.n,z.a],pipes:[T.b,V.e,T.x,V.c,A.d,V.d,$.c,H.a,T.f,V.f],styles:["section[_ngcontent-%COMP%]{height:400px;width:450px;position:relative}section.isolated[_ngcontent-%COMP%]{height:600px}section[_ngcontent-%COMP%] .heading[_ngcontent-%COMP%]{margin-bottom:var(--spacing-l)}section[_ngcontent-%COMP%] .pnl[_ngcontent-%COMP%]{position:absolute;bottom:60px;right:0}section[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}section[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{margin:var(--spacing) 0;border:1px solid var(--border-colour-dark);border-radius:var(--bdrs);padding:var(--spacing)}section[_ngcontent-%COMP%] .family[_ngcontent-%COMP%]{color:var(--brand)}.input-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.input-row[_ngcontent-%COMP%] div[_ngcontent-%COMP%], .input-row[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{min-width:0;width:100%}.input-row[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:not(:first-child), .input-row[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]:not(:first-child){margin-left:var(--spacing)}.infos[_ngcontent-%COMP%]{display:flex;margin-bottom:var(--spacing-l)}.infos[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{flex:1}.infos[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:not(:first-child){margin-left:var(--spacing)}mat-radio-button[_ngcontent-%COMP%]:not(:first-child){margin-left:var(--spacing-l)}.errors[_ngcontent-%COMP%]{margin-top:var(--spacing);bottom:0;width:100%;position:absolute;display:flex;justify-content:flex-end}.errors[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-right:var(--spacing);color:var(--warn-colour);align-self:center}"],changeDetection:0}),t})()},gx5s:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("kZht");let r=(()=>{class t{constructor(t,e){this.renderer=t,this.element=e}ngOnInit(){this.renderer.addClass(this.element.nativeElement,"global__selectable")}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.G),i.Ob(i.l))},t.\u0275dir=i.Jb({type:t,selectors:[["","selectable",""]]}),t})()},gxtV:function(t,e,n){"use strict";n.d(e,"a",(function(){return b})),n.d(e,"b",(function(){return g}));var i=n("ZTXN"),r=n("bwdy"),s=n("kZht"),o=n("kuMc");const a=s.db,c=Symbol("__destroy"),l=Symbol("__decoratorApplied");function u(t){return"string"==typeof t?Symbol("__destroy__"+t):c}function h(t,e){t[e]||(t[e]=new i.b)}function d(t,e){t[e]&&(t[e].next(),t[e].complete(),t[e]=null)}function p(t){t instanceof r.a&&t.unsubscribe()}function f(t,e){return function(){var n,i;if(t&&t.call(this),d(this,u()),e.arrayName)return i=this[e.arrayName],void(Array.isArray(i)&&i.forEach(p));if(e.checkProperties)for(const t in this)(null===(n=e.blackList)||void 0===n?void 0:n.includes(t))||p(this[t])}}function b(t={}){return e=>{e[a]?function(t,e){const n=t.\u0275pipe;n.onDestroy=f(n.onDestroy,e)}(e,t):function(t,e){t.prototype.ngOnDestroy=f(t.prototype.ngOnDestroy,e)}(e,t),function(t){t.prototype[l]=!0}(e)}}function g(t,e){return n=>{const i=u(e);return"string"==typeof e?function(t,e,n){const i=t[e];h(t,n),t[e]=function(){i.apply(this,arguments),d(this,n),t[e]=i}}(t,e,i):h(t,i),n.pipe(Object(o.a)(t[i]))}}},"h2+Y":function(t,e,n){"use strict";n.d(e,"a",(function(){return g})),n.d(e,"b",(function(){return v}));var i=n("kZht"),r=n("An66"),s=n("pTnX"),o=n("5XID"),a=n("FxgA"),c=n("bwdy"),l=n("KTx3"),u=n("xVbo");const h=["primaryValueBar"];class d{constructor(t){this._elementRef=t}}const p=Object(s.w)(d,"primary"),f=new i.s("mat-progress-bar-location",{providedIn:"root",factory:function(){const t=Object(i.W)(r.d),e=t?t.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}});let b=0,g=(()=>{class t extends p{constructor(t,e,n,r){super(t),this._elementRef=t,this._ngZone=e,this._animationMode=n,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new i.o,this._animationEndSubscription=c.a.EMPTY,this.mode="determinate",this.progressbarId="mat-progress-bar-"+b++;const s=r?r.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${s}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===n}get value(){return this._value}set value(t){this._value=m(Object(o.f)(t)||0)}get bufferValue(){return this._bufferValue}set bufferValue(t){this._bufferValue=m(t||0)}_primaryTransform(){return{transform:`scaleX(${this.value/100})`}}_bufferTransform(){return"buffer"===this.mode?{transform:`scaleX(${this.bufferValue/100})`}:null}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const t=this._primaryValueBar.nativeElement;this._animationEndSubscription=Object(l.a)(t,"transitionend").pipe(Object(u.a)(e=>e.target===t)).subscribe(()=>{"determinate"!==this.mode&&"buffer"!==this.mode||this._ngZone.run(()=>this.animationEnd.next({value:this.value}))})})}ngOnDestroy(){this._animationEndSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(i.B),i.Ob(a.a,8),i.Ob(f,8))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-progress-bar"]],viewQuery:function(t,e){var n;1&t&&i.Wc(h,!0),2&t&&i.zc(n=i.cc())&&(e._primaryValueBar=n.first)},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100",1,"mat-progress-bar"],hostVars:4,hostBindings:function(t,e){2&t&&(i.Db("aria-valuenow","indeterminate"===e.mode||"query"===e.mode?null:e.value)("mode",e.mode),i.Gb("_mat-animation-noopable",e._isNoopAnimation))},inputs:{color:"color",mode:"mode",value:"value",bufferValue:"bufferValue"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[i.zb],decls:9,vars:4,consts:[["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(t,e){1&t&&(i.ec(),i.Ub(0,"svg",0),i.Ub(1,"defs"),i.Ub(2,"pattern",1),i.Pb(3,"circle",2),i.Tb(),i.Tb(),i.Pb(4,"rect",3),i.Tb(),i.dc(),i.Pb(5,"div",4),i.Pb(6,"div",5,6),i.Pb(8,"div",7)),2&t&&(i.Cb(2),i.mc("id",e.progressbarId),i.Cb(2),i.Db("fill",e._rectangleFillValue),i.Cb(1),i.mc("ngStyle",e._bufferTransform()),i.Cb(1),i.mc("ngStyle",e._primaryTransform()))},directives:[r.o],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}._mat-animation-noopable.mat-progress-bar{transition:none;animation:none}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}\n'],encapsulation:2,changeDetection:0}),t})();function m(t,e=0,n=100){return Math.max(e,Math.min(n,t))}let v=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},imports:[[r.c,s.j],s.j]}),t})()},h3eB:function(t,e,n){"use strict";n.d(e,"j",(function(){return r})),n.d(e,"h",(function(){return s})),n.d(e,"e",(function(){return o})),n.d(e,"o",(function(){return a})),n.d(e,"n",(function(){return c})),n.d(e,"g",(function(){return l})),n.d(e,"d",(function(){return u})),n.d(e,"c",(function(){return h})),n.d(e,"f",(function(){return d})),n.d(e,"m",(function(){return p})),n.d(e,"l",(function(){return f})),n.d(e,"b",(function(){return b})),n.d(e,"i",(function(){return g})),n.d(e,"k",(function(){return m})),n.d(e,"a",(function(){return v}));var i=n("zqNl");const r=Object(i.g)("Reset Trades State"),s=Object(i.g)("Open User Activity Feeds"),o=Object(i.g)("Close User Activity Feeds"),a=Object(i.g)("Submit Order",Object(i.l)()),c=Object(i.g)("Submit Bracket Order",Object(i.l)()),l=Object(i.g)("Edit Order",Object(i.l)()),u=Object(i.g)("Cancel Order",Object(i.l)()),h=Object(i.g)("Cancel All Orders"),d=Object(i.g)("Display Order Status",Object(i.l)()),p=Object(i.g)("Set Open Positions",Object(i.l)()),f=Object(i.g)("Set Open Orders",Object(i.l)()),b=Object(i.g)("Add Open Order",Object(i.l)()),g=Object(i.g)("Remove Open Order",Object(i.l)()),m=Object(i.g)("Set Fills",Object(i.l)()),v=Object(i.g)("Add Fills",Object(i.l)());Object(i.g)("Calculate Leverage from Margin",Object(i.l)()),Object(i.g)("Calculate Margin from Leverage",Object(i.l)())},hCLc:function(t,e,n){"use strict";n.d(e,"a",(function(){return f})),n.d(e,"b",(function(){return p})),n.d(e,"c",(function(){return b}));var i=n("kZht"),r=n("pTnX"),s=n("jL3B"),o=n("FxgA");const a=["mat-button",""],c=["*"],l=".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.cdk-high-contrast-active .mat-button-focus-overlay{background-color:#fff}.cdk-high-contrast-black-on-white .mat-button-focus-overlay{background-color:#000}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}\n",u=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class h{constructor(t){this._elementRef=t}}const d=Object(r.w)(Object(r.y)(Object(r.x)(h)));let p=(()=>{class t extends d{constructor(t,e,n){super(t),this._focusMonitor=e,this._animationMode=n,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const i of u)this._hasHostAttributes(i)&&this._getHostElement().classList.add(i);t.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t="program",e){this._focusMonitor.focusVia(this._getHostElement(),t,e)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(t=>this._getHostElement().hasAttribute(t))}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(s.h),i.Ob(o.a,8))},t.\u0275cmp=i.Ib({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,e){var n;1&t&&i.Wc(r.r,!0),2&t&&i.zc(n=i.cc())&&(e.ripple=n.first)},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){2&t&&(i.Db("disabled",e.disabled||null),i.Gb("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[i.zb],attrs:a,ngContentSelectors:c,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(i.lc(),i.Ub(0,"span",0),i.kc(1),i.Tb(),i.Pb(2,"span",1),i.Pb(3,"span",2)),2&t&&(i.Cb(2),i.Gb("mat-button-ripple-round",e.isRoundButton||e.isIconButton),i.mc("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[r.r],styles:[l],encapsulation:2,changeDetection:0}),t})(),f=(()=>{class t extends p{constructor(t,e,n){super(e,t,n)}_haltDisabledEvents(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(s.h),i.Ob(i.l),i.Ob(o.a,8))},t.\u0275cmp=i.Ib({type:t,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(t,e){1&t&&i.bc("click",(function(t){return e._haltDisabledEvents(t)})),2&t&&(i.Db("tabindex",e.disabled?-1:e.tabIndex||0)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString()),i.Gb("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[i.zb],attrs:a,ngContentSelectors:c,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(i.lc(),i.Ub(0,"span",0),i.kc(1),i.Tb(),i.Pb(2,"span",1),i.Pb(3,"span",2)),2&t&&(i.Cb(2),i.Gb("mat-button-ripple-round",e.isRoundButton||e.isIconButton),i.mc("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[r.r],styles:[l],encapsulation:2,changeDetection:0}),t})(),b=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},imports:[[r.s,r.j],r.j]}),t})()},hTBg:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s=n("w6/c");e.default=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e}(s.default)},hnst:function(t,e,n){"use strict";n.d(e,"a",(function(){return j}));var i=n("zqNl"),r=n("HM3f"),s=n("jOdJ"),o=n("i67J"),a=n("uJYd"),c=n("h3eB"),l=n("+Px6"),u=n("YyhG"),h=n("J/3c"),d=n("sxqi"),p=n("rxqU"),f=n("kZht"),b=n("aDqW"),g=n("Eu46"),m=n("UVqw"),v=n("An66"),_=n("UVER"),y=n("VbQ3"),O=n("yHDr"),C=n("anSm"),w=n("1o0v"),T=n("NxuZ"),S=n("7J2L");function k(t,e){if(1&t){const t=f.Vb();f.Ub(0,"trigger-orders-mobile",8),f.bc("selectTicker",(function(e){return f.Ec(t),f.fc(3).selectTicker(e)}))("editOrder",(function(e){return f.Ec(t),f.fc(3).editOrder(e)}))("cancelOrder",(function(e){return f.Ec(t),f.fc(3).cancelOrder(e)}))("viewDetailed",(function(e){return f.Ec(t),f.fc(3).viewDetailed(e)})),f.Tb()}2&t&&f.mc("order",e.$implicit)}function E(t,e){if(1&t){const t=f.Vb();f.Sb(0),f.Ub(1,"trigger-orders-desktop",5),f.bc("selectTicker",(function(e){return f.Ec(t),f.fc(2).selectTicker(e)}))("editOrder",(function(e){return f.Ec(t),f.fc(2).editOrder(e)}))("cancelOrder",(function(e){return f.Ec(t),f.fc(2).cancelOrder(e)}))("cancelAllOrders",(function(){return f.Ec(t),f.fc(2).cancelAllOrders()}))("viewDetailed",(function(e){return f.Ec(t),f.fc(2).viewDetailed(e)})),f.gc(2,"async"),f.Tb(),f.Ub(3,"cdk-virtual-scroll-viewport",6),f.Oc(4,k,1,1,"trigger-orders-mobile",7),f.Tb(),f.Rb()}if(2&t){const t=f.fc().ngLet,e=f.fc();f.Cb(1),f.mc("orders",t)("displayTooltips",f.hc(2,4,e.displayTooltips$)),f.Cb(2),f.mc("itemSize",85),f.Cb(1),f.mc("cdkVirtualForOf",t.valueSeq().toArray())}}const x=function(){return{small:100,medium:400,large:800}};function P(t,e){if(1&t&&(f.Ub(0,"div",3),f.Oc(1,E,5,6,"ng-container",4),f.Tb()),2&t){const t=e.ngLet;f.fc();const n=f.Ac(3);f.mc("breakpoints",f.qc(3,x)),f.Cb(1),f.mc("ngIf",t&&t.size>0)("ngIfElse",n)}}const A=function(t){return{pair:t}};function I(t,e){if(1&t&&(f.Ub(0,"p"),f.Qc(1),f.gc(2,"translate"),f.Tb()),2&t){const t=e.ngIf;f.Cb(1),f.Sc(" ",f.ic(2,1,"NO_CONTENT.PAIR_TRIGGERS",f.rc(4,A,t))," ")}}function M(t,e){1&t&&(f.Ub(0,"p",12),f.Qc(1,"NO_CONTENT.ORDERS_TRIGGERS"),f.Tb())}function D(t,e){if(1&t&&(f.Ub(0,"section",9),f.Pb(1,"fa-icon",10),f.Oc(2,I,3,6,"p",4),f.gc(3,"async"),f.Oc(4,M,2,0,"ng-template",null,11,f.Pc),f.Tb()),2&t){const t=f.Ac(5),e=f.fc();var n=null;f.Cb(2),f.mc("ngIf",null==(n=f.hc(3,2,e.filterPair$))?null:n.orUndefined())("ngIfElse",t)}}function R(t,e){1&t&&f.Pb(0,"kraken-loading")}let j=(()=>{class t{constructor(t,e,n){this.store=t,this.translate=e,this.market=n,this.displayTooltips$=this.store.pipe(Object(i.m)(p.y)),this.orders$=this.store.pipe(Object(i.m)(u.o),Object(o.p)()),this.wallets$=this.store.pipe(Object(i.m)(h.h)),this.markets$=this.store.pipe(Object(i.m)(l.f)),this.filterPair$=this.store.pipe(Object(i.m)(p.q)),this.userSelectedFuturesWallet$=this.store.pipe(Object(i.m)(h.n))}selectTicker({symbol:t,replaceUrl:e}){this.market.navigateToMarket(t,e)}editOrder({order:t}){Object(r.a)([this.markets$,this.userSelectedFuturesWallet$]).pipe(Object(s.a)()).subscribe(([e,n])=>{const i=e.get(t.instrument),r=null==n?void 0:n.am;this.store.dispatch(Object(a.g)({name:"edit-order",inputs:{order:t,instrument:i,availableMargin:r}}))})}cancelOrder({id:t}){this.store.dispatch(Object(c.d)({id:t}))}cancelAllOrders(){this.store.dispatch(Object(a.g)({name:"confirmation",inputs:{title:"DIALOG.CONFIRM_ORDER_CANCEL.TITLE",subtitle:"DIALOG.CONFIRM_ORDER_CANCEL.SUBTITLE",body:this.translate.instant("DIALOG.CONFIRM_ORDER_CANCEL.BODY"),buttons:[{label:"BUTTON.YES",colour:"accent",actions:[Object(c.c)(),Object(a.c)()]},{label:"BUTTON.NO",colour:"warn",actions:[Object(a.c)()]}]}}))}viewDetailed({order:t}){this.markets$.pipe(Object(o.h)()).subscribe(e=>{const n=e.get(t.instrument);this.store.dispatch(Object(a.g)({name:"order-details",inputs:{order:t,instrument:n}}))})}}return t.\u0275fac=function(e){return new(e||t)(f.Ob(i.b),f.Ob(b.e),f.Ob(d.a))},t.\u0275cmp=f.Ib({type:t,selectors:[["trigger-orders"]],decls:6,vars:3,consts:[["class","table-wrapper","breakpoint","",3,"breakpoints",4,"ngLet"],["noEntries",""],["loader",""],["breakpoint","",1,"table-wrapper",3,"breakpoints"],[4,"ngIf","ngIfElse"],[3,"orders","displayTooltips","selectTicker","editOrder","cancelOrder","cancelAllOrders","viewDetailed"],[3,"itemSize"],[3,"order","selectTicker","editOrder","cancelOrder","viewDetailed",4,"cdkVirtualFor","cdkVirtualForOf"],[3,"order","selectTicker","editOrder","cancelOrder","viewDetailed"],["body","","ghost","",1,"no-activity"],["icon","list","size","3x"],["unfiltered",""],["translate",""]],template:function(t,e){1&t&&(f.Oc(0,P,2,4,"div",0),f.gc(1,"async"),f.Oc(2,D,6,4,"ng-template",null,1,f.Pc),f.Oc(4,R,1,0,"ng-template",null,2,f.Pc)),2&t&&f.mc("ngLet",f.hc(1,1,e.orders$))},directives:[g.a,m.a,v.n,_.a,y.e,y.a,y.d,O.a,C.a,w.a,T.b,b.a,S.a],pipes:[v.b,b.d],styles:["market-icon[_ngcontent-%COMP%]{font-size:20px}[_nghost-%COMP%]{display:flex;flex-direction:column;padding:var(--spacing)}.table-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%]{height:100%}.no-activity[_ngcontent-%COMP%]{text-align:center;padding:var(--spacing-l)}cdk-virtual-scroll-viewport[_ngcontent-%COMP%]{height:100%}@media (max-width:1024px){.table-wrapper[_ngcontent-%COMP%] trigger-orders-desktop[_ngcontent-%COMP%]{display:none}.table-wrapper[_ngcontent-%COMP%] cdk-virtual-scroll-viewport[_ngcontent-%COMP%]{display:block!important}}.table-wrapper[breakpoint=large][_ngcontent-%COMP%] cdk-virtual-scroll-viewport[_ngcontent-%COMP%], .table-wrapper[breakpoint=medium][_ngcontent-%COMP%] cdk-virtual-scroll-viewport[_ngcontent-%COMP%], .table-wrapper[breakpoint=small][_ngcontent-%COMP%] trigger-orders-desktop[_ngcontent-%COMP%]{display:none}"],changeDetection:0}),t})()},houi:function(t,e,n){"use strict";n.d(e,"a",(function(){return St}));var i=n("D57K"),r=n("gxtV"),s=n("zqNl"),o=n("KQpv"),a=n.n(o),c=n("og7C"),l=n("C05f"),u=n("HM3f"),h=n("KTx3"),d=n("P4Xx"),p=n("YtkY"),f=n("wqq/"),b=n("xVbo"),g=n("w0kG"),m=n("8j5Y"),v=n("Wg7D"),_=n("jOdJ"),y=n("iT4G"),O=n("yBos"),C=n("VmIW"),w=n("i67J"),T=n("a1kK"),S=n("CW1w"),k=n("uJYd"),E=n("h3eB"),x=n("sXtk"),P=n("bjK4"),A=n("+Px6"),I=n("YyhG"),M=n("rxqU"),D=n("l5Az"),R=n("kZht"),j=n("Eu46"),L=n("F6wS"),N=n("TMzY"),U=n("An66"),F=n("anSm"),B=n("1o0v"),z=n("oiza"),V=n("IkSM"),$=n("B6Vo"),H=n("Cc4E"),q=n("zho4"),Q=n("NxuZ"),W=n("WYJo"),G=n("AD/o"),Y=n("chaP"),K=n("rEzU"),Z=n("7J2L"),X=n("aDqW"),J=n("DpwM");const tt=["content"];function et(t,e){1&t&&R.Qb(0)}function nt(t,e){if(1&t&&(R.Ub(0,"div",9),R.Oc(1,et,1,0,"ng-container",10),R.gc(2,"async"),R.Tb()),2&t){R.fc();const t=R.Ac(8),e=R.fc(),n=R.Ac(9);R.Cb(1),R.mc("ngIf",R.hc(2,3,e.spread$))("ngIfThen",t)("ngIfElse",n)}}function it(t,e){1&t&&R.Qb(0)}const rt=function(t,e,n){return{$implicit:t,side:"asks",row:e,fill:n}};function st(t,e){if(1&t&&(R.Sb(0),R.Oc(1,it,1,0,"ng-container",18),R.Rb()),2&t){const t=e.$implicit,n=e.index,i=R.fc().$implicit;R.fc(2);const r=R.Ac(10),s=R.fc();R.Cb(1),R.mc("ngTemplateOutlet",r)("ngTemplateOutletContext",R.tc(2,rt,t,s.askRow(n),s.clampFill(t.total/i)))}}function ot(t,e){1&t&&R.Qb(0)}function at(t,e){if(1&t&&(R.Ub(0,"div",9),R.Oc(1,ot,1,0,"ng-container",10),R.gc(2,"async"),R.Tb()),2&t){R.fc(3);const t=R.Ac(8),e=R.fc(),n=R.Ac(9);R.Cb(1),R.mc("ngIf",R.hc(2,3,e.spread$))("ngIfThen",t)("ngIfElse",n)}}const ct=function(){return[250,100]};function lt(t,e){if(1&t&&(R.Sb(0),R.Ub(1,"div",12),R.Qc(2),R.gc(3,"translate"),R.Tb(),R.Ub(4,"div",19),R.Qc(5),R.gc(6,"translate"),R.Tb(),R.Ub(7,"div",14),R.Qc(8),R.gc(9,"translate"),R.Tb(),R.Rb()),2&t){const t=R.fc(3).ngLet;R.Cb(1),R.mc("sbTooltip","TOOLTIP.BUY_PRICE")("sbDisabled",!t.displayTooltips)("sbDelay",R.qc(17,ct)),R.Cb(1),R.Sc(" ",R.hc(3,11,"COLUMN.PRICE")," "),R.Cb(3),R.Tc(" ",R.hc(6,13,"COLUMN.SIZE")," (",t.sizeUnit,") "),R.Cb(2),R.mc("sbTooltip","TOOLTIP.BUY_TOTAL")("sbDisabled",!t.displayTooltips)("sbDelay",R.qc(18,ct)),R.Cb(1),R.Tc(" ",R.hc(9,15,"COLUMN.TOTAL")," (",t.sizeUnit,") ")}}function ut(t,e){1&t&&R.Qb(0)}const ht=function(t,e,n){return{$implicit:t,side:"bids",row:e,fill:n}};function dt(t,e){if(1&t&&(R.Sb(0),R.Oc(1,ut,1,0,"ng-container",18),R.Rb()),2&t){const t=e.$implicit,n=e.index,i=R.fc().$implicit;R.fc(2);const r=R.Ac(10),s=R.fc();R.Cb(1),R.mc("ngTemplateOutlet",r)("ngTemplateOutletContext",R.tc(2,ht,t,s.bidRow(n),s.clampFill(t.total/i)))}}function pt(t,e){if(1&t&&(R.Sb(0),R.Ub(1,"div",11),R.Sb(2),R.Ub(3,"div",12),R.Qc(4),R.gc(5,"translate"),R.Tb(),R.Ub(6,"div",13),R.Qc(7),R.gc(8,"translate"),R.gc(9,"async"),R.Tb(),R.Ub(10,"div",14),R.Qc(11),R.gc(12,"translate"),R.gc(13,"async"),R.Tb(),R.Rb(),R.Oc(14,st,2,6,"ng-container",15),R.gc(15,"async"),R.Tb(),R.Oc(16,at,3,5,"div",4),R.Ub(17,"div",16),R.Oc(18,lt,10,19,"ng-container",17),R.Oc(19,dt,2,6,"ng-container",15),R.gc(20,"async"),R.Tb(),R.Rb()),2&t){const t=R.fc(2).ngLet,e=R.fc();R.Cb(3),R.mc("sbTooltip","horizontal"===e.orientation?"TOOLTIP.SELL_PRICE":"TOOLTIP.ORDERBOOK_PRICE")("sbDisabled",!t.displayTooltips)("sbDelay",R.qc(35,ct)),R.Cb(1),R.Sc(" ",R.hc(5,21,"COLUMN.PRICE")," "),R.Cb(2),R.mc("sbDisabled",!t.displayTooltips)("sbDelay",R.qc(36,ct)),R.Cb(1),R.Tc(" ",R.hc(8,23,"COLUMN.SIZE")," (",R.hc(9,25,e.sizeUnit$),") "),R.Cb(3),R.mc("sbTooltip","horizontal"===e.orientation?"TOOLTIP.SELL_TOTAL":"TOOLTIP.ORDERBOOK_TOTAL")("sbDisabled",!t.displayTooltips)("sbDelay",R.qc(37,ct)),R.Cb(1),R.Tc(" ",R.hc(12,27,"COLUMN.TOTAL")," (",R.hc(13,29,e.sizeUnit$),") "),R.Cb(3),R.mc("ngForOf",R.hc(15,31,e.asksTable$))("ngForTrackBy",e.trackByPrice),R.Cb(2),R.mc("ngIf","horizontal"!==e.orientation),R.Cb(1),R.Gb("book--flipy","horizontal"===e.orientation),R.Cb(1),R.mc("ngIf","horizontal"===e.orientation),R.Cb(1),R.mc("ngForOf",R.hc(20,33,e.bidsTable$))("ngForTrackBy",e.trackByPrice)}}function ft(t,e){if(1&t&&(R.Sb(0),R.Oc(1,pt,21,38,"ng-container",6),R.gc(2,"async"),R.Rb()),2&t){const t=R.fc(2),e=R.Ac(11);R.Cb(1),R.mc("ngIf",R.hc(2,2,t.largestTotal$))("ngIfElse",e)}}function bt(t,e){if(1&t){const t=R.Vb();R.Ub(0,"span"),R.Qc(1),R.gc(2,"sato"),R.Ub(3,"span",20),R.Qc(4),R.gc(5,"translate"),R.Tb(),R.Tb(),R.Ub(6,"span"),R.Qc(7),R.gc(8,"percent"),R.Tb(),R.Ub(9,"span"),R.Qc(10,"|"),R.Tb(),R.Ub(11,"span",21),R.Qc(12),R.gc(13,"translate"),R.gc(14,"sato"),R.Tb(),R.Ub(15,"span",22),R.Ub(16,"fa-icon",23),R.bc("click",(function(){return R.Ec(t),R.fc(2).decreaseGrouping()})),R.gc(17,"translate"),R.Tb(),R.Ub(18,"fa-icon",24),R.bc("click",(function(){return R.Ec(t),R.fc(2).increaseGrouping()})),R.gc(19,"translate"),R.Tb(),R.Tb()}if(2&t){const t=e.$implicit,n=R.fc().ngLet,i=R.fc();R.Cb(1),R.Sc(" ",R.ic(2,15,t.value,n.market)," "),R.Cb(2),R.mc("sbDisabled",!n.displayTooltips)("sbDelay",R.qc(32,ct)),R.Cb(1),R.Sc(" ",R.hc(5,18,"LABEL.SPREAD")," "),R.Cb(3),R.Sc("(",R.ic(8,20,t.percent,"1.2-2"),")"),R.Cb(4),R.mc("sbDisabled",!n.displayTooltips)("sbDelay",R.qc(33,ct)),R.Cb(1),R.Tc(" ",R.hc(13,23,"LABEL.GROUP"),": ",R.ic(14,25,i.groupingTickSize(n.market,n.grouping),n.market)," "),R.Cb(4),R.Gb("group--disabled",1===n.grouping),R.mc("matTooltip",R.hc(17,28,"TOOLTIP.DECREASE_ORDER_GROUPING")),R.Cb(2),R.Gb("group--disabled",5e3===n.grouping),R.mc("matTooltip",R.hc(19,30,"TOOLTIP.INCREASE_ORDER_GROUPING"))}}function gt(t,e){if(1&t){const t=R.Vb();R.Ub(0,"fa-icon",32),R.bc("click",(function(e){R.Ec(t);const n=R.fc().$implicit,i=R.fc(2);return e.preventDefault(),i.cancelFirstOrderAtPrice(n.price)})),R.gc(1,"translate"),R.Tb()}2&t&&R.mc("matTooltip",R.hc(1,1,"TOOLTIP.CANCEL_OPEN_ORDER"))}const mt=function(t,e){return{"global__text--accent":t,"global__text--warn":e}};function vt(t,e){if(1&t){const t=R.Vb();R.Pb(0,"div"),R.Pb(1,"div",25),R.Pb(2,"div",26),R.Ub(3,"div",27),R.bc("click",(function(){R.Ec(t);const n=e.$implicit;return R.fc(2).updateFormPrice(n.price,n.qty)})),R.Qc(4),R.gc(5,"sato"),R.Tb(),R.Ub(6,"div",28),R.bc("click",(function(){R.Ec(t);const n=e.$implicit;return R.fc(2).updateFormQty(n.qty,n.price)})),R.Qc(7),R.gc(8,"satoSize"),R.Tb(),R.Ub(9,"div",29),R.bc("click",(function(){R.Ec(t);const n=e.$implicit;return R.fc(2).updateFormQty(n.total,n.price)})),R.Qc(10),R.gc(11,"satoSize"),R.Tb(),R.Ub(12,"div",30),R.bc("click",(function(){R.Ec(t);const n=e.$implicit;return R.fc(2).updateFormPrice(n.price,n.qty)})),R.Oc(13,gt,2,3,"fa-icon",31),R.Tb()}if(2&t){const t=e.$implicit,n=e.side,i=e.row,r=e.fill,s=R.fc().ngLet,o=R.fc();R.Lc("grid-row-start",i),R.Gb("row",!0)("hover",o.hoveredSide===n&&o.hoveredIdx===i),R.Db("data-row",i),R.Cb(1),R.Lc("grid-row-start",i)("--fill",r),R.Db("data-row",i),R.Cb(1),R.Lc("grid-row-start",i),R.Db("data-row",i),R.Cb(1),R.Lc("grid-row-start",i),R.Gb("update-cell",!s.updatePriceAndQty),R.mc("ngClass",R.sc(47,mt,"bids"===n&&"dark"===s.theme,"asks"===n&&"dark"===s.theme)),R.Db("data-row",i),R.Cb(1),R.Sc(" ",R.ic(5,38,t.price,s.market)," "),R.Cb(2),R.Lc("grid-row-start",i),R.Gb("update-cell",!s.updatePriceAndQty),R.Db("data-row",i),R.Cb(1),R.Sc(" ",R.ic(8,41,t.displayQty,s.market)," "),R.Cb(2),R.Lc("grid-row-start",i),R.Gb("update-cell",!s.updatePriceAndQty),R.Db("data-row",i),R.Cb(1),R.Sc(" ",R.ic(11,44,t.displayTotal,s.market)," "),R.Cb(2),R.Lc("grid-row-start",i),R.Db("data-row",i),R.Cb(1),R.mc("ngIf",t.hasOpen)}}function _t(t,e){if(1&t){const t=R.Vb();R.Sb(0),R.Ub(1,"mat-card",3),R.bc("orientationChange",(function(e){return R.Ec(t),R.fc().orientationChange(e)})),R.Oc(2,nt,3,5,"div",4),R.Ub(3,"mat-card-content",null,5),R.Oc(5,ft,3,4,"ng-container",6),R.gc(6,"async"),R.Tb(),R.Tb(),R.Oc(7,bt,20,34,"ng-template",null,7,R.Pc),R.Oc(9,vt,14,50,"ng-template",null,8,R.Pc),R.Rb()}if(2&t){const t=R.fc(),e=R.Ac(11);R.Cb(2),R.mc("ngIf","horizontal"===t.orientation),R.Cb(3),R.mc("ngIf",R.hc(6,3,t.loaded$))("ngIfElse",e)}}function yt(t,e){if(1&t&&(R.Ub(0,"span",20),R.gc(1,"async"),R.Qc(2),R.gc(3,"translate"),R.Tb(),R.Ub(4,"span"),R.Qc(5,": -"),R.Tb()),2&t){const t=R.fc();R.mc("sbDisabled",!1===R.hc(1,3,t.displayTooltips$))("sbDelay",R.qc(7,ct)),R.Cb(2),R.Sc(" ",R.hc(3,5,"LABEL.SPREAD")," ")}}function Ot(t,e){1&t&&R.Pb(0,"kraken-loading")}const Ct=function(t,e,n,i,r,s,o){return{market:t,grouping:e,displayTooltips:n,sizeFormatter:i,sizeUnit:r,updatePriceAndQty:s,theme:o}},wt=a()("app:book");function Tt([t,e,n],[i,r],s,o,a){const c=e+r,l=Object(S.d)(r,i,o),u=n+l,h={notionalQty:l,displayQty:"order"===a?r:l,notionalTotal:u,displayTotal:"order"===a?c:u};return t.push(Object.assign({qty:r,price:i,total:c,hasOpen:s.has(i)},h)),[t,c,u]}let St=(()=>{let t=class{constructor(t,e,n,i,r,o){this.el=t,this.env=e,this.cdr=n,this.store=i,this.trade=r,this.zone=o,this.loaded$=new l.a(!1),this.retryDelay=100,this.hoveredSide="",this.hoveredIdx=-1,this.orientation="vertical",this.horizontal=!1,this.fullBook=!1,this.throttle=250,this.depthMultiplier=1,this.userData$=this.store.pipe(Object(s.m)(M.a)),this.displayTooltips$=this.store.pipe(Object(s.m)(M.y)),this.updatePriceAndQty$=this.userData$.pipe(Object(p.a)(t=>t.updateFormQuantityFromBook)),this.fullOrderbook$=this.userData$.pipe(Object(p.a)(t=>t.fullOrderbook)),this.assets$=this.store.pipe(Object(s.m)(A.d)),this.selectedMarket$=this.store.pipe(Object(s.m)(A.n)),this.selectedSymbolParts$=this.store.pipe(Object(s.m)(A.t)),this.orderbookGroup$=this.store.pipe(Object(s.m)(P.p)),this.orderbookDepth$=this.store.pipe(Object(s.m)(P.o)),this.userOrderPrices$=this.store.pipe(Object(s.m)(I.c)),this.userTradeOrders$=this.store.pipe(Object(s.m)(I.l)),this.quantityUnits$=this.store.pipe(Object(s.m)(M.r)),this.sizeUnit$=this.store.pipe(Object(s.m)(I.n)),this.sizeFormatter$=this.store.pipe(Object(s.m)(I.m)),this.layoutTheme$=this.store.pipe(Object(s.m)(P.q)),this.subbedProduct=void 0,this.subbedGrouping=1,this.asksMap$=new l.a(Object(c.b)()),this.bidsMap$=new l.a(Object(c.b)()),this.asks$=this.asksMap$.pipe(Object(p.a)(t=>t.filter(t=>t>0))),this.bids$=this.bidsMap$.pipe(Object(p.a)(t=>t.filter(t=>t>0))),this.asksData$=Object(u.a)([this.asks$,this.userOrderPrices$,this.orderbookDepth$,this.selectedSymbolParts$,this.quantityUnits$]).pipe(Object(p.a)(([t,e,n,i,r])=>t.toArray().sort((t,e)=>t[0]-e[0]).slice(0,this.fullBook?void 0:n).reduce((t,n)=>Tt(t,n,e,i.inverse,r.trading),[[],0,0])),Object(f.a)(1)),this.bidsData$=Object(u.a)([this.bids$,this.userOrderPrices$,this.orderbookDepth$,this.selectedSymbolParts$,this.quantityUnits$]).pipe(Object(p.a)(([t,e,n,i,r])=>t.toArray().sort((t,e)=>e[0]-t[0]).slice(0,this.fullBook?void 0:n).reduce((t,n)=>Tt(t,n,e,i.inverse,r.trading),[[],0,0])),Object(f.a)(1)),this.asksTable$=this.asksData$.pipe(Object(p.a)(([t])=>"horizontal"===this.orientation?t:[...t].reverse()),Object(w.p)(this.throttle)),this.bidsTable$=this.bidsData$.pipe(Object(p.a)(([t])=>t),Object(w.p)(this.throttle)),this.largestTotal$=Object(u.a)([this.asksData$,this.bidsData$]).pipe(Object(p.a)(([[,t],[,e]])=>Math.max(t,e,1)),Object(w.p)(this.throttle)),this.spread$=Object(u.a)([this.asksData$,this.bidsData$]).pipe(Object(p.a)(([[t],[e]])=>Object(T.g)(t,e)),Object(w.p)(this.throttle))}ngOnInit(){this.handleBookMsgs(),this.fullOrderbook$.pipe(Object(r.b)(this)).subscribe(t=>{this.depthMultiplier=t?3:1,this.updateOrderbookDepth(this.calculateDepth)}),this.selectedMarket$.pipe(Object(r.b)(this)).subscribe(t=>{t&&this.resubFeed(t.symbol,this.subbedGrouping)}),this.orderbookGroup$.pipe(Object(r.b)(this)).subscribe(t=>{t&&this.resubFeed(this.subbedProduct,t)}),this.userOrderPrices$.pipe(Object(r.b)(this)).subscribe(()=>{this.bidsMap$.next(Object(c.b)(this.bidsMap$.value)),this.asksMap$.next(Object(c.b)(this.asksMap$.value))}),Object(h.a)(document,"visibilitychange").pipe(Object(r.b)(this)).subscribe(()=>{document.hidden&&this.socket$?this.socket$.complete():this.restartSocket()})}ngAfterContentInit(){Object(h.a)(this.el.nativeElement,"mouseover").pipe(Object(b.a)(t=>!!t.target&&!!t.target.dataset.row),Object(r.b)(this)).subscribe(t=>{const e=t.target,n=e.dataset.row||"-1",i=e.closest(".book");this.hoveredSide=i.classList.contains("asks")?"asks":"bids",this.hoveredIdx=Number(n),this.cdr.detectChanges()}),Object(h.a)(this.el.nativeElement,"mouseleave").subscribe(t=>{this.hoveredSide="",this.hoveredIdx=-1,this.cdr.detectChanges()})}ngOnChanges(t){t.horizontal&&t.horizontal.currentValue&&this.updateOrderbookDepth(this.calculateDepth)}setWheelScroll(){Object(h.a)(this.el.nativeElement,"wheel").pipe(Object(b.a)(t=>1===this.depthMultiplier),Object(g.a)(this.orderbookGroup$),Object(m.a)(([t,e])=>t.preventDefault()),Object(v.a)(80),Object(b.a)(([t,e])=>1===e?t.deltaY<0:5e3!==e||t.deltaY>0),Object(p.a)(([t,e])=>t.deltaY<0?"plus":"minus"),Object(r.b)(this)).subscribe(t=>this.store.dispatch(Object(k.w)({direction:t})))}updateOrderbookDepth(t){this.zone.run(()=>this.store.dispatch(Object(k.v)({depth:t*this.depthMultiplier})))}updateFormPrice(t,e){this.updatePriceAndQty$.pipe(Object(_.a)()).subscribe(n=>{n&&(wt("updating order form",{quantity:e}),this.trade.updateOrderFormQty(e)),wt("updating order form",{price:t}),this.trade.updateOrderFormPrice(t)})}updateFormQty(t,e){this.updatePriceAndQty$.pipe(Object(_.a)()).subscribe(n=>{n&&e&&(wt("updating order form",{price:e}),this.trade.updateOrderFormPrice(e)),wt("updating order form",{quantity:t}),this.trade.updateOrderFormQty(t)})}cancelFirstOrderAtPrice(t){Object(d.a)([this.selectedMarket$.pipe(Object(w.h)()),this.userTradeOrders$.pipe(Object(_.a)())]).pipe(Object(_.a)()).subscribe(([e,n])=>{n.filter(t=>t.instrument.toLowerCase()===e.symbol.toLowerCase()).filter(e=>e.limit_price===t).map(t=>Object(C.Some)(t.order_id)).first(Object(C.None)()).forEach(t=>{this.store.dispatch(Object(E.d)({id:t}))})})}get calculateDepth(){if(this.content){const t=(this.content.nativeElement.offsetHeight-24)/25;return"horizontal"===this.orientation?Math.floor(t):Math.floor(t/2)-1}return 8}handleBookMsgs(){this.socket$=Object(O.a)(this.env.urls.websocket+"?orderbook"),this.socket$.next({event:"subscribe",feed:"heartbeat"}),this.socket$.pipe(Object(y.a)(12500),Object(b.a)(t=>!("event"in t)&&"heartbeat"!==t.feed),Object(r.b)(this)).subscribe(({feed:t,asks:e,bids:n})=>{if(t.includes("snapshot"))this.asksMap$.next(Object(c.b)(e)),this.bidsMap$.next(Object(c.b)(n));else{const t=this.asksMap$.value.merge(e);this.asksMap$.next(t);const i=this.bidsMap$.value.merge(n);this.bidsMap$.next(i)}this.retryDelay=100,this.loaded$.next(!0)},t=>this.handleSocketError(t),()=>wt("WS complete"))}resubFeed(t,e){if(this.socket$){if(this.subbedProduct&&this.subbedGrouping){const t=this.subbedGrouping;this.socket$.next({event:"unsubscribe",feed:this.fullBook?"book_ui_full_"+t:"book_ui_"+t,product_ids:[this.subbedProduct]})}t&&this.socket$.next({event:"subscribe",feed:this.fullBook?"book_ui_full_"+e:"book_ui_"+e,product_ids:[t]}),this.subbedProduct=t,this.subbedGrouping=e}}handleSocketError(t){this.retryDelay=Object(w.b)(this.retryDelay),wt(`Orderbook WS Error; Restarting in ${this.retryDelay}ms`,t),this.restartSocket()}restartSocket(){this.loaded$.next(!1),this.socket$&&this.socket$.complete(),setTimeout(()=>{this.handleBookMsgs(),this.resubFeed(this.subbedProduct,this.subbedGrouping)},this.retryDelay)}groupingTickSize(t,e){return t?e*t.tickSize:1}askRow(t){return t+2}bidRow(t){return t+1+Number("horizontal"===this.orientation)}clampFill(t){return Math.min(Math.max(.01,t),1)}decreaseGrouping(){this.store.dispatch(Object(k.w)({direction:"minus"}))}increaseGrouping(){this.store.dispatch(Object(k.w)({direction:"plus"}))}trackByPrice(t,e){return e.price}orientationChange(t){this.orientation=t,this.updateOrderbookDepth(this.calculateDepth)}};return t.\u0275fac=function(e){return new(e||t)(R.Ob(R.l),R.Ob(x.a),R.Ob(R.h),R.Ob(s.b),R.Ob(D.a),R.Ob(R.B))},t.\u0275cmp=R.Ib({type:t,selectors:[["orderbook"]],viewQuery:function(t,e){var n;1&t&&R.Wc(tt,!0),2&t&&R.zc(n=R.cc())&&(e.content=n.first)},features:[R.Ab],decls:12,vars:23,consts:[[4,"ngLet"],["noSpread",""],["loader",""],["orientation","","minHorizontal","500",3,"orientationChange"],["body","","ghost","","class","spread",4,"ngIf"],["content",""],[4,"ngIf","ngIfElse"],["spread",""],["order",""],["body","","ghost","",1,"spread"],[4,"ngIf","ngIfThen","ngIfElse"],["body","",1,"book","asks"],["ghost","","uppercase","","tooltip","",1,"header","price",3,"sbTooltip","sbDisabled","sbDelay"],["ghost","","uppercase","","tooltip","","sbTooltip","TOOLTIP.SIZE",1,"header","qty",3,"sbDisabled","sbDelay"],["ghost","","uppercase","","tooltip","",1,"header","total",3,"sbTooltip","sbDisabled","sbDelay"],[4,"ngFor","ngForOf","ngForTrackBy"],["body","",1,"book","bids"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["ghost","","uppercase","",1,"header","qty"],["tooltip","","sbTooltip","TOOLTIP.SPREAD",3,"sbDisabled","sbDelay"],["tooltip","","sbTooltip","TOOLTIP.GROUP",1,"no-wrap",3,"sbDisabled","sbDelay"],[1,"no-wrap"],["icon","minus","size","2x",3,"matTooltip","click"],["icon","plus","size","2x",3,"matTooltip","click"],[1,"fill"],["flash","",1,"flash"],["body","","mono","",1,"price",3,"ngClass","click"],["label","","mono","",1,"qty",3,"click"],["label","","mono","",1,"total",3,"click"],[1,"cancel",3,"click"],["icon","close-large","size","lg","class","global__text--warn",3,"matTooltip","click",4,"ngIf"],["icon","close-large","size","lg",1,"global__text--warn",3,"matTooltip","click"]],template:function(t,e){1&t&&(R.Oc(0,_t,11,5,"ng-container",0),R.gc(1,"async"),R.gc(2,"async"),R.gc(3,"async"),R.gc(4,"async"),R.gc(5,"async"),R.gc(6,"async"),R.gc(7,"async"),R.Oc(8,yt,6,8,"ng-template",null,1,R.Pc),R.Oc(10,Ot,1,0,"ng-template",null,2,R.Pc)),2&t&&R.mc("ngLet",R.xc(15,Ct,R.hc(1,1,e.selectedMarket$),R.hc(2,3,e.orderbookGroup$),R.hc(3,5,e.displayTooltips$),R.hc(4,7,e.sizeFormatter$),R.hc(5,9,e.sizeUnit$),R.hc(6,11,e.updatePriceAndQty$),R.hc(7,13,e.layoutTheme$)))},directives:[j.a,L.a,N.a,U.n,L.b,F.a,B.a,z.a,V.a,$.a,H.a,q.a,U.m,U.s,Q.b,W.a,G.a,Y.a,U.l,K.a,Z.a],pipes:[U.b,X.d,J.c,U.u,J.d],styles:["[_nghost-%COMP%]{display:block;height:100%}mat-card[_ngcontent-%COMP%]{box-shadow:none!important}mat-card-title[_ngcontent-%COMP%]{justify-content:center;border-bottom:1px solid var(--border-colour-dark)}mat-card-content[_ngcontent-%COMP%]{display:flex;flex-flow:column;height:100%}[orientation=horizontal][_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{flex-flow:row-reverse;height:calc(100% - 45px)}@media (max-width:599px){[orientation=horizontal][_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{height:100%!important}}.group--disabled[_ngcontent-%COMP%]{opacity:.3;pointer-events:none}.book[_ngcontent-%COMP%]{display:grid;grid-auto-flow:row;grid-auto-rows:25px;grid-template-columns:repeat(3,3fr) 1fr;align-items:center;width:100%}.book.bids[_ngcontent-%COMP%]{--fill-color:rgba(6,115,37,0.25)}.book.asks[_ngcontent-%COMP%]{--fill-color:rgba(188,27,49,0.25)}.update-cell[_ngcontent-%COMP%]:hover{font-weight:700}.header[_ngcontent-%COMP%]{grid-row:1/span 1}.cancel[_ngcontent-%COMP%], .price[_ngcontent-%COMP%], .qty[_ngcontent-%COMP%], .total[_ngcontent-%COMP%]{grid-row-end:span 1;z-index:2;padding:.5em;text-align:right;cursor:pointer;contain:content}.price[_ngcontent-%COMP%]{grid-column:1/span 1}.price.header[_ngcontent-%COMP%]{color:var(--ghost-colour)}.book--flipy[_ngcontent-%COMP%] .price[_ngcontent-%COMP%]{grid-column:-3/span 1}.qty[_ngcontent-%COMP%]{color:var(--input-colour);grid-column:2/span 1}.qty.header[_ngcontent-%COMP%]{color:var(--ghost-colour)}.book--flipy[_ngcontent-%COMP%] .qty[_ngcontent-%COMP%]{grid-column:-4/span 1}@media (max-width:1024px){[orientation=horizontal][_ngcontent-%COMP%] .qty[_ngcontent-%COMP%]{display:none}}.total[_ngcontent-%COMP%]{color:var(--input-colour);grid-column:3/span 1}.total.header[_ngcontent-%COMP%]{color:var(--ghost-colour)}.book--flipy[_ngcontent-%COMP%] .total[_ngcontent-%COMP%]{grid-column:-5/span 1}@media (max-width:1024px){[orientation=horizontal][_ngcontent-%COMP%] .book--flipy[_ngcontent-%COMP%] .total[_ngcontent-%COMP%]{grid-column:-5/span 1!important}}@media (max-width:1024px){[orientation=horizontal][_ngcontent-%COMP%] .total[_ngcontent-%COMP%]{grid-column:2/span 2!important}}.cancel[_ngcontent-%COMP%]{grid-column:4/span 1}.book--flipy[_ngcontent-%COMP%] .cancel[_ngcontent-%COMP%]{grid-column:-2/span 1}.cancel[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{cursor:pointer}.row[_ngcontent-%COMP%]{grid-column:1/-1;height:26px;width:100%;z-index:1;contain:strict}.row.hover[_ngcontent-%COMP%]{background-color:rgba(var(--text-colour-rgb),.08)}.fill[_ngcontent-%COMP%]{grid-column:1/-1;height:25px;width:100%;z-index:0;background-color:var(--fill-color);transform:scaleX(var(--fill));transform-origin:0 0;contain:strict}.book--flipy[_ngcontent-%COMP%] .fill[_ngcontent-%COMP%]{transform-origin:100% 0}.flash[_ngcontent-%COMP%]{grid-column:1/-1;height:25px;width:100%;z-index:3;pointer-events:none;contain:strict}.spread[_ngcontent-%COMP%]{display:grid;grid-auto-flow:column;justify-content:center;align-items:center;gap:var(--spacing);padding:var(--spacing);text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none}.spread[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{cursor:pointer}.spread[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]:hover{color:var(--text-colour)}@media (max-width:599px){.spread[_ngcontent-%COMP%]{display:none}}.no-wrap[_ngcontent-%COMP%]{white-space:nowrap}"],changeDetection:0}),t=Object(i.d)([Object(r.a)()],t),t})()},hsG4:function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var i=n("6uGs"),r=n("GoAz"),s=n("7SLS"),o=n("YtkY"),a=n("nXdR"),c=n("sXtk"),l=n("7UDb"),u=n("i67J"),h=n("mlVJ"),d=n("kZht");const p={headers:new i.c({"Content-Type":"application/json","Cache-Control":"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"}),withCredentials:!0};let f=(()=>{class t{constructor(t,e){this.http=t,this.env=e}getSummary(){return this.http.get(this.env.urls.auth+"/account",p)}acceptTerms(){return this.http.post(this.env.urls.rest+"/readandagree","",l.a)}activateSSO(){return this.http.post(this.env.urls.auth+"/account/activate-kraken-transfers","",l.a)}getAccountDetails(){return this.http.get(this.env.urls.rest+"/accountdetails",l.a)}saveFrontendData(t){const e={data:JSON.stringify(Object.assign(Object.assign({},t),{type:void 0}))};return this.http.post(this.env.urls.rest+"/frontenddata",e,l.a)}updateNewsletter(t){return this.http.post(this.env.urls.rest+"/changeemailalerts",{newsletter:t},l.a)}accountLimits(){return this.http.get(this.env.urls.rest+"/accountlimits",l.a)}getAPIKeys(){return this.http.get(this.env.urls.auth+"/api-keys/v3",p)}createAPIKey(t){return this.http.post(this.env.urls.auth+"/api-keys/v3",{permissions:{general:t.general,transfer:t.transfer},mfaRequestId:t.mfaRequestId},p)}deleteAPIKey(t){const e={mfaRequestId:t.mfaRequestId};return this.http.request("delete",`${this.env.urls.auth}/api-keys/v3/${t.id}`,Object.assign(Object.assign({},p),{body:e,observe:"response",responseType:"json"})).pipe(Object(s.a)(t.id))}resetAPIKey(t){return this.http.post(`${this.env.urls.auth}/api-keys/v3/${t.id}/reset-nonce`,null,Object.assign(Object.assign({},p),{observe:"response",responseType:"json"}))}fetchEmailAlerts(){return this.http.get(this.env.urls.rest+"/emailalerts",l.a).pipe(Object(o.a)(t=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t.margining),t.marketing),t.settlements),t.system),t.transfers)))}changeEmailAlerts(t){const e=Object.assign(Object.assign({},t),{withdrawalRequest:t.withdrawalReceived});return this.http.post(this.env.urls.rest+"/changeemailalerts",e,l.a).pipe(Object(o.a)(({currentEmailAlerts:t})=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t.margining),t.marketing),t.settlements),t.system),t.transfers)))}getSubAccounts(){return this.http.get(this.env.urls.rest+"/balances/subaccounts",l.a).pipe(Object(o.a)(({subAccountBalances:t})=>t)).pipe(Object(o.a)(t=>t.map(t=>Object.assign(Object.assign({},t),{holdingAccounts:t.holdingAccounts.map(t=>({name:t.currency.toUpperCase(),currency:t.currency.toUpperCase(),type:"holding",balance:t.amount})),futuresAccounts:t.futuresAccounts.map(t=>{var e;return{name:t.name.toUpperCase(),type:"futures",balance:t.availableMargin,currency:null===(e=Object(a.d)(t.name))||void 0===e?void 0:e.replace(h.a,"XBT")}}),flexAccount:t.flexAccount.currencies.map(t=>({name:"FLEX-"+t.currency.toUpperCase().replace(h.b,"BTC"),type:"flex",balance:t.available,currency:t.currency.toUpperCase()}))}))))}getUserDocs(){return this.http.get(this.env.urls.rest+"/documents",l.a)}respondUserDoc({documentName:t,response:e}){return this.http.post(`${this.env.urls.rest}/terms-and-conditions/${t}`,{response:e},l.a).pipe(Object(u.l)(400,10))}affirmUKClassification(t){return this.http.put(this.env.urls.rest+"/ukretailpopup",{investorType:t},l.a)}fetchUserVolumes(){return this.http.get(this.env.urls.rest+"/feeschedules/volumes",l.a).pipe(Object(u.k)("volumesByFeeSchedule"))}getUserAlgos(){return this.http.get(this.env.urls.rest+"/algo-ids",l.a)}createAlgo(t){return this.http.post(this.env.urls.rest+"/algo-ids",{label:t},l.a)}signAlgo(t){return this.http.post(`${this.env.urls.rest}/algo-ids/${t}/sign`,{},l.a)}signWaitingList(t){var e,n,i;const s=new URLSearchParams;s.append("lid","1547"),s.append("mid","514004678"),s.append("Full Name 2",t.fullName),s.append("Email Address",t.email),s.append("Country of Residence launch form",t.country),s.append("AUM",(null===(e=t.aum)||void 0===e?void 0:e.toString())||""),s.append("Estimated trading volume launch form",(null===(n=t.estTradingVol)||void 0===n?void 0:n.toString())||""),s.append("Company name",(null===(i=t.companyName)||void 0===i?void 0:i.toString())||"");const o=fetch("https://cl.s11.exct.net/subscribe.aspx",{method:"POST",body:s,mode:"no-cors",redirect:"follow"});return Object(r.a)(o)}}return t.\u0275fac=function(e){return new(e||t)(d.Yb(i.a),d.Yb(c.a))},t.\u0275prov=d.Kb({token:t,factory:t.\u0275fac}),t})()},hvMX:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("+6xv");const r=Object(i.n)("transformMenu",[Object(i.k)("void",Object(i.l)({opacity:0})),Object(i.m)("void => enter",Object(i.g)([Object(i.e)("100ms linear",Object(i.l)({opacity:1}))])),Object(i.m)("* => void",Object(i.e)("100ms 25ms linear",Object(i.l)({opacity:0})))])},"i2L+":function(t,e,n){"use strict";n.d(e,"a",(function(){return Ct}));var i=n("An66"),r=n("6uGs"),s=n("3kIJ"),o=n("1VvW"),a=n("NxuZ"),c=n("BpC5"),l=n("aDqW"),u=n("JpLq"),h=n("0o+O"),d=n("0FJ2"),p=n("i9Na"),f=n("MRfT"),b=n("4g2U"),g=n("lw+r"),m=n("wdR4"),v=n("5GZx"),_=n("ZtZA"),y=n("VbQ3"),O=n("zW++"),C=n("hCLc"),w=n("yvKM"),T=n("F6wS"),S=n("UDV5"),k=n("pTnX"),E=n("807T"),x=n("mcff"),P=n("EmXI"),A=n("Tcl6"),I=n("kZht"),M=(n("5XID"),n("ZTXN")),D=(n("kuMc"),n("jIqt")),R=(n("jL3B"),n("sBeF"),n("Hq54"),n("8EXQ"));let j=(()=>{class t{}return t.\u0275mod=I.Mb({type:t}),t.\u0275inj=I.Lb({factory:function(e){return new(e||t)},imports:[[k.l,k.s,k.j,k.q,i.c],k.l,k.j,k.q,R.b]}),t})();var L=n("EZWv"),N=n("h2+Y"),U=n("8spT"),F=n("IOEv"),B=n("P0vk"),z=n("LoUP"),V=n("vE5V");n("ROBh");let $=(()=>{class t{}return t.\u0275mod=I.Mb({type:t}),t.\u0275inj=I.Lb({factory:function(e){return new(e||t)},imports:[[V.a]]}),t})();n("47ST"),n("P4Xx"),n("bwdy"),n("8j5Y");var H=n("YtkY");n("4e/d"),n("ruxD"),n("7ntQ"),n("J+dc"),n("ENSU");let q=(()=>{class t{}return t.\u0275mod=I.Mb({type:t}),t.\u0275inj=I.Lb({factory:function(e){return new(e||t)},imports:[[k.j],k.j]}),t})();n("Ohay"),n("+6xv");let Q=(()=>{class t{constructor(){this.changes=new M.b,this.optionalLabel="Optional"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(I.Kb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const W={provide:Q,deps:[[new I.C,new I.L,Q]],useFactory:function(t){return t||new Q}};let G=(()=>{class t{}return t.\u0275mod=I.Mb({type:t}),t.\u0275inj=I.Lb({factory:function(e){return new(e||t)},providers:[W,k.d],imports:[[k.j,i.c,_.g,C.c,$,q,k.s],k.j]}),t})();var Y=n("O30t"),K=n("sq1e"),Z=n("aJOL"),X=n("WYJo"),J=n("Ee7O"),tt=(n("rgaJ"),n("9hG1")),et=n("GoAz"),nt=n("mawV"),it=n("Qbn9"),rt=n("i67J");let st=(()=>{class t extends i.b{constructor(t){super(t)}transform(t){return null!=t?(this.value=t,this.timer||(this.timer=this.getObservable()),super.transform(this.timer)):super.transform(t)}getObservable(){const t=this.value,e=t instanceof tt.DateTime?t:t instanceof Date?tt.DateTime.fromJSDate(t):"string"==typeof t?tt.DateTime.fromISO(t,{zone:"utc"}):tt.DateTime.fromMillis(t,{zone:"utc"}),n=tt.DateTime.utc().toMillis()-e.toMillis(),i=n>it.b?rt.i.slice(2):n>it.c?rt.i.slice(1):rt.i;return Object(et.a)(i).pipe(Object(nt.a)(),Object(D.a)(0),Object(H.a)(()=>e.toRelative({style:"short",padding:500,base:tt.DateTime.utc().plus({milliseconds:501})})))}}return t.\u0275fac=function(e){return new(e||t)(I.ac())},t.\u0275pipe=I.Nb({name:"relativeTime",type:t,pure:!1}),t})();var ot=n("Knqz");n("ka3Y"),n("zqNl"),n("YyhG"),n("6neU"),n("y6QJ"),n("+e22"),n("pbVI"),n("2YH/"),n("7erP"),n("FTWg"),n("rfPA"),n("IiX2"),n("x94p"),n("Q7YU"),n("anSm"),n("+I9z"),n("TzY9"),n("eGwX"),n("1h0I"),n("7J2L"),n("OwpI"),n("/dWT"),n("wk3K"),n("ykds"),n("yPvj"),n("QHMR"),n("F+Yz"),n("BgTU"),n("RCeD"),n("DduF"),n("1eaT"),n("houi"),n("aygZ"),n("B6Vo");var at=n("DpwM");n("+Px6"),n("uJYd"),n("1o0v"),n("oiza"),n("6BNo"),n("LbKT"),n("3W1Y");var ct=n("rqGg");n("WRMk"),n("cqWG"),n("BeMo"),n("vVza"),n("+Tmv"),n("J7L8"),n("FUfi"),n("EzKQ"),n("AdKB"),n("w2Kr"),n("v4C1"),n("Dm6q"),n("afE0"),n("DTJn"),n("cMxr"),n("bZCB"),n("m6an"),n("SAoO"),n("2hZ/"),n("36Sp"),n("nkQU"),n("Eo3p"),n("O0qa"),n("v4/B"),n("s96x"),n("bxcy"),n("anA8"),n("mT8l"),n("hnst"),n("UVER"),n("yHDr"),n("CfRh"),n("nVws"),n("bW1a"),n("ebJJ"),n("fa4l"),n("4hXt"),n("tOKo"),n("AsU5"),n("HyYW"),n("zK/z"),n("3GEX"),n("scAs"),n("UVqw"),n("za3o"),n("YC1o"),n("AD/o"),n("rEzU"),n("chaP"),n("bo+2"),n("Eu46"),n("TMzY"),n("rBBj"),n("gx5s"),n("bBQR"),n("1etq"),n("IkSM"),n("Oj3S");var lt=n("FUqb"),ut=n("fvDn"),ht=n("rUBT"),dt=n("A9Vm"),pt=n("e7kw"),ft=n("15qg"),bt=n("rcUp"),gt=n("5a6m"),mt=n("P0Um"),vt=n("09eR");n("6D9M"),n("bv5E"),n("HHCP"),n("ENxB");const _t=[i.c,o.h,r.b,s.u,l.c,h.b,y.g,v.f,m.b,_.g,Z.b,x.c,C.c,T.c,X.b,Y.l,z.c,O.b,B.d,P.e,A.c,N.b,K.e,S.b,F.b,L.b,E.c,k.m,U.c,j,G,w.c,u.b,a.d,J.b,b.a,g.d],yt=[d.a],Ot=[bt.a,gt.a,at.a,at.b,ut.b,mt.a,mt.b,ht.a,ht.f,ht.b,ht.g,ht.e,ht.d,dt.a,vt.a,dt.b,ft.a,lt.b,lt.a,st,ot.a,at.c,pt.a,pt.b,ct.a,ht.c,ut.a,at.d];let Ct=(()=>{class t{}return t.\u0275mod=I.Mb({type:t}),t.\u0275inj=I.Lb({factory:function(e){return new(e||t)},providers:[...yt,...Ot,c.a,i.f],imports:[[..._t,p.b.forChild(),f.a.forRoot({timeOut:3e3,positionClass:"toast-bottom-right",preventDuplicates:!0,maxOpened:6,countDuplicates:!0,resetTimeoutOnDuplicate:!0})],i.c,o.h,r.b,s.u,l.c,h.b,y.g,v.f,m.b,_.g,Z.b,x.c,C.c,T.c,X.b,Y.l,z.c,O.b,B.d,P.e,A.c,N.b,K.e,S.b,F.b,L.b,E.c,k.m,U.c,j,G,w.c,u.b,a.d,J.b,b.a,g.d]}),t})()},i67J:function(t,e,n){"use strict";n.d(e,"c",(function(){return s})),n.d(e,"d",(function(){return o})),n.d(e,"i",(function(){return u})),n.d(e,"o",(function(){return S})),n.d(e,"n",(function(){return k})),n.d(e,"m",(function(){return E})),n.d(e,"g",(function(){return _})),n.d(e,"f",(function(){return y})),n.d(e,"h",(function(){return O})),n.d(e,"k",(function(){return C})),n.d(e,"e",(function(){return w})),n.d(e,"j",(function(){return T})),n.d(e,"b",(function(){return x})),n.d(e,"l",(function(){return P})),n.d(e,"p",(function(){return A})),n.d(e,"a",(function(){return M}));var i=n("IdLP"),r=n("og7C");function s(t,e){return function(n){let s,o=Object(r.b)().asMutable();return new i.a(i=>{s=window.setInterval(()=>{i.next(o.asImmutable()),o=o.asMutable(),o.clear()},t),n.subscribe(t=>o.set(t[e],t),t=>i.error(t),()=>{clearInterval(s),i.next(o.asImmutable()),i.complete()})})}}function o(t){return function(e){let n,r=[];return new i.a(i=>{n=window.setInterval(()=>{i.next(r),r=[]},t),e.subscribe(t=>r.unshift(t),t=>i.error(t),()=>{clearInterval(n),i.next(r),i.complete()})})}}var a=n("3p4X"),c=n("J+dc"),l=n("Qbn9");const u=[Object(a.a)(l.e).pipe(Object(c.a)(l.f)),Object(a.a)(l.c).pipe(Object(c.a)(l.d)),Object(a.a)(l.b)];var h=n("Ti3e"),d=n("prE9"),p=n("zqNl"),f=n("xVbo"),b=n("YtkY"),g=n("jOdJ"),m=n("Ohay"),v=n("lx5p");const _=()=>Object(h.a)(Object(f.a)(t=>!!t)),y=()=>Object(h.a)(Object(f.a)(v.r),Object(b.a)(v.P)),O=()=>Object(h.a)(_(),Object(g.a)()),C=t=>Object(h.a)(Object(b.a)(Object(v.F)(t))),w=()=>Object(m.a)((t,e)=>t.equals(e)),T=t=>Object(h.a)(Object(b.a)(e=>e.map(t))),S=(t,e)=>Object(h.a)(Object(p.m)(t,e),_()),k=(t,e)=>Object(h.a)(Object(p.m)(t,e),O()),E=(t,e,n)=>Object(h.a)(Object(p.m)(t,n),Object(d.a)(e));function x(t){return Math.floor(Math.min(1.4*t,5e3))}function P(t,e=1/0){return n=>{let r=0,s=t;return new i.a(i=>{!function i(o){n.subscribe(e=>{s=t,o.next(e)},t=>{r>=e?o.error(t):(s=x(s),r+=1,setTimeout(()=>i(o),s))},()=>o.complete())}(i)})}}function A(t=250){const e=window.navigator.deviceMemory;if(e){if(e<=2)return Object(d.a)(1e3);if(e<=4)return Object(d.a)(500);if(e>=8)return Object(d.a)(t)}return Object(d.a)(t)}n("HM3f"),n("jIqt"),n("iLlD");var I=n("C05f");class M extends I.a{toggle(){this.next(!this.value)}}},i7Dj:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("5uGe");function r(){return function(t){return t.lift(new s(t))}}class s{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const i=new o(t,n),r=e.subscribe(i);return i.closed||(i.connection=n.connect()),r}}class o extends i.a{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,i=t._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}},i9Na:function(t,e,n){"use strict";n.d(e,"a",(function(){return f})),n.d(e,"b",(function(){return b})),n.d(e,"c",(function(){return d})),n.d(e,"d",(function(){return u}));var i=n("kZht"),r=n("An66"),s=n("6uGs"),o=n("ENSU"),a=n("gNrm"),c=n("YtkY");n("jOdJ");const l=["*"];class u{}const h=new i.s("SECURITY_CONTEXT");let d=(()=>{class t{constructor(t,e,n,i,r){this.platform=t,this.securityContext=e,this.http=n,this.sanitizer=r,this.initialMarkedOptions={renderer:new a.Renderer},this.options=i}get options(){return this._options}set options(t){this._options=Object.assign(Object.assign({},this.initialMarkedOptions),t)}get renderer(){return this.options.renderer}set renderer(t){this.options.renderer=t}compile(t,e=!1,n=!1,i=this.options){const r=this.trimIndentation(t),s=e?this.decodeHtml(r):r,o=n?this.renderEmoji(s):s,c=Object(a.parse)(o,i);return this.sanitizer.sanitize(this.securityContext,c)||""}getSource(t){if(!this.http)throw new Error("[ngx-markdown] When using the `src` attribute you *have to* pass the `HttpClient` as a parameter of the `forRoot` method. See README for more information");return this.http.get(t,{responseType:"text"}).pipe(Object(c.a)(e=>this.handleExtension(t,e)))}highlight(t){if(Object(r.z)(this.platform)&&"undefined"!=typeof Prism){t||(t=document);const e=t.querySelectorAll('pre code:not([class*="language-"])');Array.prototype.forEach.call(e,t=>t.classList.add("language-none")),Prism.highlightAllUnder(t)}}renderKatex(t,e){if("undefined"==typeof katex||void 0===katex.renderToString)throw new Error("[ngx-markdown] When using the `katex` attribute you *have to* include KaTeX files to `angular.json` or use imports. See README for more information");return t.replace(/\$([^\s][^$]*?[^\s])\$/gm,(t,n)=>katex.renderToString(n,e))}decodeHtml(t){if(Object(r.z)(this.platform)){const e=document.createElement("textarea");return e.innerHTML=t,e.value}return t}handleExtension(t,e){const n=t?t.split("?")[0].split(".").splice(-1).join():null;return"md"!==n?"```"+n+"\n"+e+"\n```":e}renderEmoji(t){if("undefined"==typeof joypixels||void 0===joypixels.shortnameToUnicode)throw new Error("[ngx-markdown] When using the `emoji` attribute you *have to* include Emoji-Toolkit files to `angular.json` or use imports. See README for more information");return joypixels.shortnameToUnicode(t)}trimIndentation(t){if(!t)return"";let e;return t.split("\n").map(t=>{let n=e;return t.length>0&&(n=isNaN(n)?t.search(/\S|$/):Math.min(t.search(/\S|$/),n)),isNaN(e)&&(e=n),n?t.substring(n):t}).join("\n")}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(i.D),i.Yb(h),i.Yb(s.a,8),i.Yb(u,8),i.Yb(o.b))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();var p=function(t){return t.LineHighlight="line-highlight",t.LineNumbers="line-numbers",t}({});let f=(()=>{class t{constructor(t,e){this.element=t,this.markdownService=e,this.error=new i.o,this.load=new i.o,this.ready=new i.o,this._emoji=!1,this._katex=!1,this._lineHighlight=!1,this._lineNumbers=!1}get emoji(){return this._emoji}set emoji(t){this._emoji=this.coerceBooleanProperty(t)}get katex(){return this._katex}set katex(t){this._katex=this.coerceBooleanProperty(t)}get lineHighlight(){return this._lineHighlight}set lineHighlight(t){this._lineHighlight=this.coerceBooleanProperty(t)}get lineNumbers(){return this._lineNumbers}set lineNumbers(t){this._lineNumbers=this.coerceBooleanProperty(t)}ngOnChanges(){null==this.data?null==this.src||this.handleSrc():this.handleData()}ngAfterViewInit(){this.data||this.src||this.handleTransclusion()}render(t,e=!1){let n=this.markdownService.compile(t,e,this.emoji);n=this.katex?this.markdownService.renderKatex(n,this.katexOptions):n,this.element.nativeElement.innerHTML=n,this.handlePlugins(),this.markdownService.highlight(this.element.nativeElement),this.ready.emit()}coerceBooleanProperty(t){return null!=t&&""+t!="false"}handleData(){this.render(this.data)}handleSrc(){this.markdownService.getSource(this.src).subscribe(t=>{this.render(t),this.load.emit(t)},t=>this.error.emit(t))}handleTransclusion(){this.render(this.element.nativeElement.innerHTML,!0)}handlePlugins(){this.lineHighlight&&(this.setPluginClass(this.element.nativeElement,p.LineHighlight),this.setPluginOptions(this.element.nativeElement,{dataLine:this.line,dataLineOffset:this.lineOffset})),this.lineNumbers&&(this.setPluginClass(this.element.nativeElement,p.LineNumbers),this.setPluginOptions(this.element.nativeElement,{dataStart:this.start}))}setPluginClass(t,e){const n=t.querySelectorAll("pre");for(let i=0;i{const r=e[t];if(r){const e=this.toLispCase(t);n.item(i).setAttribute(e,r.toString())}})}toLispCase(t){const e=t.match(/([A-Z])/g);if(!e)return t;let n=t.toString();for(let i=0,r=e.length;i{class t{static forRoot(e){return{ngModule:t,providers:[d,e&&e.loader||[],e&&e.markedOptions||[],{provide:h,useValue:e&&null!=e.sanitize?e.sanitize:i.K.HTML}]}}static forChild(){return{ngModule:t}}}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)}}),t})()},"i9P/":function(t,e,n){"use strict";function i(t){setTimeout(()=>{throw t},0)}n.d(e,"a",(function(){return i}))},i9xl:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("IdLP"),r=n("GoAz"),s=n("6Oco");function o(t){return new i.a(e=>{let n;try{n=t()}catch(i){return void e.error(i)}return(n?Object(r.a)(n):Object(s.b)()).subscribe(e)})}},iLlD:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("YtkY");function r(...t){const e=t.length;if(0===e)throw new Error("list of properties cannot be empty.");return n=>Object(i.a)(function(t,e){return n=>{let i=n;for(let r=0;r=0?t[t.length-1]:null;return n&&n.mode===e.mode?(t[t.length-1].data+=e.data,t):(t.push(e),t)}),[]))},e.rawSplit=function(t){return e.fromArray(p(t,l.isKanjiModeEnabled()))}},iT4G:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var i=n("Efrr");const r=(()=>{function t(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return t.prototype=Object.create(Error.prototype),t})();var s=n("iRe+"),o=n("uCWR");class a{constructor(t,e,n,i){this.waitFor=t,this.absoluteTimeout=e,this.withObservable=n,this.scheduler=i}call(t,e){return e.subscribe(new c(t,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}class c extends o.b{constructor(t,e,n,i,r){super(t),this.absoluteTimeout=e,this.waitFor=n,this.withObservable=i,this.scheduler=r,this.scheduleTimeout()}static dispatchTimeout(t){const{withObservable:e}=t;t._unsubscribeAndRecycle(),t.add(Object(o.c)(e,new o.a(t)))}scheduleTimeout(){const{action:t}=this;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(c.dispatchTimeout,this.waitFor,this))}_next(t){this.absoluteTimeout||this.scheduleTimeout(),super._next(t)}_unsubscribe(){this.action=void 0,this.scheduler=null,this.withObservable=null}}var l=n("47ST");function u(t,e=i.a){return function(t,e,n=i.a){return i=>{let r=Object(s.a)(t),o=r?+t-n.now():Math.abs(t);return i.lift(new a(o,r,e,n))}}(t,Object(l.a)(new r),e)}},icqo:function(t,e,n){"use strict";n.d(e,"a",(function(){return y})),n.d(e,"b",(function(){return C}));var i=n("jL3B"),r=n("5GZx"),s=n("ZtZA"),o=n("kZht"),a=n("bwdy"),c=n("ROBh"),l=n("g6G6"),u=n("vT4p"),h=n("xVbo"),d=n("J+dc"),p=n("kuMc"),f=n("BwBJ"),b=n("aaFr"),g=n("njz0"),m=n("ROO/"),v=n("vE5V");const _=new o.s("sb-menu-scroll-strategy"),y={provide:_,deps:[r.c],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},O={passive:!0};let C=(()=>{class t{constructor(t,e,n,i,r,s,c,l){this.overlay=t,this.el=e,this.vcr=n,this.focusMonitor=i,this.parentMenu=s,this.menuItem=c,this._dir=l,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=a.a.EMPTY,this._hoverSubscription=a.a.EMPTY,this._menuCloseSubscription=a.a.EMPTY,this._openedBy=null,this.restoreFocus=!0,this.menuOpened=new o.o,this.onMenuOpen=this.menuOpened,this.menuClosed=new o.o,this.onMenuClose=this.menuClosed,this._handleTouchStart=()=>this._openedBy="touch",e.nativeElement.addEventListener("touchstart",this._handleTouchStart,O),c&&(c.triggersSubmenu=this.triggersSubmenu()),this._scrollStrategy=r}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.closed.asObservable().subscribe(t=>{this._destroyMenu(),"click"!==t&&"tab"!==t||!this.parentMenu||this.parentMenu.closed.emit(t)})))}get menu(){return this._menu}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this.el.nativeElement.removeEventListener("touchstart",this._handleTouchStart,O),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this.menuItem||!this.parentMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const t=this._createOverlay(),e=t.getConfig();this._setPosition(e.positionStrategy),e.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof b.a&&this.menu._startAnimation()}closeMenu(){this.menu.closed.emit()}focus(t="program",e){this.focusMonitor.focusVia(this.el,t,e)}_destroyMenu(){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this._restoreFocus(),t instanceof b.a?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe(Object(h.a)(t=>"void"===t.toState),Object(d.a)(1),Object(p.a)(t.lazyContent.attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t.lazyContent&&t.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this.parentMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this._setIsMenuOpen(!0),this.menu.focusFirstItem(this._openedBy||"program")}_setMenuElevation(){if(this.menu.setElevation){let t=0,e=this.menu.parentMenu;for(;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}_restoreFocus(){this.restoreFocus&&(this._openedBy?this.triggersSubmenu()||this.focus(this._openedBy):this.focus()),this._openedBy=null}_setIsMenuOpen(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this.menuItem.highlighted=t)}_checkMenu(){this.menu||Object(g.c)()}_createOverlay(){if(!this._overlayRef){const t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this.overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new r.d({positionStrategy:this.overlay.position().flexibleConnectedTo(this.el).withLockedPosition().withTransformOriginOn(".sb-menu"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t){this.menu.setPositionClasses&&t.positionChanges.subscribe(t=>{this.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}_setPosition(t){let[e,n]="center"===this.menu.xPosition?["center","center"]:"before"===this.menu.xPosition?["end","start"]:["start","end"];const[i,r]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"];let[s,o]=[i,r],[a,c]=[e,n],l=5;this.triggersSubmenu()?(c=e="before"===this.menu.xPosition?"start":"end",n=a="end"===e?"start":"end",l="bottom"===i?5:-5):this.menu.overlapTrigger||(s="top"===i?"bottom":"top",o="top"===r?"bottom":"top"),t.withPositions([{originX:e,originY:s,overlayX:a,overlayY:i,offsetY:l},{originX:n,originY:s,overlayX:c,overlayY:i,offsetY:l},{originX:e,originY:o,overlayX:a,overlayY:r,offsetY:-l},{originX:n,originY:o,overlayX:c,overlayY:r,offsetY:-l}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),e=this._overlayRef.detachments(),n=this.parentMenu?this.parentMenu.closed:Object(c.a)(),i=this.parentMenu?this.parentMenu._hovered().pipe(Object(h.a)(t=>t!==this.menuItem),Object(h.a)(()=>this._menuOpen)):Object(c.a)();return Object(l.a)(t,n,i,e)}_handleMousedown(t){Object(i.l)(t)||(this._openedBy=0===t.button?"mouse":null,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown({key:t}){this.triggersSubmenu()&&("ArrowRight"===t&&"ltr"===this.dir||"ArrowLeft"===t&&"rtl"===this.dir)&&this.openMenu()}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&(this._hoverSubscription=this.parentMenu._hovered().pipe(Object(h.a)(t=>t===this.menuItem&&!t.disabled),Object(f.a)(0,u.a)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof b.a&&this.menu._isAnimating?this.menu._animationDone.pipe(Object(d.a)(1),Object(f.a)(0,u.a),Object(p.a)(this.parentMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new s.h(this.menu.templateRef,this.vcr)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(o.Ob(r.c),o.Ob(o.l),o.Ob(o.R),o.Ob(i.h),o.Ob(_),o.Ob(b.a,8),o.Ob(m.a,10),o.Ob(v.b,8))},t.\u0275dir=o.Jb({type:t,selectors:[["","sbMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"sb-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&o.bc("mousedown",(function(t){return e._handleMousedown(t)}))("keydown",(function(t){return e._handleKeydown(t)}))("click",(function(t){return e._handleClick(t)})),2&t&&o.Db("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{menu:["sbMenuTriggerFor","menu"],menuData:["sbMenuTriggerData","menuData"],restoreFocus:["sbMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["sbMenuTrigger"]}),t})()},iiuT:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("+luX"),r=n("ZCEf"),s=n("xSUO"),o=n("Qkwj"),a=n("LqyJ");e.default=function(){function t(){}return t.prototype.decode=function(t,e){try{return this.doDecode(t,e)}catch(p){if(e&&!0===e.get(r.default.TRY_HARDER)&&t.isRotateSupported()){var n=t.rotateCounterClockwise(),i=this.doDecode(n,e),c=i.getResultMetadata(),l=270;null!==c&&!0===c.get(s.default.ORIENTATION)&&(l+=c.get(s.default.ORIENTATION)%360),i.putMetadata(s.default.ORIENTATION,l);var u=i.getResultPoints();if(null!==u)for(var h=n.getHeight(),d=0;d>(h?8:5));n=h?l:15;for(var p=Math.trunc(l/2),f=0;f=l)break;try{u=t.getBlackRow(g,u)}catch(O){continue}for(var m=function(t){if(1===t&&(u.reverse(),e&&!0===e.get(r.default.NEED_RESULT_POINT_CALLBACK))){var n=new Map;e.forEach((function(t,e){return n.set(e,t)})),n.delete(r.default.NEED_RESULT_POINT_CALLBACK),e=n}try{var i=v.decodeRow(g,u,e);if(1===t){i.putMetadata(s.default.ORIENTATION,180);var a=i.getResultPoints();null!==a&&(a[0]=new o.default(c-a[0].getX()-1,a[0].getY()),a[1]=new o.default(c-a[1].getX()-1,a[1].getY()))}return{value:i}}catch(l){}},v=this,_=0;_<2;_++){var y=m(_);if("object"==typeof y)return y.value}}throw new a.default},t.recordPattern=function(t,e,n){for(var i=n.length,r=0;r=s)throw new a.default;for(var o=!t.get(e),c=0,l=e;l0&&r>=0;)e.get(--n)!==s&&(r--,s=!s);if(r>=0)throw new a.default;t.recordPattern(e,n+1,i)},t.patternMatchVariance=function(t,e,n){for(var i=t.length,r=0,s=0,o=0;oh?u-h:h-u;if(d>n)return Number.POSITIVE_INFINITY;c+=d}return c/r},t}()},iqFP:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("5uGe");function r(t=null){return e=>e.lift(new s(t))}class s{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new o(t,this.defaultValue))}}class o extends i.a{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},jIqt:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("qZtG"),r=n("gBlb");function s(...t){const e=t[t.length-1];return Object(r.a)(e)?(t.pop(),n=>Object(i.a)(t,n,e)):e=>Object(i.a)(t,e)}},jL3B:function(t,e,n){"use strict";n.d(e,"a",(function(){return V})),n.d(e,"b",(function(){return w})),n.d(e,"c",(function(){return O})),n.d(e,"d",(function(){return R})),n.d(e,"e",(function(){return B})),n.d(e,"f",(function(){return A})),n.d(e,"g",(function(){return T})),n.d(e,"h",(function(){return U})),n.d(e,"i",(function(){return P})),n.d(e,"j",(function(){return z})),n.d(e,"k",(function(){return D})),n.d(e,"l",(function(){return j}));var i=n("An66"),r=n("kZht"),s=n("O1jd"),o=n("ZTXN"),a=n("bwdy"),c=n("ROBh"),l=n("Hq54"),u=n("8j5Y"),h=n("mWib"),d=n("xVbo"),p=n("YtkY"),f=n("J+dc"),b=n("5XID"),g=n("s2U3");function m(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}let v=0;const _=new Map;let y=null,O=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}describe(t,e){this._canBeDescribed(t,e)&&("string"!=typeof e?(this._setMessageId(e),_.set(e,{messageElement:e,referenceCount:0})):_.has(e)||this._createMessageElement(e),this._isElementDescribedByMessage(t,e)||this._addMessageReference(t,e))}removeDescription(t,e){if(e&&this._isElementNode(t)){if(this._isElementDescribedByMessage(t,e)&&this._removeMessageReference(t,e),"string"==typeof e){const t=_.get(e);t&&0===t.referenceCount&&this._deleteMessageElement(e)}y&&0===y.childNodes.length&&this._deleteMessagesContainer()}}ngOnDestroy(){const t=this._document.querySelectorAll("[cdk-describedby-host]");for(let e=0;e0!=t.indexOf("cdk-describedby-message"));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const n=_.get(e);!function(t,e,n){const i=m(t,e);i.some(t=>t.trim()==n.trim())||(i.push(n.trim()),t.setAttribute(e,i.join(" ")))}(t,"aria-describedby",n.messageElement.id),t.setAttribute("cdk-describedby-host",""),n.referenceCount++}_removeMessageReference(t,e){const n=_.get(e);n.referenceCount--,function(t,e,n){const i=m(t,e).filter(t=>t!=n.trim());i.length?t.setAttribute(e,i.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",n.messageElement.id),t.removeAttribute("cdk-describedby-host")}_isElementDescribedByMessage(t,e){const n=m(t,"aria-describedby"),i=_.get(e),r=i&&i.messageElement.id;return!!r&&-1!=n.indexOf(r)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const n=null==e?"":(""+e).trim(),i=t.getAttribute("aria-label");return!(!n||i&&i.trim()===n)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(r.Yb(i.d),r.Yb(s.a))},t.\u0275prov=Object(r.Kb)({factory:function(){return new t(Object(r.Yb)(i.d),Object(r.Yb)(s.a))},token:t,providedIn:"root"}),t})();class C{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new o.b,this._typeaheadSubscription=a.a.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new o.b,this.change=new o.b,t instanceof r.F&&t.changes.subscribe(t=>{if(this._activeItem){const e=t.toArray().indexOf(this._activeItem);e>-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Object(u.a)(t=>this._pressedLetters.push(t)),Object(h.a)(t),Object(d.a)(()=>this._pressedLetters.length>0),Object(p.a)(()=>this._pressedLetters.join(""))).subscribe(t=>{const e=this._getItemsArray();for(let n=1;n!t[e]||this._allowedModifierKeys.indexOf(e)>-1);switch(e){case l.n:return void this.tabOut.next();case l.c:if(this._vertical&&n){this.setNextItemActive();break}return;case l.o:if(this._vertical&&n){this.setPreviousItemActive();break}return;case l.l:if(this._horizontal&&n){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case l.h:if(this._horizontal&&n){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case l.g:if(this._homeAndEnd&&n){this.setFirstItemActive();break}return;case l.d:if(this._homeAndEnd&&n){this.setLastItemActive();break}return;default:return void((n||Object(l.r)(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=l.a&&e<=l.p||e>=l.q&&e<=l.i)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),n="number"==typeof t?t:e.indexOf(t),i=e[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let n=1;n<=e.length;n++){const i=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[i]))return void this.setActiveItem(i)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof r.F?this._items.toArray():this._items}}class w extends C{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class T extends C{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let S=(()=>{class t{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const e=function(t){try{return t.frameElement}catch(e){return null}}((n=t).ownerDocument&&n.ownerDocument.defaultView||window);var n;if(e){if(-1===E(e))return!1;if(!this.isVisible(e))return!1}let i=t.nodeName.toLowerCase(),r=E(t);return t.hasAttribute("contenteditable")?-1!==r:"iframe"!==i&&"object"!==i&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),n="input"===e&&t.type;return"text"===n||"password"===n||"select"===e||"textarea"===e}(t))&&("audio"===i?!!t.hasAttribute("controls")&&-1!==r:"video"===i?-1!==r&&(null!==r||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}isFocusable(t,e){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){let e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||k(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}return t.\u0275fac=function(e){return new(e||t)(r.Yb(s.a))},t.\u0275prov=Object(r.Kb)({factory:function(){return new t(Object(r.Yb)(s.a))},token:t,providedIn:"root"}),t})();function k(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function E(t){if(!k(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class x{constructor(t,e,n,i,r=!1){this._element=t,this._checker=e,this._ngZone=n,this._document=i,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,r||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement()))})}focusFirstTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement()))})}focusLastTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement()))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);for(let n=0;n=0;n--){let t=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(t)return t}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(Object(f.a)(1)).subscribe(t)}}let P=(()=>{class t{constructor(t,e,n){this._checker=t,this._ngZone=e,this._document=n}create(t,e=!1){return new x(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(r.Yb(S),r.Yb(r.B),r.Yb(i.d))},t.\u0275prov=Object(r.Kb)({factory:function(){return new t(Object(r.Yb)(S),Object(r.Yb)(r.B),Object(r.Yb)(i.d))},token:t,providedIn:"root"}),t})(),A=(()=>{class t{constructor(t,e,n){this._elementRef=t,this._focusTrapFactory=e,this._previouslyFocusedElement=null,this._document=n,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(t){this.focusTrap.enabled=Object(b.c)(t)}get autoCapture(){return this._autoCapture}set autoCapture(t){this._autoCapture=Object(b.c)(t)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(t){const e=t.autoCapture;e&&!e.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=this._document.activeElement,this.focusTrap.focusInitialElementWhenReady()}}return t.\u0275fac=function(e){return new(e||t)(r.Ob(r.l),r.Ob(P),r.Ob(i.d))},t.\u0275dir=r.Jb({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[r.Ab]}),t})();"undefined"!=typeof Element&∈const I=new r.s("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),M=new r.s("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let D=(()=>{class t{constructor(t,e,n,i){this._ngZone=e,this._defaultOptions=i,this._document=n,this._liveElement=t||this._createLiveElement()}announce(t,...e){const n=this._defaultOptions;let i,r;return 1===e.length&&"number"==typeof e[0]?r=e[0]:[i,r]=e,this.clear(),clearTimeout(this._previousTimeout),i||(i=n&&n.politeness?n.politeness:"polite"),null==r&&n&&(r=n.duration),this._liveElement.setAttribute("aria-live",i),this._ngZone.runOutsideAngular(()=>new Promise(e=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,e(),"number"==typeof r&&(this._previousTimeout=setTimeout(()=>this.clear(),r))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const t=this._document.getElementsByClassName("cdk-live-announcer-element"),e=this._document.createElement("div");for(let n=0;n{class t{constructor(t,e,n,i){this._elementRef=t,this._liveAnnouncer=e,this._contentObserver=n,this._ngZone=i,this._politeness="off"}get politeness(){return this._politeness}set politeness(t){this._politeness="polite"===t||"assertive"===t?t:"off","off"===this._politeness?this._subscription&&(this._subscription.unsubscribe(),this._subscription=null):this._subscription||(this._subscription=this._ngZone.runOutsideAngular(()=>this._contentObserver.observe(this._elementRef).subscribe(()=>{const t=this._elementRef.nativeElement.textContent;t!==this._previousAnnouncedText&&(this._liveAnnouncer.announce(t,this._politeness),this._previousAnnouncedText=t)})))}ngOnDestroy(){this._subscription&&this._subscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(r.Ob(r.l),r.Ob(D),r.Ob(g.b),r.Ob(r.B))},t.\u0275dir=r.Jb({type:t,selectors:[["","cdkAriaLive",""]],inputs:{politeness:["cdkAriaLive","politeness"]},exportAs:["cdkAriaLive"]}),t})();function j(t){return 0===t.buttons}const L=new r.s("cdk-focus-monitor-default-options"),N=Object(s.f)({passive:!0,capture:!0});let U=(()=>{class t{constructor(t,e,n,i){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=t=>{if(!this._lastTouchTarget){const e=j(t)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=t=>{null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=F(t),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650)},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=t=>{const e=F(t),n="focus"===t.type?this._onFocus:this._onBlur;for(let i=e;i;i=i.parentElement)n.call(this,t,i)},this._document=n,this._detectionMode=(null==i?void 0:i.detectionMode)||0}monitor(t,e=!1){if(!this._platform.isBrowser)return Object(c.a)(null);const n=Object(b.e)(t),i=Object(s.c)(n)||this._getDocument(),r=this._elementInfo.get(n);if(r)return e&&(r.checkChildren=!0),r.subject;const a={checkChildren:e,subject:new o.b,rootNode:i};return this._elementInfo.set(n,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(t){const e=Object(b.e)(t),n=this._elementInfo.get(e);n&&(n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(n))}focusVia(t,e,n){const i=Object(b.e)(t);this._setOriginForCurrentEventQueue(e),"function"==typeof i.focus&&i.focus(n)}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,n){n?t.classList.add(e):t.classList.remove(e)}_getFocusOrigin(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}_setClasses(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}_setOriginForCurrentEventQueue(t){this._ngZone.runOutsideAngular(()=>{this._origin=t,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(t){const e=F(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const n=this._elementInfo.get(e);if(!n||!n.checkChildren&&e!==F(t))return;const i=this._getFocusOrigin(t);this._setClasses(e,i),this._emitOrigin(n.subject,i),this._lastFocusOrigin=i}_onBlur(t,e){const n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const e=t.rootNode,n=this._rootNodeFocusListenerCount.get(e)||0;n||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,N),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,N)}),this._rootNodeFocusListenerCount.set(e,n+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,N),t.addEventListener("mousedown",this._documentMousedownListener,N),t.addEventListener("touchstart",this._documentTouchstartListener,N),e.addEventListener("focus",this._windowFocusListener)})}_removeGlobalListeners(t){const e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){const t=this._rootNodeFocusListenerCount.get(e);t>1?this._rootNodeFocusListenerCount.set(e,t-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,N),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,N),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,N),t.removeEventListener("mousedown",this._documentMousedownListener,N),t.removeEventListener("touchstart",this._documentTouchstartListener,N),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}}return t.\u0275fac=function(e){return new(e||t)(r.Yb(r.B),r.Yb(s.a),r.Yb(i.d,8),r.Yb(L,8))},t.\u0275prov=Object(r.Kb)({factory:function(){return new t(Object(r.Yb)(r.B),Object(r.Yb)(s.a),Object(r.Yb)(i.d,8),Object(r.Yb)(L,8))},token:t,providedIn:"root"}),t})();function F(t){return t.composedPath?t.composedPath()[0]:t.target}let B=(()=>{class t{constructor(t,e){this._elementRef=t,this._focusMonitor=e,this.cdkFocusChange=new r.o}ngAfterViewInit(){this._monitorSubscription=this._focusMonitor.monitor(this._elementRef,this._elementRef.nativeElement.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(t=>this.cdkFocusChange.emit(t))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(r.Ob(r.l),r.Ob(U))},t.\u0275dir=r.Jb({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t})(),z=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const e=this._document.defaultView||window,n=e&&e.getComputedStyle?e.getComputedStyle(t):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove("cdk-high-contrast-active"),t.remove("cdk-high-contrast-black-on-white"),t.remove("cdk-high-contrast-white-on-black");const e=this.getHighContrastMode();1===e?(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-black-on-white")):2===e&&(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-white-on-black"))}}}return t.\u0275fac=function(e){return new(e||t)(r.Yb(s.a),r.Yb(i.d))},t.\u0275prov=Object(r.Kb)({factory:function(){return new t(Object(r.Yb)(s.a),Object(r.Yb)(i.d))},token:t,providedIn:"root"}),t})(),V=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275mod=r.Mb({type:t}),t.\u0275inj=r.Lb({factory:function(e){return new(e||t)(r.Yb(z))},imports:[[s.b,g.c]]}),t})()},jOdJ:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i=n("VxHp"),r=n("xVbo"),s=n("J+dc"),o=n("iqFP"),a=n("fbWu"),c=n("5E2i");function l(t,e){const n=arguments.length>=2;return l=>l.pipe(t?Object(r.a)((e,n)=>t(e,n,l)):c.a,Object(s.a)(1),n?Object(o.a)(e):Object(a.a)(()=>new i.a))}},jPSd:function(t,e){(function(e){t.exports=e}).call(this,{})},kSHZ:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return c}));var i=n("EWqr");class r extends i.a{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(t,e,n):t.flush(this)}}var s=n("DG/E");class o extends s.a{}const a=new o(r),c=a},kZht:function(t,e,n){"use strict";n.d(e,"a",(function(){return ks})),n.d(e,"b",(function(){return al})),n.d(e,"c",(function(){return nl})),n.d(e,"d",(function(){return tl})),n.d(e,"e",(function(){return el})),n.d(e,"f",(function(){return Jl})),n.d(e,"g",(function(){return zl})),n.d(e,"h",(function(){return cs})),n.d(e,"i",(function(){return vl})),n.d(e,"j",(function(){return Ea})),n.d(e,"k",(function(){return ul})),n.d(e,"l",(function(){return xa})),n.d(e,"m",(function(){return Yl})),n.d(e,"n",(function(){return In})),n.d(e,"o",(function(){return Ac})),n.d(e,"p",(function(){return Q})),n.d(e,"q",(function(){return u})),n.d(e,"r",(function(){return f})),n.d(e,"s",(function(){return q})),n.d(e,"t",(function(){return Ss})),n.d(e,"u",(function(){return Wa})),n.d(e,"v",(function(){return Ga})),n.d(e,"w",(function(){return ll})),n.d(e,"x",(function(){return at})),n.d(e,"y",(function(){return $l})),n.d(e,"z",(function(){return ot})),n.d(e,"A",(function(){return Ll})),n.d(e,"B",(function(){return Ol})),n.d(e,"C",(function(){return h})),n.d(e,"D",(function(){return ol})),n.d(e,"E",(function(){return sl})),n.d(e,"F",(function(){return Mc})),n.d(e,"G",(function(){return Ma})),n.d(e,"H",(function(){return Aa})),n.d(e,"I",(function(){return Ia})),n.d(e,"J",(function(){return Ra})),n.d(e,"K",(function(){return _i})),n.d(e,"L",(function(){return p})),n.d(e,"M",(function(){return Ql})),n.d(e,"N",(function(){return Xa})),n.d(e,"O",(function(){return Pl})),n.d(e,"P",(function(){return us})),n.d(e,"Q",(function(){return ja})),n.d(e,"R",(function(){return tc})),n.d(e,"S",(function(){return gt})),n.d(e,"T",(function(){return Nl})),n.d(e,"U",(function(){return Yn})),n.d(e,"V",(function(){return A})),n.d(e,"W",(function(){return nt})),n.d(e,"X",(function(){return Gn})),n.d(e,"Y",(function(){return Zl})),n.d(e,"Z",(function(){return Ml})),n.d(e,"ab",(function(){return cl})),n.d(e,"bb",(function(){return hs})),n.d(e,"cb",(function(){return fa})),n.d(e,"db",(function(){return B})),n.d(e,"eb",(function(){return mi})),n.d(e,"fb",(function(){return ti})),n.d(e,"gb",(function(){return Fn})),n.d(e,"hb",(function(){return zn})),n.d(e,"ib",(function(){return qn})),n.d(e,"jb",(function(){return $n})),n.d(e,"kb",(function(){return Vn})),n.d(e,"lb",(function(){return Hn})),n.d(e,"mb",(function(){return ua})),n.d(e,"nb",(function(){return Kl})),n.d(e,"ob",(function(){return ha})),n.d(e,"pb",(function(){return da})),n.d(e,"qb",(function(){return Bn})),n.d(e,"rb",(function(){return N})),n.d(e,"sb",(function(){return Ns})),n.d(e,"tb",(function(){return co})),n.d(e,"ub",(function(){return ao})),n.d(e,"vb",(function(){return la})),n.d(e,"wb",(function(){return te})),n.d(e,"xb",(function(){return E})),n.d(e,"yb",(function(){return Un})),n.d(e,"zb",(function(){return Ps})),n.d(e,"Ab",(function(){return Gt})),n.d(e,"Bb",(function(){return Ta})),n.d(e,"Cb",(function(){return Bi})),n.d(e,"Db",(function(){return qs})),n.d(e,"Eb",(function(){return Uo})),n.d(e,"Fb",(function(){return ia})),n.d(e,"Gb",(function(){return jo})),n.d(e,"Hb",(function(){return qc})),n.d(e,"Ib",(function(){return yt})),n.d(e,"Jb",(function(){return Et})),n.d(e,"Kb",(function(){return m})),n.d(e,"Lb",(function(){return v})),n.d(e,"Mb",(function(){return Tt})),n.d(e,"Nb",(function(){return xt})),n.d(e,"Ob",(function(){return Ks})),n.d(e,"Pb",(function(){return no})),n.d(e,"Qb",(function(){return so})),n.d(e,"Rb",(function(){return ro})),n.d(e,"Sb",(function(){return io})),n.d(e,"Tb",(function(){return eo})),n.d(e,"Ub",(function(){return to})),n.d(e,"Vb",(function(){return oo})),n.d(e,"Wb",(function(){return En})),n.d(e,"Xb",(function(){return ra})),n.d(e,"Yb",(function(){return et})),n.d(e,"Zb",(function(){return Zs})),n.d(e,"ac",(function(){return Jc})),n.d(e,"bc",(function(){return lo})),n.d(e,"cc",(function(){return Gc})),n.d(e,"dc",(function(){return We})),n.d(e,"ec",(function(){return Qe})),n.d(e,"fc",(function(){return bo})),n.d(e,"gc",(function(){return Tc})),n.d(e,"hc",(function(){return Sc})),n.d(e,"ic",(function(){return kc})),n.d(e,"jc",(function(){return Ec})),n.d(e,"kc",(function(){return vo})),n.d(e,"lc",(function(){return mo})),n.d(e,"mc",(function(){return Xs})),n.d(e,"nc",(function(){return _o})),n.d(e,"oc",(function(){return yo})),n.d(e,"pc",(function(){return Oo})),n.d(e,"qc",(function(){return hc})),n.d(e,"rc",(function(){return dc})),n.d(e,"sc",(function(){return pc})),n.d(e,"tc",(function(){return fc})),n.d(e,"uc",(function(){return bc})),n.d(e,"vc",(function(){return gc})),n.d(e,"wc",(function(){return mc})),n.d(e,"xc",(function(){return vc})),n.d(e,"yc",(function(){return _c})),n.d(e,"zc",(function(){return zc})),n.d(e,"Ac",(function(){return Ys})),n.d(e,"Bc",(function(){return Ht})),n.d(e,"Cc",(function(){return $t})),n.d(e,"Dc",(function(){return Vt})),n.d(e,"Ec",(function(){return ye})),n.d(e,"Fc",(function(){return yi})),n.d(e,"Gc",(function(){return Oi})),n.d(e,"Hc",(function(){return St})),n.d(e,"Ic",(function(){return Qc})),n.d(e,"Jc",(function(){return Vc})),n.d(e,"Kc",(function(){return Lo})),n.d(e,"Lc",(function(){return Ro})),n.d(e,"Mc",(function(){return uo})),n.d(e,"Nc",(function(){return sa})),n.d(e,"Oc",(function(){return Gs})),n.d(e,"Pc",(function(){return Xc})),n.d(e,"Qc",(function(){return Zo})),n.d(e,"Rc",(function(){return Xo})),n.d(e,"Sc",(function(){return Jo})),n.d(e,"Tc",(function(){return ta})),n.d(e,"Uc",(function(){return ea})),n.d(e,"Vc",(function(){return na})),n.d(e,"Wc",(function(){return $c}));var i=n("ZTXN"),r=n("bwdy"),s=n("IdLP"),o=n("g6G6"),a=n("7ntQ");function c(t){return{toString:t}.toString()}function l(t,e,n){return c(()=>{const i=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function r(...t){if(this instanceof r)return i.apply(this,t),this;const e=new r(...t);return n.annotation=e,n;function n(t,n,i){const r=t.hasOwnProperty("__parameters__")?t.__parameters__:Object.defineProperty(t,"__parameters__",{value:[]}).__parameters__;for(;r.length<=i;)r.push(null);return(r[i]=r[i]||[]).push(e),t}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}const u=l("Inject",t=>({token:t})),h=l("Optional"),d=l("Self"),p=l("SkipSelf");var f=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});function b(t){for(let e in t)if(t[e]===b)return e;throw Error("Could not find renamed property on target object.")}function g(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function m(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function v(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function _(t){return y(t,t[C])||y(t,t[S])}function y(t,e){return e&&e.token===t?e:null}function O(t){return t&&(t.hasOwnProperty(w)||t.hasOwnProperty(k))?t[w]:null}const C=b({\u0275prov:b}),w=b({\u0275inj:b}),T=b({\u0275provFallback:b}),S=b({ngInjectableDef:b}),k=b({ngInjectorDef:b});function E(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(E).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function x(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const P=b({__forward_ref__:b});function A(t){return t.__forward_ref__=A,t.toString=function(){return E(this())},t}function I(t){return M(t)?t():t}function M(t){return"function"==typeof t&&t.hasOwnProperty(P)&&t.__forward_ref__===A}const D="undefined"!=typeof globalThis&&globalThis,R="undefined"!=typeof window&&window,j="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,L="undefined"!=typeof global&&global,N=D||L||R||j,U=b({\u0275cmp:b}),F=b({\u0275dir:b}),B=b({\u0275pipe:b}),z=b({\u0275mod:b}),V=b({\u0275loc:b}),$=b({\u0275fac:b}),H=b({__NG_ELEMENT_ID__:b});class q{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=m({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return"InjectionToken "+this._desc}}const Q=new q("INJECTOR",-1),W={},G=/\n/gm,Y=b({provide:String,useValue:b});let K,Z=void 0;function X(t){const e=Z;return Z=t,e}function J(t){const e=K;return K=t,e}function tt(t,e=f.Default){if(void 0===Z)throw new Error("inject() must be called from an injection context");return null===Z?it(t,void 0,e):Z.get(t,e&f.Optional?null:void 0,e)}function et(t,e=f.Default){return(K||tt)(I(t),e)}const nt=et;function it(t,e,n){const i=_(t);if(i&&"root"==i.providedIn)return void 0===i.value?i.value=i.factory():i.value;if(n&f.Optional)return null;if(void 0!==e)return e;throw new Error(`Injector: NOT_FOUND [${E(t)}]`)}function rt(t){const e=[];for(let n=0;nArray.isArray(t)?ct(t,e):e(t))}function lt(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function ut(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function ht(t,e){const n=[];for(let i=0;i=0?t[1|i]=n:(i=~i,function(t,e,n,i){let r=t.length;if(r==e)t.push(n,i);else if(1===r)t.push(i,t[0]),t[0]=n;else{for(r--,t.push(t[r-1],t[r]);r>e;)t[r]=t[r-2],r--;t[e]=n,t[e+1]=i}}(t,i,e,n)),i}function pt(t,e){const n=ft(t,e);if(n>=0)return t[1|n]}function ft(t,e){return function(t,e,n){let i=0,r=t.length>>1;for(;r!==i;){const n=i+(r-i>>1),s=t[n<<1];if(e===s)return n<<1;s>e?r=n:i=n+1}return~(r<<1)}(t,e)}var bt=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),gt=function(t){return t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const mt={},vt=[];let _t=0;function yt(t){return c(()=>{const e={},n={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===bt.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||vt,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||gt.Emulated,id:"c",styles:t.styles||vt,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,r=t.features,s=t.pipes;return n.id+=_t++,n.inputs=kt(t.inputs,e),n.outputs=kt(t.outputs),r&&r.forEach(t=>t(n)),n.directiveDefs=i?()=>("function"==typeof i?i():i).map(Ot):null,n.pipeDefs=s?()=>("function"==typeof s?s():s).map(Ct):null,n})}function Ot(t){return Pt(t)||function(t){return t[F]||null}(t)}function Ct(t){return function(t){return t[B]||null}(t)}const wt={};function Tt(t){const e={type:t.type,bootstrap:t.bootstrap||vt,declarations:t.declarations||vt,imports:t.imports||vt,exports:t.exports||vt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&c(()=>{wt[t.id]=t.type}),e}function St(t,e){return c(()=>{const n=It(t,!0);n.declarations=e.declarations||vt,n.imports=e.imports||vt,n.exports=e.exports||vt})}function kt(t,e){if(null==t)return mt;const n={};for(const i in t)if(t.hasOwnProperty(i)){let r=t[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),n[r]=i,e&&(e[r]=s)}return n}const Et=yt;function xt(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function Pt(t){return t[U]||null}function At(t,e){return t.hasOwnProperty($)?t[$]:null}function It(t,e){const n=t[z]||null;if(!n&&!0===e)throw new Error(`Type ${E(t)} does not have '\u0275mod' property.`);return n}function Mt(t){return Array.isArray(t)&&"object"==typeof t[1]}function Dt(t){return Array.isArray(t)&&!0===t[1]}function Rt(t){return 0!=(8&t.flags)}function jt(t){return 2==(2&t.flags)}function Lt(t){return 1==(1&t.flags)}function Nt(t){return null!==t.template}function Ut(t){return 0!=(512&t[2])}function Ft(t){return"string"==typeof t?t:null==t?"":""+t}function Bt(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Ft(t)}const zt=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(N))();function Vt(t){return{name:"window",target:t.ownerDocument.defaultView}}function $t(t){return{name:"document",target:t.ownerDocument}}function Ht(t){return{name:"body",target:t.ownerDocument.body}}function qt(t){return t instanceof Function?t():t}function Qt(t,e){const n=e?" in "+e:"";throw new Error(`No provider for ${Bt(t)} found${n}`)}class Wt{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function Gt(){return Yt}function Yt(t){return t.type.prototype.ngOnChanges&&(t.setInput=Zt),Kt}function Kt(){const t=Xt(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===mt)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function Zt(t,e,n,i){const r=Xt(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:mt,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[n],c=o[a];s[a]=new Wt(c&&c.currentValue,e,o===mt),t[i]=e}function Xt(t){return t.__ngSimpleChanges__||null}Gt.ngInherit=!0;let Jt=void 0;function te(t){Jt=t}function ee(){return void 0!==Jt?Jt:"undefined"!=typeof document?document:void 0}function ne(t){return!!t.listen}const ie={createRenderer:(t,e)=>ee()};function re(t){for(;Array.isArray(t);)t=t[0];return t}function se(t,e){return re(e[t+20])}function oe(t,e){return re(e[t.index])}function ae(t,e){return t.data[e+20]}function ce(t,e){return t[e+20]}function le(t,e){const n=e[t];return Mt(n)?n:n[0]}function ue(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function he(t){return 4==(4&t[2])}function de(t){return 128==(128&t[2])}function pe(t,e){return null===t||null==e?null:t[e]}function fe(t){t[18]=0}function be(t,e){t[5]+=e;let n=t,i=t[3];for(;null!==i&&(1===e&&1===n[5]||-1===e&&0===n[5]);)i[5]+=e,n=i,i=i[3]}const ge={lFrame:Fe(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function me(){return ge.bindingsEnabled}function ve(){return ge.lFrame.lView}function _e(){return ge.lFrame.tView}function ye(t){ge.lFrame.contextLView=t}function Oe(){return ge.lFrame.currentTNode}function Ce(t,e){ge.lFrame.currentTNode=t,ge.lFrame.isParent=e}function we(){return ge.lFrame.isParent}function Te(){ge.lFrame.isParent=!1}function Se(){return ge.isInCheckNoChangesMode}function ke(t){ge.isInCheckNoChangesMode=t}function Ee(){const t=ge.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function xe(){return ge.lFrame.bindingIndex}function Pe(){return ge.lFrame.bindingIndex++}function Ae(t){const e=ge.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function Ie(t,e){const n=ge.lFrame;n.bindingIndex=n.bindingRootIndex=t,Me(e)}function Me(t){ge.lFrame.currentDirectiveIndex=t}function De(t){const e=ge.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function Re(){return ge.lFrame.currentQueryIndex}function je(t){ge.lFrame.currentQueryIndex=t}function Le(t,e){const n=Ue();ge.lFrame=n,n.currentTNode=e,n.lView=t}function Ne(t){const e=Ue(),n=t[1];ge.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex}function Ue(){const t=ge.lFrame,e=null===t?null:t.child;return null===e?Fe(t):e}function Fe(t){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null};return null!==t&&(t.child=e),e}function Be(){const t=ge.lFrame;return ge.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const ze=Be;function Ve(){const t=Be();t.isParent=!0,t.tView=null,t.selectedIndex=0,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function $e(){return ge.lFrame.selectedIndex}function He(t){ge.lFrame.selectedIndex=t}function qe(){const t=ge.lFrame;return ae(t.tView,t.selectedIndex)}function Qe(){ge.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function We(){ge.lFrame.currentNamespace=null}function Ge(t,e){for(let n=e.directiveStart,i=e.directiveEnd;n=i)break}else e[o]<0&&(t[18]+=65536),(s>11>16&&(3&t[2])===e&&(t[2]+=2048,s.call(o)):s.call(o)}class tn{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function en(t,e,n){const i=ne(t);let r=0;for(;re){o=s-1;break}}}for(;s>16,i=e;for(;n>0;)i=i[15],n--;return i}let un=!0;function hn(t){const e=un;return un=t,e}let dn=0;function pn(t,e){const n=bn(t,e);if(-1!==n)return n;const i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,fn(i.data,t),fn(e,null),fn(i.blueprint,null));const r=gn(t,e),s=t.injectorIndex;if(an(r)){const t=cn(r),n=ln(r,e),i=n[1].data;for(let r=0;r<8;r++)e[s+r]=n[t+r]|i[t+r]}return e[s+8]=r,s}function fn(t,e){t.push(0,0,0,0,0,0,0,0,e)}function bn(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function gn(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,i=null,r=e;for(;null!==r;){const t=r[1],e=t.type;if(i=2===e?t.declTNode:1===e?r[6]:null,null===i)return-1;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function mn(t,e,n){!function(t,e,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(H)&&(i=n[H]),null==i&&(i=n[H]=dn++);const r=255&i,s=1<0?255&e:e}(n);if("function"==typeof r){Le(e,t);try{const t=r();if(null!=t||i&f.Optional)return t;Qt(n)}finally{ze()}}else if("number"==typeof r){if(-1===r)return new Sn(t,e);let s=null,o=bn(t,e),a=-1,c=i&f.Host?e[16][6]:null;for((-1===o||i&f.SkipSelf)&&(a=-1===o?gn(t,e):e[o+8],-1!==a&&Tn(i,!1)?(s=e[1],o=cn(a),e=ln(a,e)):o=-1);-1!==o;){const t=e[1];if(wn(r,o,t.data)){const t=yn(o,e,n,s,i,c);if(t!==_n)return t}a=e[o+8],-1!==a&&Tn(i,e[1].data[o+8]===c)&&wn(r,o,e)?(s=t,o=cn(a),e=ln(a,e)):o=-1}}}if(i&f.Optional&&void 0===r&&(r=null),0==(i&(f.Self|f.Host))){const t=e[9],s=J(void 0);try{return t?t.get(n,r,i&f.Optional):it(n,r,i&f.Optional)}finally{J(s)}}if(i&f.Optional)return r;Qt(n,"NodeInjector")}const _n={};function yn(t,e,n,i,r,s){const o=e[1],a=o.data[t+8],c=On(a,o,n,null==i?jt(a)&&un:i!=o&&2===a.type,r&f.Host&&s===a);return null!==c?Cn(e,o,c,a):_n}function On(t,e,n,i,r){const s=t.providerIndexes,o=e.data,a=1048575&s,c=t.directiveStart,l=s>>20,u=r?a+l:t.directiveEnd;for(let h=i?a:a+l;h=c&&t.type===n)return h}if(r){const t=o[c];if(t&&Nt(t)&&t.type===n)return c}return null}function Cn(t,e,n,i){let r=t[n];const s=e.data;if(r instanceof tn){const o=r;o.resolving&&function(t,e){throw new Error("Circular dependency in DI detected for "+t)}(Bt(s[n]));const a=hn(o.canSeeViewProviders);o.resolving=!0;const c=o.injectImpl?J(o.injectImpl):null;Le(t,i);try{r=t[n]=o.factory(void 0,s,t,i),e.firstCreatePass&&n>=i.directiveStart&&function(t,e,n){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=e.type.prototype;if(i){const i=Yt(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i)}r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,r),s&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,s))}(n,s[n],e)}finally{null!==c&&J(c),hn(a),o.resolving=!1,ze()}}return r}function wn(t,e,n){const i=64&t,r=32&t;let s;return s=128&t?i?r?n[e+7]:n[e+6]:r?n[e+5]:n[e+4]:i?r?n[e+3]:n[e+2]:r?n[e+1]:n[e],!!(s&1<{const t=kn(I(e));return t?t():null};let n=At(e);if(null===n){const t=O(e);n=t&&t.factory}return n||null}function En(t){return c(()=>{const e=t.prototype.constructor,n=e[$]||kn(e),i=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){const t=r[$]||kn(r);if(t&&t!==n)return t;r=Object.getPrototypeOf(r)}return t=>new t})}function xn(t){return t.ngDebugContext}function Pn(t){return t.ngOriginalError}function An(t,...e){t.error(...e)}class In{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),i=function(t){return t.ngErrorLogger||An}(t);i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e),n&&i(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?xn(t)?xn(t):this._findContext(Pn(t)):null}_findOriginalError(t){let e=Pn(t);for(;e&&Pn(e);)e=Pn(e);return e}}class Mn{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"}}class Dn extends Mn{getTypeName(){return"HTML"}}class Rn extends Mn{getTypeName(){return"Style"}}class jn extends Mn{getTypeName(){return"Script"}}class Ln extends Mn{getTypeName(){return"URL"}}class Nn extends Mn{getTypeName(){return"ResourceURL"}}function Un(t){return t instanceof Mn?t.changingThisBreaksApplicationSecurity:t}function Fn(t,e){const n=Bn(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see http://g.co/ng/security#xss)`)}return n===e}function Bn(t){return t instanceof Mn&&t.getTypeName()||null}function zn(t){return new Dn(t)}function Vn(t){return new Rn(t)}function $n(t){return new jn(t)}function Hn(t){return new Ln(t)}function qn(t){return new Nn(t)}let Qn=!0,Wn=!1;function Gn(){return Wn=!0,Qn}function Yn(){if(Wn)throw new Error("Cannot enable prod mode after platform setup.");Qn=!1}class Kn{getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(e){return null}}}class Zn{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=t,e;const n=this.inertDocument.createElement("body");return n.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let i=e.length-1;0ti(t.trim())).join(", ")),this.buf.push(" ",e,'="',bi(o),'"')}var i;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();ai.hasOwnProperty(e)&&!ii.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(bi(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+t.outerHTML);return e}}const pi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,fi=/([^\#-~ |!])/g;function bi(t){return t.replace(/&/g,"&").replace(pi,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(fi,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(//g,">")}let gi;function mi(t,e){let n=null;try{gi=gi||function(t){return function(){try{return!!(new window.DOMParser).parseFromString("","text/html")}catch(t){return!1}}()?new Kn:new Zn(t)}(t);let i=e?String(e):"";n=gi.getInertBodyElement(i);let r=5,s=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=s,s=n.innerHTML,n=gi.getInertBodyElement(i)}while(i!==s);const o=new di,a=o.sanitizeChildren(vi(n)||n);return Gn()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n){const t=vi(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function vi(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var _i=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function yi(t){const e=Ci();return e?e.sanitize(_i.HTML,t)||"":Fn(t,"HTML")?Un(t):mi(ee(),Ft(t))}function Oi(t){const e=Ci();return e?e.sanitize(_i.URL,t)||"":Fn(t,"URL")?Un(t):ti(Ft(t))}function Ci(){const t=ve();return t&&t[12]}function wi(t,e){t.__ngContext__=e}function Ti(t,e,n){let i=t.length;for(;;){const r=t.indexOf(e,n);if(-1===r)return r;if(0===r||t.charCodeAt(r-1)<=32){const n=e.length;if(r+n===i||t.charCodeAt(r+n)<=32)return r}n=r+1}}function Si(t,e,n){let i=0;for(;is?"":r[u+1].toLowerCase();const e=8&i?t:null;if(e&&-1!==Ti(e,l,0)||2&i&&l!==t){if(Pi(i))return!1;o=!0}}}}else{if(!o&&!Pi(i)&&!Pi(c))return!1;if(o&&Pi(c))continue;o=!1,i=c|1&i}}return Pi(i)||o}function Pi(t){return 0==(1&t)}function Ai(t,e,n,i){if(null===e)return-1;let r=0;if(i||!n){let n=!1;for(;r-1)for(n++;n0?'="'+e+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""===r||Pi(o)||(e+=Di(s,r),r=""),i=o,s=s||!Pi(i);n++}return""!==r&&(e+=Di(s,r)),e}const ji={};function Li(t){const e=t[3];return Dt(e)?e[3]:e}function Ni(t){return Fi(t[13])}function Ui(t){return Fi(t[4])}function Fi(t){for(;null!==t&&!Dt(t);)t=t[4];return t}function Bi(t){zi(_e(),ve(),$e()+t,Se())}function zi(t,e,n,i){if(!i)if(3==(3&e[2])){const i=t.preOrderCheckHooks;null!==i&&Ye(e,i,n)}else{const i=t.preOrderHooks;null!==i&&Ke(e,i,0,n)}He(n)}function Vi(t,e){return t<<17|e<<2}function $i(t){return t>>17&32767}function Hi(t){return 2|t}function qi(t){return(131068&t)>>2}function Qi(t,e){return-131069&t|e<<2}function Wi(t){return 1|t}function Gi(t,e){const n=t.contentQueries;if(null!==n)for(let i=0;i20&&zi(t,e,0,Se()),n(i,r)}finally{He(s)}}function nr(t,e,n){if(Rt(e)){const i=e.directiveEnd;for(let r=e.directiveStart;r0&&function t(e){for(let i=Ni(e);null!==i;i=Ui(i))for(let e=10;e0&&t(n)}const n=e[1].components;if(null!==n)for(let i=0;i0&&t(r)}}(n)}}function Tr(t,e){const n=le(e,t),i=n[1];!function(t,e){for(let n=e.length;nPromise.resolve(null))();function Ir(t){return t[7]||(t[7]=[])}function Mr(t,e,n){return(null===t||Nt(t))&&(n=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(n[e.index])),n[11]}function Dr(t,e){const n=t[9],i=n?n.get(In,null):null;i&&i.handleError(e)}function Rr(t,e,n,i,r){for(let s=0;s0&&(t[n-1][4]=i[4]);const o=ut(t,10+e);Yr(i[1],r=i,r[11],2,null,null),r[0]=null,r[6]=null;const a=o[19];null!==a&&a.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-129}var r;return i}function Fr(t,e){if(!(256&e[2])){const n=e[11];ne(n)&&n.destroyNode&&Yr(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return Br(t[1],t);for(;e;){let n=null;if(Mt(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)Mt(e)&&Br(e[1],e),e=e[3];null===e&&(e=t),Mt(e)&&Br(e[1],e),n=e&&e[4]}e=n}}(e)}}function Br(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let i=0;i=0?t[a]():t[-a].unsubscribe(),i+=2}else n[i].call(t[n[i+1]]);e[7]=null}}(t,e),1===e[1].type&&ne(e[11])&&e[11].destroy();const n=e[17];if(null!==n&&Dt(e[3])){n!==e[3]&&Nr(n,e);const i=e[19];null!==i&&i.detachView(t)}}}function zr(t,e,n){let i=e.parent;for(;null!=i&&(3===i.type||4===i.type);)i=(e=i).parent;if(null===i)return n[0];if(e&&4===e.type&&4&e.flags)return oe(e,n).parentNode;if(2&i.flags){const e=t.data,n=e[e[i.index].directiveStart].encapsulation;if(n!==gt.ShadowDom&&n!==gt.Native)return null}return oe(i,n)}function Vr(t,e,n,i){ne(t)?t.insertBefore(e,n,i):e.insertBefore(n,i,!0)}function $r(t,e,n){ne(t)?t.appendChild(e,n):e.appendChild(n)}function Hr(t,e,n,i){null!==i?Vr(t,e,n,i):$r(t,e,n)}function qr(t,e){return ne(t)?t.parentNode(e):e.parentNode}function Qr(t,e){return 3===t.type||4===t.type?oe(t,e):null}function Wr(t,e,n,i){const r=zr(t,i,e);if(null!=r){const t=e[11],s=Qr(i.parent||e[6],e);if(Array.isArray(n))for(let e=0;e-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}Fr(this._lView[1],this._lView)}onDestroy(t){ar(this._lView[1],this._lView,null,t)}markForCheck(){kr(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Er(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){ke(!0);try{Er(t,e,n)}finally{ke(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}detachFromAppRef(){var t;this._appRef=null,Yr(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class ts extends Jr{constructor(t){super(t),this._view=t}detectChanges(){xr(this._view)}checkNoChanges(){!function(t){ke(!0);try{xr(t)}finally{ke(!1)}}(this._view)}get context(){return null}}let es,ns,is;function rs(t,e,n){return es||(es=class extends t{}),new es(oe(e,n))}function ss(t,e,n,i){return ns||(ns=class extends t{constructor(t,e,n){super(),this._declarationView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=Ki(this._declarationView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationView[this._declarationTContainer.index];const i=this._declarationView[19];return null!==i&&(n[19]=i.createEmbeddedView(e)),Xi(e,n,t),new Jr(n)}}),0===n.type?new ns(i,n,rs(e,n,i)):null}function os(t,e,n,i){let r;is||(is=class extends t{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostView=n}get element(){return rs(e,this._hostTNode,this._hostView)}get injector(){return new Sn(this._hostTNode,this._hostView)}get parentInjector(){const t=gn(this._hostTNode,this._hostView);if(an(t)){const e=ln(t,this._hostView),n=cn(t);return new Sn(e[1].data[n+8],e)}return new Sn(null,this._hostView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){return null!==this._lContainer[8]&&this._lContainer[8][t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,n){const i=t.createEmbeddedView(e||{});return this.insert(i,n),i}createComponent(t,e,n,i,r){const s=n||this.parentInjector;if(!r&&null==t.ngModule&&s){const t=s.get(ot,null);t&&(r=t)}const o=t.create(s,i,void 0,r);return this.insert(o.hostView,e),o}insert(t,e){const n=t._lView,i=n[1];if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),Dt(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],i=new is(e,e[6],e[3]);i.detach(i.indexOf(t))}}const r=this._adjustIndex(e),s=this._lContainer;!function(t,e,n,i){const r=10+i,s=n.length;i>0&&(n[r-1][4]=e),i{class t{}return t.__NG_ELEMENT_ID__=()=>ls(),t})();const ls=as,us=Function,hs=new q("Set Injector scope."),ds={},ps={},fs=[];let bs=void 0;function gs(){return void 0===bs&&(bs=new st),bs}function ms(t,e=null,n=null,i){return new vs(t,n,e||gs(),i)}class vs{constructor(t,e,n,i=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const r=[];e&&ct(e,n=>this.processProvider(n,t,e)),ct([t],t=>this.processInjectorType(t,[],r)),this.records.set(Q,Os(void 0,this));const s=this.records.get(hs);this.scope=null!=s?s.value:null,this.source=i||("object"==typeof t?null:E(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=W,n=f.Default){this.assertNotDestroyed();const i=X(this);try{if(!(n&f.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(r=t)||"object"==typeof r&&r instanceof q)&&_(t);e=n&&this.injectableDefInScope(n)?Os(_s(t),ds):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&f.Self?gs():this.parent).get(t,e=n&f.Optional&&e===W?null:e)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(E(t)),i)throw s;return function(t,e,n,i){const r=t.ngTempTokenPath;throw e.__source&&r.unshift(e.__source),t.message=function(t,e,n,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let r=E(e);if(Array.isArray(e))r=e.map(E).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];t.push(n+":"+("string"==typeof i?JSON.stringify(i):E(i)))}r=`{${t.join(", ")}}`}return`${n}${i?"("+i+")":""}[${r}]: ${t.replace(G,"\n ")}`}("\n"+t.message,r,n,i),t.ngTokenPath=r,t.ngTempTokenPath=null,t}(s,t,"R3InjectorError",this.source)}throw s}finally{X(i)}var r}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(E(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=I(t)))return!1;let i=O(t);const r=null==i&&t.ngModule||void 0,s=void 0===r?t:r,o=-1!==n.indexOf(s);if(void 0!==r&&(i=O(r)),null==i)return!1;if(null!=i.imports&&!o){let t;n.push(s);try{ct(i.imports,i=>{this.processInjectorType(i,e,n)&&(void 0===t&&(t=[]),t.push(i))})}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,n,i||fs))}}this.injectorDefTypes.add(s),this.records.set(s,Os(i.factory,ds));const a=i.providers;if(null!=a&&!o){const e=t;ct(a,t=>this.processProvider(t,e,a))}return void 0!==r&&void 0!==t.providers}processProvider(t,e,n){let i=ws(t=I(t))?t:I(t&&t.provide);const r=function(t,e,n){return Cs(t)?Os(void 0,t.useValue):Os(ys(t),ds)}(t);if(ws(t)||!0!==t.multi)this.records.get(i);else{let e=this.records.get(i);e||(e=Os(void 0,ds,!0),e.factory=()=>rt(e.multi),this.records.set(i,e)),i=t,e.multi.push(t)}this.records.set(i,r)}hydrate(t,e){var n;return e.value===ds&&(e.value=ps,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))}}function _s(t){const e=_(t),n=null!==e?e.factory:At(t);if(null!==n)return n;const i=O(t);if(null!==i)return i.factory;if(t instanceof q)throw new Error(`Token ${E(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=ht(e,"?");throw new Error(`Can't resolve all parameters for ${E(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[C]||t[S]||t[T]&&t[T]());if(e){const n=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Error("unreachable")}function ys(t,e,n){let i=void 0;if(ws(t)){const e=I(t);return At(e)||_s(e)}if(Cs(t))i=()=>I(t.useValue);else if((r=t)&&r.useFactory)i=()=>t.useFactory(...rt(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))i=()=>et(I(t.useExisting));else{const e=I(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return At(e)||_s(e);i=()=>new e(...rt(t.deps))}var r;return i}function Os(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function Cs(t){return null!==t&&"object"==typeof t&&Y in t}function ws(t){return"function"==typeof t}const Ts=function(t,e,n){return function(t,e=null,n=null,i){const r=ms(t,e,n,i);return r._resolveInjectorDefTypes(),r}({name:n},e,t,n)};let Ss=(()=>{class t{static create(t,e){return Array.isArray(t)?Ts(t,e,""):Ts(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=W,t.NULL=new st,t.\u0275prov=m({token:t,providedIn:"any",factory:()=>et(Q)}),t.__NG_ELEMENT_ID__=-1,t})();const ks=new q("AnalyzeForEntryComponents");function Es(t,e,n){let i=n?t.styles:null,r=n?t.classes:null,s=0;if(null!==e)for(let o=0;o=0;i--){const r=t[i];r.hostVars=e+=r.hostVars,r.hostAttrs=sn(r.hostAttrs,n=sn(n,r.hostAttrs))}}(i)}function As(t){return t===mt?{}:t===vt?[]:t}function Is(t,e){const n=t.viewQuery;t.viewQuery=n?(t,i)=>{e(t,i),n(t,i)}:e}function Ms(t,e){const n=t.contentQueries;t.contentQueries=n?(t,i,r)=>{e(t,i,r),n(t,i,r)}:e}function Ds(t,e){const n=t.hostBindings;t.hostBindings=n?(t,i)=>{e(t,i),n(t,i)}:e}let Rs=null;function js(){if(!Rs){const t=N.Symbol;if(t&&t.iterator)Rs=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(re(t[i.index])).target:i.index;if(ne(n)){let o=null;if(!a&&c&&(o=function(t,e,n,i){const r=t.cleanup;if(null!=r)for(let s=0;sn?t[n]:null}"string"==typeof t&&(s+=2)}return null}(t,e,r,i.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=s,o.__ngLastListenerFn__=s,h=!1;else{s=fo(i,e,s,!1);const t=n.listen(p.name||f,r,s);u.push(s,t),l&&l.push(r,g,b,b+1)}}else s=fo(i,e,s,!0),f.addEventListener(r,s,o),u.push(s),l&&l.push(r,g,b,o)}const d=i.outputs;let p;if(h&&null!==d&&(p=d[r])){const t=p.length;if(t)for(let n=0;n0;)e=e[15],t--;return e}(t,ge.lFrame.contextLView))[8]}(t)}function go(t,e){let n=null;const i=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let r=0;r=0}const So={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function ko(t){return t.substring(So.key,So.keyEnd)}function Eo(t){return t.substring(So.value,So.valueEnd)}function xo(t,e){const n=So.textEnd;return n===e?-1:(e=So.keyEnd=function(t,e,n){for(;e32;)e++;return e}(t,So.key=e,n),Io(t,e,n))}function Po(t,e){const n=So.textEnd;let i=So.key=Io(t,e,n);return n===i?-1:(i=So.keyEnd=function(t,e,n){let i;for(;e=65&&(-33&i)<=90||i>=48&&i<=57);)e++;return e}(t,i,n),i=Mo(t,i,n),i=So.value=Io(t,i,n),i=So.valueEnd=function(t,e,n){let i=-1,r=-1,s=-1,o=e,a=o;for(;o32&&(a=o),s=r,r=i,i=-33&c}return a}(t,i,n),Mo(t,i,n))}function Ao(t){So.key=0,So.keyEnd=0,So.value=0,So.valueEnd=0,So.textEnd=t.length}function Io(t,e,n){for(;e=0;n=Po(e,n))Qo(t,ko(e),Eo(e))}function Uo(t){zo(dt,Fo,t,!0)}function Fo(t,e){for(let n=function(t){return Ao(t),xo(t,Io(t,0,So.textEnd))}(e);n>=0;n=xo(e,n))dt(t,ko(e),!0)}function Bo(t,e,n,i){const r=ve(),s=_e(),o=Ae(2);s.firstUpdatePass&&$o(s,t,o,i),e!==ji&&zs(r,o,e)&&Wo(s,s.data[$e()+20],r,r[11],t,r[o+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=E(Un(t)))),t}(e,n),i,o)}function zo(t,e,n,i){const r=_e(),s=Ae(2);r.firstUpdatePass&&$o(r,null,s,i);const o=ve();if(n!==ji&&zs(o,s,n)){const a=r.data[$e()+20];if(Ko(a,i)&&!Vo(r,s)){let t=i?a.classesWithoutHost:a.stylesWithoutHost;null!==t&&(n=x(t,n||"")),Js(r,a,o,n,i)}else!function(t,e,n,i,r,s,o,a){r===ji&&(r=Co);let c=0,l=0,u=0=t.expandoStartIndex}function $o(t,e,n,i){const r=t.data;if(null===r[n+1]){const s=r[$e()+20],o=Vo(t,n);Ko(s,i)&&null===e&&!o&&(e=!1),e=function(t,e,n,i){const r=De(t);let s=i?e.residualClasses:e.residualStyles;if(null===r)0===(i?e.classBindings:e.styleBindings)&&(n=qo(n=Ho(null,t,e,n,i),e.attrs,i),s=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==r)if(n=Ho(r,t,e,n,i),null===s){let n=function(t,e,n){const i=n?e.classBindings:e.styleBindings;if(0!==qi(i))return t[$i(i)]}(t,e,i);void 0!==n&&Array.isArray(n)&&(n=Ho(null,t,e,n[1],i),n=qo(n,e.attrs,i),function(t,e,n,i){t[$i(n?e.classBindings:e.styleBindings)]=i}(t,e,i,n))}else s=function(t,e,n){let i=void 0;const r=e.directiveEnd;for(let s=1+e.directiveStylingLast;s0)&&(u=!0)}else l=n;if(r)if(0!==c){const e=$i(t[a+1]);t[i+1]=Vi(e,a),0!==e&&(t[e+1]=Qi(t[e+1],i)),t[a+1]=131071&t[a+1]|i<<17}else t[i+1]=Vi(a,0),0!==a&&(t[a+1]=Qi(t[a+1],i)),a=i;else t[i+1]=Vi(c,0),0===a?a=i:t[c+1]=Qi(t[c+1],i),c=i;u&&(t[i+1]=Hi(t[i+1])),wo(t,l,i,!0),wo(t,l,i,!1),function(t,e,n,i,r){const s=r?t.residualClasses:t.residualStyles;null!=s&&"string"==typeof e&&ft(s,e)>=0&&(n[i+1]=Wi(n[i+1]))}(e,l,t,i,s),o=Vi(a,c),s?e.classBindings=o:e.styleBindings=o}(r,s,e,n,o,i)}}function Ho(t,e,n,i,r){let s=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const e=t[r],s=Array.isArray(e),c=s?e[1]:e,l=null===c;let u=n[r+1];u===ji&&(u=l?Co:void 0);let h=l?pt(u,i):c===i?u:void 0;if(s&&!Yo(h)&&(h=pt(e,i)),Yo(h)&&(a=h,o))return a;const d=t[r+1];r=o?$i(d):qi(d)}if(null!==e){let t=s?e.residualClasses:e.residualStyles;null!=t&&(a=pt(t,i))}return a}function Yo(t){return void 0!==t}function Ko(t,e){return 0!=(t.flags&(e?16:32))}function Zo(t,e=""){const n=ve(),i=_e(),r=t+20,s=i.firstCreatePass?Zi(i,t,2,null,null):i.data[r],o=n[r]=function(t,e){return ne(e)?e.createText(t):e.createTextNode(t)}(e,n[11]);Wr(i,n,o,s),Ce(s,!1)}function Xo(t){return Jo("",t,""),Xo}function Jo(t,e,n){const i=ve(),r=Qs(i,t,e,n);return r!==ji&&jr(i,$e(),r),Jo}function ta(t,e,n,i,r){const s=ve(),o=Ws(s,t,e,n,i,r);return o!==ji&&jr(s,$e(),o),ta}function ea(t,e,n,i,r,s,o){const a=ve(),c=function(t,e,n,i,r,s,o,a){const c=$s(t,xe(),n,r,o);return Ae(3),c?e+Ft(n)+i+Ft(r)+s+Ft(o)+a:ji}(a,t,e,n,i,r,s,o);return c!==ji&&jr(a,$e(),c),ea}function na(t,e,n,i,r,s,o,a,c){const l=ve(),u=function(t,e,n,i,r,s,o,a,c,l){const u=Hs(t,xe(),n,r,o,c);return Ae(4),u?e+Ft(n)+i+Ft(r)+s+Ft(o)+a+Ft(c)+l:ji}(l,t,e,n,i,r,s,o,a,c);return u!==ji&&jr(l,$e(),u),na}function ia(t,e,n){zo(dt,Fo,Qs(ve(),t,e,n),!0)}function ra(t,e,n){const i=ve();return zs(i,Pe(),e)&&lr(_e(),qe(),i,t,e,i[11],n,!0),ra}function sa(t,e,n){const i=ve();if(zs(i,Pe(),e)){const r=_e(),s=qe();lr(r,s,i,t,e,Mr(De(r.data),s,i),n,!0)}return sa}const oa=void 0;var aa=["en",[["a","p"],["AM","PM"],oa],[["AM","PM"],oa,oa],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],oa,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],oa,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",oa,"{1} 'at' {0}",oa],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let ca={};function la(t,e,n){"string"!=typeof e&&(n=e,e=t[fa.LocaleId]),e=e.toLowerCase().replace(/_/g,"-"),ca[e]=t,n&&(ca[e][fa.ExtraData]=n)}function ua(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=pa(e);if(n)return n;const i=e.split("-")[0];if(n=pa(i),n)return n;if("en"===i)return aa;throw new Error(`Missing locale data for the locale "${t}".`)}function ha(t){return ua(t)[fa.CurrencyCode]||null}function da(t){return ua(t)[fa.PluralCase]}function pa(t){return t in ca||(ca[t]=N.ng&&N.ng.common&&N.ng.common.locales&&N.ng.common.locales[t]),ca[t]}var fa=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});let ba="en-US";function ga(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,i){throw new Error("ASSERTION ERROR: "+t+` [Expected=> null != ${e} <=Actual]`)}(n,e),"string"==typeof t&&(ba=t.toLowerCase().replace(/_/g,"-"))}function ma(t,e,n,i,r){if(t=I(t),Array.isArray(t))for(let s=0;s>20;if(ws(t)||!t.multi){const i=new tn(c,r,Ks),p=ya(a,e,r?u:u+d,h);-1===p?(mn(pn(l,o),s,a),va(s,t,e.length),e.push(a),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),n.push(i),o.push(i)):(n[p]=i,o[p]=i)}else{const p=ya(a,e,u+d,h),f=ya(a,e,u,u+d),b=p>=0&&n[p],g=f>=0&&n[f];if(r&&!g||!r&&!b){mn(pn(l,o),s,a);const u=function(t,e,n,i,r){const s=new tn(t,n,Ks);return s.multi=[],s.index=e,s.componentProviders=0,_a(s,r,i&&!n),s}(r?Ca:Oa,n.length,r,i,c);!r&&g&&(n[f].providerFactory=u),va(s,t,e.length,0),e.push(a),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),n.push(u),o.push(u)}else va(s,t,p>-1?p:f,_a(n[r?f:p],c,!r&&i));!r&&i&&g&&n[f].componentProviders++}}}function va(t,e,n,i){const r=ws(e);if(r||e.useClass){const s=(e.useClass||e).prototype.ngOnDestroy;if(s){const o=t.destroyHooks||(t.destroyHooks=[]);if(!r&&e.multi){const t=o.indexOf(n);-1===t?o.push(n,[i,s]):o[t+1].push(i,s)}else o.push(n,s)}}}function _a(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function ya(t,e,n,i){for(let r=n;r{n.providersResolver=(n,i)=>function(t,e,n){const i=_e();if(i.firstCreatePass){const r=Nt(t);ma(n,i.data,i.blueprint,r,!0),ma(e,i.data,i.blueprint,r,!1)}}(n,i?i(t):t,e)}}class Sa{}class ka{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${E(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let Ea=(()=>{class t{}return t.NULL=new ka,t})(),xa=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=()=>Pa(t),t})();const Pa=function(t){return rs(t,Oe(),ve())};class Aa{}var Ia=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});let Ma=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Da(),t})();const Da=function(){const t=ve(),e=le(Oe().index,t);return function(t){const e=t[11];if(ne(e))return e;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(Mt(e)?e:t)};let Ra=(()=>{class t{}return t.\u0275prov=m({token:t,providedIn:"root",factory:()=>null}),t})();class ja{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const La=new ja("10.2.5");class Na{constructor(){}supports(t){return Ns(t)}create(t){return new Fa(t)}}const Ua=(t,e)=>e;class Fa{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Ua}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,i=0,r=null;for(;e||n;){const s=!n||e&&e.currentIndex<$a(n,i,r)?e:n,o=$a(s,i,r),a=s.currentIndex;if(s===n)i--,n=n._nextRemoved;else if(e=e._next,null==s.previousIndex)i++;else{r||(r=[]);const t=o-i,e=a-i;if(t!=e){for(let n=0;n{i=this._trackByFn(e,t),null!==r&&Object.is(r.trackById,i)?(s&&(r=this._verifyReinsertion(r,t,i,e)),Object.is(r.item,t)||this._addIdentityChange(r,t)):(r=this._mismatch(r,t,i,e),s=!0),r=r._next,e++}),this.length=e;return this._truncate(r),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,i){let r;return null===t?r=this._itTail:(r=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,r,i)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,r,i)):t=this._addAfter(new Ba(e,n),r,i),t}_verifyReinsertion(t,e,n,i){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==r?t=this._reinsertAfter(r,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const i=t._prevRemoved,r=t._nextRemoved;return null===i?this._removalsHead=r:i._nextRemoved=r,null===r?this._removalsTail=i:r._prevRemoved=i,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const i=null===e?this._itHead:e._next;return t._next=i,t._prev=e,null===i?this._itTail=t:i._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Va),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Va),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class Ba{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class za{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class Va{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new za,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function $a(t,e,n){const i=t.previousIndex;if(null===i)return i;let r=0;return n&&i{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const i=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,i)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const i=n._prev,r=n._next;return i&&(i._next=r),r&&(r._prev=i),n._next=null,n._prev=null,n}const n=new Qa(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class Qa{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}let Wa=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new p,new h]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${n=t,n.name||typeof n}'`);var n}}return t.\u0275prov=m({token:t,providedIn:"root",factory:()=>new t([new Na])}),t})(),Ga=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new p,new h]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=m({token:t,providedIn:"root",factory:()=>new t([new Ha])}),t})();const Ya=[new Ha],Ka=new Wa([new Na]),Za=new Ga(Ya);let Xa=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Ja(t,xa),t})();const Ja=function(t,e){return ss(t,e,Oe(),ve())};let tc=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>ec(t,xa),t})();const ec=function(t,e){return os(t,e,Oe(),ve())},nc={};class ic extends Ea{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=Pt(t);return new oc(e,this.ngModule)}}function rc(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const sc=new q("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>zt});class oc extends Sa{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(Ri).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return rc(this.componentDef.inputs)}get outputs(){return rc(this.componentDef.outputs)}create(t,e,n,i){const r=(i=i||this.ngModule)?function(t,e){return{get:(n,i,r)=>{const s=t.get(n,nc,r);return s!==nc||i===nc?s:e.get(n,i,r)}}}(t,i.injector):t,s=r.get(Aa,ie),o=r.get(Ra,null),a=s.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",l=n?function(t,e,n){if(ne(t))return t.selectRootElement(e,n===gt.ShadowDom);let i="string"==typeof e?t.querySelector(e):e;return i.textContent="",i}(a,n,this.componentDef.encapsulation):Yi(c,s.createRenderer(null,this.componentDef),function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(c)),u=this.componentDef.onPush?576:528,h={components:[],scheduler:zt,clean:Ar,playerHandler:null,flags:0},d=or(0,null,null,1,0,null,null,null,null,null),p=Ki(null,d,h,u,null,null,s,a,o,r);let f,b;Ne(p);try{const t=function(t,e,n,i,r,s){const o=n[1];n[20]=t;const a=Zi(o,0,2,null,null),c=a.mergedAttrs=e.hostAttrs;null!==c&&(Es(a,c,!0),null!==t&&(en(r,t,c),null!==a.classes&&Xr(r,t,a.classes),null!==a.styles&&Zr(r,t,a.styles)));const l=i.createRenderer(t,e),u=Ki(n,sr(e),null,e.onPush?64:16,n[20],a,i,l,null,null);return o.firstCreatePass&&(mn(pn(a,n),o,e.type),br(o,a),mr(a,n.length,1)),Sr(n,u),n[20]=u}(l,this.componentDef,p,s,a);if(l)if(n)en(a,l,["ng-version",La.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let i=1,r=2;for(;i0&&Xr(a,l,e.join(" "))}if(b=ae(d,0),void 0!==e){const t=b.projection=[];for(let n=0;nt(o,e)),e.contentQueries&&e.contentQueries(1,o,n.length-1);const a=Oe();if(s.firstCreatePass&&(null!==e.hostBindings||null!==e.hostAttrs)){He(a.index-20);const t=n[1];hr(t,e),dr(t,n,e.hostVars),pr(e,o)}return o}(t,this.componentDef,p,h,[xs]),Xi(d,p,null)}finally{Ve()}return new ac(this.componentType,f,rs(xa,b,p),p,b)}}class ac extends class{}{constructor(t,e,n,i,r){super(),this.location=n,this._rootLView=i,this._tNode=r,this.destroyCbs=[],this.instance=e,this.hostView=this.changeDetectorRef=new ts(i),this.componentType=t}get injector(){return new Sn(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(t=>t()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(t){this.destroyCbs&&this.destroyCbs.push(t)}}const cc=new Map;class lc extends ot{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new ic(this);const n=It(t),i=t[V]||null;i&&ga(i),this._bootstrapComponents=qt(n.bootstrap),this._r3Injector=ms(t,e,[{provide:ot,useValue:this},{provide:Ea,useValue:this.componentFactoryResolver}],E(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=Ss.THROW_IF_NOT_FOUND,n=f.Default){return t===Ss||t===ot||t===Q?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class uc extends at{constructor(t){super(),this.moduleType=t,null!==It(t)&&function(t){const e=new Set;!function t(n){const i=It(n,!0),r=i.id;null!==r&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${E(e)} vs ${E(e.name)}`)}(r,cc.get(r),n),cc.set(r,n));const s=qt(i.imports);for(const o of s)e.has(o)||(e.add(o),t(o))}(t)}(t)}create(t){return new lc(this.moduleType,t)}}function hc(t,e,n){const i=Ee()+t,r=ve();return r[i]===ji?Fs(r,i,n?e.call(n):e()):Bs(r,i)}function dc(t,e,n,i){return Oc(ve(),Ee(),t,e,n,i)}function pc(t,e,n,i,r){return Cc(ve(),Ee(),t,e,n,i,r)}function fc(t,e,n,i,r,s){return wc(ve(),Ee(),t,e,n,i,r,s)}function bc(t,e,n,i,r,s,o){return function(t,e,n,i,r,s,o,a,c){const l=e+n;return Hs(t,l,r,s,o,a)?Fs(t,l+4,c?i.call(c,r,s,o,a):i(r,s,o,a)):yc(t,l+4)}(ve(),Ee(),t,e,n,i,r,s,o)}function gc(t,e,n,i,r,s,o,a){const c=Ee()+t,l=ve(),u=Hs(l,c,n,i,r,s);return zs(l,c+4,o)||u?Fs(l,c+5,a?e.call(a,n,i,r,s,o):e(n,i,r,s,o)):Bs(l,c+5)}function mc(t,e,n,i,r,s,o,a,c){const l=Ee()+t,u=ve(),h=Hs(u,l,n,i,r,s);return Vs(u,l+4,o,a)||h?Fs(u,l+6,c?e.call(c,n,i,r,s,o,a):e(n,i,r,s,o,a)):Bs(u,l+6)}function vc(t,e,n,i,r,s,o,a,c,l){const u=Ee()+t,h=ve();let d=Hs(h,u,n,i,r,s);return $s(h,u+4,o,a,c)||d?Fs(h,u+7,l?e.call(l,n,i,r,s,o,a,c):e(n,i,r,s,o,a,c)):Bs(h,u+7)}function _c(t,e,n,i){return function(t,e,n,i,r,s){let o=e+n,a=!1;for(let c=0;c=0;n--){const i=e[n];if(t===i.name)return i}throw new Error(`The pipe '${t}' could not be found!`)}(e,n.pipeRegistry),n.data[r]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(r,i.onDestroy)):i=n.data[r];const s=i.factory||(i.factory=At(i.type)),o=J(Ks);try{const e=hn(!1),i=s();return hn(e),function(t,e,n,i){const r=n+20;r>=t.data.length&&(t.data[r]=null,t.blueprint[r]=null),e[r]=i}(n,ve(),t,i),i}finally{J(o)}}function Sc(t,e,n){const i=ve(),r=ce(i,t);return Pc(i,xc(i,t)?Oc(i,Ee(),e,r.transform,n,r):r.transform(n))}function kc(t,e,n,i){const r=ve(),s=ce(r,t);return Pc(r,xc(r,t)?Cc(r,Ee(),e,s.transform,n,i,s):s.transform(n,i))}function Ec(t,e,n,i,r){const s=ve(),o=ce(s,t);return Pc(s,xc(s,t)?wc(s,Ee(),e,o.transform,n,i,r,o):o.transform(n,i,r))}function xc(t,e){return t[1].data[e+20].pure}function Pc(t,e){return Ls.isWrapped(e)&&(e=Ls.unwrap(e),t[xe()]=ji),e}const Ac=class extends i.b{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){let i,s=t=>null,o=()=>null;t&&"object"==typeof t?(i=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(s=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(o=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(i=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(s=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),n&&(o=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const a=super.subscribe(i,s,o);return t instanceof r.a&&t.add(a),a}};function Ic(){return this._results[js()]()}class Mc{constructor(){this.dirty=!0,this._results=[],this.changes=new Ac,this.length=0;const t=js(),e=Mc.prototype;e[t]||(e[t]=Ic)}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t){this._results=function t(e,n){void 0===n&&(n=e);for(let i=0;i0)r.push(a[e/2]);else{const s=o[e+1],a=n[-i];for(let e=10;e{class t{constructor(t){this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(et(tl,8))},t.\u0275prov=m({token:t,factory:t.\u0275fac}),t})();const nl=new q("AppId"),il={provide:nl,useFactory:function(){return`${rl()}${rl()}${rl()}`},deps:[]};function rl(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const sl=new q("Platform Initializer"),ol=new q("Platform ID"),al=new q("appBootstrapListener");let cl=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=m({token:t,factory:t.\u0275fac}),t})();const ll=new q("LocaleId"),ul=new q("DefaultCurrencyCode");class hl{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const dl=function(t){return new uc(t)},pl=dl,fl=function(t){return Promise.resolve(dl(t))},bl=function(t){const e=dl(t),n=qt(It(t).declarations).reduce((t,e)=>{const n=Pt(e);return n&&t.push(new oc(n)),t},[]);return new hl(e,n)},gl=bl,ml=function(t){return Promise.resolve(bl(t))};let vl=(()=>{class t{constructor(){this.compileModuleSync=pl,this.compileModuleAsync=fl,this.compileModuleAndAllComponentsSync=gl,this.compileModuleAndAllComponentsAsync=ml}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=m({token:t,factory:t.\u0275fac}),t})();const _l=(()=>Promise.resolve(0))();function yl(t){"undefined"==typeof Zone?_l.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Ol{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ac(!1),this.onMicrotaskEmpty=new Ac(!1),this.onStable=new Ac(!1),this.onError=new Ac(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=e,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let t=N.requestAnimationFrame,e=N.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=!!t.shouldCoalesceEventChangeDetection&&t.nativeRequestAnimationFrame&&(()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(N,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Sl(t),Tl(t)},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Sl(t))}(t)});t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:e},onInvokeTask:(n,i,r,s,o,a)=>{try{return kl(t),n.invokeTask(r,s,o,a)}finally{e&&"eventTask"===s.type&&e(),El(t)}},onInvoke:(e,n,i,r,s,o,a)=>{try{return kl(t),e.invoke(i,r,s,o,a)}finally{El(t)}},onHasTask:(e,n,i,r)=>{e.hasTask(i,r),n===i&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,Sl(t),Tl(t)):"macroTask"==r.change&&(t.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,n,i,r)=>(e.handleError(i,r),t.runOutsideAngular(()=>t.onError.emit(r)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ol.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Ol.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,i){const r=this._inner,s=r.scheduleEventTask("NgZoneEvent: "+i,t,wl,Cl,Cl);try{return r.runTask(s,e,n)}finally{r.cancelTask(s)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}function Cl(){}const wl={};function Tl(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Sl(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function kl(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function El(t){t._nesting--,Tl(t)}class xl{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ac,this.onMicrotaskEmpty=new Ac,this.onStable=new Ac,this.onError=new Ac}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,i){return t.apply(e,n)}}let Pl=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Ol.assertNotInAngularZone(),yl(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())yl(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let i=-1;e&&e>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==i),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})}whenStable(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(et(Ol))},t.\u0275prov=m({token:t,factory:t.\u0275fac}),t})(),Al=(()=>{class t{constructor(){this._applications=new Map,Rl.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return Rl.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=m({token:t,factory:t.\u0275fac}),t})();class Il{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}function Ml(t){Rl=t}let Dl,Rl=new Il;const jl=new q("AllowMultipleToken");class Ll{constructor(t,e){this.name=t,this.token=e}}function Nl(t,e,n=[]){const i="Platform: "+e,r=new q(i);return(e=[])=>{let s=Ul();if(!s||s.injector.get(jl,!1))if(t)t(n.concat(e).concat({provide:r,useValue:!0}));else{const t=n.concat(e).concat({provide:r,useValue:!0},{provide:hs,useValue:"platform"});!function(t){if(Dl&&!Dl.destroyed&&!Dl.injector.get(jl,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Dl=t.get(Fl);const e=t.get(sl,null);e&&e.forEach(t=>t())}(Ss.create({providers:t,name:i}))}return function(t){const e=Ul();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(r)}}function Ul(){return Dl&&!Dl.destroyed?Dl:null}let Fl=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new xl:("zone.js"===t?void 0:t)||new Ol({enableLongStackTrace:Gn(),shouldCoalesceEventChangeDetection:e}),n}(e?e.ngZone:void 0,e&&e.ngZoneEventCoalescing||!1),i=[{provide:Ol,useValue:n}];return n.run(()=>{const e=Ss.create({providers:i,parent:this.injector,name:t.moduleType.name}),r=t.create(e),s=r.injector.get(In,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return r.onDestroy(()=>Vl(this._modules,r)),n.runOutsideAngular(()=>n.onError.subscribe({next:t=>{s.handleError(t)}})),function(t,e,n){try{const i=n();return ao(i)?i.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):i}catch(i){throw e.runOutsideAngular(()=>t.handleError(i)),i}}(s,n,()=>{const t=r.injector.get(el);return t.runInitializers(),t.donePromise.then(()=>(ga(r.injector.get(ll,"en-US")||"en-US"),this._moduleDoBootstrap(r),r))})})}bootstrapModule(t,e=[]){const n=Bl({},e);return function(t,e,n){const i=new uc(n);return Promise.resolve(i)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(zl);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${E(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(et(Ss))},t.\u0275prov=m({token:t,factory:t.\u0275fac}),t})();function Bl(t,e){return Array.isArray(e)?e.reduce(Bl,t):Object.assign(Object.assign({},t),e)}let zl=(()=>{class t{constructor(t,e,n,i,r,c){this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=r,this._initStatus=c,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Gn(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const l=new s.a(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),u=new s.a(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{Ol.assertNotInAngularZone(),yl(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Ol.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=Object(o.a)(l,u.pipe(Object(a.a)()))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=t instanceof Sa?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const i=n.isBoundToModule?void 0:this._injector.get(ot),r=n.create(Ss.NULL,[],e||n.selector,i);r.onDestroy(()=>{this._unloadComponent(r)});const s=r.injector.get(Pl,null);return s&&r.injector.get(Al).registerApplication(r.location.nativeElement,s),this._loadComponent(r),Gn()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),r}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges();if(this._enforceNoNewChanges)for(let t of this._views)t.checkNoChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Vl(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(al,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}_unloadComponent(t){this.detachView(t.hostView),Vl(this.components,t)}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy())}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(et(Ol),et(cl),et(Ss),et(In),et(Ea),et(el))},t.\u0275prov=m({token:t,factory:t.\u0275fac}),t})();function Vl(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class $l{}class Hl{}const ql={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Ql=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||ql}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,i]=t.split("#");return void 0===i&&(i="default"),n("zn8P")(e).then(t=>t[i]).then(t=>Wl(t,e,i)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,i]=t.split("#"),r="NgFactory";return void 0===i&&(i="default",r=""),n("zn8P")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[i+r]).then(t=>Wl(t,e,i))}}return t.\u0275fac=function(e){return new(e||t)(et(vl),et(Hl,8))},t.\u0275prov=m({token:t,factory:t.\u0275fac}),t})();function Wl(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}class Gl extends cs{}class Yl extends Gl{}const Kl=function(t){return null},Zl=Nl(null,"core",[{provide:ol,useValue:"unknown"},{provide:Fl,deps:[Ss]},{provide:Al,deps:[]},{provide:cl,deps:[]}]),Xl=[{provide:zl,useClass:zl,deps:[Ol,cl,Ss,In,Ea,el]},{provide:sc,deps:[Ol],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:el,useClass:el,deps:[[new h,tl]]},{provide:vl,useClass:vl,deps:[]},il,{provide:Wa,useFactory:function(){return Ka},deps:[]},{provide:Ga,useFactory:function(){return Za},deps:[]},{provide:ll,useFactory:function(t){return ga(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new u(ll),new h,new p]]},{provide:ul,useValue:"USD"}];let Jl=(()=>{class t{constructor(t){}}return t.\u0275mod=Tt({type:t}),t.\u0275inj=v({factory:function(e){return new(e||t)(et(zl))},providers:Xl}),t})()},ka3Y:function(t,e,n){"use strict";n.d(e,"a",(function(){return x}));var i=n("kZht"),r=n("3kIJ"),s=n("C05f"),o=n("pjhv"),a=n("lE9u"),c=n("mlVJ"),l=n("zqNl"),u=n("anSm"),h=n("EmXI"),d=n("aDqW"),p=n("IOEv"),f=n("An66"),b=n("1eaT"),g=n("+I9z"),m=n("Tcl6"),v=n("hCLc"),_=n("yPvj"),y=n("pTnX"),O=n("DpwM"),C=n("P0Um");function w(t,e){if(1&t&&(i.Ub(0,"mat-option",24),i.Qc(1),i.Tb()),2&t){const t=e.$implicit;i.mc("value",t.accountUid),i.Cb(1),i.Sc(" ",t.email," ")}}function T(t,e){if(1&t&&(i.Ub(0,"mat-option",24),i.Qc(1),i.gc(2,"walletName"),i.gc(3,"walletType"),i.Tb()),2&t){const t=e.$implicit;i.mc("value",t.name),i.Cb(1),i.Tc(" ",i.hc(2,3,t.name)," ",i.hc(3,5,t.type)," wallet ")}}function S(t,e){if(1&t&&(i.Ub(0,"mat-option",24),i.Qc(1),i.Tb()),2&t){const t=e.$implicit;i.mc("value",t.accountUid),i.Cb(1),i.Sc(" ",t.email," ")}}function k(t,e){if(1&t&&(i.Ub(0,"mat-option",24),i.Qc(1),i.gc(2,"walletName"),i.gc(3,"walletType"),i.Tb()),2&t){const t=e.$implicit;i.mc("value",t.name),i.Cb(1),i.Tc(" ",i.hc(2,3,t.name)," ",i.hc(3,5,t.type)," wallet ")}}const E=function(t){return{"global__text--warn":t}};let x=(()=>{class t{constructor(t,e){this.store=t,this.formBuilder=e,this.origins$=new s.a(void 0),this.destinations$=new s.a(void 0),this.transfer=new i.o}ngOnInit(){this.appendMasterToSubAccounts(),this.form=this.formBuilder.group({accountOrigin:[this.selectedSub.accountUid,r.x.required],walletOrigin:["",r.x.required],accountDestination:[this.selectedSub.accountUid,r.x.required],walletDestination:["",r.x.required],amount:[0,[r.x.required,r.x.min(1e-12)]]}),this.setBothWallets(this.selected.name)}ngOnChanges(t){if(t.selected&&!t.selected.firstChange){const e=t.selected.currentValue;this.form.controls.walletOrigin.setValue(e.name),this.appendMasterToSubAccounts(),this.setBothWallets(e.name)}t.subaccounts&&!t.subaccounts.firstChange&&this.appendMasterToSubAccounts()}appendMasterToSubAccounts(){this.subs=[...this.subAccounts,{accountUid:this.uid,email:"Master account",fullName:"Master",holdingAccounts:Array.from(this.wallets.holding.values()).map(t=>({currency:t.currency,balance:t.balance,name:t.currency,type:"holding"})),futuresAccounts:Array.from(this.wallets.futures.values()).map(t=>({currency:t.currency,balance:t.am,name:t.name,type:"futures"})),flexAccount:Array.from(this.wallets.flex.flexAssets.values()).map(t=>({currency:t.currency.replace(c.a,"XBT"),balance:t.am,name:"FLEX-"+t.currency,type:"flex"}))}]}get rawOriginWallets(){const t=this.form.value.accountOrigin,e=this.subs.find(e=>e.accountUid===t);if(!e)return[];const{holdingAccounts:n,futuresAccounts:i,flexAccount:r}=e;return[...n,...i,...r]}get rawDestinationWallets(){const t=this.form.value.accountDestination,e=this.subs.find(e=>e.accountUid===t);if(!e)return[];const{holdingAccounts:n,futuresAccounts:i,flexAccount:r}=e;return[...n,...i,...r]}get balance(){const t=this.form.controls.walletOrigin.value,e=this.rawOriginWallets.find(e=>e.name===t);return e?e.balance:0}get margin(){const t=this.form.controls.walletDestination.value,e=this.rawDestinationWallets.find(e=>e.name===t);return e?e.balance:0}get amount(){return this.form.controls.amount.value}get originIsSub(){return this.form.controls.accountOrigin.value!==this.uid}get destinationIsSub(){return this.form.controls.accountDestination.value!==this.uid}get isSubAccountTransfer(){const t=this.form.controls.accountDestination.value,e=this.form.controls.accountOrigin.value;return t!==e||t!==this.uid||e!==this.uid}get isAcrossAccounts(){return this.form.controls.accountDestination.value!==this.form.controls.accountOrigin.value}setOriginsSubAccount(t,e){const n=this.subs.find(t=>t.accountUid===e);if(n){const e=n.holdingAccounts.filter(e=>e.name===t.currency),i=n.futuresAccounts.filter(e=>{var n;return(null===(n=e.currency)||void 0===n?void 0:n.replace(c.a,"XBT"))===t.currency}),r=n.flexAccount.filter(e=>e.currency.replace(c.a,"XBT")===t.currency);this.form.controls.walletOrigin.setValue(null==t?void 0:t.name),this.origins$.next([...e,...i,...r])}}setDestinationSubAccount(t,e){var n;const i=this.subs.find(t=>t.accountUid===e);if(i){const e=[...i.holdingAccounts.filter(e=>e.name===t.currency),...i.futuresAccounts.filter(e=>e.currency.replace(c.a,"XBT")===t.currency),...i.flexAccount.filter(e=>e.currency.replace(c.a,"XBT")===t.currency)].filter(e=>e.name!==(null==t?void 0:t.name)||e.type!==t.type||this.isAcrossAccounts);this.destinations$.next(e),this.form.controls.walletDestination.setValue(null===(n=e[0])||void 0===n?void 0:n.name)}}setWalletPercentage(t){const e=this.form.controls.walletOrigin.value,n=this.rawOriginWallets.find(t=>t.name===e),i=Object(o.b)(n.currency,!0),r=Math.pow(10,i),s=Math.min(n.balance*t,n.balance),a=Math.floor(s*r)/r;this.form.controls.amount.setValue(a)}setWalletsDestination(t){const e=this.rawOriginWallets.find(e=>e.name===t);this.setDestination(e,this.rawOriginWallets)}setBothWallets(t){this.setWalletsOrigin(t),this.setWalletsDestination(t)}setWalletsOrigin(t){const e=this.rawDestinationWallets.find(e=>e.name===t);this.setOrigins(e,this.rawDestinationWallets)}setOrigins(t,e){const n=e.filter(e=>e.currency===(null==t?void 0:t.currency)),i=n.find(e=>e.type===t.type);this.form.controls.walletOrigin.setValue(null==i?void 0:i.name),this.origins$.next(n)}setDestination(t,e){var n;const i=e.filter(e=>e.currency===(null==t?void 0:t.currency)).filter(e=>e.name!==(null==t?void 0:t.name)||this.isAcrossAccounts);this.form.controls.walletDestination.setValue(null===(n=i[0])||void 0===n?void 0:n.name),this.destinations$.next(i)}submitTransfer(){var t,e;if(this.isSubAccountTransfer&&this.origins$.value&&this.destinations$.value){const e=this.form.controls.walletOrigin.value,n=this.form.controls.walletDestination.value,i=this.origins$.value.find(t=>t.name===e),r=this.destinations$.value.find(t=>t.name===n);if(!i||!r)return;const s=i.type,o=Object.assign(Object.assign(Object.assign(Object.assign({accountUid:this.form.controls.accountOrigin.value},"holding"===i.type&&{currency:e}),"futures"===i.type&&{name:e.toLowerCase()}),"flex"===i.type&&{currency:i.currency}),{type:s}),l=r.type,u=Object.assign(Object.assign(Object.assign(Object.assign({accountUid:this.form.controls.accountDestination.value},"holding"===r.type&&{currency:n}),"futures"===r.type&&{name:n.toLowerCase()}),"flex"===r.type&&{currency:r.currency.replace(c.a,"XBT")}),{type:l});this.store.dispatch(Object(a.x)({amount:null===(t=this.form.get("amount"))||void 0===t?void 0:t.value,from:o,to:u}))}else{const t=this.rawOriginWallets.find(t=>{var e;return t.name===(null===(e=this.form.get("walletOrigin"))||void 0===e?void 0:e.value)}),n=this.rawDestinationWallets.find(t=>{var e;return t.name===(null===(e=this.form.get("walletDestination"))||void 0===e?void 0:e.value)});this.store.dispatch(Object(a.y)({quantity:null===(e=this.form.get("amount"))||void 0===e?void 0:e.value,asset:t.currency,source:t,destination:n}))}}get originBalanceLabel(){const t=this.rawOriginWallets.find(t=>{var e;return t.name===(null===(e=this.form.get("walletOrigin"))||void 0===e?void 0:e.value)});return t?"holding"===(null==t?void 0:t.type)?"LABEL.BALANCE":"LABEL.AVAILABLE_MARGIN":"LABEL.BALANCE"}get destinationBalanceLabel(){const t=this.rawDestinationWallets.find(t=>{var e;return t.name===(null===(e=this.form.get("walletDestination"))||void 0===e?void 0:e.value)});return t?"holding"===(null==t?void 0:t.type)?"LABEL.BALANCE":"LABEL.AVAILABLE_MARGIN":"LABEL.BALANCE"}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(l.b),i.Ob(r.d))},t.\u0275cmp=i.Ib({type:t,selectors:[["subaccount-transfer-form"]],inputs:{uid:"uid",selectedSub:"selectedSub",selected:"selected",wallets:"wallets",subAccounts:"subAccounts",email:"email",ticker:"ticker",market:"market",flexEnabled:"flexEnabled"},outputs:{transfer:"transfer"},features:[i.Ab],decls:55,vars:36,consts:[["body","",3,"formGroup","ngSubmit"],[1,"transfer-grid","subaccount"],[1,"from-account"],["color","accent","appearance","fill"],["translate",""],["matNativeControl","","formControlName","accountOrigin",3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],[1,"from"],["color","accent","appearance","fill",1,"no-padding"],["matNativeControl","","formControlName","walletOrigin",3,"selectionChange"],[1,"from-balance"],[3,"ngClass"],[3,"content"],[1,"to-account"],["matNativeControl","","formControlName","accountDestination",3,"selectionChange"],[1,"to"],["matNativeControl","","formControlName","walletDestination"],[1,"to-balance"],["color","accent","appearance","fill",1,"market-form"],["matInput","","formControlName","amount","required","","type","number","min","0","inputmode","numeric","autocomplete","off"],["amountField",""],["matSuffix","","mat-raised-button","","body","","type","button",1,"mat-small-button",3,"click"],["matSuffix","",1,"form-icon",3,"base"],["mat-raised-button","",3,"disabled"],[3,"value"]],template:function(t,e){1&t&&(i.Ub(0,"form",0),i.bc("ngSubmit",(function(){return e.submitTransfer()})),i.Ub(1,"div",1),i.Ub(2,"div",2),i.Ub(3,"mat-form-field",3),i.Ub(4,"mat-label",4),i.Qc(5,"LABEL.ORIGIN_ACCOUNT"),i.Tb(),i.Ub(6,"mat-select",5),i.bc("selectionChange",(function(t){return e.setOriginsSubAccount(e.selected,t.value),e.setDestinationSubAccount(e.selected,t.value)})),i.Oc(7,w,2,2,"mat-option",6),i.Tb(),i.Tb(),i.Tb(),i.Ub(8,"div",7),i.Ub(9,"mat-form-field",8),i.Ub(10,"mat-label",4),i.Qc(11,"FORM.FROM"),i.Tb(),i.Ub(12,"mat-select",9),i.bc("selectionChange",(function(t){return e.setWalletsDestination(t.value)})),i.Oc(13,T,4,7,"mat-option",6),i.gc(14,"async"),i.Tb(),i.Tb(),i.Tb(),i.Ub(15,"div",10),i.Ub(16,"nutritional-info"),i.Ub(17,"span",11),i.Qc(18),i.gc(19,"translate"),i.Tb(),i.Pb(20,"ghost-trail",12),i.gc(21,"cryptoPrecise"),i.Tb(),i.Tb(),i.Ub(22,"div",13),i.Ub(23,"mat-form-field",3),i.Ub(24,"mat-label",4),i.Qc(25,"LABEL.DESTINATION_ACCOUNT"),i.Tb(),i.Ub(26,"mat-select",14),i.bc("selectionChange",(function(t){return e.setDestinationSubAccount(e.selected,t.value)})),i.Oc(27,S,2,2,"mat-option",6),i.Tb(),i.Tb(),i.Tb(),i.Ub(28,"div",15),i.Ub(29,"mat-form-field",8),i.Ub(30,"mat-label",4),i.Qc(31,"FORM.TO"),i.Tb(),i.Ub(32,"mat-select",16),i.Oc(33,k,4,7,"mat-option",6),i.gc(34,"async"),i.Tb(),i.Tb(),i.Tb(),i.Ub(35,"div",17),i.Ub(36,"nutritional-info"),i.Ub(37,"span"),i.Qc(38),i.gc(39,"translate"),i.Tb(),i.Pb(40,"ghost-trail",12),i.gc(41,"cryptoPrecise"),i.Tb(),i.Tb(),i.Tb(),i.Ub(42,"mat-form-field",18),i.Ub(43,"mat-label",4),i.Qc(44,"FORM.AMOUNT"),i.Tb(),i.Pb(45,"input",19,20),i.Ub(47,"button",21),i.bc("click",(function(){return e.setWalletPercentage(1)})),i.Qc(48),i.gc(49,"uppercase"),i.gc(50,"translate"),i.Tb(),i.Pb(51,"market-icon",22),i.Tb(),i.Ub(52,"button",23),i.Qc(53),i.gc(54,"translate"),i.Tb(),i.Tb()),2&t&&(i.mc("formGroup",e.form),i.Cb(7),i.mc("ngForOf",e.subs),i.Cb(6),i.mc("ngForOf",i.hc(14,14,e.origins$)),i.Cb(4),i.mc("ngClass",i.rc(34,E,null==e.form.get("amount").errors?null:e.form.get("amount").errors.amountOverBalance)),i.Cb(1),i.Rc(i.hc(19,16,e.originBalanceLabel)),i.Cb(2),i.mc("content",i.ic(21,18,e.balance,e.selected.currency)),i.Cb(7),i.mc("ngForOf",e.subs),i.Cb(6),i.mc("ngForOf",i.hc(34,21,e.destinations$)),i.Cb(5),i.Rc(i.hc(39,23,e.destinationBalanceLabel)),i.Cb(2),i.mc("content",i.ic(41,25,e.margin,e.selected.currency)),i.Cb(8),i.Sc(" ",i.hc(49,28,i.hc(50,30,"BUTTON.MAX"))," "),i.Cb(3),i.mc("base",e.selected.currency),i.Cb(1),i.mc("disabled",e.form.invalid),i.Cb(1),i.Sc(" ",i.hc(54,32,"BUTTON.SUBMIT_TRANSFER")," "))},directives:[r.z,r.p,u.a,r.h,h.c,h.f,d.a,p.a,r.o,r.g,f.m,b.a,f.l,g.a,m.b,r.c,r.s,r.v,v.b,h.h,_.a,y.n],pipes:[f.b,d.d,O.b,f.x,C.a,C.b],styles:['button[_ngcontent-%COMP%], mat-form-field[_ngcontent-%COMP%]{width:100%}.transfer-grid[_ngcontent-%COMP%]{margin-top:var(--spacing)}@media (max-width:1024px){.transfer-grid[_ngcontent-%COMP%]{display:flex;flex-direction:column}.transfer-grid[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.transfer-grid[_ngcontent-%COMP%] .switch[_ngcontent-%COMP%]{display:none}}@media (min-width:1025px){.transfer-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr auto 1fr;grid-template-rows:auto auto;grid-template:"from switch to" auto "fromBalance empty toBalance" auto/min-content min-content min-content;grid-column-gap:var(--spacing)}.transfer-grid.subaccount[_ngcontent-%COMP%]{grid-template-columns:1fr 1fr;grid-template:"from-account to-account" auto "from to" auto "fromBalance toBalance" auto/auto}.transfer-grid[_ngcontent-%COMP%] .from-account[_ngcontent-%COMP%]{grid-area:from-account}.transfer-grid[_ngcontent-%COMP%] .to-account[_ngcontent-%COMP%]{grid-area:to-account}.transfer-grid[_ngcontent-%COMP%] .from[_ngcontent-%COMP%]{grid-area:from}.transfer-grid[_ngcontent-%COMP%] .to[_ngcontent-%COMP%]{grid-area:to}.transfer-grid[_ngcontent-%COMP%] .switch[_ngcontent-%COMP%]{align-self:center;grid-area:switch}.transfer-grid[_ngcontent-%COMP%] .switch[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:42px!important}.transfer-grid[_ngcontent-%COMP%] .from-balance[_ngcontent-%COMP%]{grid-area:fromBalance}.transfer-grid[_ngcontent-%COMP%] .to-balance[_ngcontent-%COMP%]{grid-area:toBalance}}.estimate[_ngcontent-%COMP%]{font-size:2em;margin-right:var(--spacing)}'],changeDetection:0}),t})()},kfYe:function(t,e,n){"use strict";n.r(e),n.d(e,"OTPConfirmationComponent",(function(){return m}));var i=n("3kIJ"),r=n("mcff"),s=n("ZTXN"),o=n("xVbo"),a=n("BwBJ"),c=n("kuMc"),l=n("kZht"),u=n("zqNl"),h=n("rfPA"),d=n("bBQR"),p=n("anSm"),f=n("TzY9"),b=n("hCLc"),g=n("aDqW");let m=(()=>{class t{constructor(t,e,n){this.store=t,this.inputs=e,this.formBuilder=n,this.destroy$=new s.b}ngOnInit(){this.form=this.buildForm,this.form.get("otp").valueChanges.pipe(Object(o.a)(t=>6===t.length),Object(a.a)(100),Object(c.a)(this.destroy$)).subscribe(()=>this.submitForm())}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.unsubscribe()}get buildForm(){return this.formBuilder.group({otp:["",[i.x.required]]})}submitForm(){this.store.dispatch(Object.assign(Object.assign({},this.inputs.action),{otp:this.form.get("otp").value,totp:this.form.get("otp").value}))}}return t.\u0275fac=function(e){return new(e||t)(l.Ob(u.b),l.Ob(r.a),l.Ob(i.d))},t.\u0275cmp=l.Ib({type:t,selectors:[["otp-confirmation"]],decls:6,vars:7,consts:[[3,"heading"],["body","",1,"otp-confirmation__form",3,"formGroup","ngSubmit"],[3,"form"],["mat-raised-button","",3,"disabled"]],template:function(t,e){1&t&&(l.Ub(0,"pro-dialog",0),l.Ub(1,"form",1),l.bc("ngSubmit",(function(){return e.submitForm()})),l.Pb(2,"input-otp-entry",2),l.Ub(3,"button",3),l.Qc(4),l.gc(5,"translate"),l.Tb(),l.Tb(),l.Tb()),2&t&&(l.mc("heading",e.inputs.title),l.Cb(1),l.mc("formGroup",e.form),l.Cb(1),l.mc("form",e.form),l.Cb(1),l.mc("disabled",e.form.invalid),l.Cb(1),l.Sc(" ",l.hc(5,5,"BUTTON.SUBMIT_CODE")," "))},directives:[h.a,d.a,i.z,i.p,p.a,i.h,f.a,b.b],pipes:[g.d],styles:[".otp-confirmation__form[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%], .otp-confirmation__form[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{width:100%}"],changeDetection:0}),t})()},kgbq:function(t,e,n){"use strict";function i(){}n.d(e,"a",(function(){return i}))},kuMc:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("uCWR");function r(t){return e=>e.lift(new s(t))}class s{constructor(t){this.notifier=t}call(t,e){const n=new o(t),r=Object(i.c)(this.notifier,new i.a(n));return r&&!n.seenValue?(n.add(r),e.subscribe(n)):n}}class o extends i.b{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},l5Az:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("kZht"),r=n("6uGs"),s=n("sXtk");const o={headers:new r.c({"Content-Type":"application/json"}),withCredentials:!0};let a=(()=>{class t{constructor(t,e){this.http=t,this.env=e,this.orderFormPriceUpdated$=new i.o,this.orderFormQuantityUpdated$=new i.o}updateOrderFormPrice(t){this.orderFormPriceUpdated$.next(t)}updateOrderFormQty(t){this.orderFormQuantityUpdated$.next(t)}submitMarsOrder(t){const e=Object.assign(Object.assign({},t),{type:void 0});return this.http.post(this.env.urls.rest+"/sendorder",e,o)}editOrder(t){const e=Object.assign(Object.assign({},t),{type:void 0});return this.http.put(this.env.urls.rest+"/editorder",e,o)}cancelOrder(t){return this.http.post(this.env.urls.rest+"/cancelorder",{order_id:t},o)}cancelAllOrders(){return this.http.post(this.env.urls.rest+"/cancelallorders",null,o)}calculateMarginFromLeverge(t){return this.http.post(this.env.urls.rest+"/leveragepreferences/calculate",t,o)}calculateLeverageFromMargin(t){return this.http.post(this.env.urls.rest+"/leveragepreferences/changemargin",t,o)}calculateMaxOrderSize(t){return this.http.post(this.env.urls.rest+"/initialmargin/maxordersize",t,o)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(r.a),i.Yb(s.a))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})()},lE9u:function(t,e,n){"use strict";n.d(e,"q",(function(){return r})),n.d(e,"o",(function(){return s})),n.d(e,"e",(function(){return o})),n.d(e,"w",(function(){return a})),n.d(e,"i",(function(){return c})),n.d(e,"t",(function(){return l})),n.d(e,"g",(function(){return u})),n.d(e,"y",(function(){return h})),n.d(e,"x",(function(){return d})),n.d(e,"n",(function(){return p})),n.d(e,"z",(function(){return f})),n.d(e,"A",(function(){return b})),n.d(e,"B",(function(){return g})),n.d(e,"c",(function(){return m})),n.d(e,"a",(function(){return v})),n.d(e,"j",(function(){return _})),n.d(e,"k",(function(){return y})),n.d(e,"u",(function(){return O})),n.d(e,"l",(function(){return C})),n.d(e,"v",(function(){return w})),n.d(e,"b",(function(){return T})),n.d(e,"p",(function(){return S})),n.d(e,"m",(function(){return k})),n.d(e,"f",(function(){return E})),n.d(e,"r",(function(){return x})),n.d(e,"h",(function(){return P})),n.d(e,"d",(function(){return A})),n.d(e,"s",(function(){return I}));var i=n("zqNl");const r=Object(i.g)("Reset Wallets State"),s=Object(i.g)("Open Wallets Feed"),o=Object(i.g)("Close Wallets Feed"),a=Object(i.g)("Set Wallets",Object(i.l)()),c=Object(i.g)("Get Crypto Deposit Details"),l=Object(i.g)("Set Crypto Deposit Details",Object(i.l)()),u=Object(i.g)("Generate Crypto Deposit Address",Object(i.l)()),h=Object(i.g)("Wallet Transfer",Object(i.l)()),d=Object(i.g)("Subaccount Wallet Transfer",Object(i.l)()),p=Object(i.g)("Open Transfer Dialog"),f=Object(i.g)("Withdraw Crypto",Object(i.l)()),b=Object(i.g)("Withdraw Crypto Confirm",Object(i.l)()),g=Object(i.g)("Withdraw Crypto External",Object(i.l)()),m=Object(i.g)("Cancel Withdrawal",Object(i.l)()),v=Object(i.g)("Add Demo Money"),_=Object(i.g)("Get Detailed Wallet Data",Object(i.l)()),y=Object(i.g)("Get Fiat Deposit Details"),O=Object(i.g)("Set Fiat Deposit Details",Object(i.l)()),C=Object(i.g)("Get Fiat Withdrawal Details"),w=Object(i.g)("Set Fiat Withdrawal Details",Object(i.l)()),T=Object(i.g)("Add Fiat Withdrawal Details",Object(i.l)()),S=Object(i.g)("Remove Fiat Withdrawal Details",Object(i.l)()),k=Object(i.g)("Initiate Manual Fiat Withdrawal",Object(i.l)()),E=Object(i.g)("Fetch Authenticated Wallets"),x=Object(i.g)("Set Authenticated Wallets",Object(i.l)()),P=Object(i.g)("Get Account Available Transfer Preference"),A=Object(i.g)("Change Transfer Preference",Object(i.l)()),I=Object(i.g)("Set AvailableTransfer Preference",Object(i.l)())},lFJA:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s=n("J180"),o=n("6oIa");e.BrowserMultiFormatReader=function(t){function e(e,n){void 0===e&&(e=null),void 0===n&&(n=500);var i=new o.default;return i.setHints(e),t.call(this,i,n)||this}return r(e,t),e.prototype.decodeBitmap=function(t){return this.reader.decodeWithState(t)},e}(s.BrowserCodeReader)},lcP6:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("oznm");e.default=function(){function t(t){this.bytes=t,this.byteOffset=0,this.bitOffset=0}return t.prototype.getBitOffset=function(){return this.bitOffset},t.prototype.getByteOffset=function(){return this.byteOffset},t.prototype.readBits=function(t){if(t<1||t>32||t>this.available())throw new i.default(""+t);var e=0,n=this.bitOffset,r=this.byteOffset,s=this.bytes;if(n>0){var o=8-n,a=t>8-a<<(c=o-a))>>c,t-=a,8===(n+=a)&&(n=0,r++)}if(t>0){for(;t>=8;)e=e<<8|255&s[r],r++,t-=8;var c;t>0&&(e=e<>(c=8-t)<>c,n+=t)}return this.bitOffset=n,this.byteOffset=r,e},t.prototype.available=function(){return 8*(this.bytes.length-this.byteOffset)-this.bitOffset},t}()},ldwH:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("UdWo"),r=n("KFdt"),s=n("4Pxi"),o=n("ZCEf"),a=n("xSUO"),c=n("q+cW"),l=n("PSEG"),u=n("ssKD"),h=n("LqyJ");e.default=function(){function t(){this.decoder=new i.default}return t.prototype.decode=function(e,n){var i,c;if(void 0===n&&(n=null),null!=n&&n.has(o.default.PURE_BARCODE)){var h=t.extractPureBits(e.getBlackMatrix());i=this.decoder.decode(h),c=t.NO_POINTS}else{var d=new l.default(e.getBlackMatrix()).detect();i=this.decoder.decode(d.getBits()),c=d.getPoints()}var p=i.getRawBytes(),f=new r.default(i.getText(),p,8*p.length,c,s.default.DATA_MATRIX,u.default.currentTimeMillis()),b=i.getByteSegments();null!=b&&f.putMetadata(a.default.BYTE_SEGMENTS,b);var g=i.getECLevel();return null!=g&&f.putMetadata(a.default.ERROR_CORRECTION_LEVEL,g),f},t.prototype.reset=function(){},t.extractPureBits=function(t){var e=t.getTopLeftOnBit(),n=t.getBottomRightOnBit();if(null==e||null==n)throw new h.default;var i=this.moduleSize(e,t),r=e[1],s=e[0],o=(n[0]-s+1)/i,a=(n[1]-r+1)/i;if(o<=0||a<=0)throw new h.default;var l=i/2;r+=l,s+=l;for(var u=new c.default(o,a),d=0;d{class t{constructor(t,e,n,i,r){this.inputs=t,this.store=e,this.formBuilder=n,this.router=i,this.dialogRef=r,this.form=this.buildForm(),this.withdrawalAddresses$=this.store.pipe(Object(s.m)(h.d)),this.mfaActive$=this.store.pipe(Object(s.m)(l.a)),this.loading$=this.store.pipe(Object(s.m)(u.m,{filter:[c.m.type]}))}ngOnInit(){this.store.dispatch(Object(c.l)()),this.withdrawalAddresses$.pipe(Object(o.g)()).subscribe(t=>{var e;null===(e=this.form.get("withdrawalDetailsUid"))||void 0===e||e.setValue(t[t.length-1])})}buildForm(){return this.formBuilder.group({amount:["",[i.x.required,i.x.min(1e-9),i.x.max(this.inputs.wallet.balance)]],withdrawalDetailsUid:["",[i.x.required,i.x.min(1e-9)]],currencyUnit:["EUR",[i.x.required]],authCode:["",[i.x.required,i.x.minLength(6),i.x.maxLength(6)]]})}withdraw(){this.store.dispatch(Object(c.m)(Object.assign(Object.assign({},this.form.value),{withdrawalDetailsUid:this.form.value.withdrawalDetailsUid.uid})))}manageWithdrawalDetails(){this.store.dispatch(Object(a.g)({name:"fiat-withdrawal-details"}))}privateAccountNumber(t){return t.substr(t.length-4)}closeDialog(){this.dialogRef.close()}mfaRoute(){this.closeDialog(),this.router.navigate(["settings/authentication"])}}return t.\u0275fac=function(e){return new(e||t)(d.Ob(r.a),d.Ob(s.b),d.Ob(i.d),d.Ob(p.d),d.Ob(r.d))},t.\u0275cmp=d.Ib({type:t,selectors:[["fiat-withdraw"]],decls:8,vars:7,consts:[["heading","HEADING.MANUAL_WITHDRAWAL",3,"loading"],[4,"ngIf","ngIfElse"],["loading",""],["notifyMfaRequired",""],[1,"row"],[1,"grid-tri-left","gap-xs-m"],[3,"base"],["body","","bold","","uppercase","","ghost","","translate",""],["subheading",""],["body","",3,"formGroup","ngSubmit",4,"ngIf"],[4,"ngIf"],["body","",3,"formGroup","ngSubmit"],[1,"row","row-form"],["color","accent","appearance","fill"],["translate",""],["matNativeControl","","formControlName","withdrawalDetailsUid"],[3,"value",4,"ngFor","ngForOf"],["type","button","mat-button","","mat-icon-button","",3,"click"],["icon","cog","size","lg","sbTooltip","HEADING.MANAGE_WITHDRAWAL_DETAILS"],["matInput","","formControlName","amount","autocomplete","off","placeholder","0"],["matSuffix",""],["matInput","","required","","formControlName","authCode","maxlength","6","autocomplete","off"],[1,"submit"],["mat-raised-button","","body","",3,"disabled"],[3,"value"],[1,"error"],["body","","translate","",1,"global__text--warn"],["mat-raised-button","","body","",3,"click"]],template:function(t,e){if(1&t&&(d.Ub(0,"pro-dialog",0),d.gc(1,"async"),d.Oc(2,U,3,4,"ng-container",1),d.gc(3,"async"),d.Tb(),d.Oc(4,F,1,0,"ng-template",null,2,d.Pc),d.Oc(6,B,3,3,"ng-template",null,3,d.Pc)),2&t){const t=d.Ac(7);d.mc("loading",d.hc(1,3,e.loading$)),d.Cb(2),d.mc("ngIf",d.hc(3,5,e.mfaActive$))("ngIfElse",t)}},directives:[f.a,b.a,g.n,m.a,v.a,_.a,y.a,O.a,C.a,w.a,i.z,i.p,i.h,T.c,T.f,S.a,i.o,i.g,g.m,k.b,E.b,x.a,P.b,i.c,T.h,i.v,i.k,A.n,I.a],pipes:[g.b,M.a,D.b,C.d],styles:["form[_ngcontent-%COMP%]{display:flex;flex-direction:column}.submit[_ngcontent-%COMP%]{text-align:right}.row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{margin-bottom:var(--spacing-l);flex:1}.row-form[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{flex:1}.manage-withdrawal[_ngcontent-%COMP%]{margin-bottom:var(--spacing)}.header[_ngcontent-%COMP%]{text-align:center;margin-bottom:var(--spacing-l)}.header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:var(--spacing-l) 0}.header[_ngcontent-%COMP%] market-icon[_ngcontent-%COMP%]{font-size:3em}.error[_ngcontent-%COMP%]{padding:var(--spacing);border:1px solid var(--warn-colour);border-radius:var(--bdrs);margin-bottom:var(--spacing)}.error[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .error[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{color:var(--warn-colour);margin:0}.error[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-weight:700}"],changeDetection:0}),t})()},lruz:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("MUfl"),r=n("kZht"),s=n("1VvW");let o=(()=>{class t{constructor(t,e){this.router=t,this.feature=e}canActivate(t){return!!this.feature.isEnabled(t.data.feature)||(this.router.navigate(["/futures"]),!1)}}return t.\u0275fac=function(e){return new(e||t)(r.Yb(s.d),r.Yb(i.a))},t.\u0275prov=r.Kb({token:t,factory:t.\u0275fac}),t})()},"lw+r":function(t,e,n){"use strict";n.d(e,"a",(function(){return m})),n.d(e,"b",(function(){return k})),n.d(e,"c",(function(){return X})),n.d(e,"d",(function(){return tt}));var i=n("kZht"),r=n("An66");function s(t,e){if(1&t&&i.Pb(0,"div",3),2&t){const t=e.index,n=i.fc();i.mc("ngStyle",n.gridRenderer.getGridColumnStyle(t))}}function o(t,e){if(1&t&&i.Pb(0,"div",4),2&t){const t=e.index,n=i.fc();i.mc("ngStyle",n.gridRenderer.getGridRowStyle(t))}}const a=["*"];function c(t,e){if(1&t){const t=i.Vb();i.Ub(0,"div",8),i.bc("mousedown",(function(e){return i.Ec(t),i.fc().resize.dragStartDelay(e)}))("touchstart",(function(e){return i.Ec(t),i.fc().resize.dragStartDelay(e)})),i.Tb()}}function l(t,e){if(1&t){const t=i.Vb();i.Ub(0,"div",9),i.bc("mousedown",(function(e){return i.Ec(t),i.fc().resize.dragStartDelay(e)}))("touchstart",(function(e){return i.Ec(t),i.fc().resize.dragStartDelay(e)})),i.Tb()}}function u(t,e){if(1&t){const t=i.Vb();i.Ub(0,"div",10),i.bc("mousedown",(function(e){return i.Ec(t),i.fc().resize.dragStartDelay(e)}))("touchstart",(function(e){return i.Ec(t),i.fc().resize.dragStartDelay(e)})),i.Tb()}}function h(t,e){if(1&t){const t=i.Vb();i.Ub(0,"div",11),i.bc("mousedown",(function(e){return i.Ec(t),i.fc().resize.dragStartDelay(e)}))("touchstart",(function(e){return i.Ec(t),i.fc().resize.dragStartDelay(e)})),i.Tb()}}function d(t,e){if(1&t){const t=i.Vb();i.Ub(0,"div",12),i.bc("mousedown",(function(e){return i.Ec(t),i.fc().resize.dragStartDelay(e)}))("touchstart",(function(e){return i.Ec(t),i.fc().resize.dragStartDelay(e)})),i.Tb()}}function p(t,e){if(1&t){const t=i.Vb();i.Ub(0,"div",13),i.bc("mousedown",(function(e){return i.Ec(t),i.fc().resize.dragStartDelay(e)}))("touchstart",(function(e){return i.Ec(t),i.fc().resize.dragStartDelay(e)})),i.Tb()}}function f(t,e){if(1&t){const t=i.Vb();i.Ub(0,"div",14),i.bc("mousedown",(function(e){return i.Ec(t),i.fc().resize.dragStartDelay(e)}))("touchstart",(function(e){return i.Ec(t),i.fc().resize.dragStartDelay(e)})),i.Tb()}}function b(t,e){if(1&t){const t=i.Vb();i.Ub(0,"div",15),i.bc("mousedown",(function(e){return i.Ec(t),i.fc().resize.dragStartDelay(e)}))("touchstart",(function(e){return i.Ec(t),i.fc().resize.dragStartDelay(e)})),i.Tb()}}class g{}var m=function(t){return t.Fit="fit",t.ScrollVertical="scrollVertical",t.ScrollHorizontal="scrollHorizontal",t.Fixed="fixed",t.VerticalFixed="verticalFixed",t.HorizontalFixed="horizontalFixed",t}({}),v=function(t){return t.Always="always",t.OnDragAndResize="onDrag&Resize",t.None="none",t}({}),_=function(t){return t.None="none",t.CompactUp="compactUp",t.CompactLeft="compactLeft",t.CompactUpAndLeft="compactUp&Left",t.CompactLeftAndUp="compactLeft&Up",t.CompactRight="compactRight",t.CompactUpAndRight="compactUp&Right",t.CompactRightAndUp="compactRight&Up",t}({}),y=function(t){return t.LTR="ltr",t.RTL="rtl",t}({});let O=(()=>{class t{constructor(t){this.gridster=t}destroy(){delete this.gridster}checkCompact(){this.gridster.$options.compactType!==_.None&&(this.gridster.$options.compactType===_.CompactUp?this.checkCompactUp():this.gridster.$options.compactType===_.CompactLeft?this.checkCompactLeft():this.gridster.$options.compactType===_.CompactUpAndLeft?(this.checkCompactUp(),this.checkCompactLeft()):this.gridster.$options.compactType===_.CompactLeftAndUp?(this.checkCompactLeft(),this.checkCompactUp()):this.gridster.$options.compactType===_.CompactRight?this.checkCompactRight():this.gridster.$options.compactType===_.CompactUpAndRight?(this.checkCompactUp(),this.checkCompactRight()):this.gridster.$options.compactType===_.CompactRightAndUp&&(this.checkCompactRight(),this.checkCompactUp()))}checkCompactItem(t){this.gridster.$options.compactType!==_.None&&(this.gridster.$options.compactType===_.CompactUp?this.moveUpTillCollision(t):this.gridster.$options.compactType===_.CompactLeft?this.moveLeftTillCollision(t):this.gridster.$options.compactType===_.CompactUpAndLeft?(this.moveUpTillCollision(t),this.moveLeftTillCollision(t)):this.gridster.$options.compactType===_.CompactLeftAndUp?(this.moveLeftTillCollision(t),this.moveUpTillCollision(t)):this.gridster.$options.compactType===_.CompactUpAndRight&&(this.moveUpTillCollision(t),this.moveRightTillCollision(t)))}checkCompactUp(){let t,e,n=!1;const i=this.gridster.grid.length;for(let r=0;r{class t{static merge(e,n,i){for(const r in n)void 0!==n[r]&&i.hasOwnProperty(r)&&(e[r]="object"==typeof n[r]?t.merge(e[r],n[r],i[r]):n[r]);return e}static debounce(t,e){let n;return function(){const i=this,r=arguments,s=()=>{n=void 0,t.apply(i,r)};clearTimeout(n),n=setTimeout(s,e)}}static checkTouchEvent(t){void 0===t.clientX&&t.touches&&(t.touches&&t.touches.length?(t.clientX=t.touches[0].clientX,t.clientY=t.touches[0].clientY):t.changedTouches&&t.changedTouches.length&&(t.clientX=t.changedTouches[0].clientX,t.clientY=t.changedTouches[0].clientY))}static checkContentClassForEvent(e,n){if(e.$options.draggable.ignoreContent){if(!t.checkDragHandleClass(n.target,n.currentTarget,e.$options.draggable.dragHandleClass,e.$options.draggable.ignoreContentClass))return!0}else if(t.checkContentClass(n.target,n.currentTarget,e.$options.draggable.ignoreContentClass))return!0;return!1}static checkContentClassForEmptyCellClickEvent(e,n){return t.checkContentClass(n.target,n.currentTarget,e.$options.draggable.ignoreContentClass)||t.checkContentClass(n.target,n.currentTarget,e.$options.draggable.dragHandleClass)}static checkDragHandleClass(e,n,i,r){if(!e||e===n)return!1;if(e.hasAttribute("class")){const t=e.getAttribute("class").split(" ");if(t.indexOf(i)>-1)return!0;if(t.indexOf(r)>-1)return!1}return t.checkDragHandleClass(e.parentNode,n,i,r)}static checkContentClass(e,n,i){return!(!e||e===n)&&(!!(e.hasAttribute("class")&&e.getAttribute("class").split(" ").indexOf(i)>-1)||t.checkContentClass(e.parentNode,n,i))}static compareItems(t,e){return t.y>e.y?-1:t.ye.x?-1:1}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),T=(()=>{class t{constructor(t){this.gridster=t}destroy(){delete this.initialItem,delete this.gridster.movingItem,this.gridster.previewStyle&&this.gridster.previewStyle(),delete this.gridster,this.emptyCellExit&&(this.emptyCellExit(),this.emptyCellExit=null)}updateOptions(){this.gridster.$options.enableEmptyCellClick&&!this.emptyCellClick&&this.gridster.options.emptyCellClickCallback?(this.emptyCellClick=this.gridster.renderer.listen(this.gridster.el,"click",this.emptyCellClickCb.bind(this)),this.emptyCellClickTouch=this.gridster.renderer.listen(this.gridster.el,"touchend",this.emptyCellClickCb.bind(this))):!this.gridster.$options.enableEmptyCellClick&&this.emptyCellClick&&this.emptyCellClickTouch&&(this.emptyCellClick(),this.emptyCellClickTouch(),this.emptyCellClick=null,this.emptyCellClickTouch=null),this.gridster.$options.enableEmptyCellContextMenu&&!this.emptyCellContextMenu&&this.gridster.options.emptyCellContextMenuCallback?this.emptyCellContextMenu=this.gridster.renderer.listen(this.gridster.el,"contextmenu",this.emptyCellContextMenuCb.bind(this)):!this.gridster.$options.enableEmptyCellContextMenu&&this.emptyCellContextMenu&&(this.emptyCellContextMenu(),this.emptyCellContextMenu=null),this.gridster.$options.enableEmptyCellDrop&&!this.emptyCellDrop&&this.gridster.options.emptyCellDropCallback?(this.emptyCellDrop=this.gridster.renderer.listen(this.gridster.el,"drop",this.emptyCellDragDrop.bind(this)),this.gridster.zone.runOutsideAngular(()=>{this.emptyCellMove=this.gridster.renderer.listen(this.gridster.el,"dragover",this.emptyCellDragOver.bind(this))}),this.emptyCellExit=this.gridster.renderer.listen("document","dragend",()=>{this.gridster.movingItem=null,this.gridster.previewStyle()})):!this.gridster.$options.enableEmptyCellDrop&&this.emptyCellDrop&&this.emptyCellMove&&this.emptyCellExit&&(this.emptyCellDrop(),this.emptyCellMove(),this.emptyCellExit(),this.emptyCellMove=null,this.emptyCellDrop=null,this.emptyCellExit=null),this.gridster.$options.enableEmptyCellDrag&&!this.emptyCellDrag&&this.gridster.options.emptyCellDragCallback?(this.emptyCellDrag=this.gridster.renderer.listen(this.gridster.el,"mousedown",this.emptyCellMouseDown.bind(this)),this.emptyCellDragTouch=this.gridster.renderer.listen(this.gridster.el,"touchstart",this.emptyCellMouseDown.bind(this))):!this.gridster.$options.enableEmptyCellDrag&&this.emptyCellDrag&&this.emptyCellDragTouch&&(this.emptyCellDrag(),this.emptyCellDragTouch(),this.emptyCellDrag=null,this.emptyCellDragTouch=null)}emptyCellClickCb(t){if(this.gridster.movingItem||w.checkContentClassForEmptyCellClickEvent(this.gridster,t))return;const e=this.getValidItemFromEvent(t);e&&(this.gridster.options.emptyCellClickCallback&&this.gridster.options.emptyCellClickCallback(t,e),this.gridster.cdRef.markForCheck())}emptyCellContextMenuCb(t){if(this.gridster.movingItem||w.checkContentClassForEmptyCellClickEvent(this.gridster,t))return;t.preventDefault(),t.stopPropagation();const e=this.getValidItemFromEvent(t);e&&(this.gridster.options.emptyCellContextMenuCallback&&this.gridster.options.emptyCellContextMenuCallback(t,e),this.gridster.cdRef.markForCheck())}emptyCellDragDrop(t){const e=this.getValidItemFromEvent(t);e&&(this.gridster.options.emptyCellDropCallback&&this.gridster.options.emptyCellDropCallback(t,e),this.gridster.cdRef.markForCheck())}emptyCellDragOver(t){t.preventDefault(),t.stopPropagation();const e=this.getValidItemFromEvent(t);e?(t.dataTransfer&&(t.dataTransfer.dropEffect="move"),this.gridster.movingItem=e):(t.dataTransfer&&(t.dataTransfer.dropEffect="none"),this.gridster.movingItem=null),this.gridster.previewStyle()}emptyCellMouseDown(t){if(w.checkContentClassForEmptyCellClickEvent(this.gridster,t))return;t.preventDefault(),t.stopPropagation();const e=this.getValidItemFromEvent(t);e&&1===t.buttons&&(this.initialItem=e,this.gridster.movingItem=e,this.gridster.previewStyle(),this.gridster.zone.runOutsideAngular(()=>{this.emptyCellMMove=this.gridster.renderer.listen("window","mousemove",this.emptyCellMouseMove.bind(this)),this.emptyCellMMoveTouch=this.gridster.renderer.listen("window","touchmove",this.emptyCellMouseMove.bind(this))}),this.emptyCellUp=this.gridster.renderer.listen("window","mouseup",this.emptyCellMouseUp.bind(this)),this.emptyCellUpTouch=this.gridster.renderer.listen("window","touchend",this.emptyCellMouseUp.bind(this)))}emptyCellMouseMove(t){t.preventDefault(),t.stopPropagation();const e=this.getValidItemFromEvent(t,this.initialItem);e&&(this.gridster.movingItem=e,this.gridster.previewStyle())}emptyCellMouseUp(t){this.emptyCellMMove(),this.emptyCellMMoveTouch(),this.emptyCellUp(),this.emptyCellUpTouch();const e=this.getValidItemFromEvent(t,this.initialItem);e&&(this.gridster.movingItem=e),this.gridster.options.emptyCellDragCallback&&this.gridster.movingItem&&this.gridster.options.emptyCellDragCallback(t,this.gridster.movingItem),setTimeout(()=>{this.initialItem=null,this.gridster&&(this.gridster.movingItem=null,this.gridster.previewStyle())}),this.gridster.cdRef.markForCheck()}getPixelsX(t,e){const n=this.gridster.options.scale;return n?(t.clientX-e.left)/n+this.gridster.el.scrollLeft-this.gridster.gridRenderer.getLeftMargin():t.clientX+this.gridster.el.scrollLeft-e.left-this.gridster.gridRenderer.getLeftMargin()}getPixelsY(t,e){const n=this.gridster.options.scale;return n?(t.clientY-e.top)/n+this.gridster.el.scrollTop-this.gridster.gridRenderer.getTopMargin():t.clientY+this.gridster.el.scrollTop-e.top-this.gridster.gridRenderer.getTopMargin()}getValidItemFromEvent(t,e){t.preventDefault(),t.stopPropagation(),w.checkTouchEvent(t);const n=this.gridster.el.getBoundingClientRect(),i=this.getPixelsX(t,n),r=this.getPixelsY(t,n),s={x:this.gridster.pixelsToPositionX(i,Math.floor,!0),y:this.gridster.pixelsToPositionY(r,Math.floor,!0),cols:this.gridster.$options.defaultItemCols,rows:this.gridster.$options.defaultItemRows};if(e&&(s.cols=Math.min(Math.abs(e.x-s.x)+1,this.gridster.$options.emptyCellDragMaxCols),s.rows=Math.min(Math.abs(e.y-s.y)+1,this.gridster.$options.emptyCellDragMaxRows),e.xthis.gridster.$options.emptyCellDragMaxCols-1&&(s.x=this.gridster.movingItem?this.gridster.movingItem.x:0),e.ythis.gridster.$options.emptyCellDragMaxRows-1&&(s.y=this.gridster.movingItem?this.gridster.movingItem.y:0)),this.gridster.$options.enableOccupiedCellDrop||!this.gridster.checkCollision(s))return s}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(g))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),S=(()=>{class t{constructor(t){this.gridster=t}destroy(){delete this.gridster}updateItem(t,e,n){if(this.gridster.mobile)this.clearCellPosition(n,t),n.setStyle(t,"height",this.gridster.$options.keepFixedHeightInMobile?e.rows*this.gridster.$options.fixedRowHeight+"px":e.rows*this.gridster.curWidth/e.cols+"px"),n.setStyle(t,"width",this.gridster.$options.keepFixedWidthInMobile?this.gridster.$options.fixedColWidth+"px":""),n.setStyle(t,"margin-bottom",this.gridster.$options.margin+"px"),n.setStyle(t,y.LTR?"margin-right":"margin-left","");else{const i=Math.round(this.gridster.curColWidth*e.x),r=Math.round(this.gridster.curRowHeight*e.y),s=this.gridster.curColWidth*e.cols-this.gridster.$options.margin,o=this.gridster.curRowHeight*e.rows-this.gridster.$options.margin;this.setCellPosition(n,t,i,r),n.setStyle(t,"width",s+"px"),n.setStyle(t,"height",o+"px");let a=null,c=null;this.gridster.$options.outerMargin&&(this.gridster.rows===e.rows+e.y&&(a=null!==this.gridster.$options.outerMarginBottom?this.gridster.$options.outerMarginBottom+"px":this.gridster.$options.margin+"px"),this.gridster.columns===e.cols+e.x&&(c=null!==this.gridster.$options.outerMarginBottom?this.gridster.$options.outerMarginRight+"px":this.gridster.$options.margin+"px")),n.setStyle(t,"margin-bottom",a),n.setStyle(t,y.LTR?"margin-right":"margin-left",c)}}updateGridster(){let t="",e="",n="",i="";this.gridster.$options.gridType===m.Fit?(t=m.Fit,e=m.ScrollVertical,n=m.ScrollHorizontal,i=m.Fixed):this.gridster.$options.gridType===m.ScrollVertical?(this.gridster.curRowHeight=this.gridster.curColWidth,t=m.ScrollVertical,e=m.Fit,n=m.ScrollHorizontal,i=m.Fixed):this.gridster.$options.gridType===m.ScrollHorizontal?(this.gridster.curColWidth=this.gridster.curRowHeight,t=m.ScrollHorizontal,e=m.Fit,n=m.ScrollVertical,i=m.Fixed):this.gridster.$options.gridType===m.Fixed?(this.gridster.curColWidth=this.gridster.$options.fixedColWidth+(this.gridster.$options.ignoreMarginInRow?0:this.gridster.$options.margin),this.gridster.curRowHeight=this.gridster.$options.fixedRowHeight+(this.gridster.$options.ignoreMarginInRow?0:this.gridster.$options.margin),t=m.Fixed,e=m.Fit,n=m.ScrollVertical,i=m.ScrollHorizontal):this.gridster.$options.gridType===m.VerticalFixed?(this.gridster.curRowHeight=this.gridster.$options.fixedRowHeight+(this.gridster.$options.ignoreMarginInRow?0:this.gridster.$options.margin),t=m.ScrollVertical,e=m.Fit,n=m.ScrollHorizontal,i=m.Fixed):this.gridster.$options.gridType===m.HorizontalFixed&&(this.gridster.curColWidth=this.gridster.$options.fixedColWidth+(this.gridster.$options.ignoreMarginInRow?0:this.gridster.$options.margin),t=m.ScrollHorizontal,e=m.Fit,n=m.ScrollVertical,i=m.Fixed),this.gridster.mobile||this.gridster.$options.setGridSize&&this.gridster.$options.gridType!==m.Fit?this.gridster.renderer.removeClass(this.gridster.el,t):this.gridster.renderer.addClass(this.gridster.el,t),this.gridster.renderer.removeClass(this.gridster.el,e),this.gridster.renderer.removeClass(this.gridster.el,n),this.gridster.renderer.removeClass(this.gridster.el,i)}getGridColumnStyle(t){return Object.assign(Object.assign({},this.getLeftPosition(this.gridster.curColWidth*t)),{width:this.gridster.curColWidth-this.gridster.$options.margin+"px",height:this.gridster.gridRows.length*this.gridster.curRowHeight-this.gridster.$options.margin+"px"})}getGridRowStyle(t){return Object.assign(Object.assign({},this.getTopPosition(this.gridster.curRowHeight*t)),{width:this.gridster.gridColumns.length*this.gridster.curColWidth-this.gridster.$options.margin+"px",height:this.gridster.curRowHeight-this.gridster.$options.margin+"px"})}getLeftPosition(t){const e=this.gridster.$options.dirType===y.RTL?-t:t;return this.gridster.$options.useTransformPositioning?{transform:"translateX("+e+"px)"}:{left:this.getLeftMargin()+e+"px"}}getTopPosition(t){return this.gridster.$options.useTransformPositioning?{transform:"translateY("+t+"px)"}:{top:this.getTopMargin()+t+"px"}}clearCellPosition(t,e){this.gridster.$options.useTransformPositioning?t.setStyle(e,"transform",""):(t.setStyle(e,"top",""),t.setStyle(e,"left",""))}setCellPosition(t,e,n,i){const r=this.gridster.$options.dirType===y.RTL?-n:n;this.gridster.$options.useTransformPositioning?t.setStyle(e,"transform","translate3d("+r+"px, "+i+"px, 0)"):(t.setStyle(e,"left",this.getLeftMargin()+r+"px"),t.setStyle(e,"top",this.getTopMargin()+i+"px"))}getLeftMargin(){return this.gridster.$options.outerMargin?null!==this.gridster.$options.outerMarginLeft?this.gridster.$options.outerMarginLeft:this.gridster.$options.margin:0}getTopMargin(){return this.gridster.$options.outerMargin?null!==this.gridster.$options.outerMarginTop?this.gridster.$options.outerMarginTop:this.gridster.$options.margin:0}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(g))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),k=(()=>{class t{constructor(t,e,n,i){this.renderer=e,this.cdRef=n,this.zone=i,this.columns=0,this.rows=0,this.gridColumns=[],this.gridRows=[],this.el=t.nativeElement,this.$options=JSON.parse(JSON.stringify(C)),this.calculateLayoutDebounce=w.debounce(this.calculateLayout.bind(this),0),this.mobile=!1,this.curWidth=0,this.curHeight=0,this.grid=[],this.curColWidth=0,this.curRowHeight=0,this.dragInProgress=!1,this.emptyCell=new T(this),this.compact=new O(this),this.gridRenderer=new S(this)}static checkCollisionTwoItemsForSwaping(t,e){return t.x+(1===t.cols?0:1)e.x+(1===e.cols?0:1)&&t.y+(1===t.rows?0:1)e.y+(1===e.rows?0:1)}checkCollisionTwoItems(t,e){if(!(t.xe.x&&t.ye.y))return!1;if(!this.$options.allowMultiLayer)return!0;const n=this.$options.defaultLayerIndex;return(void 0===t.layerIndex?n:t.layerIndex)===(void 0===e.layerIndex?n:e.layerIndex)}ngOnInit(){this.options.initCallback&&this.options.initCallback(this)}ngOnChanges(t){t.options&&(this.setOptions(),this.options.api={optionsChanged:this.optionsChanged.bind(this),resize:this.onResize.bind(this),getNextPossiblePosition:this.getNextPossiblePosition.bind(this),getFirstPossiblePosition:this.getFirstPossiblePosition.bind(this),getLastPossiblePosition:this.getLastPossiblePosition.bind(this),getItemComponent:t=>this.getItemComponent(t)},this.columns=this.$options.minCols,this.rows=this.$options.minRows,this.setGridSize(),this.calculateLayout())}resize(){let t,e;"fit"!==this.$options.gridType||this.mobile?(e=this.el.clientWidth,t=this.el.clientHeight):(e=this.el.offsetWidth,t=this.el.offsetHeight),e===this.curWidth&&t===this.curHeight||!this.checkIfToResize()||this.onResize()}setOptions(){this.$options=w.merge(this.$options,this.options,this.$options),this.$options.disableWindowResize||this.windowResize?this.$options.disableWindowResize&&this.windowResize&&(this.windowResize(),this.windowResize=null):this.windowResize=this.renderer.listen("window","resize",this.onResize.bind(this)),this.emptyCell.updateOptions()}optionsChanged(){this.setOptions();let t,e=this.grid.length-1;for(;e>=0;e--)t=this.grid[e],t.updateOptions();this.calculateLayout()}ngOnDestroy(){this.windowResize&&this.windowResize(),this.options&&this.options.destroyCallback&&this.options.destroyCallback(this),this.options&&this.options.api&&(this.options.api.resize=void 0,this.options.api.optionsChanged=void 0,this.options.api.getNextPossiblePosition=void 0,this.options.api=void 0),this.emptyCell.destroy(),delete this.emptyCell,this.compact.destroy(),delete this.compact}onResize(){this.options.setGridSize&&(this.renderer.setStyle(this.el,"width",""),this.renderer.setStyle(this.el,"height","")),this.setGridSize(),this.calculateLayout()}checkIfToResize(){const t=this.el.clientWidth,e=this.el.offsetWidth,n=this.el.scrollWidth,i=this.el.clientHeight,r=this.el.offsetHeight,s=this.el.scrollHeight;return!(tr&&s-re&&n-ethis.curWidth?(this.mobile=!this.mobile,this.renderer.addClass(this.el,"mobile")):this.mobile&&this.$options.mobileBreakpoint=0;i--)t=this.grid[i],t.notPlaced||(e=Math.max(e,t.$item.y+t.$item.rows),n=Math.max(n,t.$item.x+t.$item.cols));this.columns===n&&this.rows===e||(this.columns=n,this.rows=e,this.options.gridSizeChangedCallback&&this.options.gridSizeChangedCallback(this))}calculateLayout(){if(this.compact&&this.compact.checkCompact(),this.setGridDimensions(),this.$options.outerMargin){let t=-this.$options.margin;null!==this.$options.outerMarginLeft?(t+=this.$options.outerMarginLeft,this.renderer.setStyle(this.el,"padding-left",this.$options.outerMarginLeft+"px")):(t+=this.$options.margin,this.renderer.setStyle(this.el,"padding-left",this.$options.margin+"px")),null!==this.$options.outerMarginRight?(t+=this.$options.outerMarginRight,this.renderer.setStyle(this.el,"padding-right",this.$options.outerMarginRight+"px")):(t+=this.$options.margin,this.renderer.setStyle(this.el,"padding-right",this.$options.margin+"px")),this.curColWidth=(this.curWidth-t)/this.columns;let e=-this.$options.margin;null!==this.$options.outerMarginTop?(e+=this.$options.outerMarginTop,this.renderer.setStyle(this.el,"padding-top",this.$options.outerMarginTop+"px")):(e+=this.$options.margin,this.renderer.setStyle(this.el,"padding-top",this.$options.margin+"px")),null!==this.$options.outerMarginBottom?(e+=this.$options.outerMarginBottom,this.renderer.setStyle(this.el,"padding-bottom",this.$options.outerMarginBottom+"px")):(e+=this.$options.margin,this.renderer.setStyle(this.el,"padding-bottom",this.$options.margin+"px")),this.curRowHeight=(this.curHeight-e)/this.rows}else this.curColWidth=(this.curWidth+this.$options.margin)/this.columns,this.curRowHeight=(this.curHeight+this.$options.margin)/this.rows,this.renderer.setStyle(this.el,"padding-left","0px"),this.renderer.setStyle(this.el,"padding-right","0px"),this.renderer.setStyle(this.el,"padding-top","0px"),this.renderer.setStyle(this.el,"padding-bottom","0px");this.gridRenderer.updateGridster(),this.$options.setGridSize?(this.renderer.addClass(this.el,"gridSize"),this.mobile||(this.renderer.setStyle(this.el,"width",this.columns*this.curColWidth+this.$options.margin+"px"),this.renderer.setStyle(this.el,"height",this.rows*this.curRowHeight+this.$options.margin+"px"))):(this.renderer.removeClass(this.el,"gridSize"),this.renderer.setStyle(this.el,"width",""),this.renderer.setStyle(this.el,"height","")),this.updateGrid();let t,e=this.grid.length-1;for(;e>=0;e--)t=this.grid[e],t.setSize(),t.drag.toggle(),t.resize.toggle();setTimeout(this.resize.bind(this),100)}updateGrid(){"always"!==this.$options.displayGrid||this.mobile?"onDrag&Resize"===this.$options.displayGrid&&this.dragInProgress?this.renderer.addClass(this.el,"display-grid"):"none"!==this.$options.displayGrid&&this.dragInProgress&&!this.mobile||this.renderer.removeClass(this.el,"display-grid"):this.renderer.addClass(this.el,"display-grid"),this.setGridDimensions(),this.gridColumns.length=t.getNewArrayLength(this.columns,this.curWidth,this.curColWidth),this.gridRows.length=t.getNewArrayLength(this.rows,this.curHeight,this.curRowHeight),this.cdRef.markForCheck()}addItem(t){void 0===t.$item.cols&&(t.$item.cols=this.$options.defaultItemCols,t.item.cols=t.$item.cols,t.itemChanged()),void 0===t.$item.rows&&(t.$item.rows=this.$options.defaultItemRows,t.item.rows=t.$item.rows,t.itemChanged()),-1===t.$item.x||-1===t.$item.y?this.autoPositionItem(t):this.checkCollision(t.$item)&&(this.$options.disableWarnings||(t.notPlaced=!0,console.warn("Can't be placed in the bounds of the dashboard, trying to auto position!/n"+JSON.stringify(t.item,["cols","rows","x","y"]))),this.$options.disableAutoPositionOnConflict?t.notPlaced=!0:this.autoPositionItem(t)),this.grid.push(t),this.calculateLayoutDebounce()}removeItem(t){this.grid.splice(this.grid.indexOf(t),1),this.calculateLayoutDebounce(),this.options.itemRemovedCallback&&this.options.itemRemovedCallback(t.item,t)}checkCollision(t){let e=!1;if(this.options.itemValidateCallback&&(e=!this.options.itemValidateCallback(t)),!e&&this.checkGridCollision(t)&&(e=!0),!e){const n=this.findItemWithItem(t);n&&(e=n)}return e}checkGridCollision(t){const e=t.cols*t.rows;return!(t.y>-1&&t.x>-1&&t.cols+t.x<=this.$options.maxCols&&t.rows+t.y<=this.$options.maxRows&&t.cols<=(void 0===t.maxItemCols?this.$options.maxItemCols:t.maxItemCols)&&t.cols>=(void 0===t.minItemCols?this.$options.minItemCols:t.minItemCols)&&t.rows<=(void 0===t.maxItemRows?this.$options.maxItemRows:t.maxItemRows)&&t.rows>=(void 0===t.minItemRows?this.$options.minItemRows:t.minItemRows)&&(void 0===t.minItemArea?this.$options.minItemArea:t.minItemArea)<=e&&(void 0===t.maxItemArea?this.$options.maxItemArea:t.maxItemArea)>=e)}findItemWithItem(t){let e,n=0;for(;n=this.rows+t.rows;return!(this.rows<=this.columns&&r)&&this.$options.maxCols>=this.columns+t.cols?(t.x=this.columns,t.y=0,!0):!!r&&(t.y=this.rows,t.x=0,!0)}getFirstPossiblePosition(t){const e=Object.assign({},t);return this.getNextPossiblePosition(e),e}getLastPossiblePosition(t){let e={y:0,x:0};e=this.grid.reduce((t,e)=>{const n={y:e.$item.y+e.$item.rows-1,x:e.$item.x+e.$item.cols-1};return 1===w.compareItems(t,n)?n:t},e);const n=Object.assign({},t);return this.getNextPossiblePosition(n,e),n}pixelsToPositionX(t,e,n){const i=e(t/this.curColWidth);return n?i:Math.max(i,0)}pixelsToPositionY(t,e,n){const i=e(t/this.curRowHeight);return n?i:Math.max(i,0)}positionXToPixels(t){return t*this.curColWidth}positionYToPixels(t){return t*this.curRowHeight}getItemComponent(t){return this.grid.find(e=>e.item===t)}checkCollisionForSwaping(t){let e=!1;if(this.options.itemValidateCallback&&(e=!this.options.itemValidateCallback(t)),!e&&this.checkGridCollision(t)&&(e=!0),!e){const n=this.findItemWithItemForSwaping(t);n&&(e=n)}return e}findItemWithItemForSwaping(e){let n,i=this.grid.length-1;for(;i>-1;i--)if(n=this.grid[i],n.$item!==e&&t.checkCollisionTwoItemsForSwaping(n.$item,e))return n;return!1}static getNewArrayLength(t,e,n){const i=Math.max(t,Math.floor(e/n));return i<0?0:Number.isFinite(i)?Math.floor(i):0}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(i.G),i.Ob(i.h),i.Ob(i.B))},t.\u0275cmp=i.Ib({type:t,selectors:[["gridster"]],inputs:{options:"options"},features:[i.Ab],ngContentSelectors:a,decls:4,vars:2,consts:[["class","gridster-column",3,"ngStyle",4,"ngFor","ngForOf"],["class","gridster-row",3,"ngStyle",4,"ngFor","ngForOf"],[1,"gridster-preview"],[1,"gridster-column",3,"ngStyle"],[1,"gridster-row",3,"ngStyle"]],template:function(t,e){1&t&&(i.lc(),i.Oc(0,s,1,1,"div",0),i.Oc(1,o,1,1,"div",1),i.kc(2),i.Pb(3,"gridster-preview",2)),2&t&&(i.mc("ngForOf",e.gridColumns),i.Cb(1),i.mc("ngForOf",e.gridRows))},directives:function(){return[r.m,J,r.o]},styles:["gridster{-ms-user-select:none;-webkit-user-select:none;background:grey;box-sizing:border-box;display:block;height:100%;position:relative;user-select:none;width:100%}gridster.fit{overflow-x:hidden;overflow-y:hidden}gridster.scrollVertical{overflow-x:hidden;overflow-y:auto}gridster.scrollHorizontal{overflow-x:auto;overflow-y:hidden}gridster.fixed{overflow:auto}gridster.mobile{overflow-x:hidden;overflow-y:auto}gridster.mobile gridster-item{position:relative}gridster.gridSize{height:auto;width:auto}gridster.gridSize.fit{height:100%;width:100%}gridster .gridster-column,gridster .gridster-row{box-sizing:border-box;display:none;position:absolute;transition:.3s}gridster.display-grid .gridster-column,gridster.display-grid .gridster-row{display:block}gridster .gridster-column{border-left:1px solid #fff;border-right:1px solid #fff}gridster .gridster-row{border-bottom:1px solid #fff;border-top:1px solid #fff}"],encapsulation:2}),t})();class E{}let x,P,A,I,M,D,R,j,L,N=(()=>{class t{constructor(t){this.iteration=0,this.pushedItems=[],this.pushedItemsTemp=[],this.pushedItemsTempPath=[],this.pushedItemsPath=[],this.gridsterItem=t,this.gridster=t.gridster,this.tryPattern={fromEast:[this.tryWest,this.trySouth,this.tryNorth,this.tryEast],fromWest:[this.tryEast,this.trySouth,this.tryNorth,this.tryWest],fromNorth:[this.trySouth,this.tryEast,this.tryWest,this.tryNorth],fromSouth:[this.tryNorth,this.tryEast,this.tryWest,this.trySouth]},this.fromSouth="fromSouth",this.fromNorth="fromNorth",this.fromEast="fromEast",this.fromWest="fromWest"}destroy(){delete this.gridster,delete this.gridsterItem}pushItems(t,e){if(this.gridster.$options.pushItems&&!e){this.pushedItemsOrder=[],this.iteration=0;const e=this.push(this.gridsterItem,t);return e||this.restoreTempItems(),this.pushedItemsOrder=[],this.pushedItemsTemp=[],this.pushedItemsTempPath=[],e}return!1}restoreTempItems(){let t=this.pushedItemsTemp.length-1;for(;t>-1;t--)this.removeFromTempPushed(this.pushedItemsTemp[t])}restoreItems(){let t=0;const e=this.pushedItems.length;let n;for(;t-1;t--)this.checkPushedItem(this.pushedItems[t],t)&&(e=!0);e&&this.checkPushBack()}push(t,e){if(this.iteration>100)return console.warn("max iteration reached"),!1;if(this.gridster.checkGridCollision(t.$item))return!1;if(""===e)return!1;const n=this.gridster.findItemsWithItem(t.$item),i=e===this.fromNorth||e===this.fromWest;n.sort((t,e)=>i?e.$item.y-t.$item.y||e.$item.x-t.$item.x:t.$item.y-e.$item.y||t.$item.x-e.$item.x);let r,s=0,o=!0;const a=[];for(;s-1&&this.pushedItemsTempPath[i].length>10){o=!1;break}if(this.tryPattern[e][0].call(this,r,t))this.pushedItemsOrder.push(r),a.push(r);else if(this.tryPattern[e][1].call(this,r,t))this.pushedItemsOrder.push(r),a.push(r);else if(this.tryPattern[e][2].call(this,r,t))this.pushedItemsOrder.push(r),a.push(r);else{if(!this.tryPattern[e][3].call(this,r,t)){o=!1;break}this.pushedItemsOrder.push(r),a.push(r)}}if(!o&&(s=this.pushedItemsOrder.lastIndexOf(a[0]),s>-1)){let t=this.pushedItemsOrder.length-1;for(;t>=s;t--)r=this.pushedItemsOrder[t],this.pushedItemsOrder.pop(),this.removeFromTempPushed(r),this.removeFromPushedItem(r)}return this.iteration++,o}trySouth(t,e){return!!this.gridster.$options.pushDirections.south&&(this.addToTempPushed(t),t.$item.y=e.$item.y+e.$item.rows,this.push(t,this.fromNorth)?(t.setSize(),this.addToPushed(t),!0):(this.removeFromTempPushed(t),!1))}tryNorth(t,e){return!!this.gridster.$options.pushDirections.north&&(this.addToTempPushed(t),t.$item.y=e.$item.y-t.$item.rows,this.push(t,this.fromSouth)?(t.setSize(),this.addToPushed(t),!0):(this.removeFromTempPushed(t),!1))}tryEast(t,e){return!!this.gridster.$options.pushDirections.east&&(this.addToTempPushed(t),t.$item.x=e.$item.x+e.$item.cols,this.push(t,this.fromWest)?(t.setSize(),this.addToPushed(t),!0):(this.removeFromTempPushed(t),!1))}tryWest(t,e){return!!this.gridster.$options.pushDirections.west&&(this.addToTempPushed(t),t.$item.x=e.$item.x-t.$item.cols,this.push(t,this.fromEast)?(t.setSize(),this.addToPushed(t),!0):(this.removeFromTempPushed(t),!1))}addToTempPushed(t){let e=this.pushedItemsTemp.indexOf(t);-1===e&&(e=this.pushedItemsTemp.push(t)-1,this.pushedItemsTempPath[e]=[]),this.pushedItemsTempPath[e].push({x:t.$item.x,y:t.$item.y})}removeFromTempPushed(t){const e=this.pushedItemsTemp.indexOf(t),n=this.pushedItemsTempPath[e].pop();n&&(t.$item.x=n.x,t.$item.y=n.y,t.setSize(),this.pushedItemsTempPath[e].length||(this.pushedItemsTemp.splice(e,1),this.pushedItemsTempPath.splice(e,1)))}addToPushed(t){if(this.pushedItems.indexOf(t)<0)this.pushedItems.push(t),this.pushedItemsPath.push([{x:t.item.x||0,y:t.item.y||0},{x:t.$item.x,y:t.$item.y}]);else{const e=this.pushedItems.indexOf(t);this.pushedItemsPath[e].push({x:t.$item.x,y:t.$item.y})}}removeFromPushed(t){t>-1&&(this.pushedItems.splice(t,1),this.pushedItemsPath.splice(t,1))}removeFromPushedItem(t){const e=this.pushedItems.indexOf(t);e>-1&&(this.pushedItemsPath[e].pop(),this.pushedItemsPath.length||(this.pushedItems.splice(e,1),this.pushedItemsPath.splice(e,1)))}checkPushedItem(t,e){const n=this.pushedItemsPath[e];let i,r,s,o=n.length-2,a=!1;for(;o>-1;o--)i=n[o],r=t.$item.x,s=t.$item.y,t.$item.x=i.x,t.$item.y=i.y,this.gridster.findItemWithItem(t.$item)?(t.$item.x=r,t.$item.y=s):(t.setSize(),n.splice(o+1,n.length-o-1),a=!0);return n.length<2&&this.removeFromPushed(e),a}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(E))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();function U(t,e,n,i,r,s,o,a,c,l){x=t.$options.scrollSensitivity,P=t.$options.scrollSpeed,A=t.el,I=c,M=l;const u=A.offsetWidth,h=A.scrollLeft,d=A.scrollTop,p=n-d;if(!t.$options.disableScrollVertical)if(o.clientYs.clientY&&d>0&&ps.clientX&&h>0&&f{(!A||-1===t&&A.scrollTop-P<0)&&$(),A.scrollTop+=t*P,i+=t*P,e({clientX:n.clientX,clientY:i})},50)}function B(t,e,n){let i=n.clientX;return setInterval(()=>{(!A||-1===t&&A.scrollLeft-P<0)&&V(),A.scrollLeft+=t*P,i+=t*P,e({clientX:i,clientY:n.clientY})},50)}function z(){V(),$(),A=null}function V(){H(),q()}function $(){W(),Q()}function H(){D&&(clearInterval(D),D=0)}function q(){R&&(clearInterval(R),R=0)}function Q(){L&&(clearInterval(L),L=0)}function W(){j&&(clearInterval(j),j=0)}let G=(()=>{class t{constructor(t){this.gridsterItem=t,this.gridster=t.gridster}destroy(){delete this.gridster,delete this.gridsterItem,delete this.swapedItem}swapItems(){this.gridster.$options.swap&&(this.checkSwapBack(),this.checkSwap(this.gridsterItem))}checkSwapBack(){if(this.swapedItem){const t=this.swapedItem.$item.x,e=this.swapedItem.$item.y;this.swapedItem.$item.x=this.swapedItem.item.x||0,this.swapedItem.$item.y=this.swapedItem.item.y||0,this.gridster.checkCollision(this.swapedItem.$item)?(this.swapedItem.$item.x=t,this.swapedItem.$item.y=e):(this.swapedItem.setSize(),this.gridsterItem.$item.x=this.gridsterItem.item.x||0,this.gridsterItem.$item.y=this.gridsterItem.item.y||0,this.swapedItem=void 0)}}restoreSwapItem(){this.swapedItem&&(this.swapedItem.$item.x=this.swapedItem.item.x||0,this.swapedItem.$item.y=this.swapedItem.item.y||0,this.swapedItem.setSize(),this.swapedItem=void 0)}setSwapItem(){this.swapedItem&&(this.swapedItem.checkItemChanges(this.swapedItem.$item,this.swapedItem.item),this.swapedItem=void 0)}checkSwap(t){let e;if(e=this.gridster.$options.swapWhileDragging?this.gridster.checkCollisionForSwaping(t.$item):this.gridster.checkCollision(t.$item),e&&!0!==e&&e.canBeDragged()){const n=e,i=n.$item.x,r=n.$item.y,s=t.$item.x,o=t.$item.y;n.$item.x=t.item.x||0,n.$item.y=t.item.y||0,t.$item.x=n.item.x||0,t.$item.y=n.item.y||0,this.gridster.checkCollision(n.$item)||this.gridster.checkCollision(t.$item)?(t.$item.x=s,t.$item.y=o,n.$item.x=i,n.$item.y=r):(n.setSize(),this.swapedItem=n,this.gridster.$options.swapWhileDragging&&(this.gridsterItem.checkItemChanges(this.gridsterItem.$item,this.gridsterItem.item),this.setSwapItem()))}}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(E))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),Y=(()=>{class t{constructor(t,e,n){this.zone=n,this.collision=!1,this.gridsterItem=t,this.gridster=e,this.lastMouse={clientX:0,clientY:0},this.path=[]}destroy(){this.gridster.previewStyle&&this.gridster.previewStyle(!0),delete this.gridsterItem,delete this.gridster,delete this.collision,this.mousedown&&(this.mousedown(),this.touchstart())}dragStart(t){t.which&&1!==t.which||(this.gridster.options.draggable&&this.gridster.options.draggable.start&&this.gridster.options.draggable.start(this.gridsterItem.item,this.gridsterItem,t),t.stopPropagation(),t.preventDefault(),this.dragFunction=this.dragMove.bind(this),this.dragStopFunction=this.dragStop.bind(this),this.zone.runOutsideAngular(()=>{this.mousemove=this.gridsterItem.renderer.listen("document","mousemove",this.dragFunction),this.touchmove=this.gridster.renderer.listen(this.gridster.el,"touchmove",this.dragFunction)}),this.mouseup=this.gridsterItem.renderer.listen("document","mouseup",this.dragStopFunction),this.mouseleave=this.gridsterItem.renderer.listen("document","mouseleave",this.dragStopFunction),this.cancelOnBlur=this.gridsterItem.renderer.listen("window","blur",this.dragStopFunction),this.touchend=this.gridsterItem.renderer.listen("document","touchend",this.dragStopFunction),this.touchcancel=this.gridsterItem.renderer.listen("document","touchcancel",this.dragStopFunction),this.gridsterItem.renderer.addClass(this.gridsterItem.el,"gridster-item-moving"),this.margin=this.gridster.$options.margin,this.offsetLeft=this.gridster.el.scrollLeft-this.gridster.el.offsetLeft,this.offsetTop=this.gridster.el.scrollTop-this.gridster.el.offsetTop,this.left=this.gridsterItem.left-this.margin,this.top=this.gridsterItem.top-this.margin,this.originalClientX=t.clientX,this.originalClientY=t.clientY,this.width=this.gridsterItem.width,this.height=this.gridsterItem.height,this.diffLeft=this.gridster.$options.dirType===y.RTL?t.clientX-this.gridster.el.scrollWidth+this.gridsterItem.left:t.clientX+this.offsetLeft-this.margin-this.left,this.diffTop=t.clientY+this.offsetTop-this.margin-this.top,this.gridster.movingItem=this.gridsterItem.$item,this.gridster.previewStyle(!0),this.push=new N(this.gridsterItem),this.swap=new G(this.gridsterItem),this.gridster.dragInProgress=!0,this.gridster.updateGrid(),this.path.push({x:this.gridsterItem.item.x||0,y:this.gridsterItem.item.y||0}))}dragMove(t){t.stopPropagation(),t.preventDefault(),w.checkTouchEvent(t),this.offsetLeft=this.gridster.el.scrollLeft-this.gridster.el.offsetLeft,this.offsetTop=this.gridster.el.scrollTop-this.gridster.el.offsetTop,U(this.gridster,this.left,this.top,this.width,this.height,t,this.lastMouse,this.calculateItemPositionFromMousePosition.bind(this)),this.calculateItemPositionFromMousePosition(t)}calculateItemPositionFromMousePosition(t){this.gridster.options.scale?this.calculateItemPositionWithScale(t,this.gridster.options.scale):this.calculateItemPositionWithoutScale(t),this.calculateItemPosition(),this.lastMouse.clientX=t.clientX,this.lastMouse.clientY=t.clientY,this.zone.run(()=>{this.gridster.updateGrid()})}calculateItemPositionWithScale(t,e){this.left=this.gridster.$options.dirType===y.RTL?this.gridster.el.scrollWidth-this.originalClientX+(t.clientX-this.originalClientX)/e+this.diffLeft:this.originalClientX+(t.clientX-this.originalClientX)/e+this.offsetLeft-this.diffLeft,this.top=this.originalClientY+(t.clientY-this.originalClientY)/e+this.offsetTop-this.diffTop}calculateItemPositionWithoutScale(t){this.left=this.gridster.$options.dirType===y.RTL?this.gridster.el.scrollWidth-t.clientX+this.diffLeft:t.clientX+this.offsetLeft-this.diffLeft,this.top=t.clientY+this.offsetTop-this.diffTop}dragStop(t){t.stopPropagation(),t.preventDefault(),z(),this.cancelOnBlur(),this.mousemove(),this.mouseup(),this.mouseleave(),this.touchmove(),this.touchend(),this.touchcancel(),this.gridsterItem.renderer.removeClass(this.gridsterItem.el,"gridster-item-moving"),this.gridster.dragInProgress=!1,this.gridster.updateGrid(),this.path=[],this.gridster.options.draggable&&this.gridster.options.draggable.stop?Promise.resolve(this.gridster.options.draggable.stop(this.gridsterItem.item,this.gridsterItem,t)).then(this.makeDrag.bind(this),this.cancelDrag.bind(this)):this.makeDrag(),setTimeout(()=>{this.gridster&&(this.gridster.movingItem=null,this.gridster.previewStyle(!0))})}cancelDrag(){this.gridsterItem.$item.x=this.gridsterItem.item.x||0,this.gridsterItem.$item.y=this.gridsterItem.item.y||0,this.gridsterItem.setSize(),this.push&&this.push.restoreItems(),this.swap&&this.swap.restoreSwapItem(),this.push&&(this.push.destroy(),delete this.push),this.swap&&(this.swap.destroy(),delete this.swap)}makeDrag(){this.gridster.$options.draggable.dropOverItems&&this.gridster.options.draggable&&this.gridster.options.draggable.dropOverItemsCallback&&this.collision&&!0!==this.collision&&this.collision.$item&&this.gridster.options.draggable.dropOverItemsCallback(this.gridsterItem.item,this.collision.item,this.gridster),this.collision=!1,this.gridsterItem.setSize(),this.gridsterItem.checkItemChanges(this.gridsterItem.$item,this.gridsterItem.item),this.push&&this.push.setPushedItems(),this.swap&&this.swap.setSwapItem(),this.push&&(this.push.destroy(),delete this.push),this.swap&&(this.swap.destroy(),delete this.swap)}calculateItemPosition(){if(this.gridster.movingItem=this.gridsterItem.$item,this.positionX=this.gridster.pixelsToPositionX(this.left,Math.round),this.positionY=this.gridster.pixelsToPositionY(this.top,Math.round),this.positionXBackup=this.gridsterItem.$item.x,this.positionYBackup=this.gridsterItem.$item.y,this.gridsterItem.$item.x=this.positionX,this.gridster.checkGridCollision(this.gridsterItem.$item)&&(this.gridsterItem.$item.x=this.positionXBackup),this.gridsterItem.$item.y=this.positionY,this.gridster.checkGridCollision(this.gridsterItem.$item)&&(this.gridsterItem.$item.y=this.positionYBackup),this.gridster.gridRenderer.setCellPosition(this.gridsterItem.renderer,this.gridsterItem.el,this.left,this.top),this.positionXBackup!==this.gridsterItem.$item.x||this.positionYBackup!==this.gridsterItem.$item.y){const t=this.path[this.path.length-1];let e="";t.xthis.gridsterItem.$item.x?e=this.push.fromEast:t.ythis.gridsterItem.$item.y&&(e=this.push.fromSouth),this.push.pushItems(e,this.gridster.$options.disablePushOnDrag),this.swap.swapItems(),this.collision=this.gridster.checkCollision(this.gridsterItem.$item),this.collision?(this.gridsterItem.$item.x=this.positionXBackup,this.gridsterItem.$item.y=this.positionYBackup,this.gridster.$options.draggable.dropOverItems&&!0!==this.collision&&this.collision.$item&&(this.gridster.movingItem=null)):this.path.push({x:this.gridsterItem.$item.x,y:this.gridsterItem.$item.y}),this.push.checkPushBack()}this.gridster.previewStyle(!0)}toggle(){const t=this.gridsterItem.canBeDragged();!this.enabled&&t?(this.enabled=!this.enabled,this.dragStartFunction=this.dragStartDelay.bind(this),this.mousedown=this.gridsterItem.renderer.listen(this.gridsterItem.el,"mousedown",this.dragStartFunction),this.touchstart=this.gridsterItem.renderer.listen(this.gridsterItem.el,"touchstart",this.dragStartFunction)):this.enabled&&!t&&(this.enabled=!this.enabled,this.mousedown(),this.touchstart())}dragStartDelay(t){if(t.target.hasAttribute("class")&&t.target.getAttribute("class").split(" ").indexOf("gridster-item-resizable-handler")>-1)return;if(w.checkContentClassForEvent(this.gridster,t))return;if(w.checkTouchEvent(t),!this.gridster.$options.draggable.delayStart)return void this.dragStart(t);const e=setTimeout(()=>{this.dragStart(t),c()},this.gridster.$options.draggable.delayStart),n=this.gridsterItem.renderer.listen("document","mouseup",c),i=this.gridsterItem.renderer.listen("document","mouseleave",c),r=this.gridsterItem.renderer.listen("window","blur",c),s=this.gridsterItem.renderer.listen("document","touchmove",(function(e){w.checkTouchEvent(e),(Math.abs(e.clientX-t.clientX)>9||Math.abs(e.clientY-t.clientY)>9)&&c()})),o=this.gridsterItem.renderer.listen("document","touchend",c),a=this.gridsterItem.renderer.listen("document","touchcancel",c);function c(){clearTimeout(e),r(),n(),i(),s(),o(),a()}}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(E),i.Yb(g),i.Yb(i.B))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),K=(()=>{class t{constructor(t){this.pushedItems=[],this.pushedItemsPath=[],this.gridsterItem=t,this.gridster=t.gridster,this.tryPattern={fromEast:this.tryWest,fromWest:this.tryEast,fromNorth:this.trySouth,fromSouth:this.tryNorth},this.fromSouth="fromSouth",this.fromNorth="fromNorth",this.fromEast="fromEast",this.fromWest="fromWest"}destroy(){delete this.gridster,delete this.gridsterItem}pushItems(t){return!!this.gridster.$options.pushResizeItems&&this.push(this.gridsterItem,t)}restoreItems(){let t=0;const e=this.pushedItems.length;let n;for(;t-1;t--)this.checkPushedItem(this.pushedItems[t],t)&&(e=!0);e&&this.checkPushBack()}push(t,e){const n=this.gridster.checkCollision(t.$item);if(n&&!0!==n&&n!==this.gridsterItem&&n.canBeResized()){if(this.tryPattern[e].call(this,n,t,e))return!0}else if(!1===n)return!0;return!1}trySouth(t,e,n){const i=t.$item.y,r=t.$item.rows;return t.$item.y=e.$item.y+e.$item.rows,t.$item.rows=r+i-t.$item.y,this.gridster.checkCollisionTwoItems(t.$item,e.$item)||this.gridster.checkGridCollision(t.$item)?(t.$item.y=i,t.$item.rows=r,!1):(t.setSize(),this.addToPushed(t),this.push(e,n),!0)}tryNorth(t,e,n){const i=t.$item.rows;return t.$item.rows=e.$item.y-t.$item.y,this.gridster.checkCollisionTwoItems(t.$item,e.$item)||this.gridster.checkGridCollision(t.$item)?(t.$item.rows=i,!1):(t.setSize(),this.addToPushed(t),this.push(e,n),!0)}tryEast(t,e,n){const i=t.$item.x,r=t.$item.cols;return t.$item.x=e.$item.x+e.$item.cols,t.$item.cols=r+i-t.$item.x,this.gridster.checkCollisionTwoItems(t.$item,e.$item)||this.gridster.checkGridCollision(t.$item)?(t.$item.x=i,t.$item.cols=r,!1):(t.setSize(),this.addToPushed(t),this.push(e,n),!0)}tryWest(t,e,n){const i=t.$item.cols;return t.$item.cols=e.$item.x-t.$item.x,this.gridster.checkCollisionTwoItems(t.$item,e.$item)||this.gridster.checkGridCollision(t.$item)?(t.$item.cols=i,!1):(t.setSize(),this.addToPushed(t),this.push(e,n),!0)}addToPushed(t){if(this.pushedItems.indexOf(t)<0)this.pushedItems.push(t),this.pushedItemsPath.push([{x:t.item.x||0,y:t.item.y||0,cols:t.item.cols||0,rows:t.item.rows||0},{x:t.$item.x,y:t.$item.y,cols:t.$item.cols,rows:t.$item.rows}]);else{const e=this.pushedItems.indexOf(t);this.pushedItemsPath[e].push({x:t.$item.x,y:t.$item.y,cols:t.$item.cols,rows:t.$item.rows})}}removeFromPushed(t){t>-1&&(this.pushedItems.splice(t,1),this.pushedItemsPath.splice(t,1))}checkPushedItem(t,e){const n=this.pushedItemsPath[e];let i,r,s,o,a,c=n.length-2;for(;c>-1;c--)i=n[c],r=t.$item.x,s=t.$item.y,o=t.$item.cols,a=t.$item.rows,t.$item.x=i.x,t.$item.y=i.y,t.$item.cols=i.cols,t.$item.rows=i.rows,this.gridster.findItemWithItem(t.$item)?(t.$item.x=r,t.$item.y=s,t.$item.cols=o,t.$item.rows=a):(t.setSize(),n.splice(c+1,n.length-1-c));return n.length<2&&(this.removeFromPushed(e),!0)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(E))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),Z=(()=>{class t{constructor(t,e,n){this.zone=n,this.gridsterItem=t,this.gridster=e,this.lastMouse={clientX:0,clientY:0},this.itemBackup=[0,0,0,0],this.resizeEventScrollType={w:!1,e:!1,n:!1,s:!1}}destroy(){this.gridster.previewStyle&&this.gridster.previewStyle(),delete this.gridsterItem,delete this.gridster}dragStart(t){var e,n,i;t.which&&1!==t.which||(this.gridster.options.resizable&&this.gridster.options.resizable.start&&this.gridster.options.resizable.start(this.gridsterItem.item,this.gridsterItem,t),t.stopPropagation(),t.preventDefault(),this.dragFunction=this.dragMove.bind(this),this.dragStopFunction=this.dragStop.bind(this),this.zone.runOutsideAngular(()=>{this.mousemove=this.gridsterItem.renderer.listen("document","mousemove",this.dragFunction),this.touchmove=this.gridster.renderer.listen(this.gridster.el,"touchmove",this.dragFunction)}),this.mouseup=this.gridsterItem.renderer.listen("document","mouseup",this.dragStopFunction),this.mouseleave=this.gridsterItem.renderer.listen("document","mouseleave",this.dragStopFunction),this.cancelOnBlur=this.gridsterItem.renderer.listen("window","blur",this.dragStopFunction),this.touchend=this.gridsterItem.renderer.listen("document","touchend",this.dragStopFunction),this.touchcancel=this.gridsterItem.renderer.listen("document","touchcancel",this.dragStopFunction),this.gridsterItem.renderer.addClass(this.gridsterItem.el,"gridster-item-resizing"),this.lastMouse.clientX=t.clientX,this.lastMouse.clientY=t.clientY,this.left=this.gridsterItem.left,this.top=this.gridsterItem.top,this.originalClientX=t.clientX,this.originalClientY=t.clientY,this.width=this.gridsterItem.width,this.height=this.gridsterItem.height,this.bottom=this.gridsterItem.top+this.gridsterItem.height,this.right=this.gridsterItem.left+this.gridsterItem.width,this.margin=this.gridster.$options.margin,this.offsetLeft=this.gridster.el.scrollLeft-this.gridster.el.offsetLeft,this.offsetTop=this.gridster.el.scrollTop-this.gridster.el.offsetTop,this.diffLeft=t.clientX+this.offsetLeft-this.left,this.diffRight=t.clientX+this.offsetLeft-this.right,this.diffTop=t.clientY+this.offsetTop-this.top,this.diffBottom=t.clientY+this.offsetTop-this.bottom,this.minHeight=this.gridster.positionYToPixels(this.gridsterItem.$item.minItemRows||this.gridster.$options.minItemRows)-this.margin,this.minWidth=this.gridster.positionXToPixels(this.gridsterItem.$item.minItemCols||this.gridster.$options.minItemCols)-this.margin,this.gridster.movingItem=this.gridsterItem.$item,this.gridster.previewStyle(),this.push=new N(this.gridsterItem),this.pushResize=new K(this.gridsterItem),this.gridster.dragInProgress=!0,this.gridster.updateGrid(),(null===(e=t.target)||void 0===e?void 0:e.hasAttribute("class"))&&t.target.getAttribute("class").split(" ").indexOf("handle-n")>-1?(this.resizeEventScrollType.n=!0,this.directionFunction=this.handleN):(null===(n=t.target)||void 0===n?void 0:n.hasAttribute("class"))&&t.target.getAttribute("class").split(" ").indexOf("handle-w")>-1?this.gridster.$options.dirType===y.RTL?(this.resizeEventScrollType.e=!0,this.directionFunction=this.handleE):(this.resizeEventScrollType.w=!0,this.directionFunction=this.handleW):(null===(i=t.target)||void 0===i?void 0:i.hasAttribute("class"))&&t.target.getAttribute("class").split(" ").indexOf("handle-s")>-1?(this.resizeEventScrollType.s=!0,this.directionFunction=this.handleS):t.target.hasAttribute("class")&&t.target.getAttribute("class").split(" ").indexOf("handle-e")>-1?this.gridster.$options.dirType===y.RTL?(this.resizeEventScrollType.w=!0,this.directionFunction=this.handleW):(this.resizeEventScrollType.e=!0,this.directionFunction=this.handleE):t.target.hasAttribute("class")&&t.target.getAttribute("class").split(" ").indexOf("handle-nw")>-1?this.gridster.$options.dirType===y.RTL?(this.resizeEventScrollType.n=!0,this.resizeEventScrollType.e=!0,this.directionFunction=this.handleNE):(this.resizeEventScrollType.n=!0,this.resizeEventScrollType.w=!0,this.directionFunction=this.handleNW):t.target.hasAttribute("class")&&t.target.getAttribute("class").split(" ").indexOf("handle-ne")>-1?this.gridster.$options.dirType===y.RTL?(this.resizeEventScrollType.n=!0,this.resizeEventScrollType.w=!0,this.directionFunction=this.handleNW):(this.resizeEventScrollType.n=!0,this.resizeEventScrollType.e=!0,this.directionFunction=this.handleNE):t.target.hasAttribute("class")&&t.target.getAttribute("class").split(" ").indexOf("handle-sw")>-1?this.gridster.$options.dirType===y.RTL?(this.resizeEventScrollType.s=!0,this.resizeEventScrollType.e=!0,this.directionFunction=this.handleSE):(this.resizeEventScrollType.s=!0,this.resizeEventScrollType.w=!0,this.directionFunction=this.handleSW):t.target.hasAttribute("class")&&t.target.getAttribute("class").split(" ").indexOf("handle-se")>-1&&(this.gridster.$options.dirType===y.RTL?(this.resizeEventScrollType.s=!0,this.resizeEventScrollType.w=!0,this.directionFunction=this.handleSW):(this.resizeEventScrollType.s=!0,this.resizeEventScrollType.e=!0,this.directionFunction=this.handleSE)))}dragMove(t){t.stopPropagation(),t.preventDefault(),w.checkTouchEvent(t),this.offsetTop=this.gridster.el.scrollTop-this.gridster.el.offsetTop,this.offsetLeft=this.gridster.el.scrollLeft-this.gridster.el.offsetLeft,U(this.gridster,this.left,this.top,this.width,this.height,t,this.lastMouse,this.directionFunction.bind(this),!0,this.resizeEventScrollType);const e=this.gridster.options.scale||1;this.directionFunction({clientX:this.originalClientX+(t.clientX-this.originalClientX)/e,clientY:this.originalClientY+(t.clientY-this.originalClientY)/e}),this.lastMouse.clientX=t.clientX,this.lastMouse.clientY=t.clientY,this.zone.run(()=>{this.gridster.updateGrid()})}dragStop(t){t.stopPropagation(),t.preventDefault(),z(),this.mousemove(),this.mouseup(),this.mouseleave(),this.cancelOnBlur(),this.touchmove(),this.touchend(),this.touchcancel(),this.gridster.dragInProgress=!1,this.gridster.updateGrid(),this.gridster.options.resizable&&this.gridster.options.resizable.stop?Promise.resolve(this.gridster.options.resizable.stop(this.gridsterItem.item,this.gridsterItem,t)).then(this.makeResize.bind(this),this.cancelResize.bind(this)):this.makeResize(),setTimeout(()=>{this.gridsterItem.renderer.removeClass(this.gridsterItem.el,"gridster-item-resizing"),this.gridster&&(this.gridster.movingItem=null,this.gridster.previewStyle())})}cancelResize(){this.gridsterItem.$item.cols=this.gridsterItem.item.cols||1,this.gridsterItem.$item.rows=this.gridsterItem.item.rows||1,this.gridsterItem.$item.x=this.gridsterItem.item.x||0,this.gridsterItem.$item.y=this.gridsterItem.item.y||0,this.gridsterItem.setSize(),this.push.restoreItems(),this.pushResize.restoreItems(),this.push.destroy(),delete this.push,this.pushResize.destroy(),delete this.pushResize}makeResize(){this.gridsterItem.setSize(),this.gridsterItem.checkItemChanges(this.gridsterItem.$item,this.gridsterItem.item),this.push.setPushedItems(),this.pushResize.setPushedItems(),this.push.destroy(),delete this.push,this.pushResize.destroy(),delete this.pushResize}handleN(t){if(this.top=t.clientY+this.offsetTop-this.diffTop,this.height=this.bottom-this.top,this.minHeight>this.height&&(this.height=this.minHeight,this.top=this.bottom-this.minHeight),this.newPosition=this.gridster.pixelsToPositionY(this.top+this.margin,Math.floor),this.gridsterItem.$item.y!==this.newPosition){if(this.itemBackup[1]=this.gridsterItem.$item.y,this.itemBackup[3]=this.gridsterItem.$item.rows,this.gridsterItem.$item.rows+=this.gridsterItem.$item.y-this.newPosition,this.gridsterItem.$item.y=this.newPosition,this.pushResize.pushItems(this.pushResize.fromSouth),this.push.pushItems(this.push.fromSouth,this.gridster.$options.disablePushOnResize),this.gridster.checkCollision(this.gridsterItem.$item))return this.gridsterItem.$item.y=this.itemBackup[1],this.gridsterItem.$item.rows=this.itemBackup[3],this.setItemTop(this.gridster.positionYToPixels(this.gridsterItem.$item.y)),void this.setItemHeight(this.gridster.positionYToPixels(this.gridsterItem.$item.rows)-this.margin);this.gridster.previewStyle(),this.pushResize.checkPushBack(),this.push.checkPushBack()}this.setItemTop(this.top),this.setItemHeight(this.height)}handleW(t){if(this.left=t.clientX+this.offsetLeft-this.diffLeft,this.width=this.right-this.left,this.minWidth>this.width&&(this.width=this.minWidth,this.left=this.right-this.minWidth),this.newPosition=this.gridster.pixelsToPositionX(this.left+this.margin,Math.floor),this.gridsterItem.$item.x!==this.newPosition){if(this.itemBackup[0]=this.gridsterItem.$item.x,this.itemBackup[2]=this.gridsterItem.$item.cols,this.gridsterItem.$item.cols+=this.gridsterItem.$item.x-this.newPosition,this.gridsterItem.$item.x=this.newPosition,this.pushResize.pushItems(this.pushResize.fromEast),this.push.pushItems(this.push.fromEast,this.gridster.$options.disablePushOnResize),this.gridster.checkCollision(this.gridsterItem.$item))return this.gridsterItem.$item.x=this.itemBackup[0],this.gridsterItem.$item.cols=this.itemBackup[2],this.setItemLeft(this.gridster.positionXToPixels(this.gridsterItem.$item.x)),void this.setItemWidth(this.gridster.positionXToPixels(this.gridsterItem.$item.cols)-this.margin);this.gridster.previewStyle(),this.pushResize.checkPushBack(),this.push.checkPushBack()}this.setItemLeft(this.left),this.setItemWidth(this.width)}handleS(t){if(this.height=t.clientY+this.offsetTop-this.diffBottom-this.top,this.minHeight>this.height&&(this.height=this.minHeight),this.bottom=this.top+this.height,this.newPosition=this.gridster.pixelsToPositionY(this.bottom,Math.ceil),this.gridsterItem.$item.y+this.gridsterItem.$item.rows!==this.newPosition){if(this.itemBackup[3]=this.gridsterItem.$item.rows,this.gridsterItem.$item.rows=this.newPosition-this.gridsterItem.$item.y,this.pushResize.pushItems(this.pushResize.fromNorth),this.push.pushItems(this.push.fromNorth,this.gridster.$options.disablePushOnResize),this.gridster.checkCollision(this.gridsterItem.$item))return this.gridsterItem.$item.rows=this.itemBackup[3],void this.setItemHeight(this.gridster.positionYToPixels(this.gridsterItem.$item.rows)-this.margin);this.gridster.previewStyle(),this.pushResize.checkPushBack(),this.push.checkPushBack()}this.setItemHeight(this.height)}handleE(t){if(this.width=t.clientX+this.offsetLeft-this.diffRight-this.left,this.minWidth>this.width&&(this.width=this.minWidth),this.right=this.left+this.width,this.newPosition=this.gridster.pixelsToPositionX(this.right,Math.ceil),this.gridsterItem.$item.x+this.gridsterItem.$item.cols!==this.newPosition){if(this.itemBackup[2]=this.gridsterItem.$item.cols,this.gridsterItem.$item.cols=this.newPosition-this.gridsterItem.$item.x,this.pushResize.pushItems(this.pushResize.fromWest),this.push.pushItems(this.push.fromWest,this.gridster.$options.disablePushOnResize),this.gridster.checkCollision(this.gridsterItem.$item))return this.gridsterItem.$item.cols=this.itemBackup[2],void this.setItemWidth(this.gridster.positionXToPixels(this.gridsterItem.$item.cols)-this.margin);this.gridster.previewStyle(),this.pushResize.checkPushBack(),this.push.checkPushBack()}this.setItemWidth(this.width)}handleNW(t){this.handleN(t),this.handleW(t)}handleNE(t){this.handleN(t),this.handleE(t)}handleSW(t){this.handleS(t),this.handleW(t)}handleSE(t){this.handleS(t),this.handleE(t)}toggle(){this.resizeEnabled=this.gridsterItem.canBeResized()}dragStartDelay(t){if(w.checkTouchEvent(t),!this.gridster.$options.resizable.delayStart)return void this.dragStart(t);const e=setTimeout(()=>{this.dragStart(t),c()},this.gridster.$options.resizable.delayStart),n=this.gridsterItem.renderer.listen("document","mouseup",c),i=this.gridsterItem.renderer.listen("document","mouseleave",c),r=this.gridsterItem.renderer.listen("window","blur",c),s=this.gridsterItem.renderer.listen("document","touchmove",(function(e){w.checkTouchEvent(e),(Math.abs(e.clientX-t.clientX)>9||Math.abs(e.clientY-t.clientY)>9)&&c()})),o=this.gridsterItem.renderer.listen("document","touchend",c),a=this.gridsterItem.renderer.listen("document","touchcancel",c);function c(){clearTimeout(e),r(),n(),i(),s(),o(),a()}}setItemTop(t){this.gridster.gridRenderer.setCellPosition(this.gridsterItem.renderer,this.gridsterItem.el,this.left,t)}setItemLeft(t){this.gridster.gridRenderer.setCellPosition(this.gridsterItem.renderer,this.gridsterItem.el,t,this.top)}setItemHeight(t){this.gridsterItem.renderer.setStyle(this.gridsterItem.el,"height",t+"px")}setItemWidth(t){this.gridsterItem.renderer.setStyle(this.gridsterItem.el,"width",t+"px")}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(E),i.Yb(g),i.Yb(i.B))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),X=(()=>{class t{constructor(t,e,n,i){this.renderer=n,this.zone=i,this.el=t.nativeElement,this.$item={cols:-1,rows:-1,x:-1,y:-1},this.gridster=e,this.drag=new Y(this,e,this.zone),this.resize=new Z(this,e,this.zone)}get zIndex(){return this.getLayerIndex()+this.gridster.$options.baseLayerIndex}ngOnInit(){this.gridster.addItem(this)}ngOnChanges(t){t.item&&(this.updateOptions(),this.init||this.gridster.calculateLayoutDebounce())}updateOptions(){this.$item=w.merge(this.$item,this.item,{cols:void 0,rows:void 0,x:void 0,y:void 0,layerIndex:void 0,dragEnabled:void 0,resizeEnabled:void 0,compactEnabled:void 0,maxItemRows:void 0,minItemRows:void 0,maxItemCols:void 0,minItemCols:void 0,maxItemArea:void 0,minItemArea:void 0})}ngOnDestroy(){this.gridster.removeItem(this),delete this.gridster,this.drag.destroy(),delete this.drag,this.resize.destroy(),delete this.resize}setSize(){this.renderer.setStyle(this.el,"display",this.notPlaced?"":"block"),this.gridster.gridRenderer.updateItem(this.el,this.$item,this.renderer),this.updateItemSize()}updateItemSize(){const t=this.$item.x*this.gridster.curColWidth,e=this.$item.cols*this.gridster.curColWidth-this.gridster.$options.margin,n=this.$item.rows*this.gridster.curRowHeight-this.gridster.$options.margin;this.top=this.$item.y*this.gridster.curRowHeight,this.left=t,!this.init&&e>0&&n>0&&(this.init=!0,this.item.initCallback&&this.item.initCallback(this.item,this),this.gridster.options.itemInitCallback&&this.gridster.options.itemInitCallback(this.item,this),this.gridster.$options.scrollToNewItems&&this.el.scrollIntoView(!1)),e===this.width&&n===this.height||(this.width=e,this.height=n,this.gridster.options.itemResizeCallback&&this.gridster.options.itemResizeCallback(this.item,this))}itemChanged(){this.gridster.options.itemChangeCallback&&this.gridster.options.itemChangeCallback(this.item,this)}checkItemChanges(t,e){t.rows===e.rows&&t.cols===e.cols&&t.x===e.x&&t.y===e.y||(this.gridster.checkCollision(this.$item)?(this.$item.x=e.x||0,this.$item.y=e.y||0,this.$item.cols=e.cols||1,this.$item.rows=e.rows||1,this.setSize()):(this.item.cols=this.$item.cols,this.item.rows=this.$item.rows,this.item.x=this.$item.x,this.item.y=this.$item.y,this.gridster.calculateLayoutDebounce(),this.itemChanged()))}canBeDragged(){return!this.gridster.mobile&&(void 0===this.$item.dragEnabled?this.gridster.$options.draggable.enabled:this.$item.dragEnabled)}canBeResized(){return!this.gridster.mobile&&(void 0===this.$item.resizeEnabled?this.gridster.$options.resizable.enabled:this.$item.resizeEnabled)}bringToFront(t){if(t&&t<=0)return;const e=this.getLayerIndex(),n=this.gridster.$options.maxLayerIndex;if(en?n:i}}sendToBack(t){if(t&&t<=0)return;const e=this.getLayerIndex();if(e>0){const n=t?e-t:0;this.item.layerIndex=this.$item.layerIndex=n<0?0:n}}getLayerIndex(){return void 0!==this.item.layerIndex?this.item.layerIndex:void 0!==this.gridster.$options.defaultLayerIndex?this.gridster.$options.defaultLayerIndex:0}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(k),i.Ob(i.G),i.Ob(i.B))},t.\u0275cmp=i.Ib({type:t,selectors:[["gridster-item"]],hostVars:2,hostBindings:function(t,e){2&t&&i.Lc("z-index",e.zIndex)},inputs:{item:"item"},features:[i.Ab],ngContentSelectors:a,decls:9,vars:8,consts:[["class","gridster-item-resizable-handler handle-s",3,"mousedown","touchstart",4,"ngIf"],["class","gridster-item-resizable-handler handle-e",3,"mousedown","touchstart",4,"ngIf"],["class","gridster-item-resizable-handler handle-n",3,"mousedown","touchstart",4,"ngIf"],["class","gridster-item-resizable-handler handle-w",3,"mousedown","touchstart",4,"ngIf"],["class","gridster-item-resizable-handler handle-se",3,"mousedown","touchstart",4,"ngIf"],["class","gridster-item-resizable-handler handle-ne",3,"mousedown","touchstart",4,"ngIf"],["class","gridster-item-resizable-handler handle-sw",3,"mousedown","touchstart",4,"ngIf"],["class","gridster-item-resizable-handler handle-nw",3,"mousedown","touchstart",4,"ngIf"],[1,"gridster-item-resizable-handler","handle-s",3,"mousedown","touchstart"],[1,"gridster-item-resizable-handler","handle-e",3,"mousedown","touchstart"],[1,"gridster-item-resizable-handler","handle-n",3,"mousedown","touchstart"],[1,"gridster-item-resizable-handler","handle-w",3,"mousedown","touchstart"],[1,"gridster-item-resizable-handler","handle-se",3,"mousedown","touchstart"],[1,"gridster-item-resizable-handler","handle-ne",3,"mousedown","touchstart"],[1,"gridster-item-resizable-handler","handle-sw",3,"mousedown","touchstart"],[1,"gridster-item-resizable-handler","handle-nw",3,"mousedown","touchstart"]],template:function(t,e){1&t&&(i.lc(),i.kc(0),i.Oc(1,c,1,0,"div",0),i.Oc(2,l,1,0,"div",1),i.Oc(3,u,1,0,"div",2),i.Oc(4,h,1,0,"div",3),i.Oc(5,d,1,0,"div",4),i.Oc(6,p,1,0,"div",5),i.Oc(7,f,1,0,"div",6),i.Oc(8,b,1,0,"div",7)),2&t&&(i.Cb(1),i.mc("ngIf",e.gridster.$options.resizable.handles.s&&e.resize.resizeEnabled),i.Cb(1),i.mc("ngIf",e.gridster.$options.resizable.handles.e&&e.resize.resizeEnabled),i.Cb(1),i.mc("ngIf",e.gridster.$options.resizable.handles.n&&e.resize.resizeEnabled),i.Cb(1),i.mc("ngIf",e.gridster.$options.resizable.handles.w&&e.resize.resizeEnabled),i.Cb(1),i.mc("ngIf",e.gridster.$options.resizable.handles.se&&e.resize.resizeEnabled),i.Cb(1),i.mc("ngIf",e.gridster.$options.resizable.handles.ne&&e.resize.resizeEnabled),i.Cb(1),i.mc("ngIf",e.gridster.$options.resizable.handles.sw&&e.resize.resizeEnabled),i.Cb(1),i.mc("ngIf",e.gridster.$options.resizable.handles.nw&&e.resize.resizeEnabled))},directives:[r.n],styles:["gridster-item{-ms-user-select:text;-webkit-user-select:text;background:#fff;box-sizing:border-box;display:none;overflow:hidden;position:absolute;transition:.3s;user-select:text;z-index:1}gridster-item.gridster-item-moving{cursor:move}gridster-item.gridster-item-moving,gridster-item.gridster-item-resizing{box-shadow:0 0 5px 5px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12);transition:0s;z-index:2}.gridster-item-resizable-handler{position:absolute;z-index:2}.gridster-item-resizable-handler.handle-n{cursor:ns-resize;height:10px;left:0;right:0;top:0}.gridster-item-resizable-handler.handle-e{bottom:0;cursor:ew-resize;right:0;top:0;width:10px}.gridster-item-resizable-handler.handle-s{bottom:0;cursor:ns-resize;height:10px;left:0;right:0}.gridster-item-resizable-handler.handle-w{bottom:0;cursor:ew-resize;left:0;top:0;width:10px}.gridster-item-resizable-handler.handle-ne{cursor:ne-resize;height:10px;right:0;top:0;width:10px}.gridster-item-resizable-handler.handle-nw{cursor:nw-resize;height:10px;left:0;top:0;width:10px}.gridster-item-resizable-handler.handle-se{border-color:rgba(0,0,0,0);border-style:solid;border-width:0 0 10px 10px;bottom:0;cursor:se-resize;height:0;right:0;width:0}.gridster-item-resizable-handler.handle-sw{bottom:0;cursor:sw-resize;height:10px;left:0;width:10px}gridster-item:hover .gridster-item-resizable-handler.handle-se{border-color:rgba(0,0,0,0) rgba(0,0,0,0) #ccc}"],encapsulation:2}),t})(),J=(()=>{class t{constructor(t,e,n){this.renderer=n,this.el=t.nativeElement,this.gridster=e,this.gridster.previewStyle=this.previewStyle.bind(this)}ngOnDestroy(){delete this.el,delete this.gridster.previewStyle,delete this.gridster}previewStyle(t){this.gridster.movingItem?(this.gridster.compact&&t&&this.gridster.compact.checkCompactItem(this.gridster.movingItem),this.renderer.setStyle(this.el,"display","block"),this.gridster.gridRenderer.updateItem(this.el,this.gridster.movingItem,this.renderer)):this.renderer.setStyle(this.el,"display","")}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(k),i.Ob(i.G))},t.\u0275cmp=i.Ib({type:t,selectors:[["gridster-preview"]],decls:0,vars:0,template:function(t,e){},styles:["gridster-preview{background:rgba(0,0,0,.15);display:none;position:absolute}"],encapsulation:2}),t})(),tt=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},imports:[[r.c]]}),t})()},lx5p:function(t,e,n){"use strict";n.d(e,"n",(function(){return r})),n.d(e,"p",(function(){return s})),n.d(e,"m",(function(){return o})),n.d(e,"b",(function(){return a})),n.d(e,"G",(function(){return l})),n.d(e,"F",(function(){return u})),n.d(e,"l",(function(){return h})),n.d(e,"c",(function(){return d})),n.d(e,"j",(function(){return p})),n.d(e,"J",(function(){return f})),n.d(e,"s",(function(){return b})),n.d(e,"Q",(function(){return g})),n.d(e,"M",(function(){return m})),n.d(e,"d",(function(){return v})),n.d(e,"i",(function(){return _})),n.d(e,"g",(function(){return y})),n.d(e,"u",(function(){return O})),n.d(e,"v",(function(){return C})),n.d(e,"y",(function(){return w})),n.d(e,"x",(function(){return T})),n.d(e,"w",(function(){return S})),n.d(e,"r",(function(){return k})),n.d(e,"q",(function(){return E})),n.d(e,"P",(function(){return x})),n.d(e,"O",(function(){return P})),n.d(e,"A",(function(){return A})),n.d(e,"z",(function(){return I})),n.d(e,"a",(function(){return D})),n.d(e,"k",(function(){return R})),n.d(e,"t",(function(){return j})),n.d(e,"h",(function(){return L})),n.d(e,"N",(function(){return N})),n.d(e,"o",(function(){return U})),n.d(e,"D",(function(){return F})),n.d(e,"I",(function(){return B})),n.d(e,"H",(function(){return z})),n.d(e,"e",(function(){return V})),n.d(e,"L",(function(){return $})),n.d(e,"C",(function(){return H})),n.d(e,"B",(function(){return q})),n.d(e,"f",(function(){return W})),n.d(e,"E",(function(){return M})),n.d(e,"K",(function(){return G}));var i=n("VmIW");function r(t){return e=>e===t}function s(t){return e=>e!==t}function o(t){return(t=>null!=t)(t)}n("og7C"),n("D57K");const a=t=>()=>t;function c(t){return e=>n=>t(n,e)}function l(t){return([e,n])=>t(e,n)}function u(t){return e=>e[t]}const h=u(0);function d(t,e){return n=>t?e(n):n}const p=t=>t,f=(t,e)=>e;function b(t){return t.toLowerCase()}function g(t){return t.toUpperCase()}function m(t){return t.trim()}function v(t,e){return t-e}function _(t,e){return e-t}function y(t,e){return(n,i)=>e(t(n),t(i))}function O(t,e){return i.Maybe.fromUndefined(t.find(e))}function C(t,e){let n=0;for(const r of t)if(e(r,n++))return Object(i.Some)(r);return Object(i.None)()}function w(t,e){return i.Maybe.fromNull(t.exec(e))}function T(t,e){try{return Object(i.Some)(JSON.parse(t))}catch(n){return e&&console[e](n),Object(i.None)()}}function S(t,e){return t.flatMap(t=>e.map(e=>[t,e]))}function k(t){return t.isSome()}function E(t){return t.isNone()}function x(t){return t.some()}function P(t){return t.orUndefined()}function A(t,e){let n=!1;const i=Object.entries(e).map(([e,i])=>{const r=t(i,e);return i!==r&&(n=!0),[e,r]});return n?Object.fromEntries(i):e}function I(t,e){return n=>Object.assign(Object.assign({},n),{[t]:e(n[t])})}function M(...t){return e=>t.reduce((t,e)=>e(t),e)}Math;const D=(t,e)=>t+e,R=(t,e)=>t>e,j=(t,e)=>tt>=e),c(j),c((t,e)=>t<=e),l(j)),U=(l(j),l(R),l(R),t=>t<0),F=t=>0!==t;function B(t){if(1e-5===t)return t=>Math.round(1e5*t)/1e5;const e=1/t;return t=>Math.round(t*e)/e}function z(t){if(0===t)return Math.round;const e=Math.pow(10,t);return t=>Math.round(t*e)/e}function V(t,e){return M(function(t){return e=>Math.max(t,e)}(t),function(t){return e=>Math.min(t,e)}(e))}function $(t){return function(e,n){return e+t(n)}}function H(t){return function(e,n){return Math.min(e,t(n))}}function q(t){return function(e,n){return Math.max(e,t(n))}}function Q(t){return Array.isArray(t)?{min:t[0],max:t[1]}:t}function W(t,e){const n=Q(t),i=Q(e),r=(i.max-i.min)/(n.max-n.min);return t=>i.min+(t-n.min)*r}function G(t,e=1/0){return n=>{if(e<1)throw new Error("`maxChunks` must be greater than 1.");const i=[];let r=0,s=0;if("string"==typeof t){if(t.length<1&&e===1/0)throw new Error("String patterns (without `maxChunks`) must be longer than 1 character.");let o=-1;for(;-1!==(o=n.indexOf(t,s))&&++r{class t{constructor(t){this.store=t,this.selectedTicker$=this.store.pipe(Object(r.m)(c.p)),this.displayTooltips$=this.store.pipe(Object(r.m)(l.y)),this.userFeeVolume$=this.store.pipe(Object(r.m)(l.x)),this.isFlexMarket$=this.store.pipe(Object(r.m)(a.a))}openFeeScheduleDialog(){this.store.dispatch(Object(s.g)({name:"fee-schedule"}))}getMid(t){return Object(u.j)(t)}getSettlementTime(t){if(t)return Object(i.h)(t,!0)}isPerpetual(t){return!!t&&"perpetual"===t.tag}getFundingRates(t){this.store.dispatch(Object(o.j)({symbol:t}))}}return t.\u0275fac=function(e){return new(e||t)(h.Ob(r.b))},t.\u0275cmp=h.Ib({type:t,selectors:[["market-bar"]],decls:4,vars:11,consts:[["class","market-bar",4,"ngIf"],[1,"market-bar"],[4,"ngIf"],["sbTooltip","TOOLTIP.MID_PRICE","sbTooltipPlacement","bottom","sbDelay","200",1,"detail",3,"sbDisabled"],["body","","ghost","","uppercase",""],["body","","mono","","nobr",""],["sbTooltip","TOOLTIP.MARK_PRICE","sbTooltipPlacement","bottom","sbDelay","200",1,"detail",3,"sbDisabled"],[3,"pnl"],["class","detail funding","sbTooltip","TOOLTIP.FUNDING_RATE","sbTooltipPlacement","bottom","sbDelay","200",3,"sbDisabled","click",4,"ngIf"],["class","detail funding","sbTooltip","TOOLTIP.NEXT_RATE","sbTooltipPlacement","bottom","sbDelay","200",3,"sbDisabled","click",4,"ngIf"],["class","detail","sbTooltip","TOOLTIP.NEXT_RATE_TIME","sbTooltipPlacement","bottom","sbDelay","200",3,"sbDisabled",4,"ngIf"],["class","detail","sbTooltip","TOOLTIP.DAYS_TO_MATURITY","sbTooltipPlacement","bottom","sbDelay","200",3,"sbDisabled",4,"ngIf"],["sbTooltip","TOOLTIP.OPEN_INTEREST","sbTooltipPlacement","bottom","sbDelay","200",1,"detail","oi",3,"sbDisabled"],["body","","mono",""],["sbTooltip","TOOLTIP.24H_VOLUME","sbTooltipPlacement","bottom","sbDelay","200",1,"detail","volume",3,"sbDisabled"],[4,"ngIfSome"],["sbTooltip","TOOLTIP.FUNDING_RATE","sbTooltipPlacement","bottom","sbDelay","200",1,"detail","funding",3,"sbDisabled","click"],["sbTooltip","TOOLTIP.NEXT_RATE","sbTooltipPlacement","bottom","sbDelay","200",1,"detail","funding",3,"sbDisabled","click"],["sbTooltip","TOOLTIP.NEXT_RATE_TIME","sbTooltipPlacement","bottom","sbDelay","200",1,"detail",3,"sbDisabled"],["sbTooltip","TOOLTIP.DAYS_TO_MATURITY","sbTooltipPlacement","bottom","sbDelay","200",1,"detail",3,"sbDisabled"],["sbTooltip","TOOLTIP.VIEW_FEE_SCHEDULE","sbTooltipPlacement","bottom","sbDelay","200",1,"detail","user-volume","action-detail",3,"sbDisabled","click"]],template:function(t,e){1&t&&(h.Oc(0,L,2,1,"section",0),h.gc(1,"async"),h.gc(2,"async"),h.gc(3,"async")),2&t&&h.mc("ngIf",h.tc(7,N,h.hc(1,1,e.displayTooltips$),h.hc(2,3,e.selectedTicker$),h.hc(3,5,e.isFlexMarket$)))},directives:[d.n,p.a,f.a,b.a,g.a,m.a,v.a,_.a,y.a,O.a,C.a],pipes:[d.b,w.d,T.c,S.b,d.f,k.a,E.a,d.u],styles:[".market-bar[_ngcontent-%COMP%]{display:flex;flex-direction:row;width:100%;flex-wrap:wrap;overflow-y:hidden;align-content:center;padding-top:var(--spacing-s)}.market-bar[_ngcontent-%COMP%] .detail[_ngcontent-%COMP%]{margin-right:var(--spacing-xl)}.market-bar[_ngcontent-%COMP%] .detail[_ngcontent-%COMP%]:first-of-type{margin-left:var(--spacing)}.market-bar[_ngcontent-%COMP%] .detail[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{line-height:1.25em}.market-bar[_ngcontent-%COMP%] .detail.funding[_ngcontent-%COMP%]{cursor:pointer}"],changeDetection:0}),t})()},mGFr:function(t,e,n){"use strict";function i(){if("undefined"==typeof process){var t="undefined"!=typeof window?window:{},e=Date.now(),n=!1;t.document.addEventListener("deviceready",(function(){console.log("Ionic Native: deviceready event fired after "+(Date.now()-e)+" ms"),n=!0})),setTimeout((function(){!n&&t.cordova&&console.warn("Ionic Native: deviceready did not fire within 5000ms. This can happen when plugins are in an inconsistent state. Try removing plugins from plugins/ and reinstalling them.")}),5e3)}}n.d(e,"a",(function(){return i}))},mQ8X:function(t,e,n){"use strict";n.d(e,"a",(function(){return c})),n.d(e,"e",(function(){return d})),n.d(e,"c",(function(){return p})),n.d(e,"d",(function(){return f})),n.d(e,"b",(function(){return b}));var i=n("1ONQ"),r=n("zqNl"),s=n("p5wL");const o={current:[],historical:[]},a=Object(r.i)(o,Object(r.k)(i.f,()=>o),Object(r.k)(i.h,(t,{preferences:e})=>Object(s.b)(e,t,"current")),Object(r.k)(i.g,(t,{history:e})=>Object(s.b)([...e].reverse(),t,"historical")));function c(t,e){return a(t,e)}const l=Object(r.h)("assignment"),u=Object(r.j)(l,t=>t.current),h=Object(r.j)(l,t=>t.historical),d=Object(r.j)(u,t=>t.filter(t=>"flex"!==t.participant.contractType)),p=Object(r.j)(u,t=>t.filter(t=>"flex"===t.participant.contractType)),f=Object(r.j)(h,t=>t.filter(t=>"flex"!==t.participant.contractType)),b=Object(r.j)(h,t=>t.filter(t=>"flex"===t.participant.contractType))},mQN4:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("oznm");e.default=function(){function t(t,e){this.numDataCodewords=t,this.codewords=e}return t.getDataBlocks=function(e,n,r){if(e.length!==n.getTotalCodewords())throw new i.default;for(var s=n.getECBlocksForLevel(r),o=0,a=s.getECBlocks(),c=0,l=a;c=0&&u[_].codewords.length!==v;)_--;_++;var y=v-s.getECCodewordsPerBlock(),O=0;for(b=0;b{class t{constructor(){this.viewDetailed=new i.o}get direction(){return this.fill.buy?"SIDE.BUY":"SIDE.SELL"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["filled-orders-mobile"]],inputs:{fill:"fill"},outputs:{viewDetailed:"viewDetailed"},decls:40,vars:46,consts:[[1,"activity-card"],[1,"row"],["subheading",""],[3,"pair"],["body","",1,"buttons"],["icon","file","size","2x",1,"copy-button",3,"click"],[1,"details"],["body",""],["ghost",""],["body","",1,"type-cell"],["body","",1,"direction-cell"],["body","","mono","",1,"size-cell"],["body","",1,"price-cell"],["mono",""]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"div",2),i.Pb(3,"market-icon",3),i.gc(4,"pair"),i.Qc(5),i.gc(6,"uppercase"),i.gc(7,"contractFamily"),i.gc(8,"pair"),i.gc(9,"truncate"),i.gc(10,"translate"),i.gc(11,"maturityMonth"),i.Tb(),i.Ub(12,"div",4),i.Ub(13,"fa-icon",5),i.bc("click",(function(t){return e.viewDetailed.emit(e.fill),t.stopPropagation()})),i.Tb(),i.Ub(14,"p",6),i.Qc(15),i.gc(16,"translate"),i.Tb(),i.Tb(),i.Tb(),i.Ub(17,"div",1),i.Ub(18,"div",7),i.Qc(19),i.gc(20,"date"),i.Ub(21,"span",8),i.Qc(22),i.gc(23,"date"),i.Tb(),i.Tb(),i.Tb(),i.Ub(24,"div",1),i.Ub(25,"div",9),i.Qc(26),i.gc(27,"titlecase"),i.Tb(),i.Ub(28,"div",10),i.Ub(29,"strong"),i.Qc(30),i.gc(31,"translate"),i.Tb(),i.Tb(),i.Ub(32,"div",11),i.Qc(33),i.Tb(),i.Ub(34,"div",12),i.Ub(35,"span",13),i.Qc(36),i.Tb(),i.Ub(37,"span",8),i.Qc(38),i.gc(39,"quote"),i.Tb(),i.Tb(),i.Tb(),i.Tb()),2&t&&(i.Cb(3),i.mc("pair",i.hc(4,16,e.fill.instrument)),i.Cb(2),i.Uc(" ",i.hc(6,18,i.hc(7,20,e.fill.instrument))," ",i.hc(8,22,e.fill.instrument)," ",i.ic(9,24,i.hc(10,27,i.ic(11,29,e.fill.instrument,"short")),4),". "),i.Cb(10),i.Rc(i.hc(16,32,"BUTTON.DETAILS")),i.Cb(4),i.Sc(" ",i.ic(20,34,e.fill.time,"HH:mm:ss")," "),i.Cb(3),i.Rc(i.ic(23,37,e.fill.time,"dd/MMM/yyyy")),i.Cb(4),i.Sc(" ",i.hc(27,40,e.fill.fill_type)," "),i.Cb(3),i.Gb("global__text--accent",e.fill.buy)("global__text--warn",!e.fill.buy),i.Cb(1),i.Sc(" ",i.hc(31,42,e.direction)," "),i.Cb(3),i.Sc(" ",e.fill.qty," "),i.Cb(3),i.Rc(e.fill.price),i.Cb(2),i.Rc(i.hc(39,44,e.fill.instrument)))},directives:[r.a,s.a,o.a,a.b,c.a,l.a],pipes:[u.e,h.x,u.c,d.a,p.d,u.d,h.e,h.w,u.f],styles:["market-icon[_ngcontent-%COMP%]{font-size:20px}[_nghost-%COMP%]{display:block;border-bottom:1px solid var(--border-colour);margin-bottom:var(--spacing);padding-bottom:var(--spacing)}market-icon[_ngcontent-%COMP%]{margin-right:var(--spacing-s);vertical-align:middle}.row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding:0 var(--spacing-s)}.row[_ngcontent-%COMP%] + .row[_ngcontent-%COMP%]{margin-top:var(--spacing)}.buttons[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{cursor:pointer}.buttons[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]:not(:last-of-type){margin-right:var(--spacing)}.buttons[_ngcontent-%COMP%] .copy-button[_ngcontent-%COMP%], .buttons[_ngcontent-%COMP%] .edit-button[_ngcontent-%COMP%], .buttons[_ngcontent-%COMP%] .info-button[_ngcontent-%COMP%], .buttons[_ngcontent-%COMP%] .limit-button[_ngcontent-%COMP%], .buttons[_ngcontent-%COMP%] .market-button[_ngcontent-%COMP%]{color:var(--brand)}.buttons[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%]{color:var(--warn-colour)}.type-cell[_ngcontent-%COMP%]{display:flex;align-items:center;flex:0.5}.direction-cell[_ngcontent-%COMP%], .size-cell[_ngcontent-%COMP%]{display:flex;align-items:center;flex:0.25}.price-cell[_ngcontent-%COMP%]{display:flex;flex-direction:column;text-align:right;flex:0.5}.price-cell[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:first-of-type{margin-bottom:var(--spacing-s)}.progress-cell[_ngcontent-%COMP%]{text-align:right;flex:0.75}.progress-cell[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:first-of-type{margin-bottom:var(--spacing-s)}@media (max-width:1024px){.details[_ngcontent-%COMP%]{display:none}}"],changeDetection:0}),t})()},mW0F:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("5uGe");class r extends i.a{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var s=n("1MAX"),o=n("IdLP");function a(t,e,n,i,a=new r(t,n,i)){if(!a.closed)return e instanceof o.a?e.subscribe(a):Object(s.a)(e)(a)}},mWJl:function(t,e,n){},mWib:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("5uGe"),r=n("Efrr");function s(t,e=r.a){return n=>n.lift(new o(t,e))}class o{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new a(t,this.dueTime,this.scheduler))}}class a extends i.a{constructor(t,e,n){super(t),this.dueTime=e,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(c,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function c(t){t.debouncedNext()}},mawV:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("3lSR");function r(){return Object(i.a)(1)}},mcff:function(t,e,n){"use strict";n.d(e,"a",(function(){return E})),n.d(e,"b",(function(){return M})),n.d(e,"c",(function(){return D})),n.d(e,"d",(function(){return S}));var i=n("5GZx"),r=n("ZtZA"),s=n("kZht"),o=n("pTnX"),a=n("vE5V"),c=n("An66"),l=n("ZTXN"),u=n("i9xl"),h=n("ROBh"),d=n("xVbo"),p=n("J+dc"),f=n("jIqt"),b=n("jL3B"),g=n("+6xv"),m=n("Hq54");function v(t,e){}class _{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const y={dialogContainer:Object(g.n)("dialogContainer",[Object(g.k)("void, exit",Object(g.l)({opacity:0,transform:"scale(0.7)"})),Object(g.k)("enter",Object(g.l)({transform:"none"})),Object(g.m)("* => enter",Object(g.e)("150ms cubic-bezier(0, 0, 0.2, 1)",Object(g.l)({transform:"none",opacity:1}))),Object(g.m)("* => void, * => exit",Object(g.e)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Object(g.l)({opacity:0})))])};let O=(()=>{class t extends r.a{constructor(t,e,n,i,r,o){super(),this._elementRef=t,this._focusTrapFactory=e,this._changeDetectorRef=n,this._config=r,this._focusMonitor=o,this._animationStateChanged=new s.o,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=t=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(t)),this._ariaLabelledBy=r.ariaLabelledBy||null,this._document=i}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}attachComponentPortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(t)}_recaptureFocus(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}_trapFocus(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}_restoreFocus(){const t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){const e=this._document.activeElement,n=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==n&&!n.contains(e)||(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement)}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const t=this._elementRef.nativeElement,e=this._document.activeElement;return t===e||t.contains(e)}}return t.\u0275fac=function(e){return new(e||t)(s.Ob(s.l),s.Ob(b.i),s.Ob(s.h),s.Ob(c.d,8),s.Ob(_),s.Ob(b.h))},t.\u0275dir=s.Jb({type:t,viewQuery:function(t,e){var n;1&t&&s.Jc(r.c,!0),2&t&&s.zc(n=s.cc())&&(e._portalOutlet=n.first)},features:[s.zb]}),t})(),C=(()=>{class t extends O{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:t,totalTime:e}){"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:e}))}_onAnimationStart({toState:t,totalTime:e}){"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:e}):"exit"!==t&&"void"!==t||this._animationStateChanged.next({state:"closing",totalTime:e})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return w(e||t)},t.\u0275cmp=s.Ib({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&s.Mc("@dialogContainer.start",(function(t){return e._onAnimationStart(t)}))("@dialogContainer.done",(function(t){return e._onAnimationDone(t)})),2&t&&(s.Xb("id",e._id),s.Db("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),s.Nc("@dialogContainer",e._state))},features:[s.zb],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&s.Oc(0,v,0,0,"ng-template",0)},directives:[r.c],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[y.dialogContainer]}}),t})();const w=s.Wb(C);let T=0;class S{constructor(t,e,n="mat-dialog-"+T++){this._overlayRef=t,this._containerInstance=e,this.id=n,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new l.b,this._afterClosed=new l.b,this._beforeClosed=new l.b,this._state=0,e._id=n,e._animationStateChanged.pipe(Object(d.a)(t=>"opened"===t.state),Object(p.a)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(Object(d.a)(t=>"closed"===t.state),Object(p.a)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe(Object(d.a)(t=>t.keyCode===m.f&&!this.disableClose&&!Object(m.r)(t))).subscribe(t=>{t.preventDefault(),k(this,"keyboard")}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():k(this,"mouse")})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(Object(d.a)(t=>"closing"===t.state),Object(p.a)(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(t="",e=""){return this._getPositionStrategy().width(t).height(e),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function k(t,e,n){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=e),t.close(n)}const E=new s.s("MatDialogData"),x=new s.s("mat-dialog-default-options"),P=new s.s("mat-dialog-scroll-strategy"),A={provide:P,deps:[i.c],useFactory:function(t){return()=>t.scrollStrategies.block()}};let I=(()=>{class t{constructor(t,e,n,i,r,s,o,a,c){this._overlay=t,this._injector=e,this._defaultOptions=n,this._parentDialog=i,this._overlayContainer=r,this._dialogRefConstructor=o,this._dialogContainerType=a,this._dialogDataToken=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new l.b,this._afterOpenedAtThisLevel=new l.b,this._ariaHiddenElements=new Map,this.afterAllClosed=Object(u.a)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Object(f.a)(void 0))),this._scrollStrategy=s}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(t,e){(e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new _)).id&&this.getDialogById(e.id);const n=this._createOverlay(e),i=this._attachDialogContainer(n,e),r=this._attachDialogContent(t,i,n,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(r),r.afterClosed().subscribe(()=>this._removeOpenDialog(r)),this.afterOpened.next(r),i._initializeWithAttachedContent(),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(t){const e=this._getOverlayConfig(t);return this._overlay.create(e)}_getOverlayConfig(t){const e=new i.d({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}_attachDialogContainer(t,e){const n=s.t.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:_,useValue:e}]}),i=new r.d(this._dialogContainerType,e.viewContainerRef,n,e.componentFactoryResolver);return t.attach(i).instance}_attachDialogContent(t,e,n,i){const o=new this._dialogRefConstructor(n,e,i.id);if(t instanceof s.N)e.attachTemplatePortal(new r.h(t,null,{$implicit:i.data,dialogRef:o}));else{const n=this._createInjector(i,o,e),s=e.attachComponentPortal(new r.d(t,i.viewContainerRef,n));o.componentInstance=s.instance}return o.updateSize(i.width,i.height).updatePosition(i.position),o}_createInjector(t,e,n){const i=t&&t.viewContainerRef&&t.viewContainerRef.injector,r=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:e}];return!t.direction||i&&i.get(a.b,null)||r.push({provide:a.b,useValue:{value:t.direction,change:Object(h.a)()}}),s.t.create({parent:i||this._injector,providers:r})}_removeOpenDialog(t){const e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const t=this._overlayContainer.getContainerElement();if(t.parentElement){const e=t.parentElement.children;for(let n=e.length-1;n>-1;n--){let i=e[n];i===t||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}}_closeDialogs(t){let e=t.length;for(;e--;)t[e].close()}}return t.\u0275fac=function(e){return new(e||t)(s.Ob(i.c),s.Ob(s.t),s.Ob(void 0),s.Ob(void 0),s.Ob(i.e),s.Ob(void 0),s.Ob(s.P),s.Ob(s.P),s.Ob(s.s))},t.\u0275dir=s.Jb({type:t}),t})(),M=(()=>{class t extends I{constructor(t,e,n,i,r,s,o){super(t,e,i,s,o,r,S,C,E)}}return t.\u0275fac=function(e){return new(e||t)(s.Yb(i.c),s.Yb(s.t),s.Yb(c.j,8),s.Yb(x,8),s.Yb(P),s.Yb(t,12),s.Yb(i.e))},t.\u0275prov=s.Kb({token:t,factory:t.\u0275fac}),t})(),D=(()=>{class t{}return t.\u0275mod=s.Mb({type:t}),t.\u0275inj=s.Lb({factory:function(e){return new(e||t)},providers:[M,A],imports:[[i.f,r.g,o.j],o.j]}),t})()},mlVJ:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return r}));const i=/XBT/g,r=/BTC/g},n5Bc:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s=n("uwQt");e.default=function(t){function e(e,n,i){var r=t.call(this,e,n)||this;return r.count=0,r.finderPattern=i,r}return r(e,t),e.prototype.getFinderPattern=function(){return this.finderPattern},e.prototype.getCount=function(){return this.count},e.prototype.incrementCount=function(){this.count++},e}(s.default)},n5WT:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),n("4Pxi");var s=n("ZCEf"),o=n("KFdt"),a=n("xSUO"),c=n("Qkwj"),l=n("iiuT"),u=n("PdLq"),h=n("LqyJ"),d=n("nB6u"),p=n("sPys");e.default=function(t){function e(){var n=t.call(this)||this;n.decodeRowStringBuffer="",n.decodeRowStringBuffer="",e.L_AND_G_PATTERNS=e.L_PATTERNS.map((function(t){return t.slice()}));for(var i=10;i<20;i++){for(var r=e.L_PATTERNS[i-10],s=new Array(r.length),o=0;o=0&&(n=t.isRange(o,s,!1))}return i},e.prototype.decodeRow=function(t,n,i){var r=e.findStartGuardPattern(n),l=null==i?null:i.get(s.default.NEED_RESULT_POINT_CALLBACK);if(null!=l){var f=new c.default((r[0]+r[1])/2,t);l.foundPossibleResultPoint(f)}var b=this.decodeMiddle(n,r,this.decodeRowStringBuffer),g=b.rowOffset,m=b.resultString;if(null!=l){var v=new c.default(g,t);l.foundPossibleResultPoint(v)}var _=e.decodeEnd(n,g);if(null!=l){var y=new c.default((_[0]+_[1])/2,t);l.foundPossibleResultPoint(y)}var O=_[1],C=O+(O-_[0]);if(C>=n.getSize()||!n.isRange(O,C,!1))throw new h.default;var w=m.toString();if(w.length<8)throw new d.default;if(!e.checkChecksum(w))throw new p.default;var T=(r[1]+r[0])/2,S=(_[1]+_[0])/2,k=this.getBarcodeFormat(),E=[new c.default(T,t),new c.default(S,t)],x=new o.default(w,null,0,E,k,(new Date).getTime()),P=0;try{var A=u.default.decodeRow(t,n,_[1]);x.putMetadata(a.default.UPC_EAN_EXTENSION,A.getText()),x.putAllMetadata(A.getResultMetadata()),x.addResultPoints(A.getResultPoints()),P=A.getText().length}catch(R){}var I=null==i?null:i.get(s.default.ALLOWED_EAN_EXTENSIONS);if(null!=I){var M=!1;for(var D in I)if(P.toString()===D){M=!0;break}if(!M)throw new h.default}return x},e.checkChecksum=function(t){return e.checkStandardUPCEANChecksum(t)},e.checkStandardUPCEANChecksum=function(t){var n=t.length;if(0===n)return!1;var i=parseInt(t.charAt(n-1),10);return e.getStandardUPCEANChecksum(t.substring(0,n-1))===i},e.getStandardUPCEANChecksum=function(t){for(var e=t.length,n=0,i=e-1;i>=0;i-=2){if((r=t.charAt(i).charCodeAt(0)-"0".charCodeAt(0))<0||r>9)throw new d.default;n+=r}for(n*=3,i=e-2;i>=0;i-=2){var r;if((r=t.charAt(i).charCodeAt(0)-"0".charCodeAt(0))<0||r>9)throw new d.default;n+=r}return(1e3-n)%10},e.decodeEnd=function(t,n){return e.findGuardPattern(t,n,!1,e.START_END_PATTERN,new Array(e.START_END_PATTERN.length).fill(0))},e.findGuardPattern=function(t,n,i,r,s){for(var o=t.getSize(),a=0,c=n=i?t.getNextUnset(n):t.getNextSet(n),u=r.length,d=i,p=n;p=0)return o;throw new h.default},e.MAX_AVG_VARIANCE=.48,e.MAX_INDIVIDUAL_VARIANCE=.7,e.START_END_PATTERN=[1,1,1],e.MIDDLE_PATTERN=[1,1,1,1,1],e.END_PATTERN=[1,1,1,1,1,1],e.L_PATTERNS=[[3,2,1,1],[2,2,2,1],[2,1,2,2],[1,4,1,1],[1,1,3,2],[1,2,3,1],[1,1,1,4],[1,3,1,2],[1,2,1,3],[3,1,1,2]],e}(l.default)},nB6u:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s=n("w6/c");e.default=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e}(s.default)},nVws:function(t,e,n){"use strict";n.d(e,"a",(function(){return q}));var i=n("D57K"),r=n("gxtV"),s=n("zqNl"),o=n("KQpv"),a=n.n(o),c=n("YtkY"),l=n("uJYd"),u=n("sXtk"),h=n("ylpo"),d=n("rxqU"),p=n("Rjzq"),f=n("NloN"),b=n("vYTc"),g=n("9baa"),m=n("qAYy"),v=n("+Px6"),_=n("kZht"),y=n("F6wS"),O=n("TMzY"),C=n("An66"),w=n("yvKM"),T=n("4hXt"),S=n("ebJJ"),k=n("fa4l"),E=n("6neU"),x=n("cqWG"),P=n("7J2L"),A=n("aDqW");function I(t,e){if(1&t){const t=_.Vb();_.Sb(0),_.Ub(1,"basic-order-form",13),_.bc("refreshOptions",(function(){return _.Ec(t),_.fc(4).refreshSavedOptions()})),_.Tb(),_.Rb()}if(2&t){const t=_.fc(2).ngIf,e=_.fc(2);_.Cb(1),_.mc("side",e.orderSide)("options",e.options)("basicOrderType",e.orderType)("indexPrice",t.indexPrice)}}function M(t,e){if(1&t){const t=_.Vb();_.Sb(0),_.Ub(1,"trigger-order-form",14),_.bc("refreshOptions",(function(){return _.Ec(t),_.fc(4).refreshSavedOptions()})),_.Tb(),_.Rb()}if(2&t){const t=_.fc(4);_.Cb(1),_.mc("side",t.orderSide)("triggerType","stop")("options",t.options)}}function D(t,e){if(1&t){const t=_.Vb();_.Sb(0),_.Ub(1,"trigger-order-form",14),_.bc("refreshOptions",(function(){return _.Ec(t),_.fc(4).refreshSavedOptions()})),_.Tb(),_.Rb()}if(2&t){const t=_.fc(4);_.Cb(1),_.mc("side",t.orderSide)("triggerType","take_profit")("options",t.options)}}function R(t,e){if(1&t){const t=_.Vb();_.Sb(0),_.Ub(1,"trigger-order-form",14),_.bc("refreshOptions",(function(){return _.Ec(t),_.fc(4).refreshSavedOptions()})),_.Tb(),_.Rb()}if(2&t){const t=_.fc(4);_.Cb(1),_.mc("side",t.orderSide)("triggerType","trigger_entry")("options",t.options)}}function j(t,e){1&t&&(_.Sb(0),_.Pb(1,"bracket-order-form"),_.Rb())}function L(t,e){if(1&t&&(_.Sb(0,11),_.Oc(1,I,2,4,"ng-container",12),_.Oc(2,M,2,3,"ng-container",12),_.Oc(3,D,2,3,"ng-container",12),_.Oc(4,R,2,3,"ng-container",12),_.Oc(5,j,2,0,"ng-container",12),_.Rb()),2&t){const t=_.fc(3);_.mc("ngSwitch",t.orderType),_.Cb(1),_.mc("ngSwitchCase","limit"===t.orderType||"market"===t.orderType?t.orderType:""),_.Cb(1),_.mc("ngSwitchCase","stop"),_.Cb(1),_.mc("ngSwitchCase","take_profit"),_.Cb(1),_.mc("ngSwitchCase","trigger_entry"),_.Cb(1),_.mc("ngSwitchCase","bracket")}}function N(t,e){if(1&t){const t=_.Vb();_.Ub(0,"mat-card-content"),_.Ub(1,"div",5),_.Ub(2,"mat-button-toggle-group",6),_.Ub(3,"mat-button-toggle",7),_.bc("click",(function(){return _.Ec(t),_.fc(2).changeSide("buy")})),_.Qc(4),_.gc(5,"translate"),_.gc(6,"translate"),_.Tb(),_.Ub(7,"mat-button-toggle",8),_.bc("click",(function(){return _.Ec(t),_.fc(2).changeSide("sell")})),_.Qc(8),_.gc(9,"translate"),_.gc(10,"translate"),_.Tb(),_.Tb(),_.Ub(11,"order-type-toggle",9),_.bc("changeOrderType",(function(e){return _.Ec(t),_.fc(2).changeOrderType(e)}))("openCalculator",(function(){_.Ec(t);const n=e.ngIf;return _.fc(2).openCalculatorDialog(n.selectedTicker)})),_.Tb(),_.Tb(),_.Oc(12,L,6,6,"ng-container",10),_.Tb()}if(2&t){const t=e.ngIf,n=_.fc(2),i=_.Ac(6);_.Cb(2),_.mc("value",n.orderSide),_.Cb(2),_.Tc(" ",_.hc(5,10,"BUTTON.BUY")," | ",_.hc(6,12,"BUTTON.LONG")," "),_.Cb(4),_.Tc(" ",_.hc(9,14,"BUTTON.SELL")," | ",_.hc(10,16,"BUTTON.SHORT")," "),_.Cb(3),_.mc("orderType",n.orderType)("displayTooltips",t.displayTooltips)("isFlexMarket",t.isFlexMarket),_.Cb(1),_.mc("ngIf",t.selectedTicker)("ngIfElse",i)}}const U=function(t,e,n,i){return{displayTooltips:t,selectedTicker:e,isFlexMarket:n,indexPrice:i}};function F(t,e){if(1&t&&(_.Sb(0),_.Oc(1,N,13,18,"mat-card-content",4),_.gc(2,"async"),_.gc(3,"async"),_.gc(4,"async"),_.gc(5,"async"),_.Rb()),2&t){const t=_.fc();_.Cb(1),_.mc("ngIf",_.uc(9,U,_.hc(2,1,t.displayTooltips$),_.hc(3,3,t.selectedTicker$),_.hc(4,5,t.isFlexMarket$),_.hc(5,7,t.indexPrice$)))}}function B(t,e){1&t&&(_.Ub(0,"div",15),_.Pb(1,"sign-in-form",16),_.Tb()),2&t&&(_.Cb(1),_.mc("includeDirect",!1))}function z(t,e){1&t&&_.Pb(0,"kraken-loading")}const V=function(){return{horizontal:675,vertical:600}},$=a()("app:order-form"),H=a()("trace:app:order-form");let q=(()=>{let t=class{constructor(t,e){this.store=t,this.env=e,this.debug=$,this.options=this.refreshSavedOptions(),this.orderType="limit",this.orderSide="buy",this.displayTooltips$=this.store.pipe(Object(s.m)(d.y)),this.userSignedIn$=this.store.pipe(Object(s.m)(d.m)),this.selectedTicker$=this.store.pipe(Object(s.m)(m.p)),this.showOrderForm$=this.userSignedIn$.pipe(Object(c.a)(t=>!!g.a.isNative||t)),this.isFlexMarket$=this.store.pipe(Object(s.m)(v.a)),this.indexPrice$=this.store.pipe(Object(s.m)(m.a))}refreshSavedOptions(){const t={showOptions:!0,makerOnly:!1,reduceOnly:!1,orderTypeOverride:void 0,triggerSignal:"mark"},e=Object(f.b)(h.j,void 0);if(e){H("loading saved options",e);const n=Object.assign(Object.assign({},t),e);return this.options=n,n}return H("loading default options"),this.options=t,t}changeOrderType(t){this.orderType=t}openCalculatorDialog(t){this.store.dispatch(Object(l.g)({name:"order-calculators",inputs:{mid:Object(b.j)(t)}}))}changeSide(t){this.orderSide=t}};return t.\u0275fac=function(e){return new(e||t)(_.Ob(s.b),_.Ob(u.a))},t.\u0275cmp=_.Ib({type:t,selectors:[["order-form"]],features:[_.Bb([p.a])],decls:7,vars:6,consts:[["orientation","",1,"order-form",3,"breakpoints"],[4,"ngIf","ngIfElse"],["signInForm",""],["loader",""],[4,"ngIf"],[1,"side-buttons"],[3,"value"],["value","buy",1,"long",3,"click"],["value","sell",1,"short",3,"click"],[3,"orderType","displayTooltips","isFlexMarket","changeOrderType","openCalculator"],[3,"ngSwitch",4,"ngIf","ngIfElse"],[3,"ngSwitch"],[4,"ngSwitchCase"],[3,"side","options","basicOrderType","indexPrice","refreshOptions"],[3,"side","triggerType","options","refreshOptions"],[1,"unauth"],[3,"includeDirect"]],template:function(t,e){if(1&t&&(_.Ub(0,"mat-card",0),_.Oc(1,F,6,14,"ng-container",1),_.gc(2,"async"),_.Tb(),_.Oc(3,B,2,1,"ng-template",null,2,_.Pc),_.Oc(5,z,1,0,"ng-template",null,3,_.Pc)),2&t){const t=_.Ac(4);_.mc("breakpoints",_.qc(5,V)),_.Cb(1),_.mc("ngIf",_.hc(2,3,e.showOrderForm$))("ngIfElse",t)}},directives:[y.a,O.a,C.n,y.b,w.b,w.a,T.a,C.p,C.q,S.a,k.a,E.a,x.a,P.a],pipes:[C.b,A.d],styles:["[noauth][_nghost-%COMP%]{pointer-events:none}mat-card[_ngcontent-%COMP%]{box-shadow:none!important;overflow:hidden}form[_ngcontent-%COMP%]{overflow-x:hidden}form[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%]{width:100%}.submit[_ngcontent-%COMP%]{display:flex}.submit[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{flex:1}.submit[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:not(:first-of-type){margin-left:var(--spacing)}.footer[_ngcontent-%COMP%]{margin-top:var(--spacing);background:var(--card-colour);text-align:right;width:100%}.options[_ngcontent-%COMP%]{display:block}.inputs[_ngcontent-%COMP%], .options[_ngcontent-%COMP%]{flex-direction:column}.inputs[_ngcontent-%COMP%]{display:flex}.inputs[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{flex:1}.order-form[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%;padding-left:var(--spacing);padding-top:var(--spacing);padding-bottom:var(--spacing)}.radio-options[_ngcontent-%COMP%] mat-radio-group[_ngcontent-%COMP%]{display:flex;flex-flow:column nowrap;padding-top:var(--spacing)}.radio-options--inline[_ngcontent-%COMP%] mat-radio-group[_ngcontent-%COMP%]{flex-flow:row nowrap;justify-content:space-between}.slider-info[_ngcontent-%COMP%]{cursor:pointer}.slider-info[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{color:var(--icon-colour)}.side-buttons[_ngcontent-%COMP%]{padding-right:var(--spacing)}.side[_ngcontent-%COMP%] .buy[_ngcontent-%COMP%]{color:var(--accent-colour)!important}.side[_ngcontent-%COMP%] .buy.mat-button-toggle-checked[_ngcontent-%COMP%]{color:var(--text-colour)!important;background-color:var(--button-accent-colour)!important}.side[_ngcontent-%COMP%] .sell[_ngcontent-%COMP%]{color:var(--warn-colour)!important}.side[_ngcontent-%COMP%] .sell.mat-button-toggle-checked[_ngcontent-%COMP%]{color:var(--text-colour)!important;background-color:var(--button-warn-colour)!important}.input-row[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex:1}.input-row[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%]{min-width:0}.input-row[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%]:not(:first-child){padding-left:var(--spacing)}@media (max-width:599px){.input-row[_ngcontent-%COMP%]{width:91vw}}.maker-reduce[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between}.maker-reduce[_ngcontent-%COMP%] .mat-checkbox-layout{border-bottom:none!important}.unauth[_ngcontent-%COMP%]{padding:var(--spacing)}.estimate[_ngcontent-%COMP%]{font-size:2em;margin-right:var(--spacing)}.mat-button-toggle-checked.long[_ngcontent-%COMP%]{background:var(--g300)}.mat-button-toggle-checked.short[_ngcontent-%COMP%]{background:var(--warn-colour)}.close-position[_ngcontent-%COMP%]{align-self:flex-end}.trigger-details[_ngcontent-%COMP%]{display:flex;justify-content:space-evenly}.trigger-details[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:flex;flex-direction:column;text-align:center}.trigger[_ngcontent-%COMP%]{display:flex;border-bottom:1px solid var(--border-colour);margin:var(--spacing-s) 0;justify-content:space-between;align-items:center}.trigger-menu[_ngcontent-%COMP%]{cursor:pointer}.trigger-checkboxes[_ngcontent-%COMP%]{display:flex}.trigger-checkboxes[_ngcontent-%COMP%] mat-checkbox[_ngcontent-%COMP%]:first-child{margin-right:var(--spacing-l)}"],changeDetection:0}),t=Object(i.d)([Object(r.a)()],t),t})()},nXbC:function(t,e,n){"use strict";n.r(e),n.d(e,"ToursComponent",(function(){return b}));var i=n("uJYd"),r=n("kZht"),s=n("mcff"),o=n("zqNl"),a=n("1VvW"),c=n("rfPA"),l=n("bBQR"),u=n("1etq"),h=n("NxuZ"),d=n("hCLc"),p=n("anSm"),f=n("aDqW");let b=(()=>{class t{constructor(t,e,n){this.dialogRef=t,this.store=e,this.router=n}startTour(){this.closeDialog(),this.router.navigate(["/futures"]),this.store.dispatch(Object(i.A)({tour:"trading-dashboard"}))}closeDialog(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(r.Ob(s.d),r.Ob(o.b),r.Ob(a.d))},t.\u0275cmp=r.Ib({type:t,selectors:[["tours"]],decls:16,vars:6,consts:[["heading","HEADING.TAKE_TOUR"],[1,"tours"],[1,"hero"],["src","assets/images/kraken_illustration4.png","alt","Kraken illustration"],[1,"content"],["subheading",""],["icon","kraken","size","lg"],[1,"options"],["body","","mat-raised-button","",3,"click"],["body","","mat-button","",3,"click"]],template:function(t,e){1&t&&(r.Ub(0,"pro-dialog",0),r.Ub(1,"section",1),r.Ub(2,"div",2),r.Pb(3,"img",3),r.Tb(),r.Ub(4,"div",4),r.Ub(5,"p",5),r.Qc(6," Take the "),r.Pb(7,"fa-icon",6),r.Qc(8," Kraken Futures Tour "),r.Tb(),r.Ub(9,"div",7),r.Ub(10,"button",8),r.bc("click",(function(){return e.startTour()})),r.Qc(11),r.gc(12,"translate"),r.Tb(),r.Ub(13,"button",9),r.bc("click",(function(){return e.closeDialog()})),r.Qc(14),r.gc(15,"translate"),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Tb()),2&t&&(r.Cb(11),r.Sc(" ",r.hc(12,2,"LABEL.SHOW_AROUND")," "),r.Cb(3),r.Sc(" ",r.hc(15,4,"LABEL.SKIP_FOR_NOW")," "))},directives:[c.a,l.a,u.a,h.b,d.b,p.a],pipes:[f.d],styles:[".tours[_ngcontent-%COMP%]{display:flex;flex-direction:row}.tours[_ngcontent-%COMP%] .hero[_ngcontent-%COMP%]{margin-right:var(--spacing-l)}.tours[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:250px}.tours[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{justify-content:center;align-self:center}.tours[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:var(--spacing-l)}.tours[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{color:var(--brand)}.options[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0}),t})()},nXdR:function(t,e,n){"use strict";n.d(e,"a",(function(){return u})),n.d(e,"l",(function(){return h})),n.d(e,"b",(function(){return d})),n.d(e,"c",(function(){return p})),n.d(e,"g",(function(){return f})),n.d(e,"e",(function(){return b})),n.d(e,"h",(function(){return g})),n.d(e,"f",(function(){return m})),n.d(e,"d",(function(){return v})),n.d(e,"n",(function(){return _})),n.d(e,"p",(function(){return y})),n.d(e,"o",(function(){return O})),n.d(e,"q",(function(){return C})),n.d(e,"m",(function(){return w})),n.d(e,"r",(function(){return T})),n.d(e,"k",(function(){return S})),n.d(e,"i",(function(){return k})),n.d(e,"j",(function(){return E}));var i=n("KQpv"),r=n.n(i),s=n("og7C"),o=n("VmIW"),a=n("TYVA"),c=n("mlVJ");const l=r()("app:utils:wallets"),u=":";function h(t){var e;const n=t.name.toUpperCase(),i=t.currency.toUpperCase(),r=null===(e=t.pair)||void 0===e?void 0:e.toUpperCase(),s="XBT"===n?"BTC":n,o="XBT"===i?"BTC":i,a="XBT/USD"===r?"BTC/USD":r;return Object.assign(Object.assign({},t),{name:s,currency:o,pair:a})}function d(t,e,n,i){return t.map(t=>{const r=t.currency,s="XBT"===r?"BTC":r,o=e.get(r);if(!o){if(l("no USD price found for wallet "+t.name,t),"USD"===r){const e="holding"===t.type?t.balance:t.pv,o=t.am,a=n>0?e/n:0;return Object.assign(Object.assign(Object.assign({},t),{currency:s,asset:i.get(r),notional:e,allocation:a}),"futures"===t.type&&{amNotional:o})}return Object.assign(Object.assign(Object.assign({},t),{currency:s,asset:i.get(r),notional:0,allocation:0}),"futures"===t.type&&{amNotional:0})}const a=o.price*("holding"===t.type?t.balance:t.pv),c=o.price*t.am,u=n>0?a/n:0;return Object.assign(Object.assign(Object.assign({},t),{currency:s,asset:i.get(r),notional:a,allocation:u}),"futures"===t.type&&{amNotional:c})})}function p(t,e){return null==e?t:t.filter(({currency:t})=>g(e).replace(c.b,"BTC")===t)}function f(t,e){const n=t.get(e.currency);return n?n.price*e.balance:"USD"===e.currency?e.balance:0}function b(t,e){const n=t.get(e.currency);return n?n.price*e.pv:0}function g(t){return Object(a.u)(t.symbol).collateral.toUpperCase()}function m(t){const e=t.toUpperCase();return e.startsWith("F-")?Object(o.Some)(e.substring(2).replace(u,a.b)):Object(o.None)()}function v(t){if(t)switch(t.toUpperCase()){case"F-XBT:USD":return"BTC";case"F-ETH:USD":return"ETH";case"F-XRP:USD":return"XRP";case"F-XRP:XBT":return"BTC";case"F-BCH:USD":return"BCH";case"F-LTC:USD":return"LTC";case"F-XBT:EUR":case"F-ETH:EUR":case"F-LTC:EUR":case"F-BCH:EUR":case"F-XRP:EUR":return"EUR"}}function _(t,e){return t.cv?e.cv?e.cv-t.cv:1:-1}function y(t,e){const n=a.e,i=e.currency;return n.indexOf(t.currency)-n.indexOf(i)}function O(t,e){const n=a.e,i=Object(a.k)(t.pair),r=Object(a.k)(e.pair);return n.indexOf(i)-n.indexOf(r)}function C(t,e){const n=a.w,i=Object(a.l)(t.pair),r=Object(a.l)(e.pair);return n.indexOf(i)-n.indexOf(r)}function w(t,e){const n=a.e;return n.indexOf(t)-n.indexOf(e)}function T(t,e){const n=a.B;return n.indexOf(t.type)-n.indexOf(e.type)}function S(t){return Object.keys(t).map(e=>{const n=e.toUpperCase();return{type:"holding",currency:n,balance:t[e],name:n,am:0,funding:0,im:0,mm:0,pv:0,pnl:0}})}function k(t){return Object.keys(t).map(e=>({type:"futures",currency:t[e].unit,balance:t[e].balance,name:t[e].name,am:t[e].available,im:t[e].initial_margin,funding:t[e].unrealised_funding,mm:t[e].maintenance_margin,pv:t[e].portfolio_value,pair:t[e].pair,pnl:t[e].pnl}))}function E(t){return{type:"flex",currency:"USD",cv:t.collateral_value,am:t.available_margin,balance:t.balance_value,name:"multi-collateral",im:t.initial_margin,funding:t.unrealised_funding,mm:t.maintenance_margin,pv:t.portfolio_value,pnl:t.pnl,flexAssets:(e=Object(s.b)(t.currencies),e.map((t,e)=>{const n="XBT"===e?"BTC":e;return{type:"flex",currency:n,am:t.available||0,balance:t.quantity,name:"FLEX-"+n,pv:t.value,cv:t.collateral_value,im:0,funding:0,mm:0,pnl:0}})),margin_equity:t.margin_equity,total_unrealized:t.total_unrealized,total_unrealized_as_margin:t.total_unrealized_as_margin};var e}},neWc:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s=n("XQH8"),o=n("+luX"),a=n("q+cW"),c=n("LqyJ");e.default=function(t){function e(n){var i=t.call(this,n)||this;return i.luminances=e.EMPTY,i.buckets=new Int32Array(e.LUMINANCE_BUCKETS),i}return r(e,t),e.prototype.getBlackRow=function(t,n){var i=this.getLuminanceSource(),r=i.getWidth();null==n||n.getSize()>e.LUMINANCE_SHIFT]++;var l=e.estimateBlackPoint(a);if(r<3)for(c=0;c>e.LUMINANCE_SHIFT]++;var h=e.estimateBlackPoint(s),d=t.getMatrix();for(o=0;os&&(r=o,s=t[o]),t[o]>i&&(i=t[o]);var a=0,l=0;for(o=0;ol&&(a=o,l=f)}if(r>a){var h=r;r=a,a=h}if(a-r<=n/16)throw new c.default;var d=a-1,p=-1;for(o=a-1;o>r;o--){var f,b=o-r;(f=b*b*(a-o)*(i-t[o]))>p&&(d=o,p=f)}return d<\n ')}function r(){throw Error("xPosition value must be 'center', 'before' or after'.\n Example: ")}function s(){throw Error('yPosition value must be either \'above\' or below\'.\n Example: ')}n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return s}))},nkQU:function(t,e,n){"use strict";n.d(e,"a",(function(){return rt}));var i=n("D57K"),r=n("kZht"),s=n("LoUP"),o=n("O30t"),a=n("gxtV"),c=n("sXtk"),l=n("UVqw"),u=n("anSm"),h=n("yPvj"),d=n("IkSM"),p=n("B6Vo"),f=n("Cc4E"),b=n("zho4"),g=n("chaP"),m=n("+I9z"),v=n("1o0v"),_=n("scAs"),y=n("CfRh"),O=n("An66"),C=n("LbKT"),w=n("NxuZ"),T=n("WYJo"),S=n("rUBT"),k=n("aDqW"),E=n("rqGg"),x=n("DpwM");function P(t,e){1&t&&r.Pb(0,"tr",26)}function A(t,e){if(1&t){const t=r.Vb();r.Ub(0,"tr",27),r.bc("click",(function(){r.Ec(t);const n=e.$implicit;return r.fc().selectTicker.emit({symbol:n.instrument,replaceUrl:!1})})),r.Tb()}}function I(t,e){1&t&&r.Pb(0,"th",28)}function M(t,e){if(1&t&&(r.Ub(0,"td",29),r.Pb(1,"market-icon",30),r.gc(2,"base"),r.Tb()),2&t){const t=e.$implicit;r.Cb(1),r.mc("base",r.hc(2,1,t.instrument))}}const D=function(){return[250,100]};function R(t,e){if(1&t&&(r.Ub(0,"th",31),r.Qc(1),r.gc(2,"translate"),r.Tb()),2&t){const t=r.fc();r.mc("sbDisabled",!t.displayTooltips)("sbDelay",r.qc(5,D)),r.Cb(1),r.Sc(" ",r.hc(2,3,"COLUMN.MARKET")," ")}}function j(t,e){if(1&t&&(r.Ub(0,"td",32),r.Ub(1,"span"),r.Qc(2),r.gc(3,"pair"),r.Tb(),r.Ub(4,"span"),r.Qc(5),r.gc(6,"uppercase"),r.gc(7,"contractFamily"),r.gc(8,"translate"),r.gc(9,"maturityMonth"),r.Tb(),r.Tb()),2&t){const t=e.$implicit;r.Cb(2),r.Sc(" ",r.hc(3,3,t.instrument)," "),r.Cb(3),r.Tc(" ",r.hc(6,5,r.hc(7,7,t.instrument))," ",r.hc(8,9,r.ic(9,11,t.instrument,"short"))," ")}}function L(t,e){1&t&&(r.Ub(0,"th",33),r.Qc(1),r.gc(2,"translate"),r.Tb()),2&t&&(r.Cb(1),r.Sc(" ",r.hc(2,1,"COLUMN.SIZE")," "))}function N(t,e){if(1&t&&(r.Ub(0,"td",34),r.Ub(1,"span"),r.Ub(2,"span"),r.Ub(3,"span"),r.Qc(4),r.gc(5,"translate"),r.Tb(),r.Pb(6,"ghost-trail",35),r.Tb(),r.Ub(7,"span",36),r.Qc(8),r.gc(9,"asset"),r.Tb(),r.Tb(),r.Tb()),2&t){const t=e.$implicit;r.Cb(3),r.Gb("global__text--accent",t.balance>0)("global__text--warn",t.balance<0),r.Cb(1),r.Sc(" ",r.hc(5,8,t.balance>0?"BUTTON.LONG":"BUTTON.SHORT")," "),r.Cb(2),r.nc("content",t.displaySize),r.mc("showZeros",!1),r.Cb(2),r.Rc(r.hc(9,10,t.tradingDisplayAsset))}}function U(t,e){if(1&t&&(r.Ub(0,"th",37),r.Qc(1),r.gc(2,"translate"),r.gc(3,"translate"),r.Tb()),2&t){const t=r.fc();r.mc("sbDisabled",!t.displayTooltips)("sbDelay",r.qc(8,D)),r.Cb(1),r.Tc(" ",r.hc(2,4,"COLUMN.ENTRY")," / ",r.hc(3,6,"COLUMN.MARK")," ")}}function F(t,e){if(1&t&&(r.Ub(0,"td",38),r.Ub(1,"span",39),r.Qc(2),r.gc(3,"sato"),r.Ub(4,"span",36),r.Qc(5),r.gc(6,"quote"),r.Tb(),r.Tb(),r.Ub(7,"span",40),r.Qc(8),r.gc(9,"sato"),r.Ub(10,"span",36),r.Qc(11),r.gc(12,"quote"),r.Tb(),r.Tb(),r.Tb()),2&t){const t=e.$implicit;r.Cb(2),r.Sc(" ",r.ic(3,4,t.entry_price,t)," "),r.Cb(3),r.Rc(r.hc(6,7,t.instrument)),r.Cb(3),r.Sc(" ",r.ic(9,9,t.mark_price,t)," "),r.Cb(3),r.Rc(r.hc(12,12,t.instrument))}}function B(t,e){if(1&t&&(r.Ub(0,"th",41),r.Qc(1),r.gc(2,"translate"),r.Tb()),2&t){const t=r.fc();r.mc("sbDisabled",!t.displayTooltips)("sbDelay",r.qc(5,D)),r.Cb(1),r.Sc(" ",r.hc(2,3,"COLUMN.MARK")," ")}}function z(t,e){if(1&t&&(r.Ub(0,"td",38),r.Ub(1,"span",40),r.Qc(2),r.gc(3,"sato"),r.Tb(),r.Ub(4,"span",36),r.Qc(5),r.gc(6,"quote"),r.Tb(),r.Tb()),2&t){const t=e.$implicit;r.Cb(2),r.Rc(r.ic(3,2,t.mark_price,t)),r.Cb(3),r.Rc(r.hc(6,5,t.instrument))}}function V(t,e){if(1&t&&(r.Ub(0,"th",33),r.Ub(1,"span",42),r.Qc(2),r.gc(3,"translate"),r.Tb(),r.Pb(4,"liq-price-faq"),r.Tb()),2&t){const t=r.fc();r.Cb(1),r.mc("sbDisabled",!t.displayTooltips)("sbDelay",r.qc(5,D)),r.Cb(1),r.Sc(" ",r.hc(3,3,"COLUMN.EST_LIQ_PRICE")," ")}}function $(t,e){if(1&t&&(r.Sb(0),r.Ub(1,"span",40),r.Qc(2),r.gc(3,"sato"),r.Tb(),r.Ub(4,"span",36),r.Qc(5),r.gc(6,"quote"),r.Tb(),r.Rb()),2&t){const t=r.fc().$implicit;r.Cb(2),r.Rc(r.ic(3,2,t.liquidation_threshold,t)),r.Cb(3),r.Rc(r.hc(6,5,t.instrument))}}function H(t,e){if(1&t&&(r.Ub(0,"span",45),r.Qc(1,"N/A"),r.Tb()),2&t){const t=r.fc(2);r.mc("sbDisabled",!t.displayTooltips)("sbDelay",r.qc(2,D))}}function q(t,e){if(1&t&&(r.Ub(0,"td",38),r.Oc(1,$,7,7,"ng-container",43),r.Oc(2,H,2,3,"ng-template",null,44,r.Pc),r.Tb()),2&t){const t=e.$implicit,n=r.Ac(3);r.Cb(1),r.mc("ngIf",t.liquidation_threshold>0)("ngIfElse",n)}}function Q(t,e){if(1&t&&(r.Ub(0,"th",46),r.Qc(1),r.gc(2,"translate"),r.Tb()),2&t){const t=r.fc();r.mc("sbDisabled",!t.displayTooltips)("sbDelay",r.qc(5,D)),r.Cb(1),r.Sc(" ",r.hc(2,3,"COLUMN.EFFECTIVE_LVG")," ")}}function W(t,e){if(1&t&&(r.Ub(0,"span",49),r.Qc(1),r.Tb()),2&t){const t=r.fc().$implicit,e=r.fc();r.Cb(1),r.Rc(e.lvg(t.leveragePref))}}function G(t,e){if(1&t){const t=r.Vb();r.Ub(0,"td",47),r.bc("click",(function(){r.Ec(t);const n=e.$implicit,i=r.fc();return i.selectTicker.emit({symbol:n.instrument,replaceUrl:!1}),i.viewLvgPrefs.emit({position:n})})),r.Qc(1),r.gc(2,"number"),r.Oc(3,W,2,1,"span",48),r.gc(4,"contractFamily"),r.Tb()}if(2&t){const t=e.$implicit;r.Cb(1),r.Sc(" ",r.ic(2,2,t.effective_leverage,"1.2-2"),"x "),r.Cb(2),r.mc("ngIf","mc"===r.hc(4,5,t.instrument))}}function Y(t,e){if(1&t&&(r.Ub(0,"th",50),r.Qc(1),r.gc(2,"translate"),r.Tb()),2&t){const t=r.fc();r.mc("sbDisabled",!t.displayTooltips)("sbDelay",r.qc(5,D)),r.Cb(1),r.Sc(" ",r.hc(2,3,"IM / MM")," ")}}function K(t,e){if(1&t&&(r.Ub(0,"td",38),r.Ub(1,"span",39),r.Qc(2),r.gc(3,"sato"),r.Ub(4,"span",36),r.Qc(5),r.gc(6,"asset"),r.Tb(),r.Tb(),r.Ub(7,"span",40),r.Qc(8),r.gc(9,"sato"),r.Ub(10,"span",36),r.Qc(11),r.gc(12,"asset"),r.Tb(),r.Tb(),r.Tb()),2&t){const t=e.$implicit;r.Cb(2),r.Sc(" ",r.jc(3,4,t.initial_margin,t.walletDisplayAsset,"full")," "),r.Cb(3),r.Rc(r.hc(6,8,t.walletDisplayAsset)),r.Cb(3),r.Sc(" ",r.jc(9,10,t.maintenance_margin,t.walletDisplayAsset,"full")," "),r.Cb(3),r.Rc(r.hc(12,14,t.walletDisplayAsset))}}function Z(t,e){if(1&t&&(r.Ub(0,"th",51),r.Qc(1),r.gc(2,"translate"),r.gc(3,"translate"),r.Tb()),2&t){const t=r.fc();r.mc("sbDisabled",!t.displayTooltips)("sbDelay",r.qc(8,D)),r.Cb(1),r.Tc(" ",r.hc(2,4,"COLUMN.PNL")," / ",r.hc(3,6,"COLUMN.ROE")," ")}}function X(t,e){if(1&t&&(r.Ub(0,"td",38),r.Ub(1,"span",52),r.Qc(2),r.gc(3,"sato"),r.Ub(4,"span",36),r.Qc(5),r.gc(6,"asset"),r.Tb(),r.Tb(),r.Ub(7,"span",52),r.Qc(8),r.gc(9,"percent"),r.Tb(),r.Tb()),2&t){const t=e.$implicit;r.Cb(1),r.mc("pnl",t.displayPnl),r.Cb(1),r.Sc(" ",r.jc(3,5,t.displayPnl,t.walletDisplayAsset,"full")," "),r.Cb(3),r.Rc(r.hc(6,9,t.walletDisplayAsset)),r.Cb(2),r.mc("pnl",t.return_on_equity),r.Cb(1),r.Sc(" ",r.ic(9,11,t.return_on_equity,"1.2-2")," ")}}function J(t,e){1&t&&r.Pb(0,"th",28)}function tt(t,e){if(1&t){const t=r.Vb();r.Sb(0),r.Ub(1,"div",53),r.bc("click",(function(e){r.Ec(t);const n=r.fc().$implicit,i=r.fc();return e.stopPropagation(),i.viewDetailed.emit({position:n})})),r.Pb(2,"fa-icon",56),r.gc(3,"translate"),r.Tb(),r.Ub(4,"div",57),r.bc("click",(function(e){r.Ec(t);const n=r.fc().$implicit,i=r.fc();return e.stopPropagation(),i.limitClose.emit({position:n})})),r.Pb(5,"fa-icon",58),r.gc(6,"translate"),r.Ub(7,"p"),r.Qc(8),r.gc(9,"translate"),r.Tb(),r.Tb(),r.Ub(10,"div",59),r.bc("click",(function(e){r.Ec(t);const n=r.fc().$implicit,i=r.fc();return e.stopPropagation(),i.marketClose.emit({position:n})})),r.Pb(11,"fa-icon",60),r.gc(12,"translate"),r.Ub(13,"p"),r.Qc(14),r.gc(15,"translate"),r.Tb(),r.Tb(),r.Rb()}2&t&&(r.Cb(2),r.mc("matTooltip",r.hc(3,5,"BUTTON.VIEW_MORE_DETAILS")),r.Cb(3),r.mc("matTooltip",r.hc(6,7,"DIALOG.CONFIRM_CLOSE_AT_PRICE.TITLE")),r.Cb(3),r.Rc(r.hc(9,9,"BUTTON.LIMIT")),r.Cb(3),r.mc("matTooltip",r.hc(12,11,"DIALOG.CONFIRM_CLOSE_POSITION.TITLE")),r.Cb(3),r.Rc(r.hc(15,13,"BUTTON.MKT_CLOSE")))}function et(t,e){if(1&t){const t=r.Vb();r.Ub(0,"td",29),r.Ub(1,"div",53),r.bc("click",(function(n){r.Ec(t);const i=e.$implicit,s=r.fc();return n.stopPropagation(),s.sharePosition.emit({position:i})})),r.Pb(2,"fa-icon",54),r.gc(3,"translate"),r.Tb(),r.Oc(4,tt,16,15,"ng-container",55),r.Tb()}if(2&t){const t=r.fc();r.Cb(2),r.mc("matTooltip",r.hc(3,2,"BUTTON.SHARE")),r.Cb(2),r.mc("ngIf",!t.flexOnly)}}const nt=function(){return{small:100,medium:400,large:800}},it=(t,e)=>{const n={symbol:t.instrument,size:t.balance,liq_price:t.liquidation_threshold,profit_loss:t.pnl};return e in n?n[e]:t[e]};let rt=(()=>{let t=class{constructor(t){this.env=t,this.tableColumns=["icon","symbol","size","entry_price","liq_price","effective_leverage","im","profit_loss","position_actions"],this.tableData=new o.k([]),this.flexOnly=!1,this.selectTicker=new r.o,this.marketClose=new r.o,this.limitClose=new r.o,this.viewDetailed=new r.o,this.sharePosition=new r.o,this.viewLvgPrefs=new r.o}ngOnInit(){this.tableData.sortingDataAccessor=it}ngAfterViewInit(){this.tableSort.first&&(this.tableData.sort=this.tableSort.first),this.tableSort.changes.pipe(Object(a.b)(this)).subscribe(t=>{t.first&&(this.tableData.sort=t.first)})}ngOnChanges({positions:t}){t&&(this.tableData.data=t.currentValue)}trackByInstrumentSymbol(t,e){return e.instrument}lvg(t){return(null==t?void 0:t.cross)?"CROSS":"ISOLATED"}get liqPriceFaq(){return"kraken"===this.env.platform?"https://support.kraken.com/hc/en-us/articles/4402283092244-Liquidation-FAQ":"https://support.cryptofacilities.com/hc/en-us/articles/4402649576337-Liquidation-FAQ"}};return t.\u0275fac=function(e){return new(e||t)(r.Ob(c.a))},t.\u0275cmp=r.Ib({type:t,selectors:[["open-positions-desktop"]],viewQuery:function(t,e){var n;1&t&&r.Wc(s.a,!0),2&t&&r.zc(n=r.cc())&&(e.tableSort=n)},inputs:{positions:"positions",displayTooltips:"displayTooltips",flexOnly:"flexOnly"},outputs:{selectTicker:"selectTicker",marketClose:"marketClose",limitClose:"limitClose",viewDetailed:"viewDetailed",sharePosition:"sharePosition",viewLvgPrefs:"viewLvgPrefs"},features:[r.Ab],decls:33,vars:9,consts:[["breakpoint","","mat-table","","matSort","",3,"breakpoints","dataSource","trackBy"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",3,"click",4,"matRowDef","matRowDefColumns"],["matColumnDef","icon"],["mat-header-cell","",4,"matHeaderCellDef"],["body","","mat-cell","",4,"matCellDef"],["matColumnDef","symbol"],["mat-header-cell","","mat-sort-header","","tooltip","","sbTooltip","TOOLTIP.OPEN_POSITIONS.MARKET",3,"sbDisabled","sbDelay",4,"matHeaderCellDef"],["class","block-cell","mat-cell","","body","",4,"matCellDef"],["matColumnDef","size"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","block-cell","mat-cell","","body","","mono","",4,"matCellDef"],["matColumnDef","entry_price"],["mat-header-cell","","mat-sort-header","","tooltip","","sbTooltip","TOOLTIP.ENTRY_AND_MARK",3,"sbDisabled","sbDelay",4,"matHeaderCellDef"],["class","block-cell","body","","mono","","mat-cell","",4,"matCellDef"],["matColumnDef","mark_price"],["mat-header-cell","","mat-sort-header","","tooltip","","sbTooltip","TOOLTIP.MARK_PRICE",3,"sbDisabled","sbDelay",4,"matHeaderCellDef"],["matColumnDef","liq_price"],["matColumnDef","effective_leverage"],["mat-header-cell","","mat-sort-header","","tooltip","","sbTooltip","TOOLTIP.EFFECTIVE_LVG",3,"sbDisabled","sbDelay",4,"matHeaderCellDef"],["body","","mono","","mat-cell","",3,"click",4,"matCellDef"],["matColumnDef","im"],["mat-header-cell","","mat-sort-header","","tooltip","","sbTooltip","TOOLTIP.IM_MM",3,"sbDisabled","sbDelay",4,"matHeaderCellDef"],["matColumnDef","profit_loss"],["mat-header-cell","","mat-sort-header","","tooltip","","sbTooltip","TOOLTIP.PNL_ROE",3,"sbDisabled","sbDelay",4,"matHeaderCellDef"],["matColumnDef","position_actions"],["mat-header-row",""],["mat-row","",3,"click"],["mat-header-cell",""],["body","","mat-cell",""],[3,"base"],["mat-header-cell","","mat-sort-header","","tooltip","","sbTooltip","TOOLTIP.OPEN_POSITIONS.MARKET",3,"sbDisabled","sbDelay"],["mat-cell","","body","",1,"block-cell"],["mat-header-cell","","mat-sort-header",""],["mat-cell","","body","","mono","",1,"block-cell"],[3,"content","showZeros"],["ghost",""],["mat-header-cell","","mat-sort-header","","tooltip","","sbTooltip","TOOLTIP.ENTRY_AND_MARK",3,"sbDisabled","sbDelay"],["body","","mono","","mat-cell","",1,"block-cell"],["mono","","bold",""],["mono",""],["mat-header-cell","","mat-sort-header","","tooltip","","sbTooltip","TOOLTIP.MARK_PRICE",3,"sbDisabled","sbDelay"],["tooltip","","sbTooltip","TOOLTIP.LIQ_PRICE",3,"sbDisabled","sbDelay"],[4,"ngIf","ngIfElse"],["naLiq",""],["tooltip","","sbTooltip","TOOLTIP.NA_LIQ_PRICE",3,"sbDisabled","sbDelay"],["mat-header-cell","","mat-sort-header","","tooltip","","sbTooltip","TOOLTIP.EFFECTIVE_LVG",3,"sbDisabled","sbDelay"],["body","","mono","","mat-cell","",3,"click"],["class","lvg-pref",4,"ngIf"],[1,"lvg-pref"],["mat-header-cell","","mat-sort-header","","tooltip","","sbTooltip","TOOLTIP.IM_MM",3,"sbDisabled","sbDelay"],["mat-header-cell","","mat-sort-header","","tooltip","","sbTooltip","TOOLTIP.PNL_ROE",3,"sbDisabled","sbDelay"],["pnlZero","",3,"pnl"],[1,"info-button",3,"click"],["icon","share-ios","size","lg",3,"matTooltip"],[4,"ngIf"],["icon","file","size","lg",3,"matTooltip"],[1,"limit-button",3,"click"],["primary","","icon","close-position","size","lg",3,"matTooltip"],[1,"market-button",3,"click"],["primary","","icon","circle-minus","size","lg",3,"matTooltip"]],template:function(t,e){1&t&&(r.Ub(0,"table",0),r.Oc(1,P,1,0,"tr",1),r.Oc(2,A,1,0,"tr",2),r.Sb(3,3),r.Oc(4,I,1,0,"th",4),r.Oc(5,M,3,3,"td",5),r.Rb(),r.Sb(6,6),r.Oc(7,R,3,6,"th",7),r.Oc(8,j,10,14,"td",8),r.Rb(),r.Sb(9,9),r.Oc(10,L,3,3,"th",10),r.Oc(11,N,10,12,"td",11),r.Rb(),r.Sb(12,12),r.Oc(13,U,4,9,"th",13),r.Oc(14,F,13,14,"td",14),r.Rb(),r.Sb(15,15),r.Oc(16,B,3,6,"th",16),r.Oc(17,z,7,7,"td",14),r.Rb(),r.Sb(18,17),r.Oc(19,V,5,6,"th",10),r.Oc(20,q,4,2,"td",14),r.Rb(),r.Sb(21,18),r.Oc(22,Q,3,6,"th",19),r.Oc(23,G,5,7,"td",20),r.Rb(),r.Sb(24,21),r.Oc(25,Y,3,6,"th",22),r.Oc(26,K,13,16,"td",14),r.Rb(),r.Sb(27,23),r.Oc(28,Z,4,9,"th",24),r.Oc(29,X,10,14,"td",14),r.Rb(),r.Sb(30,25),r.Oc(31,J,1,0,"th",4),r.Oc(32,et,5,4,"td",5),r.Rb(),r.Tb()),2&t&&(r.Gb("flex-only",e.flexOnly),r.mc("breakpoints",r.qc(8,nt))("dataSource",e.tableData)("trackBy",e.trackByInstrumentSymbol),r.Cb(1),r.mc("matHeaderRowDef",e.tableColumns)("matHeaderRowDefSticky",!0),r.Cb(1),r.mc("matRowDefColumns",e.tableColumns))},directives:[o.j,l.a,s.a,o.g,o.i,o.c,o.e,o.b,o.f,o.h,o.d,o.a,u.a,h.a,s.b,d.a,p.a,f.a,b.a,g.a,m.a,v.a,_.a,y.a,O.n,C.a,w.b,T.a],pipes:[S.a,k.d,S.e,O.x,S.c,S.d,E.a,x.c,S.f,O.f,O.u],styles:["market-icon[_ngcontent-%COMP%]{font-size:20px}table[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%]{height:calc(var(--table-row-height) + var(--spacing))!important}table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]:last-of-type, table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]:last-of-type{text-align:right}.block-cell[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:block;line-height:1.25em}.actions-header[_ngcontent-%COMP%]{cursor:pointer}.actions-header[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{display:inline}.actions-header[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{color:var(--warn-colour);margin-right:var(--spacing-s)}.actions-header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--warn-colour);text-transform:capitalize!important}.cancel-button[_ngcontent-%COMP%], .copy-button[_ngcontent-%COMP%], .edit-button[_ngcontent-%COMP%], .info-button[_ngcontent-%COMP%], .limit-button[_ngcontent-%COMP%], .market-button[_ngcontent-%COMP%]{cursor:pointer;display:inline-block}.cancel-button[_ngcontent-%COMP%] > *[_ngcontent-%COMP%], .copy-button[_ngcontent-%COMP%] > *[_ngcontent-%COMP%], .edit-button[_ngcontent-%COMP%] > *[_ngcontent-%COMP%], .info-button[_ngcontent-%COMP%] > *[_ngcontent-%COMP%], .limit-button[_ngcontent-%COMP%] > *[_ngcontent-%COMP%], .market-button[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{display:inline}.cancel-button[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .copy-button[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .edit-button[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .info-button[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .limit-button[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .market-button[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding-left:var(--spacing-s)}.copy-button[_ngcontent-%COMP%], .edit-button[_ngcontent-%COMP%], .info-button[_ngcontent-%COMP%], .limit-button[_ngcontent-%COMP%], .market-button[_ngcontent-%COMP%]{margin-right:var(--spacing)}.copy-button[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%], .edit-button[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%], .info-button[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%], .limit-button[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%], .market-button[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{color:var(--brand)}.cancel-button[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{color:var(--warn-colour)}.cancel-all-button[_ngcontent-%COMP%]{cursor:pointer}.cancel-all-button[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{display:inline}.cancel-all-button[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{color:var(--warn-colour);margin-right:var(--spacing-s)}.cancel-all-button[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--warn-colour);text-transform:capitalize!important}table[breakpoint=medium][_ngcontent-%COMP%] .info-button[_ngcontent-%COMP%] p[_ngcontent-%COMP%], table[breakpoint=medium][_ngcontent-%COMP%] .limit-button[_ngcontent-%COMP%] p[_ngcontent-%COMP%], table[breakpoint=medium][_ngcontent-%COMP%] .market-button[_ngcontent-%COMP%] p[_ngcontent-%COMP%], table[breakpoint=medium][_ngcontent-%COMP%] .mat-column-change[_ngcontent-%COMP%], table[breakpoint=medium][_ngcontent-%COMP%] .mat-column-effective_leverage[_ngcontent-%COMP%], table[breakpoint=medium][_ngcontent-%COMP%] market-icon[_ngcontent-%COMP%]{display:none}table.flex-only[_ngcontent-%COMP%] market-icon[_ngcontent-%COMP%]{font-size:24px}table.flex-only[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:var(--spacing-s) 0;font-size:14px}table[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%]{cursor:pointer}table[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%]:hover{background:var(--table-row-alt)}.lvg-pref[_ngcontent-%COMP%]{background:var(--form-input-colour);padding:var(--spacing-xs);border-radius:var(--bdrs)}"],changeDetection:0}),t=Object(i.d)([Object(a.a)()],t),t})()},nmFE:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("q+cW"),r=n("9U7V"),s=n("nB6u"),o=n("oznm");e.default=function(){function t(e){var n=e.getHeight();if(n<8||n>144||0!=(1&n))throw new s.default;this.version=t.readVersion(e),this.mappingBitMatrix=this.extractDataRegion(e),this.readMappingMatrix=new i.default(this.mappingBitMatrix.getWidth(),this.mappingBitMatrix.getHeight())}return t.prototype.getVersion=function(){return this.version},t.readVersion=function(t){var e=t.getHeight(),n=t.getWidth();return r.default.getVersionForDimensions(e,n)},t.prototype.readCodewords=function(){var t=new Int8Array(this.version.getTotalCodewords()),e=0,n=4,i=0,r=this.mappingBitMatrix.getHeight(),o=this.mappingBitMatrix.getWidth(),a=!1,c=!1,l=!1,u=!1;do{if(n!==r||0!==i||a)if(n!==r-2||0!==i||0==(3&o)||c)if(n!==r+4||2!==i||0!=(7&o)||l)if(n!==r-2||0!==i||4!=(7&o)||u){do{n=0&&!this.readMappingMatrix.get(i,n)&&(t[e++]=255&this.readUtah(n,i,r,o)),n-=2,i+=2}while(n>=0&&i=0&&i=0);n+=3,i+=1}else t[e++]=255&this.readCorner4(r,o),n-=2,i+=2,u=!0;else t[e++]=255&this.readCorner3(r,o),n-=2,i+=2,l=!0;else t[e++]=255&this.readCorner2(r,o),n-=2,i+=2,c=!0;else t[e++]=255&this.readCorner1(r,o),n-=2,i+=2,a=!0}while(n{class t{constructor(t,e){this.host=t,this.el=e,this.eventName="click"}ngOnInit(){a("found trigger",this.receiver)}ngAfterViewInit(){this.handler=this.fire.bind(this),this.el.nativeElement.addEventListener(this.eventName,this.handler,{passive:!0})}ngOnDestroy(){this.el.nativeElement.removeEventListener(this.eventName,this.handler)}fire(t){o("squeezing trigger on",this.receiver),this.receiver.onTrigger({trigger:{vcr:this.host},event:t,data:this.data})}}return t.\u0275fac=function(e){return new(e||t)(s.Ob(s.R),s.Ob(s.l))},t.\u0275dir=s.Jb({type:t,selectors:[["","sbTriggerFor",""]],inputs:{receiver:["sbTriggerFor","receiver"],eventName:["sbTriggerEvent","eventName"],data:["sbTriggerData","data"]},exportAs:["sbTrigger"]}),t})()},o7Rf:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("SnIc"),r=n("lcP6"),s=n("KZGf"),o=n("3xzP"),a=n("Nhx6"),c=n("nB6u"),l=n("FoZF"),u=function(t){return t[t.PAD_ENCODE=0]="PAD_ENCODE",t[t.ASCII_ENCODE=1]="ASCII_ENCODE",t[t.C40_ENCODE=2]="C40_ENCODE",t[t.TEXT_ENCODE=3]="TEXT_ENCODE",t[t.ANSIX12_ENCODE=4]="ANSIX12_ENCODE",t[t.EDIFACT_ENCODE=5]="EDIFACT_ENCODE",t[t.BASE256_ENCODE=6]="BASE256_ENCODE",t}({});e.default=function(){function t(){}return t.decode=function(t){var e=new r.default(t),n=new s.default,o=new s.default,a=new Array,l=u.ASCII_ENCODE;do{if(l===u.ASCII_ENCODE)l=this.decodeAsciiSegment(e,n,o);else{switch(l){case u.C40_ENCODE:this.decodeC40Segment(e,n);break;case u.TEXT_ENCODE:this.decodeTextSegment(e,n);break;case u.ANSIX12_ENCODE:this.decodeAnsiX12Segment(e,n);break;case u.EDIFACT_ENCODE:this.decodeEdifactSegment(e,n);break;case u.BASE256_ENCODE:this.decodeBase256Segment(e,n,a);break;default:throw new c.default}l=u.ASCII_ENCODE}}while(l!==u.PAD_ENCODE&&e.available()>0);return o.length()>0&&n.append(o.toString()),new i.default(t,n.toString(),0===a.length?null:a,null)},t.decodeAsciiSegment=function(t,e,n){var i=!1;do{var r=t.readBits(8);if(0===r)throw new c.default;if(r<=128)return i&&(r+=128),e.append(String.fromCharCode(r-1)),u.ASCII_ENCODE;if(129===r)return u.PAD_ENCODE;if(r<=229){var s=r-130;s<10&&e.append("0"),e.append(""+s)}else switch(r){case 230:return u.C40_ENCODE;case 231:return u.BASE256_ENCODE;case 232:e.append(String.fromCharCode(29));break;case 233:case 234:break;case 235:i=!0;break;case 236:e.append("[)>\x1e05\x1d"),n.insert(0,"\x1e\x04");break;case 237:e.append("[)>\x1e06\x1d"),n.insert(0,"\x1e\x04");break;case 238:return u.ANSIX12_ENCODE;case 239:return u.TEXT_ENCODE;case 240:return u.EDIFACT_ENCODE;case 241:break;default:if(254!==r||0!==t.available())throw new c.default}}while(t.available()>0);return u.ASCII_ENCODE},t.decodeC40Segment=function(t,e){var n=!1,i=[],r=0;do{if(8===t.available())return;var s=t.readBits(8);if(254===s)return;this.parseTwoBytes(s,t.readBits(8),i);for(var o=0;o<3;o++){var a=i[o];switch(r){case 0:if(a<3)r=a+1;else{if(!(a0)},t.decodeTextSegment=function(t,e){var n=!1,i=[],r=0;do{if(8===t.available())return;var s=t.readBits(8);if(254===s)return;this.parseTwoBytes(s,t.readBits(8),i);for(var o=0;o<3;o++){var a=i[o];switch(r){case 0:if(a<3)r=a+1;else{if(!(a0)},t.decodeAnsiX12Segment=function(t,e){var n=[];do{if(8===t.available())return;var i=t.readBits(8);if(254===i)return;this.parseTwoBytes(i,t.readBits(8),n);for(var r=0;r<3;r++){var s=n[r];switch(s){case 0:e.append("\r");break;case 1:e.append("*");break;case 2:e.append(">");break;case 3:e.append(" ");break;default:if(s<14)e.append(String.fromCharCode(s+44));else{if(!(s<40))throw new c.default;e.append(String.fromCharCode(s+51))}}}}while(t.available()>0)},t.parseTwoBytes=function(t,e,n){var i=(t<<8)+e-1,r=Math.floor(i/1600);n[0]=r,i-=1600*r,r=Math.floor(i/40),n[1]=r,n[2]=i-40*r},t.decodeEdifactSegment=function(t,e){do{if(t.available()<=16)return;for(var n=0;n<4;n++){var i=t.readBits(6);if(31===i){var r=8-t.getBitOffset();return void(8!==r&&t.readBits(r))}0==(32&i)&&(i|=64),e.append(String.fromCharCode(i))}}while(t.available()>0)},t.decodeBase256Segment=function(t,e,n){var i,r=1+t.getByteOffset(),s=this.unrandomize255State(t.readBits(8),r++);if((i=0===s?t.available()/8|0:s<250?s:250*(s-249)+this.unrandomize255State(t.readBits(8),r++))<0)throw new c.default;for(var u=new Uint8Array(i),h=0;h=0?n:n+256},t.C40_BASIC_SET_CHARS=["*","*","*"," ","0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],t.C40_SHIFT2_SET_CHARS=["!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","@","[","\\","]","^","_"],t.TEXT_BASIC_SET_CHARS=["*","*","*"," ","0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],t.TEXT_SHIFT2_SET_CHARS=t.C40_SHIFT2_SET_CHARS,t.TEXT_SHIFT3_SET_CHARS=["`","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","{","|","}","~",String.fromCharCode(127)],t}()},o8en:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){function t(t,e){this.count=t,this.dataCodewords=e}return t.prototype.getCount=function(){return this.count},t.prototype.getDataCodewords=function(){return this.dataCodewords},t}()},oCyE:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("vI0g"),r=n("YwYi"),s=n("uQul"),o=n("FoZF");e.default=function(){function t(t){this.field=t}return t.prototype.decode=function(t,e){for(var n=this.field,o=new r.default(n,t),a=new Int32Array(e),c=!0,l=0;l=(n/2|0);){var h=a,d=l;if(l=u,(a=c).isZero())throw new s.default("r_{i-1} was zero");c=h;for(var p=r.getZero(),f=a.getCoefficient(a.getDegree()),b=r.inverse(f);c.getDegree()>=a.getDegree()&&!c.isZero();){var g=c.getDegree()-a.getDegree(),m=r.multiply(c.getCoefficient(c.getDegree()),b);p=p.addOrSubtract(r.buildMonomial(g,m)),c=c.addOrSubtract(a.multiplyByMonomial(g,m))}if(u=p.multiply(l).addOrSubtract(d),c.getDegree()>=a.getDegree())throw new o.default("Division algorithm failed to reduce polynomial?")}var v=u.getCoefficient(0);if(0===v)throw new s.default("sigmaTilde(0) was zero");var _=r.inverse(v);return[u.multiplyScalar(_),c.multiplyScalar(_)]},t.prototype.findErrorLocations=function(t){var e=t.getDegree();if(1===e)return Int32Array.from([t.getCoefficient(1)]);for(var n=new Int32Array(e),i=0,r=this.field,o=1;or.lift(new v(t,e,n,i))}class v{constructor(t,e,n,i){this.keySelector=t,this.elementSelector=e,this.durationSelector=n,this.subjectSelector=i}call(t,e){return e.subscribe(new _(t,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))}}class _ extends c.a{constructor(t,e,n,i,r){super(t),this.keySelector=e,this.elementSelector=n,this.durationSelector=i,this.subjectSelector=r,this.groups=null,this.attemptedToUnsubscribe=!1,this.count=0}_next(t){let e;try{e=this.keySelector(t)}catch(n){return void this.error(n)}this._group(t,e)}_group(t,e){let n=this.groups;n||(n=this.groups=new Map);let i,r=n.get(e);if(this.elementSelector)try{i=this.elementSelector(t)}catch(s){this.error(s)}else i=t;if(!r){r=this.subjectSelector?this.subjectSelector():new o.b,n.set(e,r);const t=new O(e,r,this);if(this.destination.next(t),this.durationSelector){let t;try{t=this.durationSelector(new O(e,r))}catch(s){return void this.error(s)}this.add(t.subscribe(new y(e,r,this)))}}r.closed||r.next(i)}_error(t){const e=this.groups;e&&(e.forEach((e,n)=>{e.error(t)}),e.clear()),this.destination.error(t)}_complete(){const t=this.groups;t&&(t.forEach((t,e)=>{t.complete()}),t.clear()),this.destination.complete()}removeGroup(t){this.groups.delete(t)}unsubscribe(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&super.unsubscribe())}}class y extends c.a{constructor(t,e,n){super(e),this.key=t,this.group=e,this.parent=n}_next(t){this.complete()}_unsubscribe(){const{parent:t,key:e}=this;this.key=this.parent=null,t&&t.removeGroup(e)}}class O extends s.a{constructor(t,e,n){super(),this.key=t,this.groupSubject=e,this.refCountSubscription=n}_subscribe(t){const e=new g.a,{refCountSubscription:n,groupSubject:i}=this;return n&&!n.closed&&e.add(new C(n)),e.add(i.subscribe(t)),e}}class C extends g.a{constructor(t){super(),this.parent=t,t.count++}unsubscribe(){const t=this.parent;t.closed||this.closed||(super.unsubscribe(),t.count-=1,0===t.count&&t.attemptedToUnsubscribe&&t.unsubscribe())}}var w=n("cJ9h"),T=n("GoAz"),S=n("uCWR");class k{constructor(t){this.project=t}call(t,e){return e.subscribe(new E(t,this.project))}}class E extends S.b{constructor(t,e){super(t),this.project=e,this.hasSubscription=!1,this.hasCompleted=!1,this.index=0}_next(t){this.hasSubscription||this.tryNext(t)}tryNext(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this.hasSubscription=!0,this._innerSub(e)}_innerSub(t){const e=new S.a(this),n=this.destination;n.add(e);const i=Object(S.c)(t,e);i!==e&&n.add(i)}_complete(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()}notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}class x{call(t,e){return e.subscribe(new P(t))}}class P extends c.a{constructor(t){super(t)}_next(t){t.observe(this.destination)}}var A=n("J+dc"),I=(n("5uDM"),n("ruxD"),n("kZht"));const M={dispatch:!0,useEffectsErrorHandler:!0};function D(t,e){const n=t(),i=Object.assign(Object.assign({},M),e);return Object.defineProperty(n,"__@ngrx/effects_create__",{value:i}),n}function R(t){return Object.getOwnPropertyNames(t).filter(e=>t[e]&&t[e].hasOwnProperty("__@ngrx/effects_create__")).map(e=>Object.assign({propertyName:e},t[e]["__@ngrx/effects_create__"]))}function j(t){return Object.getPrototypeOf(t)}function L(t){return Object(i.f)(N,j)(t)}function N(t){return function(t){return t.constructor.hasOwnProperty("__@ngrx/effects__")}(t)?t.constructor["__@ngrx/effects__"]:[]}function U(t,e,n=10){return t.pipe(Object(f.a)(i=>(e&&e.handleError(i),n<=1?t:U(t,e,n-1))))}let F=(()=>{class t extends s.a{constructor(t){super(),t&&(this.source=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}}return t.\u0275fac=function(e){return new(e||t)(I.Yb(i.a))},t.\u0275prov=I.Kb({token:t,factory:t.\u0275fac}),t})();function B(...t){return Object(b.a)(e=>t.some(t=>"string"==typeof t?t===e.type:t.type===e.type))}function z(t){return V(t,"ngrxOnInitEffects")}function V(t,e){return t&&e in t&&"function"==typeof t[e]}const $=new I.s("@ngrx/effects Internal Root Guard"),H=new I.s("ngrx/effects: User Provided Effects"),q=new I.s("ngrx/effects: Internal Root Effects"),Q=new I.s("ngrx/effects: Root Effects"),W=new I.s("ngrx/effects: Internal Feature Effects"),G=new I.s("ngrx/effects: Feature Effects"),Y=new I.s("ngrx/effects: Effects Error Handler");let K=(()=>{class t extends o.b{constructor(t,e){super(),this.errorHandler=t,this.effectsErrorHandler=e}addEffects(t){this.next(t)}toActions(){return this.pipe(m(j),Object(w.a)(t=>t.pipe(m(Z))),Object(w.a)(t=>{const e=t.pipe(function t(e,n){return n?i=>i.pipe(t((t,i)=>Object(T.a)(e(t,i)).pipe(Object(p.a)((e,r)=>n(t,e,i,r))))):t=>t.lift(new k(e))}(t=>{return(e=this.errorHandler,n=this.effectsErrorHandler,t=>{const i=function(t,e,n){const i=j(t).constructor.name,s=(o=t,[L,R].reduce((t,e)=>t.concat(e(o)),[])).map(({propertyName:r,dispatch:s,useEffectsErrorHandler:o})=>{const a="function"==typeof t[r]?t[r]():t[r],c=o?n(a,e):a;return!1===s?c.pipe((function(t){return t.lift(new l)})):c.pipe((function(t){return t.lift(new h)})).pipe(Object(p.a)(e=>({effect:t[r],notification:e,propertyName:r,sourceName:i,sourceInstance:t})))});var o;return Object(r.a)(...s)}(t,e,n);return V(t,"ngrxOnRunEffects")?t.ngrxOnRunEffects(i):i})(t);var e,n}),Object(p.a)(t=>(function(t,e){if("N"===t.notification.kind){const n=t.notification.value;!function(t){return"function"!=typeof t&&t&&t.type&&"string"==typeof t.type}(n)&&e.handleError(new Error(`Effect ${function({propertyName:t,sourceInstance:e,sourceName:n}){const i="function"==typeof e[t];return`"${n}.${String(t)}${i?"()":""}"`}(t)} dispatched an invalid action: ${function(t){try{return JSON.stringify(t)}catch(e){return t}}(n)}`))}}(t,this.errorHandler),t.notification)),Object(b.a)(t=>"N"===t.kind),(function(t){return t.lift(new x)})),n=t.pipe(Object(A.a)(1),Object(b.a)(z),Object(p.a)(t=>t.ngrxOnInitEffects()));return Object(r.a)(e,n)}))}}return t.\u0275fac=function(e){return new(e||t)(I.Yb(I.n),I.Yb(Y))},t.\u0275prov=I.Kb({token:t,factory:t.\u0275fac}),t})();function Z(t){return V(t,"ngrxOnIdentifyEffects")?t.ngrxOnIdentifyEffects():""}let X=(()=>{class t{constructor(t,e){this.effectSources=t,this.store=e,this.effectsSubscription=null}start(){this.effectsSubscription||(this.effectsSubscription=this.effectSources.toActions().subscribe(this.store))}ngOnDestroy(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(I.Yb(K),I.Yb(i.b))},t.\u0275prov=I.Kb({token:t,factory:t.\u0275fac}),t})();const J="@ngrx/effects/init";let tt=(()=>{class t{constructor(t,e,n,i,r,s,o){this.sources=t,e.start(),i.forEach(e=>t.addEffects(e)),n.dispatch({type:J})}addEffects(t){this.sources.addEffects(t)}}return t.\u0275mod=I.Mb({type:t}),t.\u0275inj=I.Lb({factory:function(e){return new(e||t)(I.Yb(K),I.Yb(X),I.Yb(i.b),I.Yb(Q),I.Yb(i.e,8),I.Yb(i.c,8),I.Yb($,8))}}),t})(),et=(()=>{class t{constructor(t,e,n,i){e.forEach(e=>e.forEach(e=>t.addEffects(e)))}}return t.\u0275mod=I.Mb({type:t}),t.\u0275inj=I.Lb({factory:function(e){return new(e||t)(I.Yb(tt),I.Yb(G),I.Yb(i.e,8),I.Yb(i.c,8))}}),t})(),nt=(()=>{class t{static forFeature(t=[]){return{ngModule:et,providers:[t,{provide:W,multi:!0,useValue:t},{provide:H,multi:!0,useValue:[]},{provide:G,multi:!0,useFactory:it,deps:[I.t,W,H]}]}}static forRoot(t=[]){return{ngModule:tt,providers:[{provide:$,useFactory:rt,deps:[[X,new I.C,new I.L]]},{provide:Y,useValue:U},X,K,F,t,{provide:q,useValue:[t]},{provide:H,multi:!0,useValue:[]},{provide:Q,useFactory:it,deps:[I.t,q,H]}]}}}return t.\u0275mod=I.Mb({type:t}),t.\u0275inj=I.Lb({factory:function(e){return new(e||t)}}),t})();function it(t,e,n){const i=[];for(let r of e)i.push(...r);for(let r of n)i.push(...r);return function(t,e){return e.map(e=>t.get(e))}(t,i)}function rt(t){if(t)throw new TypeError("EffectsModule.forRoot() called twice. Feature modules should use EffectsModule.forFeature() instead.");return"guarded"}},og7C:function(t,e,n){"use strict";n.d(e,"e",(function(){return U})),n.d(e,"b",(function(){return de})),n.d(e,"c",(function(){return Ye})),n.d(e,"a",(function(){return je})),n.d(e,"f",(function(){return hn})),n.d(e,"d",(function(){return vn})),n.d(e,"g",(function(){return _n})),n.d(e,"h",(function(){return ee})),n.d(e,"i",(function(){return Qt}));var i={};function r(t){t&&(t.value=!0)}function s(){}function o(t){return void 0===t.size&&(t.size=t.__iterate(c)),t.size}function a(t,e){if("number"!=typeof e){var n=e>>>0;if(""+n!==e||4294967295===n)return NaN;e=n}return e<0?o(t)+e:e}function c(){return!0}function l(t,e,n){return(0===t&&!p(t)||void 0!==n&&t<=-n)&&(void 0===e||void 0!==n&&e>=n)}function u(t,e){return d(t,e,0)}function h(t,e){return d(t,e,e)}function d(t,e,n){return void 0===t?n:p(t)?e===1/0?e:0|Math.max(0,e+t):void 0===e||e===t?t:0|Math.min(e,t)}function p(t){return t<0||0===t&&1/t==-1/0}function f(t){return Boolean(t&&t["@@__IMMUTABLE_ITERABLE__@@"])}function b(t){return Boolean(t&&t["@@__IMMUTABLE_KEYED__@@"])}function g(t){return Boolean(t&&t["@@__IMMUTABLE_INDEXED__@@"])}function m(t){return b(t)||g(t)}var v=function(t){return f(t)?t:U(t)},_=function(t){function e(t){return b(t)?t:F(t)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e}(v),y=function(t){function e(t){return g(t)?t:B(t)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e}(v),O=function(t){function e(t){return f(t)&&!m(t)?t:z(t)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e}(v);function C(t){return Boolean(t&&t["@@__IMMUTABLE_SEQ__@@"])}function w(t){return Boolean(t&&t["@@__IMMUTABLE_RECORD__@@"])}function T(t){return f(t)||w(t)}v.Keyed=_,v.Indexed=y,v.Set=O;var S="@@__IMMUTABLE_ORDERED__@@";function k(t){return Boolean(t&&t[S])}var E="function"==typeof Symbol&&Symbol.iterator,x=E||"@@iterator",P=function(t){this.next=t};function A(t,e,n,i){var r=0===t?e:1===t?n:[e,n];return i?i.value=r:i={value:r,done:!1},i}function I(){return{value:void 0,done:!0}}function M(t){return!!j(t)}function D(t){return t&&"function"==typeof t.next}function R(t){var e=j(t);return e&&e.call(t)}function j(t){var e=t&&(E&&t[E]||t["@@iterator"]);if("function"==typeof e)return e}P.prototype.toString=function(){return"[Iterator]"},P.KEYS=0,P.VALUES=1,P.ENTRIES=2,P.prototype.inspect=P.prototype.toSource=function(){return this.toString()},P.prototype[x]=function(){return this};var L=Object.prototype.hasOwnProperty;function N(t){return!(!Array.isArray(t)&&"string"!=typeof t)||t&&"object"==typeof t&&Number.isInteger(t.length)&&t.length>=0&&(0===t.length?1===Object.keys(t).length:t.hasOwnProperty(t.length-1))}var U=function(t){function e(t){return null==t?Q():T(t)?t.toSeq():function(t){var e=Y(t);if(e)return e;if("object"==typeof t)return new $(t);throw new TypeError("Expected Array or collection object of values, or keyed object: "+t)}(t)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.toSeq=function(){return this},e.prototype.toString=function(){return this.__toString("Seq {","}")},e.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},e.prototype.__iterate=function(t,e){var n=this._cache;if(n){for(var i=n.length,r=0;r!==i;){var s=n[e?i-++r:r++];if(!1===t(s[1],s[0],this))break}return r}return this.__iterateUncached(t,e)},e.prototype.__iterator=function(t,e){var n=this._cache;if(n){var i=n.length,r=0;return new P((function(){if(r===i)return{value:void 0,done:!0};var s=n[e?i-++r:r++];return A(t,s[0],s[1])}))}return this.__iteratorUncached(t,e)},e}(v),F=function(t){function e(t){return null==t?Q().toKeyedSeq():f(t)?b(t)?t.toSeq():t.fromEntrySeq():w(t)?t.toSeq():W(t)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.toKeyedSeq=function(){return this},e}(U),B=function(t){function e(t){return null==t?Q():f(t)?b(t)?t.entrySeq():t.toIndexedSeq():w(t)?t.toSeq().entrySeq():G(t)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.of=function(){return e(arguments)},e.prototype.toIndexedSeq=function(){return this},e.prototype.toString=function(){return this.__toString("Seq [","]")},e}(U),z=function(t){function e(t){return(f(t)&&!m(t)?t:B(t)).toSetSeq()}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.of=function(){return e(arguments)},e.prototype.toSetSeq=function(){return this},e}(U);U.isSeq=C,U.Keyed=F,U.Set=z,U.Indexed=B,U.prototype["@@__IMMUTABLE_SEQ__@@"]=!0;var V=function(t){function e(t){this._array=t,this.size=t.length}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.get=function(t,e){return this.has(t)?this._array[a(this,t)]:e},e.prototype.__iterate=function(t,e){for(var n=this._array,i=n.length,r=0;r!==i;){var s=e?i-++r:r++;if(!1===t(n[s],s,this))break}return r},e.prototype.__iterator=function(t,e){var n=this._array,i=n.length,r=0;return new P((function(){if(r===i)return{value:void 0,done:!0};var s=e?i-++r:r++;return A(t,s,n[s])}))},e}(B),$=function(t){function e(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},e.prototype.has=function(t){return L.call(this._object,t)},e.prototype.__iterate=function(t,e){for(var n=this._object,i=this._keys,r=i.length,s=0;s!==r;){var o=i[e?r-++s:s++];if(!1===t(n[o],o,this))break}return s},e.prototype.__iterator=function(t,e){var n=this._object,i=this._keys,r=i.length,s=0;return new P((function(){if(s===r)return{value:void 0,done:!0};var o=i[e?r-++s:s++];return A(t,o,n[o])}))},e}(F);$.prototype[S]=!0;var H,q=function(t){function e(t){this._collection=t,this.size=t.length||t.size}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var n=R(this._collection),i=0;if(D(n))for(var r;!(r=n.next()).done&&!1!==t(r.value,i++,this););return i},e.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=R(this._collection);if(!D(n))return new P(I);var i=0;return new P((function(){var e=n.next();return e.done?e:A(t,i++,e.value)}))},e}(B);function Q(){return H||(H=new V([]))}function W(t){var e=Array.isArray(t)?new V(t):M(t)?new q(t):void 0;if(e)return e.fromEntrySeq();if("object"==typeof t)return new $(t);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+t)}function G(t){var e=Y(t);if(e)return e;throw new TypeError("Expected Array or collection object of values: "+t)}function Y(t){return N(t)?new V(t):M(t)?new q(t):void 0}function K(t){return Boolean(t&&t["@@__IMMUTABLE_MAP__@@"])}function Z(t){return K(t)&&k(t)}function X(t){return Boolean(t&&"function"==typeof t.equals&&"function"==typeof t.hashCode)}function J(t,e){if(t===e||t!=t&&e!=e)return!0;if(!t||!e)return!1;if("function"==typeof t.valueOf&&"function"==typeof e.valueOf){if((t=t.valueOf())===(e=e.valueOf())||t!=t&&e!=e)return!0;if(!t||!e)return!1}return!!(X(t)&&X(e)&&t.equals(e))}var tt="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,e){var n=65535&(t|=0),i=65535&(e|=0);return n*i+((t>>>16)*i+n*(e>>>16)<<16>>>0)|0};function et(t){return t>>>1&1073741824|3221225471&t}var nt=Object.prototype.valueOf;function it(t){switch(typeof t){case"boolean":return t?1108378657:1108378656;case"number":return function(t){if(t!=t||t===1/0)return 0;var e=0|t;for(e!==t&&(e^=4294967295*t);t>4294967295;)e^=t/=4294967295;return et(e)}(t);case"string":return t.length>ht?(void 0===(n=ft[e=t])&&(n=rt(e),pt===dt&&(pt=0,ft={}),pt++,ft[e]=n),n):rt(t);case"object":case"function":return null===t?1108378658:"function"==typeof t.hashCode?et(t.hashCode(t)):(t.valueOf!==nt&&"function"==typeof t.valueOf&&(t=t.valueOf(t)),function(t){var e;if(ct&&void 0!==(e=st.get(t)))return e;if(void 0!==(e=t[ut]))return e;if(!at){if(void 0!==(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[ut]))return e;if(void 0!==(e=function(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}(t)))return e}if(e=++lt,1073741824<&&(lt=0),ct)st.set(t,e);else{if(void 0!==ot&&!1===ot(t))throw new Error("Non-extensible objects are not allowed as keys.");if(at)Object.defineProperty(t,ut,{enumerable:!1,configurable:!1,writable:!1,value:e});else if(void 0!==t.propertyIsEnumerable&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[ut]=e;else{if(void 0===t.nodeType)throw new Error("Unable to set a non-enumerable property on object.");t[ut]=e}}return e}(t));case"undefined":return 1108378659;default:if("function"==typeof t.toString)return rt(t.toString());throw new Error("Value type "+typeof t+" cannot be hashed.")}var e,n}function rt(t){for(var e=0,n=0;n=0&&(p.get=function(e,n){return(e=a(this,e))>=0&&ec)return{value:void 0,done:!0};var t=r.next();return i||1===e||t.done?t:A(e,a-1,0===e?void 0:t.value[1],t)}))},p}function Tt(t,e,n,i){var r=Rt(t);return r.__iterateUncached=function(r,s){var o=this;if(s)return this.cacheResult().__iterate(r,s);var a=!0,c=0;return t.__iterate((function(t,s,l){if(!a||!(a=e.call(n,t,s,l)))return c++,r(t,i?s:c-1,o)})),c},r.__iteratorUncached=function(r,s){var o=this;if(s)return this.cacheResult().__iterator(r,s);var a=t.__iterator(2,s),c=!0,l=0;return new P((function(){var t,s,u;do{if((t=a.next()).done)return i||1===r?t:A(r,l++,0===r?void 0:t.value[1],t);var h=t.value;s=h[0],u=h[1],c&&(c=e.call(n,u,s,o))}while(c);return 2===r?t:A(r,s,u,t)}))},r}function St(t,e){var n=b(t),i=[t].concat(e).map((function(t){return f(t)?n&&(t=_(t)):t=n?W(t):G(Array.isArray(t)?t:[t]),t})).filter((function(t){return 0!==t.size}));if(0===i.length)return t;if(1===i.length){var r=i[0];if(r===t||n&&b(r)||g(t)&&g(r))return r}var s=new V(i);return n?s=s.toKeyedSeq():g(t)||(s=s.toSetSeq()),(s=s.flatten(!0)).size=i.reduce((function(t,e){if(void 0!==t){var n=e.size;if(void 0!==n)return t+n}}),0),s}function kt(t,e,n){var i=Rt(t);return i.__iterateUncached=function(r,s){if(s)return this.cacheResult().__iterate(r,s);var o=0,a=!1;return function t(c,l){c.__iterate((function(s,c){return(!e||l0}function At(t,e,n,i){var r=Rt(t),s=new V(n).map((function(t){return t.size}));return r.size=i?s.max():s.min(),r.__iterate=function(t,e){for(var n,i=this.__iterator(1,e),r=0;!(n=i.next()).done&&!1!==t(n.value,r++,this););return r},r.__iteratorUncached=function(t,r){var s=n.map((function(t){return t=v(t),R(r?t.reverse():t)})),o=0,a=!1;return new P((function(){var n;return a||(n=s.map((function(t){return t.next()})),a=i?n.every((function(t){return t.done})):n.some((function(t){return t.done}))),a?{value:void 0,done:!0}:A(t,o++,e.apply(null,n.map((function(t){return t.value}))))}))},r}function It(t,e){return t===e?t:C(t)?e:t.constructor(e)}function Mt(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function Dt(t){return b(t)?_:g(t)?y:O}function Rt(t){return Object.create((b(t)?F:g(t)?B:z).prototype)}function jt(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):U.prototype.cacheResult.call(this)}function Lt(t,e){return void 0===t&&void 0===e?0:void 0===t?1:void 0===e?-1:t>e?1:t0;)e[n]=arguments[n+1];if("function"!=typeof t)throw new TypeError("Invalid merger function: "+t);return te(this,e,t)}function te(t,e,n){for(var r=[],s=0;s0;)e[n]=arguments[n+1];return ie(t,e)}function ne(t,e,n){return ie(t,e,function(t){return function e(n,i,r){return zt(n)&&zt(i)?ie(n,[i],e):t?t(n,i,r):i}}(n))}function ie(t,e,n){if(!zt(t))throw new TypeError("Cannot merge into non-data-structure value: "+t);if(T(t))return"function"==typeof n&&t.mergeWith?t.mergeWith.apply(t,[n].concat(e)):t.merge?t.merge.apply(t,e):t.concat.apply(t,e);for(var i=Array.isArray(t),r=t,s=i?y:_,o=i?function(e){r===t&&(r=Ht(r)),r.push(e)}:function(e,i){var s=L.call(r,i),o=s&&n?n(r[i],e,i):e;s&&o===r[i]||(r===t&&(r=Ht(r)),r[i]=o)},a=0;a0;)e[n]=arguments[n+1];return ne(this,e,t)}function oe(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];return qt(this,t,Te(),(function(t){return ie(t,e)}))}function ae(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];return qt(this,t,Te(),(function(t){return ne(t,e)}))}function ce(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this}function le(){return this.__ownerID?this:this.__ensureOwner(new s)}function ue(){return this.__ensureOwner()}function he(){return this.__altered}gt.prototype.cacheResult=bt.prototype.cacheResult=mt.prototype.cacheResult=vt.prototype.cacheResult=jt;var de=function(t){function e(e){return null==e?Te():K(e)&&!k(e)?e:Te().withMutations((function(n){var i=t(e);Ft(i.size),i.forEach((function(t,e){return n.set(e,t)}))}))}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.of=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return Te().withMutations((function(e){for(var n=0;n=t.length)throw new Error("Missing value for key: "+t[n]);e.set(t[n],t[n+1])}}))},e.prototype.toString=function(){return this.__toString("Map {","}")},e.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},e.prototype.set=function(t,e){return Se(this,t,e)},e.prototype.remove=function(t){return Se(this,t,i)},e.prototype.deleteAll=function(t){var e=v(t);return 0===e.size?this:this.withMutations((function(t){e.forEach((function(e){return t.remove(e)}))}))},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Te()},e.prototype.sort=function(t){return Ye(Et(this,t))},e.prototype.sortBy=function(t,e){return Ye(Et(this,e,t))},e.prototype.map=function(t,e){return this.withMutations((function(n){n.forEach((function(i,r){n.set(r,t.call(e,i,r,n))}))}))},e.prototype.__iterator=function(t,e){return new ye(this,t,e)},e.prototype.__iterate=function(t,e){var n=this,i=0;return this._root&&this._root.iterate((function(e){return i++,t(e[1],e[0],n)}),e),i},e.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?we(this.size,this._root,t,this.__hash):0===this.size?Te():(this.__ownerID=t,this.__altered=!1,this)},e}(_);de.isMap=K;var pe=de.prototype;pe["@@__IMMUTABLE_MAP__@@"]=!0,pe.delete=pe.remove,pe.removeAll=pe.deleteAll,pe.setIn=Wt,pe.removeIn=pe.deleteIn=Gt,pe.update=Kt,pe.updateIn=Zt,pe.merge=pe.concat=Xt,pe.mergeWith=Jt,pe.mergeDeep=re,pe.mergeDeepWith=se,pe.mergeIn=oe,pe.mergeDeepIn=ae,pe.withMutations=ce,pe.wasAltered=he,pe.asImmutable=ue,pe["@@transducer/init"]=pe.asMutable=le,pe["@@transducer/step"]=function(t,e){return t.set(e[0],e[1])},pe["@@transducer/result"]=function(t){return t.asImmutable()};var fe=function(t,e){this.ownerID=t,this.entries=e};fe.prototype.get=function(t,e,n,i){for(var r=this.entries,s=0,o=r.length;s=Ie)return function(t,e,n,i){t||(t=new s);for(var r=new ve(t,it(n),[n,i]),o=0;o>>t)),s=this.bitmap;return 0==(s&r)?i:this.nodes[Pe(s&r-1)].get(t+5,e,n,i)},be.prototype.update=function(t,e,n,r,s,o,a){void 0===n&&(n=it(r));var c=31&(0===e?n:n>>>e),l=1<=Me)return function(t,e,n,i,r){for(var s=0,o=new Array(32),a=0;0!==n;a++,n>>>=1)o[a]=1&n?e[s++]:void 0;return o[i]=r,new ge(t,s+1,o)}(t,p,u,c,b);if(h&&!b&&2===p.length&&Ee(p[1^d]))return p[1^d];if(h&&b&&1===p.length&&Ee(b))return b;var g=t&&t===this.ownerID,m=h?b?u:u^l:u|l,v=h?b?Ae(p,d,b,g):function(t,e,n){var i=t.length-1;if(n&&e===i)return t.pop(),t;for(var r=new Array(i),s=0,o=0;o>>t)];return r?r.get(t+5,e,n,i):i},ge.prototype.update=function(t,e,n,r,s,o,a){void 0===n&&(n=it(r));var c=31&(0===e?n:n>>>e),l=this.nodes,u=l[c];if(s===i&&!u)return this;var h=ke(u,t,e+5,n,r,s,o,a);if(h===u)return this;var d=this.count;if(u){if(!h&&--d>>n),a=31&(0===n?i:i>>>n),c=o===a?[xe(t,e,n+5,i,r)]:(s=new ve(e,i,r),o>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135,127&(t+=t>>8)+(t>>16)}function Ae(t,e,n,i){var r=i?t:Nt(t);return r[e]=n,r}var Ie=8,Me=16,De=8;function Re(t){return Boolean(t&&t["@@__IMMUTABLE_LIST__@@"])}var je=function(t){function e(e){var n=Ve();if(null==e)return n;if(Re(e))return e;var i=t(e),r=i.size;return 0===r?n:(Ft(r),r>0&&r<32?ze(0,r,5,null,new Ne(i.toArray())):n.withMutations((function(t){t.setSize(r),i.forEach((function(e,n){return t.set(n,e)}))})))}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString("List [","]")},e.prototype.get=function(t,e){if((t=a(this,t))>=0&&t=t.size||e<0)return t.withMutations((function(t){e<0?Qe(t,e).set(0,n):Qe(t,0,e+1).set(e,n)}));var i=t._tail,r=t._root,s={value:!1};return(e+=t._origin)>=We(t._capacity)?i=$e(i,t.__ownerID,0,e,n,s):r=$e(r,t.__ownerID,t._level,e,n,s),s.value?t.__ownerID?(t._root=r,t._tail=i,t.__hash=void 0,t.__altered=!0,t):ze(t._origin,t._capacity,t._level,r,i):t}(this,t,e)},e.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},e.prototype.insert=function(t,e){return this.splice(t,0,e)},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Ve()},e.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations((function(n){Qe(n,0,e+t.length);for(var i=0;i>>e&31;if(i>=this.array.length)return new Ne([],t);var r,s=0===i;if(e>0){var o=this.array[i];if((r=o&&o.removeBefore(t,e-5,n))===o&&s)return this}if(s&&!r)return this;var a=He(this,t);if(!s)for(var c=0;c>>e&31;if(r>=this.array.length)return this;if(e>0){var s=this.array[r];if((i=s&&s.removeAfter(t,e-5,n))===s&&r===this.array.length-1)return this}var o=He(this,t);return o.array.splice(r+1),i&&(o.array[r]=i),o};var Ue,Fe={};function Be(t,e){var n=t._origin,i=t._capacity,r=We(i),s=t._tail;return function t(o,a,c){return 0===a?function(t,o){var a=o===r?s&&s.array:t&&t.array,c=o>n?0:n-o,l=i-o;return l>32&&(l=32),function(){if(c===l)return Fe;var t=e?--l:c++;return a&&a[t]}}(o,c):function(r,s,o){var a,c=r&&r.array,l=o>n?0:n-o>>s,u=1+(i-o>>s);return u>32&&(u=32),function(){for(;;){if(a){var n=a();if(n!==Fe)return n;a=null}if(l===u)return Fe;var i=e?--u:l++;a=t(c&&c[i],s-5,o+(i<>>n&31,l=t&&c0){var u=t&&t.array[c],h=$e(u,e,n-5,i,s,o);return h===u?t:((a=He(t,e)).array[c]=h,a)}return l&&t.array[c]===s?t:(o&&r(o),a=He(t,e),void 0===s&&c===a.array.length-1?a.array.pop():a.array[c]=s,a)}function He(t,e){return e&&t&&e===t.ownerID?t:new Ne(t?t.array.slice():[],e)}function qe(t,e){if(e>=We(t._capacity))return t._tail;if(e<1<0;)n=n.array[e>>>i&31],i-=5;return n}}function Qe(t,e,n){void 0!==e&&(e|=0),void 0!==n&&(n|=0);var i=t.__ownerID||new s,r=t._origin,o=t._capacity,a=r+e,c=void 0===n?o:n<0?o+n:r+n;if(a===r&&c===o)return t;if(a>=c)return t.clear();for(var l=t._level,u=t._root,h=0;a+h<0;)u=new Ne(u&&u.array.length?[void 0,u]:[],i),h+=1<<(l+=5);h&&(a+=h,r+=h,c+=h,o+=h);for(var d=We(o),p=We(c);p>=1<d?new Ne([],i):f;if(f&&p>d&&a5;m-=5){var v=d>>>m&31;g=g.array[v]=He(g.array[v],i)}g.array[d>>>5&31]=f}if(c=p)a-=p,c-=p,l=5,u=null,b=b&&b.removeBefore(i,0,a);else if(a>r||p>>l&31;if(_!==p>>>l&31)break;_&&(h+=(1<r&&(u=u.removeBefore(i,l,a-h)),u&&p>>5<<5}var Ge,Ye=function(t){function e(t){return null==t?Ze():Z(t)?t:Ze().withMutations((function(e){var n=_(t);Ft(n.size),n.forEach((function(t,n){return e.set(n,t)}))}))}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString("OrderedMap {","}")},e.prototype.get=function(t,e){var n=this._map.get(t);return void 0!==n?this._list.get(n)[1]:e},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Ze()},e.prototype.set=function(t,e){return Xe(this,t,e)},e.prototype.remove=function(t){return Xe(this,t,i)},e.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},e.prototype.__iterate=function(t,e){var n=this;return this._list.__iterate((function(e){return e&&t(e[1],e[0],n)}),e)},e.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},e.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),n=this._list.__ensureOwner(t);return t?Ke(e,n,t,this.__hash):0===this.size?Ze():(this.__ownerID=t,this._map=e,this._list=n,this)},e}(de);function Ke(t,e,n,i){var r=Object.create(Ye.prototype);return r.size=t?t.size:0,r._map=t,r._list=e,r.__ownerID=n,r.__hash=i,r}function Ze(){return Ge||(Ge=Ke(Te(),Ve()))}function Xe(t,e,n){var r,s,o=t._map,a=t._list,c=o.get(e),l=void 0!==c;if(n===i){if(!l)return t;a.size>=32&&a.size>=2*o.size?(r=(s=a.filter((function(t,e){return void 0!==t&&c!==e}))).toKeyedSeq().map((function(t){return t[0]})).flip().toMap(),t.__ownerID&&(r.__ownerID=s.__ownerID=t.__ownerID)):(r=o.remove(e),s=c===a.size-1?a.pop():a.set(c,void 0))}else if(l){if(n===a.get(c)[1])return t;r=o,s=a.set(c,[e,n])}else r=o.set(e,a.size),s=a.set(a.size,[e,n]);return t.__ownerID?(t.size=r.size,t._map=r,t._list=s,t.__hash=void 0,t):Ke(r,s)}function Je(t){return Boolean(t&&t["@@__IMMUTABLE_STACK__@@"])}Ye.isOrderedMap=Z,Ye.prototype[S]=!0,Ye.prototype.delete=Ye.prototype.remove;var tn=function(t){function e(t){return null==t?sn():Je(t)?t:sn().pushAll(t)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString("Stack [","]")},e.prototype.get=function(t,e){var n=this._head;for(t=a(this,t);n&&t--;)n=n.next;return n?n.value:e},e.prototype.peek=function(){return this._head&&this._head.value},e.prototype.push=function(){var t=arguments;if(0===arguments.length)return this;for(var e=this.size+arguments.length,n=this._head,i=arguments.length-1;i>=0;i--)n={value:t[i],next:n};return this.__ownerID?(this.size=e,this._head=n,this.__hash=void 0,this.__altered=!0,this):rn(e,n)},e.prototype.pushAll=function(e){if(0===(e=t(e)).size)return this;if(0===this.size&&Je(e))return e;Ft(e.size);var n=this.size,i=this._head;return e.__iterate((function(t){n++,i={value:t,next:i}}),!0),this.__ownerID?(this.size=n,this._head=i,this.__hash=void 0,this.__altered=!0,this):rn(n,i)},e.prototype.pop=function(){return this.slice(1)},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):sn()},e.prototype.slice=function(e,n){if(l(e,n,this.size))return this;var i=u(e,this.size);if(h(n,this.size)!==this.size)return t.prototype.slice.call(this,e,n);for(var r=this.size-i,s=this._head;i--;)s=s.next;return this.__ownerID?(this.size=r,this._head=s,this.__hash=void 0,this.__altered=!0,this):rn(r,s)},e.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?rn(this.size,this._head,t,this.__hash):0===this.size?sn():(this.__ownerID=t,this.__altered=!1,this)},e.prototype.__iterate=function(t,e){var n=this;if(e)return new V(this.toArray()).__iterate((function(e,i){return t(e,i,n)}),e);for(var i=0,r=this._head;r&&!1!==t(r.value,i++,this);)r=r.next;return i},e.prototype.__iterator=function(t,e){if(e)return new V(this.toArray()).__iterator(t,e);var n=0,i=this._head;return new P((function(){if(i){var e=i.value;return i=i.next,A(t,n++,e)}return{value:void 0,done:!0}}))},e}(y);tn.isStack=Je;var en,nn=tn.prototype;function rn(t,e,n,i){var r=Object.create(nn);return r.size=t,r._head=e,r.__ownerID=n,r.__hash=i,r.__altered=!1,r}function sn(){return en||(en=rn(0))}function on(t){return Boolean(t&&t["@@__IMMUTABLE_SET__@@"])}function an(t){return on(t)&&k(t)}function cn(t,e){if(t===e)return!0;if(!f(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||b(t)!==b(e)||g(t)!==g(e)||k(t)!==k(e))return!1;if(0===t.size&&0===e.size)return!0;var n=!m(t);if(k(t)){var r=t.entries();return e.every((function(t,e){var i=r.next().value;return i&&J(i[1],t)&&(n||J(i[0],e))}))&&r.next().done}var s=!1;if(void 0===t.size)if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{s=!0;var o=t;t=e,e=o}var a=!0,c=e.__iterate((function(e,r){if(n?!t.has(e):s?!J(e,t.get(r,i)):!J(t.get(r,i),e))return a=!1,!1}));return a&&t.size===c}function ln(t,e){var n=function(n){t.prototype[n]=e[n]};return Object.keys(e).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(n),t}function un(t){if(!t||"object"!=typeof t)return t;if(!f(t)){if(!zt(t))return t;t=U(t)}if(b(t)){var e={};return t.__iterate((function(t,n){e[n]=un(t)})),e}var n=[];return t.__iterate((function(t){n.push(un(t))})),n}nn["@@__IMMUTABLE_STACK__@@"]=!0,nn.shift=nn.pop,nn.unshift=nn.push,nn.unshiftAll=nn.pushAll,nn.withMutations=ce,nn.wasAltered=he,nn.asImmutable=ue,nn["@@transducer/init"]=nn.asMutable=le,nn["@@transducer/step"]=function(t,e){return t.unshift(e)},nn["@@transducer/result"]=function(t){return t.asImmutable()};var hn=function(t){function e(e){return null==e?gn():on(e)&&!k(e)?e:gn().withMutations((function(n){var i=t(e);Ft(i.size),i.forEach((function(t){return n.add(t)}))}))}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.of=function(){return this(arguments)},e.fromKeys=function(t){return this(_(t).keySeq())},e.intersect=function(t){return(t=v(t).toArray()).length?pn.intersect.apply(e(t.pop()),t):gn()},e.union=function(t){return(t=v(t).toArray()).length?pn.union.apply(e(t.pop()),t):gn()},e.prototype.toString=function(){return this.__toString("Set {","}")},e.prototype.has=function(t){return this._map.has(t)},e.prototype.add=function(t){return fn(this,this._map.set(t,t))},e.prototype.remove=function(t){return fn(this,this._map.remove(t))},e.prototype.clear=function(){return fn(this,this._map.clear())},e.prototype.map=function(t,e){var n=this,i=[],r=[];return this.forEach((function(s){var o=t.call(e,s,s,n);o!==s&&(i.push(s),r.push(o))})),this.withMutations((function(t){i.forEach((function(e){return t.remove(e)})),r.forEach((function(e){return t.add(e)}))}))},e.prototype.union=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];return 0===(e=e.filter((function(t){return 0!==t.size}))).length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations((function(n){for(var i=0;i=0&&e=0&&n>>-15,461845907),e=tt(e<<13|e>>>-13,5),e=tt((e=(e+3864292196|0)^t)^e>>>16,2246822507),et((e=tt(e^e>>>13,3266489909))^e>>>16)}(t.__iterate(n?e?function(t,e){i=31*i+Mn(it(t),it(e))|0}:function(t,e){i=i+Mn(it(t),it(e))|0}:e?function(t){i=31*i+it(t)|0}:function(t){i=i+it(t)|0}),i)}(this))}});var Cn=v.prototype;Cn["@@__IMMUTABLE_ITERABLE__@@"]=!0,Cn[x]=Cn.values,Cn.toJSON=Cn.toArray,Cn.__toStringMapper=Vt,Cn.inspect=Cn.toSource=function(){return this.toString()},Cn.chain=Cn.flatMap,Cn.contains=Cn.includes,ln(_,{flip:function(){return It(this,_t(this))},mapEntries:function(t,e){var n=this,i=0;return It(this,this.toSeq().map((function(r,s){return t.call(e,[s,r],i++,n)})).fromEntrySeq())},mapKeys:function(t,e){var n=this;return It(this,this.toSeq().flip().map((function(i,r){return t.call(e,i,r,n)})).flip())}});var wn=_.prototype;wn["@@__IMMUTABLE_KEYED__@@"]=!0,wn[x]=Cn.entries,wn.toJSON=On,wn.__toStringMapper=function(t,e){return Vt(e)+": "+Vt(t)},ln(y,{toKeyedSeq:function(){return new bt(this,!1)},filter:function(t,e){return It(this,Ct(this,t,e,!1))},findIndex:function(t,e){var n=this.findEntry(t,e);return n?n[0]:-1},indexOf:function(t){var e=this.keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.lastKeyOf(t);return void 0===e?-1:e},reverse:function(){return It(this,Ot(this,!1))},slice:function(t,e){return It(this,wt(this,t,e,!1))},splice:function(t,e){var n=arguments.length;if(e=Math.max(e||0,0),0===n||2===n&&!e)return this;t=u(t,t<0?this.count():this.size);var i=this.slice(0,t);return It(this,1===n?i:i.concat(Nt(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var n=this.findLastEntry(t,e);return n?n[0]:-1},first:function(t){return this.get(0,t)},flatten:function(t){return It(this,kt(this,t,!1))},get:function(t,e){return(t=a(this,t))<0||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find((function(e,n){return n===t}),void 0,e)},has:function(t){return(t=a(this,t))>=0&&(void 0!==this.size?this.size===1/0||te?-1:0}function Mn(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}Tn["@@__IMMUTABLE_INDEXED__@@"]=!0,Tn[S]=!0,ln(O,{get:function(t,e){return this.has(t)?t:e},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}}),O.prototype.has=Cn.includes,O.prototype.contains=O.prototype.includes,ln(F,_.prototype),ln(B,y.prototype),ln(z,O.prototype);var Dn=function(t){function e(t){return null==t?Nn():an(t)?t:Nn().withMutations((function(e){var n=O(t);Ft(n.size),n.forEach((function(t){return e.add(t)}))}))}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.of=function(){return this(arguments)},e.fromKeys=function(t){return this(_(t).keySeq())},e.prototype.toString=function(){return this.__toString("OrderedSet {","}")},e}(hn);Dn.isOrderedSet=an;var Rn,jn=Dn.prototype;function Ln(t,e){var n=Object.create(jn);return n.size=t?t.size:0,n._map=t,n.__ownerID=e,n}function Nn(){return Rn||(Rn=Ln(Ze()))}jn[S]=!0,jn.zip=Tn.zip,jn.zipWith=Tn.zipWith,jn.__empty=Nn,jn.__make=Ln;var Un=function(t,e){var n,i=function(s){var o=this;if(s instanceof i)return s;if(!(this instanceof i))return new i(s);if(!n){n=!0;var a=Object.keys(t),c=r._indices={};r._name=e,r._keys=a,r._defaultValues=t;for(var l=0;l{class t{constructor(t,e){this.renderer=t,this.element=e}ngOnInit(){this.renderer.addClass(this.element.nativeElement,"global__text--uppercase")}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.G),i.Ob(i.l))},t.\u0275dir=i.Jb({type:t,selectors:[["","uppercase",""]]}),t})()},"ooS/":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("4Pxi"),r=n("n5WT"),s=n("KFdt"),o=n("Qkwj"),a=n("xSUO"),c=n("LqyJ");e.default=function(){function t(){this.CHECK_DIGIT_ENCODINGS=[24,20,18,17,12,6,3,10,9,5],this.decodeMiddleCounters=[0,0,0,0],this.decodeRowStringBuffer=""}return t.prototype.decodeRow=function(e,n,r){var a=this.decodeRowStringBuffer,c=this.decodeMiddle(n,r,a),l=a.toString(),u=t.parseExtensionString(l),h=[new o.default((r[0]+r[1])/2,e),new o.default(c,e)],d=new s.default(l,null,0,h,i.default.UPC_EAN_EXTENSION,(new Date).getTime());return null!=u&&d.putAllMetadata(u),d},t.prototype.decodeMiddle=function(e,n,i){var s=this.decodeMiddleCounters;s[0]=0,s[1]=0,s[2]=0,s[3]=0;for(var o=e.getSize(),a=n[1],l=0,u=0;u<5&&a=10&&(l|=1<<4-u),4!==u&&(a=e.getNextSet(a),a=e.getNextUnset(a))}if(5!==i.length)throw new c.default;var f=this.determineCheckDigit(l);if(t.extensionChecksum(i.toString())!==f)throw new c.default;return a},t.extensionChecksum=function(t){for(var e=t.length,n=0,i=e-2;i>=0;i-=2)n+=t.charAt(i).charCodeAt(0)-"0".charCodeAt(0);for(n*=3,i=e-1;i>=0;i-=2)n+=t.charAt(i).charCodeAt(0)-"0".charCodeAt(0);return(n*=3)%10},t.prototype.determineCheckDigit=function(t){for(var e=0;e<10;e++)if(t===this.CHECK_DIGIT_ENCODINGS[e])return e;throw new c.default},t.parseExtensionString=function(e){if(5!==e.length)return null;var n=t.parseExtension5String(e);return null==n?null:new Map([[a.default.SUGGESTED_PRICE,n]])},t.parseExtension5String=function(t){var e;switch(t.charAt(0)){case"0":e="\xa3";break;case"5":e="$";break;case"9":switch(t){case"90000":return null;case"99991":return"0.00";case"99990":return"Used"}e="";break;default:e=""}var n=parseInt(t.substring(1)),i=n%100;return e+(n/100).toString()+"."+(i<10?"0"+i:i.toString())},t}()},orIj:function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return s}));const i={USDT:"Tether",USDC:"USD Coin",DAI:"DAI",PAX:"Paxos Standard Token",PAXG:"PAX Gold"},r={USD:"Dollar",ZUSD:"Dollar",EUR:"Euro",ZEUR:"Euro",CAD:"Canadian Dollar",ZCAD:"Canadian Dollar",GBP:"British Pound",ZGBP:"British Pound",CHF:"Swiss Franc",JPY:"Swiss Franc",ZJPY:"Japanese Yen"},s=Object.assign(Object.assign(Object.assign({},{XBT:"Bitcoin",BTC:"Bitcoin",ETH:"Ethereum",XRP:"Ripple XRP",BCH:"Bitcoin Cash",LTC:"Litecoin",EOS:"EOS",BNB:"Binance Coin",BSV:"Bitcoin SV",XMR:"Monero",ADA:"Cardano",XLM:"Stellar",XXLM:"Stellar",TRX:"TRON",LEO:"UNUS SED LEO",HT:"Huobi Token",DASH:"Dash",ETC:"Ethereum Classic",XTZ:"Tezos",MIOTA:"IOTA",NEO:"NEO",LINK:"Chainlink",ATOM:"Cosmos",MKR:"Maker",ONT:"Ontology",XEM:"NEM",CRO:"Crypto.com Chain",ZEC:"Zcash",XZEC:"Zcash",DOGE:"Dogecoin",XXDG:"Dogecoin",HEDG:"HedgeTrade",VSYS:"V Systems",DCR:"Decred",BAT:"Basic Attention Token",VET:"VeChain",QTUM:"Qtum",TUSD:"TrueUSD",BTG:"Bitcoin Gold",ZB:"ZB",OMG:"OmiseGO",RVN:"Ravencoin",KCS:"KuCoin Shares",BTT:"BitTorrent",LSK:"Lisk",ALGO:"Algorand",NANO:"Nano",INB:"Insight Chain",REP:"Augur",XREP:"Augur",BCD:"Bitcoin Diamond",HOT:"Holo",WAVES:"Waves",THETA:"THETA",ICX:"ICON",ZRX:"0x",DGB:"DigiByte",BTS:"BitShares",MAID:"MaidSafeCoin",HC:"HyperCash",BCN:"Bytecoin",LAMB:"Lambda",NPXS:"Pundi X",IOST:"IOST",KMD:"Komodo",NEX:"Nash Exchange",AOA:"Aurora",DAI:"Dai",BTM:"Bytom",SC:"Siacoin",XVG:"Verge",MONA:"MonaCoin",NRG:"Energi",RIF:"RIF Token",QNT:"Quant",ARDR:"Ardor",ENJ:"Enjin Coin",ZIL:"Zilliqa",AE:"Aeternity",GNT:"Golem",STEEM:"Steem",SNT:"Status",MCO:"Crypto.com",SNX:"Synthetix Network Token",NEXO:"Nexo",WIN:"WINk",GXC:"GXChain",XZC:"Zcoin",ABBC:"ABBC Coin",BEAM:"Beam",WTC:"Waltonchain",RDD:"ReddCoin",ELF:"aelf",GRIN:"Grin",DRG:"Dragon Coins",WAX:"WAX",XMX:"XMax",SOLVE:"SOLVE",ETP:"Metaverse ETP",ELA:"Elastos",STRAT:"Stratis",REN:"Ren",GNO:"Gnosis",SOL:"Solana",OP:"Optimism",NEAR:"NEAR Protocol",APE:"APE",AXS:"Axie Infinity Shards",FTM:"Fantom",DOT:"Polkadot",ARB:"Arbitrum",MATIC:"Polygon",FEE:"Kraken Fee Credit",KFEE:"Kraken Fee Credit",FIL:"Filecoin","USD CREDIT":"USD Credit",EURT:"Tether EURt",AVAX:"Avalanche"}),i),r)},oznm:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s=n("w6/c");e.default=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e}(s.default)},p3rJ:function(t,e){e.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}},p5wL:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return s})),n.d(e,"c",(function(){return o})),n.d(e,"e",(function(){return l})),n.d(e,"d",(function(){return u}));var i=n("og7C");function r(t,e,...n){return Object(i.i)(e,n,t)}function s(t,e,...n){return Object(i.i)(e,n,Object(i.h)(Object(i.g)(e,n,{}),t))}function o(t,e){return Object(i.b)(t.map(t=>[t[e],t]))}var a=n("lx5p");function c(t,e,n,i){if(t.isEmpty())return;const[r,s]=t.entrySeq().first(void 0),[o,a,c]=t.reduce((t,n,r)=>{const s=i(n,r);return e(s,t[0])?[s,r,n]:t},[n,r,s]);return[a,c]}function l(t){return function(t,e){var n;return null===(n=function(t,e){return c(t,a.t,1/0,e)}(t,e))||void 0===n?void 0:n[0]}(t,a.J)}function u(t){return function(t,e){var n;return null===(n=function(t,e){return c(t,a.k,0,e)}(t,e))||void 0===n?void 0:n[0]}(t,a.J)}},pAln:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("TIRN"),r=n("JtL9"),s=n("GJJ8"),o=n("nB6u");e.default=function(){function t(t){var e=t.getHeight();if(e<21||1!=(3&e))throw new o.default;this.bitMatrix=t}return t.prototype.readFormatInformation=function(){if(null!=this.parsedFormatInfo)return this.parsedFormatInfo;for(var t=0,e=0;e<6;e++)t=this.copyBit(e,8,t);t=this.copyBit(7,8,t),t=this.copyBit(8,8,t),t=this.copyBit(8,7,t);for(var n=5;n>=0;n--)t=this.copyBit(8,n,t);var i=this.bitMatrix.getHeight(),s=0,a=i-7;for(n=i-1;n>=a;n--)s=this.copyBit(8,n,s);for(e=i-8;e=0;s--)for(var a=t-9;a>=r;a--)n=this.copyBit(a,s,n);var c=i.default.decodeVersionInformation(n);if(null!==c&&c.getDimensionForVersion()===t)return this.parsedVersion=c,c;for(n=0,a=5;a>=0;a--)for(s=t-9;s>=r;s--)n=this.copyBit(a,s,n);if(null!==(c=i.default.decodeVersionInformation(n))&&c.getDimensionForVersion()===t)return this.parsedVersion=c,c;throw new o.default},t.prototype.copyBit=function(t,e,n){return(this.isMirror?this.bitMatrix.get(e,t):this.bitMatrix.get(t,e))?n<<1|1:n<<1},t.prototype.readCodewords=function(){var t=this.readFormatInformation(),e=this.readVersion(),n=s.default.values.get(t.getDataMask()),i=this.bitMatrix.getHeight();n.unmaskBitMatrix(this.bitMatrix,i);for(var r=e.buildFunctionPattern(),a=!0,c=new Uint8Array(e.getTotalCodewords()),l=0,u=0,h=0,d=i-1;d>0;d-=2){6===d&&d--;for(var p=0;p{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","sbContent",""]]}),t})()},pRbe:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s=n("J180"),o=n("ldwH");e.BrowserDatamatrixCodeReader=function(t){function e(e){return void 0===e&&(e=500),t.call(this,new o.default,e)||this}return r(e,t),e}(s.BrowserCodeReader)},pTnX:function(t,e,n){"use strict";n.d(e,"a",(function(){return m})),n.d(e,"b",(function(){return v})),n.d(e,"c",(function(){return P})),n.d(e,"d",(function(){return z})),n.d(e,"e",(function(){return A})),n.d(e,"f",(function(){return mt})),n.d(e,"g",(function(){return ct})),n.d(e,"h",(function(){return ht})),n.d(e,"i",(function(){return X})),n.d(e,"j",(function(){return O})),n.d(e,"k",(function(){return V})),n.d(e,"l",(function(){return q})),n.d(e,"m",(function(){return B})),n.d(e,"n",(function(){return pt})),n.d(e,"o",(function(){return gt})),n.d(e,"p",(function(){return et})),n.d(e,"q",(function(){return nt})),n.d(e,"r",(function(){return J})),n.d(e,"s",(function(){return tt})),n.d(e,"t",(function(){return Z})),n.d(e,"u",(function(){return ft})),n.d(e,"v",(function(){return bt})),n.d(e,"w",(function(){return w})),n.d(e,"x",(function(){return T})),n.d(e,"y",(function(){return C})),n.d(e,"z",(function(){return k})),n.d(e,"A",(function(){return E})),n.d(e,"B",(function(){return S})),n.d(e,"C",(function(){return $}));var i=n("kZht"),r=n("jL3B"),s=n("vE5V");const o=new i.Q("10.2.0");var a=n("An66"),c=n("5XID"),l=n("ZTXN"),u=n("IdLP"),h=n("O1jd"),d=n("jIqt"),p=n("FxgA"),f=n("Hq54");function b(t,e){if(1&t&&i.Pb(0,"mat-pseudo-checkbox",3),2&t){const t=i.fc();i.mc("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}const g=["*"];let m=(()=>{class t{}return t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",t})(),v=(()=>{class t{}return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t})();const _=new i.Q("10.2.0"),y=new i.s("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let O=(()=>{class t{constructor(t,e,n){this._hasDoneGlobalChecks=!1,this._document=n,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getDocument(){const t=this._document||document;return"object"==typeof t&&t?t:null}_getWindow(){const t=this._getDocument(),e=(null==t?void 0:t.defaultView)||window;return"object"==typeof e&&e?e:null}_checksAreEnabled(){return Object(i.X)()&&!this._isTestEnv()}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){const t=this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype),e=this._getDocument();t&&e&&!e.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){const t=!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme,e=this._getDocument();if(t||!e||!e.body||"function"!=typeof getComputedStyle)return;const n=e.createElement("div");n.classList.add("mat-theme-loaded-marker"),e.body.appendChild(n);const i=getComputedStyle(n);i&&"none"!==i.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),e.body.removeChild(n)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&_.full!==o.full&&console.warn("The Angular Material version ("+_.full+") does not match the Angular CDK version ("+o.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)(i.Yb(r.j),i.Yb(y,8),i.Yb(a.d,8))},imports:[[s.a],s.a]}),t})();function C(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=Object(c.c)(t)}}}function w(t,e){return class extends t{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const e=t||this.defaultColor;e!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-"+this._color),e&&this._elementRef.nativeElement.classList.add("mat-"+e),this._color=e)}}}function T(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Object(c.c)(t)}}}function S(t,e=0){return class extends t{constructor(...t){super(...t),this._tabIndex=e,this.defaultTabIndex=e}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?Object(c.f)(t):this.defaultTabIndex}}}function k(t){return class extends t{constructor(...t){super(...t),this.errorState=!1,this.stateChanges=new l.b}updateErrorState(){const t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())}}}function E(t){return class extends t{constructor(...t){super(...t),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new u.a(t=>{this._isInitialized?this._notifySubscriber(t):this._pendingSubscribers.push(t)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(t){t.next(),t.complete()}}}const x=new i.s("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return Object(i.W)(i.w)}});class P{constructor(){this._localeChanges=new l.b,this.localeChanges=this._localeChanges}getValidDateOrNull(t){return this.isDateInstance(t)&&this.isValid(t)?t:null}deserialize(t){return null==t||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()}setLocale(t){this.locale=t,this._localeChanges.next()}compareDate(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)}sameDate(t,e){if(t&&e){let n=this.isValid(t),i=this.isValid(e);return n&&i?!this.compareDate(t,e):n==i}return t==e}clampDate(t,e,n){return e&&this.compareDate(t,e)<0?e:n&&this.compareDate(t,n)>0?n:t}}const A=new i.s("mat-date-formats");let I;try{I="undefined"!=typeof Intl}catch(vt){I=!1}const M={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},D=L(31,t=>String(t+1)),R={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},j=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function L(t,e){const n=Array(t);for(let i=0;i{class t extends P{constructor(t,e){super(),this.useUtcForDisplay=!0,super.setLocale(t),this.useUtcForDisplay=!e.TRIDENT,this._clampDate=e.TRIDENT||e.EDGE}getYear(t){return t.getFullYear()}getMonth(t){return t.getMonth()}getDate(t){return t.getDate()}getDayOfWeek(t){return t.getDay()}getMonthNames(t){if(I){const e=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return L(12,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,t,1))))}return M[t]}getDateNames(){if(I){const t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return L(31,e=>this._stripDirectionalityCharacters(this._format(t,new Date(2017,0,e+1))))}return D}getDayOfWeekNames(t){if(I){const e=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return L(7,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,0,t+1))))}return R[t]}getYearName(t){if(I){const e=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(e,t))}return String(this.getYear(t))}getFirstDayOfWeek(){return 0}getNumDaysInMonth(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))}clone(t){return new Date(t.getTime())}createDate(t,e,n){let i=this._createDateWithOverflow(t,e,n);return i.getMonth(),i}today(){return new Date}parse(t){return"number"==typeof t?new Date(t):t?new Date(Date.parse(t)):null}format(t,e){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");if(I){this._clampDate&&(t.getFullYear()<1||t.getFullYear()>9999)&&(t=this.clone(t)).setFullYear(Math.max(1,Math.min(9999,t.getFullYear()))),e=Object.assign(Object.assign({},e),{timeZone:"utc"});const n=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(n,t))}return this._stripDirectionalityCharacters(t.toDateString())}addCalendarYears(t,e){return this.addCalendarMonths(t,12*e)}addCalendarMonths(t,e){let n=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(n)!=((this.getMonth(t)+e)%12+12)%12&&(n=this._createDateWithOverflow(this.getYear(n),this.getMonth(n),0)),n}addCalendarDays(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)}toIso8601(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}deserialize(t){if("string"==typeof t){if(!t)return null;if(j.test(t)){let e=new Date(t);if(this.isValid(e))return e}}return super.deserialize(t)}isDateInstance(t){return t instanceof Date}isValid(t){return!isNaN(t.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(t,e,n){const i=new Date(t,e,n);return t>=0&&t<100&&i.setFullYear(this.getYear(i)-1900),i}_2digit(t){return("00"+t).slice(-2)}_stripDirectionalityCharacters(t){return t.replace(/[\u200e\u200f]/g,"")}_format(t,e){const n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.format(n)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(x,8),i.Yb(h.a))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),U=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},providers:[{provide:P,useClass:N}],imports:[[h.b]]}),t})();const F={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let B=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},providers:[{provide:A,useValue:F}],imports:[[U]]}),t})(),z=(()=>{class t{isErrorState(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i.Kb)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),V=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),t})();function $(t,e,n="mat"){t.changes.pipe(Object(d.a)(t)).subscribe(({length:t})=>{H(e,n+"-2-line",!1),H(e,n+"-3-line",!1),H(e,n+"-multi-line",!1),2===t||3===t?H(e,`${n}-${t}-line`,!0):t>3&&H(e,n+"-multi-line",!0)})}function H(t,e,n){const i=t.nativeElement.classList;n?i.add(e):i.remove(e)}let q=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},imports:[[O],O]}),t})();class Q{constructor(t,e,n){this._renderer=t,this.element=e,this.config=n,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const W={enterDuration:450,exitDuration:400},G=Object(h.f)({passive:!0}),Y=["mousedown","touchstart"],K=["mouseup","mouseleave","touchend","touchcancel"];class Z{constructor(t,e,n,i){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,i.isBrowser&&(this._containerElement=Object(c.e)(n))}fadeInRipple(t,e,n={}){const i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=Object.assign(Object.assign({},W),n.animation);n.centered&&(t=i.left+i.width/2,e=i.top+i.height/2);const s=n.radius||function(t,e,n){const i=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),r=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(i*i+r*r)}(t,e,i),o=t-i.left,a=e-i.top,c=r.enterDuration,l=document.createElement("div");l.classList.add("mat-ripple-element"),l.style.left=o-s+"px",l.style.top=a-s+"px",l.style.height=2*s+"px",l.style.width=2*s+"px",null!=n.color&&(l.style.backgroundColor=n.color),l.style.transitionDuration=c+"ms",this._containerElement.appendChild(l),window.getComputedStyle(l).getPropertyValue("opacity"),l.style.transform="scale(1)";const u=new Q(this,l,n);return u.state=0,this._activeRipples.add(u),n.persistent||(this._mostRecentTransientRipple=u),this._runTimeoutOutsideZone(()=>{const t=u===this._mostRecentTransientRipple;u.state=1,n.persistent||t&&this._isPointerDown||u.fadeOut()},c),u}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const n=t.element,i=Object.assign(Object.assign({},W),t.config.animation);n.style.transitionDuration=i.exitDuration+"ms",n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,n.parentNode.removeChild(n)},i.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}setupTriggerEvents(t){const e=Object(c.e)(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(Y))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(K),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=Object(r.l)(t),n=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(t=>{this._triggerElement.addEventListener(t,this,G)})})}_removeTriggerEvents(){this._triggerElement&&(Y.forEach(t=>{this._triggerElement.removeEventListener(t,this,G)}),this._pointerUpEventsRegistered&&K.forEach(t=>{this._triggerElement.removeEventListener(t,this,G)}))}}const X=new i.s("mat-ripple-global-options");let J=(()=>{class t{constructor(t,e,n,i,r){this._elementRef=t,this._animationMode=r,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=i||{},this._rippleRenderer=new Z(this,e,t,n)}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,e=0,n){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(i.B),i.Ob(h.a),i.Ob(X,8),i.Ob(p.a,8))},t.\u0275dir=i.Jb({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&i.Gb("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t})(),tt=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},imports:[[O,h.b],O]}),t})(),et=(()=>{class t{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(p.a,8))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&i.Gb("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),t})(),nt=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)}}),t})();class it{}const rt=C(it);let st=0,ot=(()=>{class t extends rt{constructor(){super(...arguments),this._labelId="mat-optgroup-label-"+st++}}return t.\u0275fac=function(e){return at(e||t)},t.\u0275dir=i.Jb({type:t,inputs:{label:"label"},features:[i.zb]}),t})();const at=i.Wb(ot),ct=new i.s("MatOptgroup");let lt=0;class ut{constructor(t,e=!1){this.source=t,this.isUserInput=e}}const ht=new i.s("MAT_OPTION_PARENT_COMPONENT");let dt=(()=>{class t{constructor(t,e,n,r){this._element=t,this._changeDetectorRef=e,this._parent=n,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+lt++,this.onSelectionChange=new i.o,this._stateChanges=new l.b}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(t){this._disabled=Object(c.c)(t)}get disableRipple(){return this._parent&&this._parent.disableRipple}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(t,e){const n=this._getHostElement();"function"==typeof n.focus&&n.focus(e)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){t.keyCode!==f.e&&t.keyCode!==f.m||Object(f.r)(t)||(this._selectViaInteraction(),t.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new ut(this,t))}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(i.h),i.Ob(void 0),i.Ob(ot))},t.\u0275dir=i.Jb({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),pt=(()=>{class t extends dt{constructor(t,e,n,i){super(t,e,n,i)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(i.h),i.Ob(ht,8),i.Ob(ct,8))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&i.bc("click",(function(){return e._selectViaInteraction()}))("keydown",(function(t){return e._handleKeydown(t)})),2&t&&(i.Xb("id",e.id),i.Db("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),i.Gb("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[i.zb],ngContentSelectors:g,decls:4,vars:3,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"]],template:function(t,e){1&t&&(i.lc(),i.Oc(0,b,1,2,"mat-pseudo-checkbox",0),i.Ub(1,"span",1),i.kc(2),i.Tb(),i.Pb(3,"div",2)),2&t&&(i.mc("ngIf",e.multiple),i.Cb(3),i.mc("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[a.n,J,et],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.cdk-high-contrast-active .mat-option .mat-option-ripple{opacity:.5}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t})();function ft(t,e,n){if(n.length){let i=e.toArray(),r=n.toArray(),s=0;for(let e=0;en+i?Math.max(0,t-i+e):n}let gt=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},imports:[[tt,a.c,nt]]}),t})();const mt=new i.s("mat-label-global-options")},pUSv:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s=n("iiuT"),o=n("LqyJ"),a=n("dyLe");e.default=function(t){function e(){var e=t.call(this)||this;return e.decodeFinderCounters=new Array(4),e.dataCharacterCounters=new Array(8),e.oddRoundingErrors=new Array(4),e.evenRoundingErrors=new Array(4),e.oddCounts=new Array(e.dataCharacterCounters.length/2),e.evenCounts=new Array(e.dataCharacterCounters.length/2),e}return r(e,t),e.prototype.getDecodeFinderCounters=function(){return this.decodeFinderCounters},e.prototype.getDataCharacterCounters=function(){return this.dataCharacterCounters},e.prototype.getOddRoundingErrors=function(){return this.oddRoundingErrors},e.prototype.getEvenRoundingErrors=function(){return this.evenRoundingErrors},e.prototype.getOddCounts=function(){return this.oddCounts},e.prototype.getEvenCounts=function(){return this.evenCounts},e.prototype.parseFinderValue=function(t,n){for(var i=0;ii&&(i=e[r],n=r);t[n]++},e.decrement=function(t,e){for(var n=0,i=e[0],r=1;r=e.MIN_FINDER_PATTERN_RATIO&&i<=e.MAX_FINDER_PATTERN_RATIO){for(var r=Number.MAX_SAFE_INTEGER,s=Number.MIN_SAFE_INTEGER,o=0,a=t;os&&(s=c),c{class t{constructor(t){this.store=t}openKraken(){const t=this.selected.name;this.store.dispatch(Object(i.h)({url:"https://kraken.com/u/funding/transfer?asset="+t,target:"_blank"})),this.store.dispatch(Object(i.c)())}}return t.\u0275fac=function(e){return new(e||t)(r.Ob(s.b))},t.\u0275cmp=r.Ib({type:t,selectors:[["crypto-deposit-form"]],inputs:{selected:"selected",userDetails:"userDetails"},decls:3,vars:2,consts:[["body",""],[4,"ngIf"],["bold","","uppercase","","translate",""],[1,"flex-row"],["icon","kraken","size","2x",1,"squid"],["body","","translate","",1,"deposit-message"],["mat-raised-button","",1,"copy-button",3,"click"],[1,"error"],["translate","",1,"deposit-message"]],template:function(t,e){1&t&&(r.Ub(0,"div",0),r.Oc(1,p,10,3,"ng-container",1),r.Oc(2,f,8,6,"ng-container",1),r.Tb()),2&t&&(r.Cb(1),r.mc("ngIf",e.userDetails.external),r.Cb(1),r.mc("ngIf",!e.userDetails.external))},directives:[o.a,a.n,c.a,l.a,u.a,h.b,d.b],pipes:[u.d],styles:["p[_ngcontent-%COMP%]{margin:var(--spacing-s) 0}.squid[_ngcontent-%COMP%]{margin:var(--spacing-s) var(--spacing) var(--spacing-s) 0;color:var(--brand)}qrcode[_ngcontent-%COMP%]{text-align:center}mat-form-field[_ngcontent-%COMP%]{width:100%;margin-top:var(--spacing)}.generate-address[_ngcontent-%COMP%]{text-align:right;margin-top:calc(var(--spacing-s) * -1)}.error[_ngcontent-%COMP%]{padding:var(--spacing);border:1px solid var(--warn-colour);border-radius:var(--bdrs)}.error[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .error[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{color:var(--warn-colour);margin:0}.error[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-weight:700}.copy-button[_ngcontent-%COMP%]{width:100%;margin-top:var(--spacing-l)}"],changeDetection:0}),t})()},pjhv:function(t,e,n){"use strict";n.d(e,"d",(function(){return r})),n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a}));var i=n("TYVA");function r(t){return`1.${t}-${t}`}function s(t,e=!1){if(!t)return e?"1.2-2":"1.0-0";switch(t.toUpperCase()){case"XBT":case"BTC":return e?"1.8-8":"1.4-4";case"ETH":case"LTC":case"BCH":return e?"1.4-4":"1.3-3";case"XRP":case"EUR":case"USD":default:return"1.2-2"}}function o(t,e=!1){if(!t)return 2;switch(t.toUpperCase()){case"XBT":case"BTC":return e?8:6;case"ETH":return e?4:5;case"LTC":return 4;case"BCH":return e?4:5;case"XRP":case"EUR":case"USD":default:return 2}}function a(t,e=!1){const n=Math.min(20,Math.max(0,-Math.floor(Math.log10(t.tickSize))))||0,r=o(Object(i.p)(t.symbol),e);return Math.max(r,n)}},ppTs:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return r}));const i=t=>["GB","GBR"].includes(t)?"GBR":["AUS","AU"].includes(t)?"AUS":["ITA","IT"].includes(t)?"ITA":["ES","ESP"].includes(t)?"ESP":t,r=["GBR","AUS","ITA","ESP"]},prE9:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var i=n("Efrr"),r=n("uCWR");class s{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new o(t,this.durationSelector))}}class o extends r.b{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let n;try{const{durationSelector:e}=this;n=e(t)}catch(e){return this.destination.error(e)}const i=Object(r.c)(n,new r.a(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:t,hasValue:e,throttled:n}=this;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var a=n("8lHc");function c(t,e=i.a){return n=()=>Object(a.a)(t,e),function(t){return t.lift(new s(n))};var n}},"q+cW":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("+luX"),r=n("ssKD"),s=n("1XZd"),o=n("KZGf"),a=n("oznm"),c=function(){function t(t,e,n,i){if(this.width=t,this.height=e,this.rowSize=n,this.bits=i,null==e&&(e=t),this.height=e,t<1||e<1)throw new a.default("Both dimensions must be greater than 0");null==n&&(n=Math.floor((t+31)/32)),this.rowSize=n,null==i&&(this.bits=new Int32Array(this.rowSize*this.height))}return t.parseFromBooleanArray=function(e){for(var n=e.length,i=e[0].length,r=new t(i,n),s=0;so){if(-1===c)c=s-o;else if(s-o!==c)throw new a.default("row lengths do not match");o=s,l++}u++}else if(e.substring(u,u+n.length)===n)u+=n.length,r[s]=!0,s++;else{if(e.substring(u,u+i.length)!==i)throw new a.default("illegal character encountered: "+e.substring(u));u+=i.length,r[s]=!1,s++}if(s>o){if(-1===c)c=s-o;else if(s-o!==c)throw new a.default("row lengths do not match");l++}for(var h=new t(c,l),d=0;d>>(31&t)&1)},t.prototype.set=function(t,e){var n=e*this.rowSize+Math.floor(t/32);this.bits[n]|=1<<(31&t)&4294967295},t.prototype.unset=function(t,e){var n=e*this.rowSize+Math.floor(t/32);this.bits[n]&=~(1<<(31&t)&4294967295)},t.prototype.flip=function(t,e){var n=e*this.rowSize+Math.floor(t/32);this.bits[n]^=1<<(31&t)&4294967295},t.prototype.xor=function(t){if(this.width!==t.getWidth()||this.height!==t.getHeight()||this.rowSize!==t.getRowSize())throw new a.default("input matrix dimensions do not match");for(var e=new i.default(Math.floor(this.width/32)+1),n=this.rowSize,r=this.bits,s=0,o=this.height;sthis.height||r>this.width)throw new a.default("The region must fit inside the matrix");for(var o=this.rowSize,c=this.bits,l=e;lo&&(o=a),32*cs){for(u=31;l>>>u==0;)u--;32*c+u>s&&(s=32*c+u)}}}return s=0&&0===e[n];)n--;if(n<0)return null;for(var i=Math.floor(n/t),r=32*Math.floor(n%t),s=e[n],o=31;s>>>o==0;)o--;return Int32Array.from([r+=o,i])},t.prototype.getWidth=function(){return this.width},t.prototype.getHeight=function(){return this.height},t.prototype.getRowSize=function(){return this.rowSize},t.prototype.equals=function(e){return e instanceof t&&this.width===e.width&&this.height===e.height&&this.rowSize===e.rowSize&&s.default.equals(this.bits,e.bits)},t.prototype.hashCode=function(){var t=this.width;return 31*(t=31*(t=31*(t=31*t+this.width)+this.height)+this.rowSize)+s.default.hashCode(this.bits)},t.prototype.toString=function(t,e,n){return void 0===t&&(t="x"),void 0===e&&(e=" "),void 0===n&&(n="\n"),this.buildToString(t,e,n)},t.prototype.buildToString=function(t,e,n){var i=new o.default;i.append(n);for(var r=0,s=this.height;rn||c<-1||c>r)throw new i.default;s=!1,-1===a?(e[o]=0,s=!0):a===n&&(e[o]=n-1,s=!0),-1===c?(e[o+1]=0,s=!0):c===r&&(e[o+1]=r-1,s=!0)}for(s=!0,o=e.length-2;o>=0&&s;o-=2){if(a=Math.floor(e[o]),c=Math.floor(e[o+1]),a<-1||a>n||c<-1||c>r)throw new i.default;s=!1,-1===a?(e[o]=0,s=!0):a===n&&(e[o]=n-1,s=!0),-1===c?(e[o+1]=0,s=!0):c===r&&(e[o+1]=r-1,s=!0)}},t}()},qAYy:function(t,e,n){"use strict";n.d(e,"c",(function(){return g})),n.d(e,"k",(function(){return v})),n.d(e,"p",(function(){return O})),n.d(e,"d",(function(){return C})),n.d(e,"o",(function(){return w})),n.d(e,"g",(function(){return E})),n.d(e,"i",(function(){return x})),n.d(e,"h",(function(){return P})),n.d(e,"m",(function(){return A})),n.d(e,"n",(function(){return I})),n.d(e,"l",(function(){return D})),n.d(e,"q",(function(){return R})),n.d(e,"e",(function(){return j})),n.d(e,"j",(function(){return L})),n.d(e,"f",(function(){return N})),n.d(e,"b",(function(){return U})),n.d(e,"a",(function(){return F}));var i=n("zqNl"),r=n("og7C"),s=n("p5wL"),o=n("TYVA"),a=n("a1kK"),c=n("vYTc"),l=n("ND+C"),u=n("+Px6"),h=n("rxqU"),d=n("7KkP"),p=n("+axt");const f={detailed:Object(r.b)(),lite:Object(r.b)()},b=Object(i.i)(f,Object(i.k)(l.a,(t,{ticker:e})=>Object(s.b)(t.lite.set(e.product_id,e),t,"lite")),Object(i.k)(l.b,(t,{tickers:e})=>Object(s.a)(e,t,"lite")),Object(i.k)(l.c,(t,{ticker:e})=>Object(s.b)(t.detailed.set(e.product_id,e),t,"detailed")),Object(i.k)(l.d,(t,{tickers:e})=>Object(s.a)(e,t,"detailed")));function g(t,e){return b(t,e)}const m=Object(i.h)("tickers"),v=Object(i.j)(m,t=>t.lite),_=Object(i.j)(m,t=>t.detailed),y=Object(i.j)(_,u.d,h.r,(t,e,n)=>t.map(Object(d.f)(e,n))),O=Object(i.j)(y,u.r,u.j,(t,e,n)=>{const i=t.get(e);if(void 0!==i)return Object(a.e)(n,i,"product_id")}),C=Object(i.j)(u.j,y,(t,e,n)=>{const i=e.get(n.symbol);if(void 0!==i)return Object(a.e)(t,i,"product_id")}),w=Object(i.j)(v,h.r,u.j,(t,e,n)=>{const i=t.map(Object(d.e)(e));return Object(a.d)(n,i,"product_id")}),T=Object(i.j)(w,t=>t.valueSeq().filter(t=>"perpetual"===t.tag).filter(t=>Object(o.x)(t.product_id)).toArray()),S=Object(i.j)(w,t=>t.filter(t=>!Object(c.a)(t.product_id))),k=Object(i.j)(w,t=>t.filter(t=>Object(c.a)(t.product_id))),E=Object(i.j)(w,t=>t.filter(t=>null!=Object(o.x)(t.product_id))),x=Object(i.j)(S,t=>t.reduce((t,e)=>{const n=Object(o.m)(e.product_id);return Object.assign(Object.assign({},t),t[n]?{[n]:[...t[n],e].sort(c.d).sort(c.e).sort(c.g)}:{[n]:[e]})},{})),P=Object(i.j)(k,t=>t.reduce((t,e)=>{const n=Object(o.m)(e.product_id);return Object.assign(Object.assign({},t),t[n]?{[n]:[...t[n],e].sort(c.d).sort(c.e).sort(c.g)}:{[n]:[e]})},{})),A=Object(i.j)(w,t=>t.sort(c.g).sort(c.f).map(t=>t.pair).toOrderedSet().toArray()),I=Object(i.j)(T,t=>t.sort(c.g).sort(c.f)),M=Object(i.j)(w,u.r,(t,e)=>t.filter(t=>t.pair===Object(o.o)(e)).toOrderedMap().sort(Object(c.h)(t=>t.tag,o.r))),D=Object(i.j)(M,t=>t.map(t=>({symbol:t.product_id,tag:t.tag,customPerp:Object(o.u)(t.product_id).customTag})).valueSeq()),R=Object(i.j)(O,t=>{var e;return Number(null!==(e=null==t?void 0:t.leverage.split("x")[0])&&void 0!==e?e:1)}),j=Object(i.j)(E,t=>t.reduce((t,{category:e})=>(e&&!t.includes(e)&&t.push(e),t),[])),L=Object(i.j)(S,t=>t.filter(t=>"perpetual"===t.tag).valueSeq().toArray().sort((t,e)=>t.volume>=e.volume?-1:1)),N=Object(i.j)(k,h.p,(t,e)=>{const n=t.valueSeq().filter(t=>e.has(Object(c.i)(t))).toArray(),i=t.groupBy(t=>t.category).map(t=>t.valueSeq().toArray()).valueSeq().toArray().sort((t,e)=>t.reduce((t,e)=>t+e.notionalVolume,0)>=e.reduce((t,e)=>t+e.notionalVolume,0)?-1:1).map(t=>t.sort((t,e)=>t.notionalVolume>=e.notionalVolume?-1:1)).map(t=>t.slice(0,3));return i.unshift(n),[...new Set(i.flat())]}),U=Object(i.j)(O,h.p,(t,e)=>t&&e.has(Object(c.i)(t))),F=Object(i.j)(p.a,O,(t,e)=>{var n;return e&&(null===(n=t.get(e.pair.split("/")[0]))||void 0===n?void 0:n.price)})},qArU:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){function t(t,e){this.bits=t,this.points=e}return t.prototype.getBits=function(){return this.bits},t.prototype.getPoints=function(){return this.points},t}()},qEfY:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")()},qZtG:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("ROBh"),r=n("mawV");function s(...t){return Object(r.a)()(Object(i.a)(...t))}},qvG1:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("KZGf"),r=n("2gaf");e.default=function(){function t(t,e){this.width=t,this.height=e}return t.prototype.getWidth=function(){return this.width},t.prototype.getHeight=function(){return this.height},t.prototype.isCropSupported=function(){return!1},t.prototype.crop=function(t,e,n,i){throw new r.default("This luminance source does not support cropping.")},t.prototype.isRotateSupported=function(){return!1},t.prototype.rotateCounterClockwise=function(){throw new r.default("This luminance source does not support rotation by 90 degrees.")},t.prototype.rotateCounterClockwise45=function(){throw new r.default("This luminance source does not support rotation by 45 degrees.")},t.prototype.toString=function(){for(var t=new Uint8ClampedArray(this.width),e=new i.default,n=0;n4294967295)throw new Error("input must fit within a 32-bit range");return new Uint8Array([(4278190080&t)>>24,(16711680&t)>>16,(65280&t)>>8,(255&t)>>0])}function p(t){if(4!==t.byteLength)throw new Error("input array must be 4 bytes in length");return new DataView(t.buffer).getUint32(0,!1)}var f=n("kZht"),b=n("6uGs");let g=(()=>{class t{constructor(t,e){this.http=t,this.env=e}isSignedIn(){return this.http.get(this.env.urls.auth+"/is-logged-in",c.a)}signIn({email:t,password:e,otp:n}){return this.addPowToPayload({email:t,password:e,totp:n}).pipe(Object(r.a)(t=>this.http.post(this.env.urls.auth+"/token",t,c.a)))}signOut(){return this.http.request("delete",this.env.urls.auth+"/token",Object.assign(Object.assign({},c.a),{observe:"response",responseType:"json"}))}signUp({email:t,password:e,accountType:n,marketing:i,acknowledgement:s,affiliateUid:o,allowPwned:a}){const l=Object.assign(Object.assign({email:t,password:e,accountType:n,verifyPassword:e,newsletter:i,readAndAgree:s},o&&{affiliateUid:o}),{allowPwned:a});return this.addPowToPayload(l).pipe(Object(r.a)(t=>this.http.post(this.env.urls.auth+"/sign-up",t,c.a)))}activateAccount(t){return this.http.post(this.env.urls.auth+"/activate-account",{uid:t},c.a)}requestPasswordReset(t){return this.addPowToPayload({email:t}).pipe(Object(r.a)(t=>this.http.post(this.env.urls.auth+"/password-reset/request",t,c.a)))}confirmPasswordReset(t){return this.addPowToPayload(t).pipe(Object(r.a)(t=>this.http.post(this.env.urls.auth+"/password-reset/confirm",t,c.a)))}changePassword(t){const e=Object.assign(Object.assign({},t),{newPasswordVerify:t.newPassword});return this.addPowToPayload(e).pipe(Object(r.a)(t=>this.http.post(this.env.urls.auth+"/account/change-password",t,c.a)))}activateTotp(t,e){return this.http.post(this.env.urls.auth+"/totp/activate",{secret:t,totp:e},c.a)}deactivateTotp(t){return this.addPowToPayload({totp:t}).pipe(Object(r.a)(t=>this.http.post(this.env.urls.auth+"/totp/deactivate",t,c.a)))}getActiveSessions(){return this.http.get(this.env.urls.auth+"/tokens",c.a)}deleteSession(t){return this.http.request("delete",this.env.urls.auth+"/token?only=json",Object.assign(Object.assign({},c.a),{body:{token:t}}))}replenishSession(){return this.http.post(this.env.urls.auth+"/refresh",void 0,c.a)}fetchSessionLength(){return this.http.get(this.env.urls.auth+"/account/token-lifespan",c.a)}changeSessionLength(t){return this.http.put(this.env.urls.auth+"/account/token-lifespan",{lifespan:t},c.a).pipe(Object(s.a)(t))}requestMobileToken(t){return this.http.post(this.env.urls.auth+"/mobile-token/request",{mfaRequestId:t.mfaRequestId},c.a)}scanMobileToken(t){return this.http.post(this.env.urls.auth+"/mobile-token/scan",t,c.a)}confirmMobileSession(t){return this.http.post(this.env.urls.auth+"/mobile-token/confirm",t,c.a)}checkStatusConfirmationCode(t){return this.http.post(this.env.urls.auth+"/mobile-token/status",{uid:t},c.a)}requestPowChallenge(){return this.http.get(this.env.urls.auth+"/pow",c.a)}solvePowChallenge({seed:t,steps:e,target:n}){return Object(i.a)(function(t,e,n){return Object(l.a)(this,void 0,void 0,(function*(){const i=[];let r="string"==typeof t?function(t){if(64!==t.trim().length)throw new Error("hex encoded input must be equivalent to 32 bytes");const e=function(t){const e=[];let n=t;for(;n.length>0;){const t=n.slice(0,2);n=n.slice(2);const i=parseInt(t,16);e.push(i)}return new Uint8Array(e)}(t);if(32!==e.length)throw new Error("parsed hex must be 32 bytes");return e}(t):t;const s=Date.now();try{for(;i.lengtht[0]),a=Date.now()-s;return{seed:t,solution:o,duration:a}}catch(o){throw o}}))}(t,e,n))}provePow(){return this.requestPowChallenge().pipe(Object(r.a)(this.solvePowChallenge))}addPowToPayload(t){return this.provePow().pipe(Object(o.a)(e=>Object.assign(Object.assign({},t),{pow:e})))}subaccountSignup(t){const e=Object.assign(Object.assign({},t),{verifyPassword:t.password});return this.addPowToPayload(e).pipe(Object(r.a)(t=>this.http.post(this.env.urls.auth+"/subaccount/sign-up",t,c.a)))}}return t.\u0275fac=function(e){return new(e||t)(f.Yb(b.a),f.Yb(a.a))},t.\u0275prov=f.Kb({token:t,factory:t.\u0275fac}),t})()},r9nU:function(t,e,n){var i,r,s=n("67SP");s.alloc?(i=s.alloc(512),r=s.alloc(256)):(i=new s(512),r=new s(256)),function(){for(var t=1,e=0;e<255;e++)i[e]=t,r[t]=e,256&(t<<=1)&&(t^=285);for(e=255;e<512;e++)i[e]=i[e-255]}(),e.log=function(t){if(t<1)throw new Error("log("+t+")");return r[t]},e.exp=function(t){return i[t]},e.mul=function(t,e){return 0===t||0===e?0:i[r[t]+r[e]]}},r9za:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i=n("YtkY"),r=n("i67J"),s=n("rxqU"),o=n("kZht"),a=n("1VvW"),c=n("zqNl");let l=(()=>{class t{constructor(t,e){this.router=t,this.store=e,this.userDetails$=this.store.pipe(Object(r.n)(s.d))}canActivate(){return this.userDetails$.pipe(Object(i.a)(t=>!t.external||(this.router.navigate(["/futures"]),!1)))}}return t.\u0275fac=function(e){return new(e||t)(o.Yb(a.d),o.Yb(c.b))},t.\u0275prov=o.Kb({token:t,factory:t.\u0275fac}),t})()},rBBj:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("kZht");let r=(()=>{class t{get accent(){return this.pnlBool}get warn(){return!this.pnlBool}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","pnlBool",""]],hostVars:4,hostBindings:function(t,e){2&t&&i.Gb("global__text--accent",e.accent)("global__text--warn",e.warn)},inputs:{pnlBool:"pnlBool"}}),t})()},rEzU:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("kZht");let r=(()=>{class t{constructor(t,e){this.renderer=t,this.element=e}ngOnInit(){this.renderer.addClass(this.element.nativeElement,"global__text"),this.renderer.addClass(this.element.nativeElement,"global__text-body"),this.renderer.addClass(this.element.nativeElement,"global__text--label")}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.G),i.Ob(i.l))},t.\u0275dir=i.Jb({type:t,selectors:[["","label",""]]}),t})()},rP1E:function(t,e,n){"use strict";n.r(e),n.d(e,"SubaccountSignUpComponent",(function(){return L}));var i=n("D57K"),r=n("3kIJ"),s=n("zqNl"),o=n("lx5p"),a=n("94ty"),c=n("bjK4"),l=n("MUfl"),u=n("uJYd"),h=n("Tjvn"),d=n("9Ccw"),p=n("gxtV"),f=n("jIqt"),b=n("Ohay"),g=n("0tVE"),m=n("kZht"),v=n("Asjx"),_=n("mcff"),y=n("i9Na"),O=n("rfPA"),C=n("bBQR"),w=n("afE0"),T=n("An66"),S=n("anSm"),k=n("EmXI"),E=n("Tcl6"),x=n("eGwX"),P=n("hCLc"),A=n("scAs"),I=n("UDV5"),M=n("aDqW");function D(t,e){1&t&&(m.Ub(0,"div",11),m.Ub(1,"p",12),m.Qc(2),m.gc(3,"translate"),m.Tb(),m.Ub(4,"p",13),m.Qc(5),m.gc(6,"translate"),m.Tb(),m.Ub(7,"p",14),m.Pb(8,"markdown",15),m.gc(9,"translate"),m.Tb(),m.Tb()),2&t&&(m.Cb(2),m.Sc(" ",m.hc(3,3,"ERROR.PASSWORD_COMPROMISED")," "),m.Cb(3),m.Sc(" ",m.hc(6,5,"SUPPORT.HAVE_I_BEEN_PWNED")," "),m.Cb(3),m.mc("data",m.hc(9,7,"SUPPORT.PWNED_URL")))}function R(t,e){1&t&&(m.Ub(0,"mat-error"),m.Qc(1),m.gc(2,"translate"),m.Tb()),2&t&&(m.Cb(1),m.Sc(" ",m.hc(2,1,"FORM.EMAIL_ERROR")," "))}function j(t,e){1&t&&(m.Ub(0,"mat-checkbox",16),m.Qc(1),m.gc(2,"translate"),m.Tb()),2&t&&(m.Cb(1),m.Sc(" ",m.hc(2,1,"FORM.USE_COMPROMISED_PASSWORD_CONFIRM")," "))}let L=(()=>{let t=class{constructor(t,e,n,i,r,a){this.store=t,this.feature=e,this.formBuilder=n,this.breakpointObserver=i,this.dialogRef=r,this.isPasswordCompromised=!1,this.form=this.buildForm(),this.reset=!1,this.loading$=this.store.pipe(Object(s.m)(c.m,{filter:g.M.type})),this.passwordCompromised$=this.store.select(d.h),a.renderer.link=h.a,a.renderer.image=Object(o.b)("")}ngOnInit(){this.setDialogSize(),this.passwordCompromised$.pipe(Object(f.a)(!1),Object(b.a)(),Object(p.b)(this)).subscribe(t=>{var e,n;this.isPasswordCompromised=t,t?null===(n=this.form.get("allowPwnedPassword"))||void 0===n||n.enable():null===(e=this.form.get("allowPwnedPassword"))||void 0===e||e.disable()})}ngOnDestroy(){this.reset=!0}submitForm(){this.store.dispatch(Object(g.M)(Object.assign(Object.assign({},this.form.value),{allowPwned:this.isPasswordCompromised})))}updatePassword(t){this.store.dispatch(Object(a.q)({passwordCompromised:!1})),this.form.get("password").setValue(t)}closeDialog(t){this.dialogRef.close(),this.store.dispatch(Object(a.q)({passwordCompromised:!1})),t&&this.store.dispatch(Object(u.g)(t))}setDialogSize(){this.breakpointObserver.isMatched("(max-width: 599px)")?this.dialogRef.updateSize("100%","100%"):this.dialogRef.updateSize("350px","auto")}buildForm(){return this.formBuilder.group({subaccountEmail:["",[r.x.required,r.x.email]],password:["",[r.x.required]],allowPwnedPassword:[!1,[r.x.requiredTrue]]})}};return t.\u0275fac=function(e){return new(e||t)(m.Ob(s.b),m.Ob(l.a),m.Ob(r.d),m.Ob(v.a),m.Ob(_.d),m.Ob(y.c))},t.\u0275cmp=m.Ib({type:t,selectors:[["subaccount-sign-up"]],decls:20,vars:21,consts:[["heading","DIALOG.SUBACCOUNT_SIGNUP.TITLE",3,"loading"],[1,"sign-up-inner"],["icon","user-full"],["class","warning",4,"ngIf"],["body","",3,"formGroup","ngSubmit"],["color","accent","appearance","fill"],["formControlName","subaccountEmail","required","","matInput","","type","email"],[4,"ngIf"],[3,"resetToggle","passwordUpdate"],["class","no-border","formControlName","allowPwnedPassword",4,"ngIf"],["mat-raised-button","",3,"disabled"],[1,"warning"],["body","","bold","",1,"global__text--warn"],["body","","bold",""],["body",""],[3,"data"],["formControlName","allowPwnedPassword",1,"no-border"]],template:function(t,e){1&t&&(m.Ub(0,"pro-dialog",0),m.gc(1,"async"),m.Ub(2,"div",1),m.Pb(3,"dialog-badge",2),m.Oc(4,D,10,9,"div",3),m.gc(5,"async"),m.Ub(6,"form",4),m.bc("ngSubmit",(function(){return e.submitForm()})),m.Ub(7,"mat-form-field",5),m.Ub(8,"mat-label"),m.Qc(9),m.gc(10,"translate"),m.Tb(),m.Pb(11,"input",6),m.Oc(12,R,3,3,"mat-error",7),m.Tb(),m.Ub(13,"input-password-confirm",8),m.bc("passwordUpdate",(function(t){return e.updatePassword(t)})),m.Tb(),m.Oc(14,j,3,3,"mat-checkbox",9),m.gc(15,"async"),m.Ub(16,"button",10),m.gc(17,"async"),m.Qc(18),m.gc(19,"translate"),m.Tb(),m.Tb(),m.Tb(),m.Tb()),2&t&&(m.mc("loading",m.hc(1,9,e.loading$)),m.Cb(4),m.mc("ngIf",m.hc(5,11,e.passwordCompromised$)),m.Cb(2),m.mc("formGroup",e.form),m.Cb(3),m.Rc(m.hc(10,13,"FORM.EMAIL")),m.Cb(3),m.mc("ngIf",e.form.get("subaccountEmail").invalid),m.Cb(1),m.mc("resetToggle",e.reset),m.Cb(1),m.mc("ngIf",m.hc(15,15,e.passwordCompromised$)),m.Cb(2),m.mc("disabled",e.form.invalid||m.hc(17,17,e.loading$)),m.Cb(2),m.Sc(" ",m.hc(19,19,"DIALOG.SUBACCOUNT_SIGNUP.BUTTONS.EMAIL")," "))},directives:[O.a,C.a,w.a,T.n,r.z,r.p,S.a,r.h,k.c,k.f,r.c,E.b,r.o,r.g,r.v,x.a,P.b,A.a,y.a,k.b,I.a],pipes:[T.b,M.d],styles:[".sign-up-inner[_ngcontent-%COMP%]{max-width:40ch;text-align:center}.sign-up-inner[_ngcontent-%COMP%] dialog-badge[_ngcontent-%COMP%]{margin-bottom:var(--spacing-l)}.sign-up-inner[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{width:100%;margin-bottom:var(--spacing)}.sign-up-inner[_ngcontent-%COMP%] .warning[_ngcontent-%COMP%]{border:solid var(--warn-colour);text-align:center;padding:var(--spacing);margin:var(--spacing) 0}.sign-up-inner[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:var(--spacing) 0;width:100%}.sign-up-inner[_ngcontent-%COMP%] form[_ngcontent-%COMP%] mat-checkbox[_ngcontent-%COMP%]{text-align:left}.sign-up-inner[_ngcontent-%COMP%] form[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{margin-top:var(--spacing)}markdown[_ngcontent-%COMP%] a{color:var(--link-colour)}"],changeDetection:0}),t=Object(i.d)([Object(p.a)()],t),t})()},rTkt:function(t,e,n){"use strict";function i(t,e,n){const i=e.getPropertyValue(t).trim();n.contentDocument&&n.contentDocument.documentElement&&n.contentDocument.documentElement.style.setProperty(t,i)}function r(t){if("auto"===t){if(!window||!("matchMedia"in window))return"dark";const t=window.matchMedia("(prefers-color-scheme: dark)").matches,e=window.matchMedia("(prefers-color-scheme: light)").matches;return t?"dark":e?"light":"dark"}return t}n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return r}))},rUBT:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"f",(function(){return a})),n.d(e,"b",(function(){return c})),n.d(e,"g",(function(){return l})),n.d(e,"e",(function(){return u})),n.d(e,"d",(function(){return h})),n.d(e,"c",(function(){return d}));var i=n("TYVA"),r=n("mlVJ"),s=n("kZht");let o=(()=>{class t{transform(t){try{return Object(i.m)(t)}catch(e){return t}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Nb({name:"base",type:t,pure:!0}),t})(),a=(()=>{class t{transform(t){try{return Object(i.p)(t)}catch(e){return t}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Nb({name:"quote",type:t,pure:!0}),t})(),c=(()=>{class t{transform(t){try{return Object(i.n)(t).replace(r.b,"BTC")}catch(e){return t.replace(r.b,"BTC")}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Nb({name:"collateral",type:t,pure:!0}),t})(),l=(()=>{class t{transform(t){try{return Object(i.z)(t)}catch(e){return t}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Nb({name:"traded",type:t,pure:!0}),t})(),u=(()=>{class t{transform(t){if(null==t)return null;let e="";try{e="string"==typeof t?Object(i.o)(t):"symbol"in t&&t.type.startsWith("futures")?Object(i.o)(t.symbol):"pair"in t?t.pair:String(t)}catch(n){e=String(t)}return e.replace(r.b,"BTC")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Nb({name:"pair",type:t,pure:!0}),t})(),h=(()=>{class t{transform(t,e="long"){if(null==t)return null;try{return"string"==typeof t?Object(i.i)(t,e):"symbol"in t?Object(i.i)(t.symbol,e):"product_id"in t?Object(i.i)(t.product_id,e):String(t)}catch(n){return String(t)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Nb({name:"maturityMonth",type:t,pure:!0}),t})(),d=(()=>{class t{transform(t){if(null==t)return null;try{return"string"==typeof t?Object(i.f)(t):String(t)}catch(e){return String(t)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Nb({name:"contractFamily",type:t,pure:!0}),t})()},rWo0:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("HgnN"),r=n("i9P/");const s={closed:!0,next(t){},error(t){if(i.a.useDeprecatedSynchronousErrorHandling)throw t;Object(r.a)(t)},complete(){}}},rcUp:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("kZht");let r=(()=>{class t{transform(t,e=8){return""+t.substring(0,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.Nb({name:"truncate",type:t,pure:!0}),t})()},rfPA:function(t,e,n){"use strict";n.d(e,"a",(function(){return b}));var i=n("kZht"),r=n("mcff"),s=n("Asjx"),o=n("F6wS"),a=n("An66"),c=n("1etq"),l=n("NxuZ"),u=n("h2+Y"),h=n("aDqW");function d(t,e){if(1&t){const t=i.Vb();i.Ub(0,"mat-card-title"),i.Ub(1,"p",2),i.Qc(2),i.gc(3,"translate"),i.Tb(),i.Ub(4,"fa-icon",3),i.bc("click",(function(){return i.Ec(t),i.fc().closeDialog()})),i.Tb(),i.Tb()}if(2&t){const t=i.fc();i.Cb(2),i.Rc(i.ic(3,1,t.heading,t.interpolate))}}function p(t,e){1&t&&i.Pb(0,"mat-progress-bar",4)}const f=["*"];let b=(()=>{class t{constructor(t,e){this.dialogRef=t,this.breakpointObserver=e,this.padding="l",this.loading=!1}ngOnInit(){this.setDialogSize()}setDialogSize(){this.breakpointObserver.isMatched("(max-width: 599px)")?this.dialogRef.updateSize("100%","100%"):this.dialogRef.updateSize("auto","auto")}get paddingSize(){return this.padding?`var(--spacing-${this.padding})`:"0"}closeDialog(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(r.d),i.Ob(s.a))},t.\u0275cmp=i.Ib({type:t,selectors:[["pro-dialog"]],inputs:{heading:"heading",interpolate:"interpolate",padding:"padding",loading:"loading"},ngContentSelectors:f,decls:5,vars:4,consts:[[4,"ngIf"],["mode","indeterminate",4,"ngIf"],["subheading",""],["icon","close-medium","size","lg",1,"close",3,"click"],["mode","indeterminate"]],template:function(t,e){1&t&&(i.lc(),i.Ub(0,"mat-card"),i.Oc(1,d,5,4,"mat-card-title",0),i.Oc(2,p,1,0,"mat-progress-bar",1),i.Ub(3,"mat-card-content"),i.kc(4),i.Tb(),i.Tb()),2&t&&(i.Cb(1),i.mc("ngIf",e.heading),i.Cb(1),i.mc("ngIf",e.loading),i.Cb(1),i.Lc("padding",e.paddingSize))},directives:[o.a,a.n,o.b,o.d,c.a,l.b,u.a],pipes:[h.d],styles:["[_nghost-%COMP%]{display:block;height:100%;min-width:300px}[_nghost-%COMP%] mat-card-title[_ngcontent-%COMP%] .close[_ngcontent-%COMP%]{color:var(--text-colour);cursor:pointer}@media (max-width:1024px){[_nghost-%COMP%] mat-card[_ngcontent-%COMP%]{overflow-y:scroll}}@media (min-width:1025px) and (max-width:1366px){[_nghost-%COMP%] mat-card-content[_ngcontent-%COMP%]{max-height:500px}}@media (min-width:1367px) and (max-width:1440px){[_nghost-%COMP%] mat-card-content[_ngcontent-%COMP%]{max-height:650px}}"],changeDetection:0}),t})()},rgaJ:function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var i=n("kZht"),r=n("KQpv"),s=n.n(r);const o=s()("menuAim"),a=s()("trace:menuAim"),c={passive:!0},l=[];let u=0,h=(()=>{class t{constructor(t,e){var n,r,s,o,a;this.zone=t,this.element=e,this.exitMenuTrigger=!0,this.opts={},this.enter$=new i.o,this.exit$=new i.o,this.activate$=new i.o,this.deactivate$=new i.o,this.clickRow$=new i.o,this.exitMenu$=new i.o,this.config={exitDelay:null!==(n=this.opts.exitDelay)&&void 0!==n?n:0,subMenuSelector:null!==(r=this.opts.subMenuSelector)&&void 0!==r?r:"*",subMenuDirection:null!==(s=this.opts.subMenuDirection)&&void 0!==s?s:"right",tolerance:null!==(o=this.opts.tolerance)&&void 0!==o?o:75,isRoot:null===(a=this.opts.isRoot)||void 0===a||a}}ngAfterViewInit(){this.attach(this.element.nativeElement)}ngOnDestroy(){this.detach()}attach(t){this.menu=t;const e=t=>this.zone.run(()=>this.mouseenterRow(t));if(this.overListener=e,this.menu.addEventListener("mouseover",e,c),this.config.isRoot){const t=t=>this.zone.run(()=>this.mouseleaveMenu(t));this.leaveListener=t,this.menu.addEventListener("mouseleave",t,c)}1==++u&&document.addEventListener("mousemove",d,c)}mouseleaveMenu(t){this.timeoutId&&(window.clearTimeout(this.timeoutId),this.timeoutId=void 0),this.config.exitDelay?(this.exitTimeoutID&&window.clearTimeout(this.exitTimeoutID),this.exitTimeoutID=window.setTimeout(this.commitExit,this.config.exitDelay)):this.commitExit()}forceExit(){this.exitTimeoutID&&window.clearTimeout(this.exitTimeoutID),this.commitExit()}commitExit(){this.timeoutId=this.exitTimeoutID=void 0,this.exitMenuTrigger&&this.activeRow&&(this.activeRow=void 0,this.deactivate$.emit(this.activeRow)),this.exitMenu$.emit()}mouseenterRow(t){let e=t.target;if(e!==this.menu)if(this.exitTimeoutID&&(clearTimeout(this.exitTimeoutID),this.exitTimeoutID=void 0),this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=void 0),e.matches(`${this.rowSelector}, ${this.rowSelector} *`)){for(;!e.matches(this.rowSelector);)e=e.parentElement;e!==this.activeRow&&(e&&this.enter$.emit(e),this.possiblyActivate(e))}else console.warn("firing mouseenter on wrong element",e)}mouseleaveRow(t){this.exit$.emit(t.currentTarget)}clickRow(t){const e=t.currentTarget;e!==this.activeRow&&this.activate(e),this.clickRow$.emit([t,e])}activate(t){t!==this.activeRow&&(o("activating row",t),this.activeRow&&this.deactivate$.emit(this.activeRow),this.activeRow=t,this.activate$.emit(t))}possiblyActivate(t){const e=this.activationDelay();e?(a(`delaying row activation for ${e}ms`),this.timeoutId=window.setTimeout(()=>this.possiblyActivate(t),e)):(a("activating row immediately"),this.activate(t),this.activate$.emit(t))}activationDelay(){let t=!1;if(this.activeRow){const e=this.activeRow.parentElement.querySelectorAll(this.config.subMenuSelector);t=Array.from(e).some(t=>t===this.activeRow)}if(!t)return 0;const e=f(this.menu),n={x:e.left,y:e.top-this.config.tolerance},i={x:e.left+this.menu.offsetWidth,y:n.y},r={x:e.left,y:e.top+this.menu.offsetHeight+this.config.tolerance},s={x:e.left+this.menu.offsetWidth,y:r.y},o=l[l.length-1];let a=l[0];if(!o)return 0;if(a||(a=o),a.xs.x||a.ys.y)return 0;if(this.lastDelayLoc&&o.x===this.lastDelayLoc.x&&o.y===this.lastDelayLoc.y)return 0;const c={right:[i,s],left:[r,n],below:[s,r],above:[n,i]},[u,h]=c[this.config.subMenuDirection],d=p(o,u),b=p(o,h),g=p(a,u),m=p(a,h);return dm?(this.lastDelayLoc=o,300):(this.lastDelayLoc=void 0,0)}setActiveRow(t){this.activeRow=t,this.timeoutId&&(window.clearTimeout(this.timeoutId),this.timeoutId=void 0),this.exitTimeoutID&&(window.clearTimeout(this.exitTimeoutID),this.exitTimeoutID=void 0)}deactivateRow(){this.activeRow&&this.deactivate$.emit(this.activeRow),this.activeRow=void 0}detach(){this.menu&&(this.timeoutId&&clearTimeout(this.timeoutId),0==--u&&document.removeEventListener("mousemove",d),this.config.isRoot&&this.leaveListener&&this.menu.removeEventListener("mouseleave",this.leaveListener),this.overListener&&this.menu.removeEventListener("mouseover",this.overListener),this.timeoutId=this.lastDelayLoc=this.activeRow=this.menu=void 0)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.B),i.Ob(i.l))},t.\u0275dir=i.Jb({type:t,selectors:[["","menuAim",""]],inputs:{rowSelector:["menuAim","rowSelector"],exitMenuTrigger:["menuAimExitMenu","exitMenuTrigger"],opts:["menuAimOpts","opts"]},outputs:{enter$:"menuAimEnter",exit$:"menuAimExit",activate$:"menuAimActivate",deactivate$:"menuAimDeactivate",clickRow$:"menuAimClickRow",exitMenu$:"menuAimExitMenu"},exportAs:["menuAim"]}),t})();const d=t=>{l.push({x:t.pageX,y:t.pageY}),l.length>3&&l.shift()},p=(t,e)=>(e.y-t.y)/(e.x-t.x),f=t=>{const{top:e,left:n}=t.getBoundingClientRect(),{pageXOffset:i,pageYOffset:r}=t.ownerDocument.defaultView;return{top:e+r,left:n+i}}},rqGg:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("lx5p"),r=n("mlVJ"),s=n("kZht");let o=(()=>{class t{transform(t){return Object(i.m)(t)?t.name.replace(r.b,"BTC"):""}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Nb({name:"asset",type:t,pure:!0}),t})()},ruxD:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("5uGe"),r=n("bwdy");function s(t){return e=>e.lift(new o(t))}class o{constructor(t){this.callback=t}call(t,e){return e.subscribe(new a(t,this.callback))}}class a extends i.a{constructor(t,e){super(t),this.add(new r.a(e))}}},rxqU:function(t,e,n){"use strict";n.d(e,"o",(function(){return b})),n.d(e,"i",(function(){return g})),n.d(e,"d",(function(){return m})),n.d(e,"j",(function(){return _})),n.d(e,"e",(function(){return y})),n.d(e,"c",(function(){return O})),n.d(e,"k",(function(){return C})),n.d(e,"l",(function(){return w})),n.d(e,"n",(function(){return T})),n.d(e,"b",(function(){return k})),n.d(e,"a",(function(){return x})),n.d(e,"y",(function(){return P})),n.d(e,"p",(function(){return A})),n.d(e,"q",(function(){return I})),n.d(e,"r",(function(){return M})),n.d(e,"g",(function(){return R})),n.d(e,"h",(function(){return j})),n.d(e,"t",(function(){return L})),n.d(e,"s",(function(){return N})),n.d(e,"f",(function(){return U})),n.d(e,"m",(function(){return F})),n.d(e,"z",(function(){return B})),n.d(e,"x",(function(){return z})),n.d(e,"v",(function(){return $})),n.d(e,"w",(function(){return H})),n.d(e,"A",(function(){return q})),n.d(e,"u",(function(){return Q}));var i=n("D57K"),r=n("zqNl"),s=n("og7C"),o=n("VmIW"),a=n("lx5p"),c=n("p5wL"),l=n("TYVA"),u=n("0tVE"),h=n("bjK4"),d=n("+Px6");const p={details:void 0,api:{keys:[]},alerts:{initialMargin:!1,maintenanceMargin:!1,newsletter:!1,finalSettlement:!1,accountLogin:!1,ticketSubmission:!1,depositReceived:!1,withdrawalReceived:!1},limitations:{termsAgreedDate:void 0,assignmentProgramAgreedDate:void 0,allowedEWallet:!1},feData:{},subaccounts:[],summary:void 0,documents:[],feeScheduleVolumes:Object(s.b)(),algos:[]},f=Object(r.i)(p,Object(r.k)(u.x,()=>p),Object(r.k)(u.G,(t,e)=>Object(c.b)(e,t,"details")),Object(r.k)(u.z,(t,{keys:e})=>Object(c.b)(e,t,"api","keys")),Object(r.k)(u.c,(t,e)=>Object(c.b)([...t.api.keys,e],t,"api","keys")),Object(r.k)(u.u,(t,{keyId:e})=>Object(c.b)(t.api.keys.filter(t=>t.id!==e),t,"api","keys")),Object(r.k)(u.I,(t,e)=>Object(c.b)(e,t,"limitations")),Object(r.k)(u.J,(t,e)=>Object(c.b)(e,t,"summary")),Object(r.k)(u.H,(t,{docs:e})=>Object(c.b)(e,t,"documents")),Object(r.k)(u.s,(t,e)=>Object(c.b)(e,t,"feData")),Object(r.k)(u.e,(t,e)=>Object(c.a)(e,t,"feData")),Object(r.k)(u.d,(t,{marketDescriptor:e})=>Object(c.b)(Object(s.f)(t.feData.favoriteMarkets||[]).add(e).toArray(),t,"feData","favoriteMarkets")),Object(r.k)(u.v,(t,{marketDescriptor:e})=>Object(c.b)(Object(s.f)(t.feData.favoriteMarkets||[]).remove(e).toArray(),t,"feData","favoriteMarkets")),Object(r.k)(u.D,(t,e)=>{var n=Object(i.f)(e,["type"]);return Object(c.b)(Object.assign(Object.assign({},t.feData.quantityUnits),n),t,"feData","quantityUnits")}),Object(r.k)(u.B,(t,e)=>Object(c.b)(e,t,"alerts")),Object(r.k)(u.A,(t,{date:e})=>Object(c.b)(e,t,"limitations","assignmentProgramAgreedDate")),Object(r.k)(u.E,(t,{accounts:e})=>Object(c.b)(e,t,"subaccounts")),Object(r.k)(u.K,(t,{volumes:e})=>Object(c.b)(Object(s.b)(e),t,"feeScheduleVolumes")),Object(r.k)(u.F,(t,{algos:e})=>Object(c.b)(e,t,"algos")));function b(t,e){return f(t,e)}const g=Object(r.h)("user"),m=Object(r.j)(g,t=>t.details),v=Object(r.j)(g,t=>t.summary),_=Object(r.j)(v,t=>null==t?void 0:t.uid),y=Object(r.j)(m,t=>null==t?void 0:t.email),O=Object(r.j)(m,t=>null==t?void 0:t.countryCode),C=Object(r.j)(m,t=>"DE"===(null==t?void 0:t.countryCode)||"DEU"===(null==t?void 0:t.countryCode)),w=Object(r.j)(m,t=>{var e;return null!==(e=null==t?void 0:t.external)&&void 0!==e&&e}),T=Object(r.j)(m,t=>{var e;return null!==(e=null==t?void 0:t.isSubAccount)&&void 0!==e&&e}),S=(Object(r.j)(m,t=>null==t?void 0:t.platformName),Object(r.j)(g,t=>null==t?void 0:t.documents),Object(r.j)(g,Object(a.F)("feeScheduleVolumes"))),k=Object(r.j)(g,t=>t.algos),E=Object(r.j)(g,t=>t.limitations),x=Object(r.j)(g,t=>t.feData),P=Object(r.j)(x,t=>{var e;return null===(e=t.tooltipsShown)||void 0===e||e}),A=Object(r.j)(x,t=>{var e;return Object(s.f)(null!==(e=t.favoriteMarkets)&&void 0!==e?e:[])}),I=Object(r.j)(x,d.p,(t,e)=>o.Maybe.fromFalsy(t.activityPairFilterOn).map(()=>e)),M=Object(r.j)(x,h.l,(t,e)=>l.a),D=Object(r.j)(g,Object(a.F)("api")),R=Object(r.j)(D,Object(a.F)("keys")),j=Object(r.j)(g,Object(a.F)("alerts")),L=Object(r.j)(g,Object(a.F)("subaccounts")),N=Object(r.j)(L,t=>t.map(Object(a.F)("email"))),U=Object(r.j)(L,t=>t.length),F=Object(r.j)(m,t=>!!t),B=Object(r.j)(E,t=>t?!!t.assignmentProgramAgreedDate:void 0),z=Object(r.j)(S,d.n,(t,e)=>o.Maybe.fromNull("flexible_futures"===(null==e?void 0:e.type)||"futures_inverse"===(null==e?void 0:e.type)||"futures_vanilla"===(null==e?void 0:e.type)?t.get(e.feeScheduleUid):0)),V=Object(r.j)(d.e,S,l.q),$=Object(r.j)(V,d.n,(t,e)=>"flexible_futures"===(null==e?void 0:e.type)||"futures_inverse"===(null==e?void 0:e.type)||"futures_vanilla"===(null==e?void 0:e.type)?o.Maybe.fromNull(t.get(e.feeScheduleUid)):o.Maybe.None()),H=Object(r.j)($,z,(t,e)=>t.flatMap(Object(a.F)(1)).flatMap(t=>e.map(e=>[t,e])).map(([t,e])=>t.usdVolume-e)),q=Object(r.j)(m,t=>!(null==t?void 0:t.external)&&"mtf"===(null==t?void 0:t.platformName)),Q=Object(r.j)(m,t=>null==t?void 0:t.defaultTransferPreference)},ryP2:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("6Oco"),r=n("ROBh"),s=n("47ST");let o=(()=>{class t{constructor(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}accept(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}toObservable(){switch(this.kind){case"N":return Object(r.a)(this.value);case"E":return Object(s.a)(this.error);case"C":return Object(i.b)()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})()},"s/Os":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("YwYi"),r=n("ssKD"),s=n("oznm");e.default=function(){function t(t){this.field=t,this.cachedGenerators=[],this.cachedGenerators.push(new i.default(t,Int32Array.from([1])))}return t.prototype.buildGenerator=function(t){var e=this.cachedGenerators;if(t>=e.length)for(var n=e[e.length-1],r=this.field,s=e.length;s<=t;s++){var o=n.multiply(new i.default(r,Int32Array.from([1,r.exp(s-1+r.getGeneratorBase())])));e.push(o),n=o}return e[t]},t.prototype.encode=function(t,e){if(0===e)throw new s.default("No error correction bytes");var n=t.length-e;if(n<=0)throw new s.default("No data bytes provided");var o=this.buildGenerator(e),a=new Int32Array(n);r.default.arraycopy(t,0,a,0,n);for(var c=new i.default(this.field,a),l=(c=c.multiplyByMonomial(e,1)).divide(o)[1].getCoefficients(),u=e-l.length,h=0;h{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(r.Kb)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),l=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=Object(i.e)(t);return new s.a(t=>{const n=this._observeElement(e).subscribe(t);return()=>{n.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new o.b,n=this._mutationObserverFactory.create(t=>e.next(t));n&&n.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:n,stream:e,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:e,stream:n}=this._observedElements.get(t);e&&e.disconnect(),n.complete(),this._observedElements.delete(t)}}}return t.\u0275fac=function(e){return new(e||t)(r.Yb(c))},t.\u0275prov=Object(r.Kb)({factory:function(){return new t(Object(r.Yb)(c))},token:t,providedIn:"root"}),t})(),u=(()=>{class t{constructor(t,e,n){this._contentObserver=t,this._elementRef=e,this._ngZone=n,this.event=new r.o,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=Object(i.c)(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=Object(i.f)(t),this._subscribe()}ngAfterContentInit(){this._currentSubscription||this.disabled||this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe(Object(a.a)(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){this._currentSubscription&&this._currentSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(r.Ob(l),r.Ob(r.l),r.Ob(r.B))},t.\u0275dir=r.Jb({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),h=(()=>{class t{}return t.\u0275mod=r.Mb({type:t}),t.\u0275inj=r.Lb({factory:function(e){return new(e||t)},providers:[c]}),t})()},s92m:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("oznm");e.default=function(){function t(t){if(this.binarizer=t,null===t)throw new i.default("Binarizer must be non-null.")}return t.prototype.getWidth=function(){return this.binarizer.getWidth()},t.prototype.getHeight=function(){return this.binarizer.getHeight()},t.prototype.getBlackRow=function(t,e){return this.binarizer.getBlackRow(t,e)},t.prototype.getBlackMatrix=function(){return null==this.matrix&&(this.matrix=this.binarizer.getBlackMatrix()),this.matrix},t.prototype.isCropSupported=function(){return this.binarizer.getLuminanceSource().isCropSupported()},t.prototype.crop=function(e,n,i,r){var s=this.binarizer.getLuminanceSource().crop(e,n,i,r);return new t(this.binarizer.createBinarizer(s))},t.prototype.isRotateSupported=function(){return this.binarizer.getLuminanceSource().isRotateSupported()},t.prototype.rotateCounterClockwise=function(){var e=this.binarizer.getLuminanceSource().rotateCounterClockwise();return new t(this.binarizer.createBinarizer(e))},t.prototype.rotateCounterClockwise45=function(){var e=this.binarizer.getLuminanceSource().rotateCounterClockwise45();return new t(this.binarizer.createBinarizer(e))},t.prototype.toString=function(){try{return this.getBlackMatrix().toString()}catch(t){return""}},t}()},s96x:function(t,e,n){"use strict";n.d(e,"a",(function(){return _}));var i=n("kZht"),r=n("+vck"),s=n("1etq"),o=n("yPvj"),a=n("anSm"),c=n("NxuZ"),l=n("WYJo"),u=n("1o0v"),h=n("oiza"),d=n("chaP"),p=n("WRMk"),f=n("rUBT"),b=n("An66"),g=n("rcUp"),m=n("aDqW"),v=n("DpwM");let _=(()=>{class t{constructor(){this.selectTicker=new i.o,this.editOrder=new i.o,this.cancelOrder=new i.o,this.viewDetailed=new i.o}get filledProgress(){return 0===this.order.filled?0:this.order.qty/this.order.filled*100}get direction(){return this.order.direction===r.a.Sell?"SIDE.SELL":"SIDE.BUY"}get triggerSign(){return"stop"===this.order.type==(this.order.direction===r.a.Buy)?"\u2265":"\u2264"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["open-orders-mobile"]],inputs:{order:"order"},outputs:{selectTicker:"selectTicker",editOrder:"editOrder",cancelOrder:"cancelOrder",viewDetailed:"viewDetailed"},decls:49,vars:57,consts:[[1,"card",3,"click"],[1,"row"],["subheading",""],[3,"pair"],["body","",1,"buttons"],["icon","file","size","2x",1,"copy-button",3,"click"],["primary","","icon","edit","size","2x",1,"edit-button",3,"matTooltip","click"],["icon","close","size","2x",1,"close-button",3,"matTooltip","click"],["body",""],["ghost",""],["uppercase","","ghost",""],["body","",1,"direction-cell"],["body","",1,"price-cell"],["mono",""],["body","",1,"progress-cell"],[3,"progress","showPercentage"]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.bc("click",(function(){return e.selectTicker.emit({symbol:e.order.instrument,replaceUrl:!1})})),i.Ub(1,"div",1),i.Ub(2,"div",2),i.Pb(3,"market-icon",3),i.gc(4,"pair"),i.Qc(5),i.gc(6,"uppercase"),i.gc(7,"contractFamily"),i.gc(8,"pair"),i.gc(9,"truncate"),i.gc(10,"translate"),i.gc(11,"maturityMonth"),i.Tb(),i.Ub(12,"div",4),i.Ub(13,"fa-icon",5),i.bc("click",(function(t){return e.viewDetailed.emit({order:e.order}),t.stopPropagation()})),i.Tb(),i.Ub(14,"fa-icon",6),i.bc("click",(function(t){return e.editOrder.emit({order:e.order}),t.stopPropagation()})),i.gc(15,"translate"),i.Tb(),i.Ub(16,"fa-icon",7),i.bc("click",(function(t){return e.cancelOrder.emit({id:e.order.order_id}),t.stopPropagation()})),i.gc(17,"translate"),i.Tb(),i.Tb(),i.Tb(),i.Ub(18,"div",1),i.Ub(19,"div",8),i.Qc(20),i.gc(21,"date"),i.Ub(22,"span",9),i.Qc(23),i.gc(24,"date"),i.Tb(),i.Tb(),i.Ub(25,"div",8),i.Ub(26,"p",10),i.Qc(27),i.gc(28,"translate"),i.Tb(),i.Tb(),i.Tb(),i.Ub(29,"div",1),i.Ub(30,"div",11),i.Ub(31,"strong"),i.Qc(32),i.gc(33,"translate"),i.Tb(),i.Tb(),i.Ub(34,"div",12),i.Ub(35,"span",13),i.Qc(36),i.gc(37,"sato"),i.gc(38,"translate"),i.Tb(),i.Ub(39,"span",9),i.Qc(40),i.gc(41,"quote"),i.Tb(),i.Tb(),i.Ub(42,"div",14),i.Ub(43,"div"),i.Ub(44,"span"),i.Qc(45),i.Tb(),i.Ub(46,"span",9),i.Qc(47),i.Tb(),i.Tb(),i.Pb(48,"progress-bar",15),i.Tb(),i.Tb(),i.Tb()),2&t&&(i.Cb(3),i.mc("pair",i.hc(4,20,e.order.instrument)),i.Cb(2),i.Uc(" ",i.hc(6,22,i.hc(7,24,e.order.instrument))," ",i.hc(8,26,e.order.instrument)," ",i.ic(9,28,i.hc(10,31,i.ic(11,33,e.order.instrument,"short")),4),". "),i.Cb(9),i.mc("matTooltip",i.hc(15,36,"BUTTON.EDIT")),i.Cb(2),i.mc("matTooltip",i.hc(17,38,"BUTTON.CANCEL")),i.Cb(4),i.Sc(" ",i.ic(21,40,e.order.time,"HH:mm:ss")," "),i.Cb(3),i.Rc(i.ic(24,43,e.order.time,"dd/MMM/yyyy")),i.Cb(4),i.Rc(i.hc(28,46,"LABEL.REMAINING")),i.Cb(4),i.Gb("global__text--accent",0===e.order.direction)("global__text--warn",1===e.order.direction),i.Cb(1),i.Sc(" ",i.hc(33,48,e.direction)," "),i.Cb(4),i.Sc(" ",e.order.limit_price?i.ic(37,50,e.order.limit_price,e.order):i.hc(38,53,"LABEL.MARKET")," "),i.Cb(4),i.Rc(e.order.limit_price?i.hc(41,55,e.order.instrument):null),i.Cb(5),i.Rc(e.order.qty),i.Cb(2),i.Sc(" / ",e.order.qty+e.order.filled,""),i.Cb(1),i.mc("progress",e.filledProgress)("showPercentage",!0))},directives:[s.a,o.a,a.a,c.b,l.a,u.a,h.a,d.a,p.a],pipes:[f.e,b.x,f.c,g.a,m.d,f.d,b.e,v.c,f.f],styles:["market-icon[_ngcontent-%COMP%]{font-size:20px}[_nghost-%COMP%]{display:block;border-bottom:1px solid var(--border-colour);margin-bottom:var(--spacing);padding-bottom:var(--spacing)}market-icon[_ngcontent-%COMP%]{margin-right:var(--spacing-s);vertical-align:middle}.row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding:0 var(--spacing-s)}.row[_ngcontent-%COMP%] + .row[_ngcontent-%COMP%]{margin-top:var(--spacing)}.buttons[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{cursor:pointer}.buttons[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]:not(:last-of-type){margin-right:var(--spacing)}.buttons[_ngcontent-%COMP%] .copy-button[_ngcontent-%COMP%], .buttons[_ngcontent-%COMP%] .edit-button[_ngcontent-%COMP%], .buttons[_ngcontent-%COMP%] .info-button[_ngcontent-%COMP%], .buttons[_ngcontent-%COMP%] .limit-button[_ngcontent-%COMP%], .buttons[_ngcontent-%COMP%] .market-button[_ngcontent-%COMP%]{color:var(--brand)}.buttons[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%]{color:var(--warn-colour)}.type-cell[_ngcontent-%COMP%]{display:flex;align-items:center;flex:0.5}.direction-cell[_ngcontent-%COMP%], .size-cell[_ngcontent-%COMP%]{display:flex;align-items:center;flex:0.25}.price-cell[_ngcontent-%COMP%]{display:flex;flex-direction:column;text-align:right;flex:0.5}.price-cell[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:first-of-type{margin-bottom:var(--spacing-s)}.progress-cell[_ngcontent-%COMP%]{text-align:right;flex:0.75}.progress-cell[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:first-of-type{margin-bottom:var(--spacing-s)}.progress-cell[_ngcontent-%COMP%]{margin-left:var(--spacing-l)}"],changeDetection:0}),t})()},sBeF:function(t,e,n){"use strict";n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return d})),n.d(e,"d",(function(){return p})),n.d(e,"e",(function(){return u})),n.d(e,"f",(function(){return h})),n.d(e,"g",(function(){return f})),n.d(e,"h",(function(){return c}));var i=n("9bRT"),r=n("ROBh"),s=n("ZTXN"),o=n("kZht");class a{}function c(t){return t&&"function"==typeof t.connect}class l extends a{constructor(t){super(),this._data=t}connect(){return Object(i.a)(this._data)?this._data:Object(r.a)(this._data)}disconnect(){}}class u{applyChanges(t,e,n,i,r){t.forEachOperation((t,i,s)=>{let o,a;if(null==t.previousIndex){const r=n(t,i,s);o=e.createEmbeddedView(r.templateRef,r.context,r.index),a=1}else null==s?(e.remove(i),a=3):(o=e.get(i),e.move(o,s),a=2);r&&r({context:null==o?void 0:o.context,operation:a,record:t})})}detach(){}}class h{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(t,e,n,i,r){t.forEachOperation((t,s,o)=>{let a,c;null==t.previousIndex?(a=this._insertView(()=>n(t,s,o),o,e,i(t)),c=a?1:0):null==o?(this._detachAndCacheView(s,e),c=3):(a=this._moveView(s,o,e,i(t)),c=2),r&&r({context:null==a?void 0:a.context,operation:c,record:t})})}detach(){for(const t of this._viewCache)t.destroy()}_insertView(t,e,n,i){let r=this._insertViewFromCache(e,n);if(r)return void(r.context.$implicit=i);const s=t();return n.createEmbeddedView(s.templateRef,s.context,s.index)}_detachAndCacheView(t,e){const n=this._detachView(t,e);this._maybeCacheView(n,e)}_moveView(t,e,n,i){const r=n.get(t);return n.move(r,e),r.context.$implicit=i,r}_maybeCacheView(t,e){if(this._viewCache.lengththis._markSelected(t)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(t=>this._markSelected(t)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(t=>this._unmarkSelected(t)),this._emitChangeEvent()}toggle(t){this.isSelected(t)?this.deselect(t):this.select(t)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(t){return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}}let p=(()=>{class t{constructor(){this._listeners=[]}notify(t,e){for(let n of this._listeners)n(t,e)}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(e=>t!==e)}}ngOnDestroy(){this._listeners=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(o.Kb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const f=new o.s("_ViewRepeater")},"sC+B":function(t,e,n){"use strict";n.r(e),n.d(e,"ConfirmationComponent",(function(){return O}));var i=n("mcff"),r=n("Tjvn"),s=n("kZht"),o=n("zqNl"),a=n("i9Na"),c=n("rfPA"),l=n("bBQR"),u=n("An66"),h=n("anSm"),d=n("UDV5"),p=n("hCLc"),f=n("aDqW");function b(t,e){if(1&t&&(s.Ub(0,"p",6),s.Qc(1),s.gc(2,"translate"),s.Tb()),2&t){const t=s.fc();s.Cb(1),s.Sc(" ",s.hc(2,1,t.inputs.subtitle)," ")}}function g(t,e){if(1&t){const t=s.Vb();s.Ub(0,"mat-checkbox",7),s.bc("change",(function(e){return s.Ec(t),s.fc().toggleButtonsEnabled(e)})),s.Qc(1),s.gc(2,"translate"),s.Tb()}if(2&t){const t=s.fc();s.Cb(1),s.Sc(" ",s.hc(2,1,t.inputs.checkbox)," ")}}function m(t,e){if(1&t){const t=s.Vb();s.Ub(0,"button",10),s.bc("click",(function(e){s.Ec(t);const n=s.fc().$implicit;return s.fc().handleButtonActions(n.actions,e,n.callback)})),s.Qc(1),s.gc(2,"translate"),s.Tb()}if(2&t){const t=s.fc().$implicit,e=s.fc();s.mc("color",t.colour)("disabled",!e.buttonsEnabled),s.Cb(1),s.Sc(" ",s.hc(2,3,t.label)," ")}}function v(t,e){if(1&t){const t=s.Vb();s.Ub(0,"button",11),s.bc("click",(function(e){s.Ec(t);const n=s.fc().$implicit;return s.fc().handleButtonActions(n.actions,e,n.callback)})),s.Qc(1),s.gc(2,"translate"),s.Tb()}if(2&t){const t=s.fc().$implicit,e=s.fc();s.mc("disabled",!e.buttonsEnabled),s.Cb(1),s.Sc(" ",s.hc(2,2,t.label)," ")}}function _(t,e){if(1&t&&(s.Sb(0),s.Oc(1,m,3,5,"button",8),s.Oc(2,v,3,4,"button",9),s.Rb()),2&t){const t=e.$implicit;s.Cb(1),s.mc("ngIf",t.colour),s.Cb(1),s.mc("ngIf",!t.colour)}}const y=()=>{};let O=(()=>{class t{constructor(t,e,n,i){this.store=t,this.dialogRef=e,this.inputs=n,this.buttonsEnabled=!this.inputs.checkbox,i.renderer.link=r.a,i.renderer.paragraph=r.c,i.renderer.listitem=r.b}toggleButtonsEnabled({checked:t}){this.buttonsEnabled=t}handleButtonActions(t,e,n=y){n(e),t.forEach(t=>this.store.dispatch(t)),this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(s.Ob(o.b),s.Ob(i.d),s.Ob(i.a),s.Ob(a.c))},t.\u0275cmp=s.Ib({type:t,selectors:[["confirmation"]],decls:8,vars:7,consts:[[3,"heading"],["body","","class","subtitle",4,"ngIf"],["markdown","",1,"body",3,"data"],["body","","class","checkbox",3,"change",4,"ngIf"],[1,"buttons"],[4,"ngFor","ngForOf"],["body","",1,"subtitle"],["body","",1,"checkbox",3,"change"],["body","","mat-raised-button","",3,"color","disabled","click",4,"ngIf"],["body","","mat-button","",3,"disabled","click",4,"ngIf"],["body","","mat-raised-button","",3,"color","disabled","click"],["body","","mat-button","",3,"disabled","click"]],template:function(t,e){1&t&&(s.Ub(0,"pro-dialog",0),s.Ub(1,"section"),s.Oc(2,b,3,3,"p",1),s.Pb(3,"section",2),s.gc(4,"translate"),s.Oc(5,g,3,3,"mat-checkbox",3),s.Ub(6,"section",4),s.Oc(7,_,3,2,"ng-container",5),s.Tb(),s.Tb(),s.Tb()),2&t&&(s.mc("heading",e.inputs.title),s.Cb(2),s.mc("ngIf",e.inputs.subtitle),s.Cb(1),s.mc("data",s.hc(4,5,e.inputs.body)),s.Cb(2),s.mc("ngIf",e.inputs.checkbox),s.Cb(2),s.mc("ngForOf",e.inputs.buttons))},directives:[c.a,l.a,u.n,a.a,u.m,h.a,d.a,p.b],pipes:[f.d],styles:[".body[_ngcontent-%COMP%], .subtitle[_ngcontent-%COMP%]{margin-bottom:var(--spacing-l)}.body[_ngcontent-%COMP%]{max-width:650px}.body[_ngcontent-%COMP%] p{line-height:1.3}.buttons[_ngcontent-%COMP%]{justify-content:flex-end;margin-top:var(--spacing-l)}.buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:not(:last-child){margin-right:var(--spacing)}"],changeDetection:0}),t})()},sHul:function(t,e,n){"use strict";n.r(e),n.d(e,"SignUpComponent",(function(){return z}));var i=n("D57K"),r=n("3kIJ"),s=n("zqNl"),o=n("lx5p"),a=n("i67J"),c=n("94ty"),l=n("zdQl"),u=n("bjK4"),h=n("MUfl"),d=n("uJYd"),p=n("Tjvn"),f=n("9Ccw"),b=n("gxtV"),g=n("jIqt"),m=n("Ohay"),v=n("sXtk"),_=n("kZht"),y=n("Asjx"),O=n("mcff"),C=n("i9Na"),w=n("rfPA"),T=n("bBQR"),S=n("afE0"),k=n("hCLc"),E=n("3W1Y"),x=n("aDqW"),P=n("An66"),A=n("anSm"),I=n("EmXI"),M=n("Tcl6"),D=n("eGwX"),R=n("IOEv"),j=n("pTnX"),L=n("UDV5"),N=n("scAs");function U(t,e){1&t&&(_.Ub(0,"div",21),_.Ub(1,"p",22),_.Qc(2),_.gc(3,"translate"),_.Tb(),_.Ub(4,"p",23),_.Qc(5),_.gc(6,"translate"),_.Tb(),_.Ub(7,"p",19),_.Pb(8,"markdown",24),_.gc(9,"translate"),_.Tb(),_.Tb()),2&t&&(_.Cb(2),_.Sc(" ",_.hc(3,3,"ERROR.PASSWORD_COMPROMISED")," "),_.Cb(3),_.Sc(" ",_.hc(6,5,"SUPPORT.HAVE_I_BEEN_PWNED")," "),_.Cb(3),_.mc("data",_.hc(9,7,"SUPPORT.PWNED_URL")))}function F(t,e){1&t&&(_.Ub(0,"mat-error"),_.Qc(1),_.gc(2,"translate"),_.Tb()),2&t&&(_.Cb(1),_.Sc(" ",_.hc(2,1,"FORM.EMAIL_ERROR")," "))}function B(t,e){1&t&&(_.Ub(0,"mat-checkbox",25),_.Qc(1),_.gc(2,"translate"),_.Tb()),2&t&&(_.Cb(1),_.Sc(" ",_.hc(2,1,"FORM.USE_COMPROMISED_PASSWORD_CONFIRM")," "))}let z=(()=>{let t=class{constructor(t,e,n,i,r,a,h){this.store=t,this.feature=e,this.formBuilder=n,this.breakpointObserver=i,this.dialogRef=r,this.env=h,this.isPasswordCompromised=!1,this.form=this.buildForm(),this.reset=!1,this.loading$=this.store.pipe(Object(s.m)(u.m,{filter:c.C.type})),this.affiliateCode$=this.store.pipe(Object(s.m)(l.c)),this.passwordCompromised$=this.store.select(f.h),a.renderer.link=p.a,a.renderer.image=Object(o.b)("")}get translateParams(){return{magUrl:"https://www.cryptofacilities.com/membership-agreement",privUrl:"https://www.cryptofacilities.com/privacy-policy",existing:{link:"https://futures.kraken.com"},tc:{openMagg:"",closeMagg:"",openPriv:"",closePriv:""}}}ngOnInit(){this.setDialogSize(),this.affiliateCode$.pipe(Object(a.h)(),Object(b.b)(this)).subscribe(t=>this.form.get("affiliateUid").setValue(t)),this.passwordCompromised$.pipe(Object(g.a)(!1),Object(m.a)(),Object(b.b)(this)).subscribe(t=>{var e,n;this.isPasswordCompromised=t,t?null===(n=this.form.get("allowPwnedPassword"))||void 0===n||n.enable():null===(e=this.form.get("allowPwnedPassword"))||void 0===e||e.disable()})}ngOnDestroy(){this.reset=!0}submitForm(){this.store.dispatch(Object(c.C)(Object.assign(Object.assign({},this.form.value),{allowPwned:this.isPasswordCompromised})))}updatePassword(t){this.store.dispatch(Object(c.q)({passwordCompromised:!1})),this.form.get("password").setValue(t)}closeDialog(t){this.dialogRef.close(),this.store.dispatch(Object(d.n)(c.t.type)),this.store.dispatch(Object(c.q)({passwordCompromised:!1})),t&&this.store.dispatch(Object(d.g)(t))}goToKrakenSignUp(){window.open(this.env.urls.externalSignUp,"_blank","noopener")}setDialogSize(){this.breakpointObserver.isMatched("(max-width: 599px)")?this.dialogRef.updateSize("100%","100%"):this.dialogRef.updateSize("350px","auto")}buildForm(){return this.formBuilder.group({email:["",[r.x.required,r.x.email]],password:["",[r.x.required]],accountType:["individual",[r.x.required]],marketing:[!1,[r.x.required]],acknowledgement:[!1,[r.x.requiredTrue]],affiliateUid:[""],allowPwnedPassword:[!1,[r.x.requiredTrue]]})}};return t.\u0275fac=function(e){return new(e||t)(_.Ob(s.b),_.Ob(h.a),_.Ob(r.d),_.Ob(y.a),_.Ob(O.d),_.Ob(C.c),_.Ob(v.a))},t.\u0275cmp=_.Ib({type:t,selectors:[["sign-up"]],decls:47,vars:46,consts:[["heading","DIALOG.SIGNUP.TITLE",3,"loading"],[1,"sign-up-inner"],["icon","user-full"],["mat-raised-button","",3,"disabled","click"],["caption","","translate",""],["class","warning",4,"ngIf"],["body","",3,"formGroup","ngSubmit"],["color","accent","appearance","fill"],["formControlName","email","required","","matInput","","type","email"],[4,"ngIf"],[3,"resetToggle","passwordUpdate"],["matNativeControl","","formControlName","accountType"],["value","individual"],["value","corporate"],["formControlName","marketing",1,"no-border"],["formControlName","acknowledgement","required","",1,"no-border"],["markdown","",3,"data"],["class","no-border","formControlName","allowPwnedPassword",4,"ngIf"],["mat-raised-button","",3,"disabled"],["body",""],[1,"global__text--link",3,"click"],[1,"warning"],["body","","bold","",1,"global__text--warn"],["body","","bold",""],[3,"data"],["formControlName","allowPwnedPassword",1,"no-border"]],template:function(t,e){1&t&&(_.Ub(0,"pro-dialog",0),_.gc(1,"async"),_.Ub(2,"div",1),_.Pb(3,"dialog-badge",2),_.Ub(4,"button",3),_.bc("click",(function(){return e.goToKrakenSignUp()})),_.gc(5,"async"),_.Qc(6),_.gc(7,"translate"),_.Tb(),_.Ub(8,"small",4),_.Qc(9,"FRAGMENT.OR"),_.Tb(),_.Oc(10,U,10,9,"div",5),_.gc(11,"async"),_.Ub(12,"form",6),_.bc("ngSubmit",(function(){return e.submitForm()})),_.Ub(13,"mat-form-field",7),_.Ub(14,"mat-label"),_.Qc(15),_.gc(16,"translate"),_.Tb(),_.Pb(17,"input",8),_.Oc(18,F,3,3,"mat-error",9),_.Tb(),_.Ub(19,"input-password-confirm",10),_.bc("passwordUpdate",(function(t){return e.updatePassword(t)})),_.Tb(),_.Ub(20,"mat-form-field",7),_.Ub(21,"mat-label"),_.Qc(22),_.gc(23,"translate"),_.Tb(),_.Ub(24,"mat-select",11),_.Ub(25,"mat-option",12),_.Qc(26),_.gc(27,"translate"),_.Tb(),_.Ub(28,"mat-option",13),_.Qc(29),_.gc(30,"translate"),_.Tb(),_.Tb(),_.Tb(),_.Ub(31,"mat-checkbox",14),_.Qc(32),_.gc(33,"translate"),_.Tb(),_.Ub(34,"mat-checkbox",15),_.Pb(35,"span",16),_.gc(36,"translate"),_.Tb(),_.Oc(37,B,3,3,"mat-checkbox",17),_.gc(38,"async"),_.Ub(39,"button",18),_.gc(40,"async"),_.Qc(41),_.gc(42,"translate"),_.Tb(),_.Tb(),_.Ub(43,"div",19),_.Ub(44,"a",20),_.bc("click",(function(){return e.closeDialog({name:"sign-in"})})),_.Qc(45),_.gc(46,"translate"),_.Tb(),_.Tb(),_.Tb(),_.Tb()),2&t&&(_.mc("loading",_.hc(1,17,e.loading$)),_.Cb(4),_.mc("disabled",_.hc(5,19,e.loading$)),_.Cb(2),_.Sc(" ",_.hc(7,21,"NAV.SIGN_UP_KRAKEN")," "),_.Cb(4),_.mc("ngIf",_.hc(11,23,e.passwordCompromised$)),_.Cb(2),_.mc("formGroup",e.form),_.Cb(3),_.Rc(_.hc(16,25,"FORM.EMAIL")),_.Cb(3),_.mc("ngIf",e.form.get("email").invalid),_.Cb(1),_.mc("resetToggle",e.reset),_.Cb(3),_.Rc(_.hc(23,27,"DIALOG.SIGNUP.ACCOUNT_SELECT.TYPE")),_.Cb(4),_.Sc(" ",_.hc(27,29,"DIALOG.SIGNUP.ACCOUNT_SELECT.INDIVIDUAL")," "),_.Cb(3),_.Sc(" ",_.hc(30,31,"DIALOG.SIGNUP.ACCOUNT_SELECT.CORPORATE")," "),_.Cb(3),_.Sc(" ",_.hc(33,33,"DIALOG.SIGNUP.MARKETING_CHECKBOX")," "),_.Cb(3),_.mc("data",_.ic(36,35,"DIALOG.SIGNUP.TC_READ",e.translateParams)),_.Cb(2),_.mc("ngIf",_.hc(38,38,e.passwordCompromised$)),_.Cb(2),_.mc("disabled",e.form.invalid||_.hc(40,40,e.loading$)),_.Cb(2),_.Sc(" ",_.hc(42,42,"DIALOG.SIGNUP.BUTTONS.EMAIL")," "),_.Cb(4),_.Sc(" ",_.hc(46,44,"DIALOG.SIGNUP.SIGNIN_LINK")," "))},directives:[w.a,T.a,S.a,k.b,E.a,x.a,P.n,r.z,r.p,A.a,r.h,I.c,I.f,r.c,M.b,r.o,r.g,r.v,D.a,R.a,j.n,L.a,L.c,C.a,N.a,I.b],pipes:[P.b,x.d],styles:[".sign-up-inner[_ngcontent-%COMP%]{max-width:40ch;text-align:center}.sign-up-inner[_ngcontent-%COMP%] dialog-badge[_ngcontent-%COMP%]{margin-bottom:var(--spacing-l)}.sign-up-inner[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{width:100%;margin-bottom:var(--spacing)}.sign-up-inner[_ngcontent-%COMP%] .warning[_ngcontent-%COMP%]{border:solid var(--warn-colour);text-align:center;padding:var(--spacing);margin:var(--spacing) 0}.sign-up-inner[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:var(--spacing) 0;width:100%}.sign-up-inner[_ngcontent-%COMP%] form[_ngcontent-%COMP%] mat-checkbox[_ngcontent-%COMP%]{text-align:left}.sign-up-inner[_ngcontent-%COMP%] form[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{margin-top:var(--spacing)}markdown[_ngcontent-%COMP%] a{color:var(--link-colour)}"],changeDetection:0}),t=Object(i.d)([Object(b.a)()],t),t})()},sJbC:function(t,e,n){"use strict";n.r(e),n.d(e,"ExternalTermsComponent",(function(){return C}));var i=n("lx5p"),r=n("zqNl"),s=n("jOdJ"),o=n("uJYd"),a=n("0tVE"),c=n("R1aX"),l=n("Tjvn"),u=n("kZht"),h=n("mcff"),d=n("aDqW"),p=n("i9Na"),f=n("rfPA"),b=n("bBQR"),g=n("Eu46"),m=n("An66"),v=n("UDV5"),_=n("hCLc");function y(t,e){1&t&&(u.Ub(0,"li"),u.Qc(1),u.gc(2,"translate"),u.Tb()),2&t&&(u.Cb(1),u.Sc(" ",u.hc(2,1,"DIALOG.KRAKEN_TERMS.CONTENT.QUESTIONNAIRE")," "))}function O(t,e){if(1&t){const t=u.Vb();u.Ub(0,"section",2),u.Ub(1,"section",3),u.Pb(2,"img",4),u.Tb(),u.Ub(3,"section",5),u.Ub(4,"p",6),u.Qc(5),u.gc(6,"translate"),u.Tb(),u.Ub(7,"ul",7),u.Pb(8,"li",8),u.gc(9,"translate"),u.Oc(10,y,3,3,"li",9),u.Ub(11,"li"),u.Qc(12),u.gc(13,"translate"),u.Tb(),u.Tb(),u.Ub(14,"mat-checkbox",10),u.bc("change",(function(){return u.Ec(t),u.fc().toggleTermsAccepted()})),u.Pb(15,"span",8),u.gc(16,"translate"),u.Tb(),u.Ub(17,"mat-checkbox",10),u.bc("change",(function(){return u.Ec(t),u.fc().toggleNewsletterAccepted()})),u.Qc(18),u.gc(19,"translate"),u.Tb(),u.Ub(20,"button",11),u.bc("click",(function(){return u.Ec(t),u.fc().enableFutures()})),u.Qc(21),u.gc(22,"translate"),u.Tb(),u.Tb(),u.Tb()}if(2&t){const t=e.ngLet,n=u.fc();u.Cb(5),u.Sc(" ",u.hc(6,8,"DIALOG.KRAKEN_TERMS.SUBTITLE")," "),u.Cb(3),u.mc("data",u.ic(9,10,"DIALOG.KRAKEN_TERMS.CONTENT.SGB_TC_AGREE",n.translateParams)),u.Cb(2),u.mc("ngIf","INVESTOR_TYPES_DISABLED"!==t),u.Cb(2),u.Rc(u.hc(13,13,"DIALOG.KRAKEN_TERMS.CONTENT.FUND_WALLET")),u.Cb(3),u.mc("data",u.ic(16,15,"DIALOG.KRAKEN_TERMS.CHECKBOXES.SGB_TC_READ",n.translateParams)),u.Cb(3),u.Sc(" ",u.hc(19,18,"DIALOG.KRAKEN_TERMS.CHECKBOXES.NEWSLETTER")," "),u.Cb(2),u.mc("disabled",!n.termsAccepted),u.Cb(1),u.Sc(" ",u.hc(22,20,"BUTTON.ENABLE_FUTURES_ACCESS")," ")}}let C=(()=>{class t{constructor(t,e,n,s){this.store=t,this.dialogRef=e,this.translateService=n,this.userClassification$=this.store.pipe(Object(r.m)(c.c)),this.termsAccepted=!1,this.newsletterAccepted=!1,this.translateParams={tcUrl:"https://support.kraken.com/hc/en-us/articles/360047047031-Payward-Brokers-Pte-Ltd-Terms-Conditions",privUrl:"https://www.kraken.com/en-us/legal/privacy"},s.renderer.link=l.a,s.renderer.image=Object(i.b)("")}enableFutures(){this.newsletterAccepted&&this.store.dispatch(Object(a.C)({newsletterEnabled:!0})),this.userClassification$.pipe(Object(s.a)()).subscribe(t=>{this.store.dispatch(Object(a.t)()),"INVESTOR_TYPES_DISABLED"!==t?this.store.dispatch(Object(o.g)({name:"confirmation",inputs:{title:"DIALOG.EXTERNAL_TERMS.WELCOME",subtitle:"DIALOG.EXTERNAL_TERMS.ENABLED",body:this.translateService.instant("DIALOG.EXTERNAL_TERMS.CONTENT"),buttons:[{label:"DIALOG.EXTERNAL_TERMS.BEGIN_Q",colour:"accent",actions:[Object(o.c)(),Object(o.e)({route:"verification"})]}]}})):this.closeDialog()})}toggleTermsAccepted(){this.termsAccepted=!this.termsAccepted}toggleNewsletterAccepted(){this.newsletterAccepted=!this.newsletterAccepted}closeDialog(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(u.Ob(r.b),u.Ob(h.d),u.Ob(d.e),u.Ob(p.c))},t.\u0275cmp=u.Ib({type:t,selectors:[["external-terms"]],decls:3,vars:3,consts:[["heading","DIALOG.KRAKEN_TERMS.TITLE"],["class","external-terms",4,"ngLet"],[1,"external-terms"],[1,"illustration"],["src","assets/images/kraken_illustration2.png","alt","Kraken illustration"],[1,"content"],[1,"global__text","global__text-subheading"],[1,"global__text","global__text-body"],["markdown","",3,"data"],[4,"ngIf"],[1,"global__text","global__text-body","no-border",3,"change"],["mat-raised-button","",3,"disabled","click"]],template:function(t,e){1&t&&(u.Ub(0,"pro-dialog",0),u.Oc(1,O,23,22,"section",1),u.gc(2,"async"),u.Tb()),2&t&&(u.Cb(1),u.mc("ngLet",u.hc(2,1,e.userClassification$)))},directives:[f.a,b.a,g.a,p.a,m.n,v.a,_.b],pipes:[m.b,d.d],styles:[".external-terms[_ngcontent-%COMP%]{display:flex;flex-direction:row;width:600px}.external-terms[_ngcontent-%COMP%] .illustration[_ngcontent-%COMP%]{margin-right:var(--spacing-l)}.external-terms[_ngcontent-%COMP%] .illustration[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:175px}@media (max-width:599px){.external-terms[_ngcontent-%COMP%] .illustration[_ngcontent-%COMP%]{display:none}}.external-terms[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .external-terms[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin-bottom:var(--spacing)}.external-terms[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{list-style:disc;padding-left:var(--spacing);margin-left:var(--spacing)}.external-terms[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:not(:last-of-type){padding-bottom:var(--spacing-s)}.external-terms[_ngcontent-%COMP%] mat-checkbox[_ngcontent-%COMP%]{border-bottom:0}.external-terms[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-top:var(--spacing)}"],changeDetection:0}),t})()},sKBq:function(t,e,n){"use strict";function i(t,e){void 0===e&&(e=t.constructor);var n=Error.captureStackTrace;n&&n(t,e)}n.r(e),n.d(e,"CustomError",(function(){return o})),n.d(e,"customErrorFactory",(function(){return c}));var r,s=(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=function(t){function e(e){var n,r,s,o=this.constructor,a=t.call(this,e)||this;return Object.defineProperty(a,"name",{value:o.name,enumerable:!1,configurable:!0}),n=a,r=o.prototype,(s=Object.setPrototypeOf)?s(n,r):n.__proto__=r,i(a),a}return s(e,t),e}(Error),a=function(){for(var t=arguments,e=0,n=0,i=arguments.length;n=5&&(i+=t.N1+(c-5)),c=1,l=h)}c>=5&&(i+=t.N1+(c-5))}return i},t.N1=3,t.N2=3,t.N3=40,t.N4=10,t}()},sPsw:function(t,e,n){"use strict";n.r(e),n.d(e,"MfaConfirmComponent",(function(){return K}));var i=n("D57K"),r=n("mcff"),s=n("gxtV"),o=n("QQZH"),a=n("C05f"),c=n("HM3f"),l=n("6Oco"),u=n("GoAz"),h=n("47ST"),d=n("YtkY"),p=n("xVbo"),f=n("BwBJ"),b=n("w0kG"),g=n("TLy2"),m=n("7SLS"),v=n("4e/d"),_=n("KQpv"),y=n.n(_),O=n("uJYd"),C=n("sXtk"),w=n("T5QL"),T=n("7UDb"),S=n("kZht"),k=n("zqNl"),E=n("3kIJ"),x=n("6uGs"),P=n("aDqW"),A=n("rfPA"),I=n("bBQR"),M=n("An66"),D=n("7J2L"),R=n("anSm"),j=n("TzY9"),L=n("NxuZ"),N=n("hCLc");function U(t,e){if(1&t&&S.Qb(0,7),2&t){S.fc();const t=S.Ac(6);S.mc("ngTemplateOutlet",t)}}function F(t,e){if(1&t&&S.Qb(0,7),2&t){S.fc();const t=S.Ac(8);S.mc("ngTemplateOutlet",t)}}function B(t,e){1&t&&S.Pb(0,"kraken-loading",8)}function z(t,e){if(1&t&&S.Qb(0,7),2&t){S.fc(3);const t=S.Ac(10);S.mc("ngTemplateOutlet",t)}}function V(t,e){if(1&t&&S.Qb(0,7),2&t){S.fc(3);const t=S.Ac(12);S.mc("ngTemplateOutlet",t)}}function $(t,e){if(1&t&&(S.Sb(0,1),S.gc(1,"async"),S.Oc(2,z,1,1,"ng-container",2),S.Oc(3,V,1,1,"ng-container",2),S.Rb()),2&t){const t=S.fc(2);S.mc("ngSwitch",S.hc(1,3,t.fidoState$)),S.Cb(2),S.mc("ngSwitchCase","waiting"),S.Cb(1),S.mc("ngSwitchCase","error")}}function H(t,e){1&t&&(S.Ub(0,"small",12),S.Qc(1),S.gc(2,"translate"),S.Tb()),2&t&&(S.Cb(1),S.Sc(" ",S.hc(2,1,"FRAGMENT.OR")," "))}function q(t,e){if(1&t&&(S.Ub(0,"div",13),S.Ub(1,"p",14),S.Qc(2,"DIALOG.SIGNIN.TOTP_VERIFY"),S.Tb(),S.Pb(3,"input-otp-entry",15),S.Tb()),2&t){const t=S.fc(2);S.Cb(3),S.mc("form",t.form)}}function Q(t,e){if(1&t&&(S.Oc(0,$,4,5,"ng-container",9),S.gc(1,"async"),S.Oc(2,H,3,3,"small",10),S.gc(3,"async"),S.Oc(4,q,4,1,"div",11),S.gc(5,"async")),2&t){const t=S.fc();S.mc("ngIf",S.hc(1,3,t.activeFido$)),S.Cb(2),S.mc("ngIf",S.hc(3,5,t.activeBoth$)),S.Cb(2),S.mc("ngIf",S.hc(5,7,t.activeTotp$))}}function W(t,e){1&t&&(S.Ub(0,"div",16),S.Ub(1,"p",14),S.Qc(2,"DIALOG.SIGNIN.HWAUTH_VERIFY"),S.Tb(),S.Pb(3,"kraken-loading",8),S.Tb())}function G(t,e){if(1&t){const t=S.Vb();S.Ub(0,"div",17),S.Pb(1,"fa-icon",18),S.Ub(2,"div"),S.Ub(3,"p",14),S.Qc(4,"DIALOG.SIGNIN.HWAUTH_ERROR"),S.Tb(),S.Ub(5,"button",19),S.bc("click",(function(){return S.Ec(t),S.fc().resetFido()})),S.Qc(6),S.gc(7,"translate"),S.Tb(),S.Tb(),S.Tb()}2&t&&(S.Cb(6),S.Sc(" ",S.hc(7,1,"BUTTON.TRY_AGAIN")," "))}const Y=y()("app:dialog:MfaConfirm");let K=(()=>{let t=class{constructor(t,e,n,i,r,s,l,u){this.inputs=t,this.dialogRef=e,this.store=n,this.formBuilder=i,this.fido2=r,this.env=s,this.http=l,this.translate=u,this.challenge$=new o.a,this.step$=new a.a("fetching"),this.fidoState$=new a.a("waiting"),this.activeFido$=this.challenge$.pipe(Object(d.a)(t=>t.mfaRequired.includes("fido2"))),this.activeTotp$=this.challenge$.pipe(Object(d.a)(t=>t.mfaRequired.includes("totp"))),this.activeBoth$=Object(c.a)([this.activeFido$,this.activeTotp$]).pipe(Object(d.a)(([t,e])=>t&&e))}ngOnInit(){this.form=this.buildForm(),this.watchTotpField(),this.run()}buildForm(){return this.formBuilder.group({totp:[""]})}watchTotpField(){this.form.get("totp").valueChanges.pipe(Object(p.a)(t=>6===t.length),Object(f.a)(100),Object(b.a)(this.challenge$),Object(g.a)(([t,e])=>this.submitTotp(e.mfaRequestId,t).pipe(Object(m.a)(e.mfaRequestId),Object(v.a)(t=>(console.warn({res:t}),"error"in t&&"error"in t.error&&this.handleError(t.error.error),l.a)))),Object(s.b)(this)).subscribe(t=>{this.dialogRef.close(),this.store.dispatch(Object.assign(Object.assign({},this.inputs.action),{mfaRequestId:t}))})}resetFido(){this.form.get("totp").setValue(""),this.run(),this.fidoState$.next("waiting")}fetchChallenge(){return this.http.post(this.env.urls.auth+"/mfa/request",void 0,T.a)}submitNone(t){return this.submitForm({mfaRequestId:t})}submitTotp(t,e){return this.submitForm({mfaRequestId:t,totp:e})}submitFido(t,e){return this.submitForm({mfaRequestId:t,cred:e})}submitForm(t){return this.http.post(this.env.urls.auth+"/mfa/authorize",t,T.a)}run(){this.fetchChallenge().pipe(Object(g.a)(t=>{Y(t),this.challenge$.next(t),this.step$.next("ready");const e=t.mfaRequestId;return"challenge"in t&&t.challenge?Object(u.a)(this.fido2.getAssertion(t.challenge)).pipe(Object(v.a)(t=>(console.error("error in authenticator verify",t),this.fidoState$.next("error"),Object(h.a)("HWAUTH_VERIFY_FAIL"))),Object(g.a)(t=>this.submitFido(e,t).pipe(Object(v.a)(t=>Object(h.a)(t.error.error)))),Object(m.a)(e)):t.mfaRequired.includes("totp")?l.a:this.submitNone(e).pipe(Object(m.a)(e))})).subscribe(t=>{Y(t),this.dialogRef.close(),this.store.dispatch(Object.assign(Object.assign({},this.inputs.action),{mfaRequestId:t}))},this.handleError)}handleError(t){console.warn({errCode:t}),"invalid_mfa"===t&&this.form.get("totp").setValue("");const e=this.translate.instant("ERROR.SIGNIN_ERR"),n=this.translate.instant("ERROR_CODE."+t.toUpperCase());this.store.dispatch(Object(O.j)({message:`${e} - ${n}`,class:"warn"}))}};return t.\u0275fac=function(e){return new(e||t)(S.Ob(r.a),S.Ob(r.d),S.Ob(k.b),S.Ob(E.d),S.Ob(w.a),S.Ob(C.a),S.Ob(x.a),S.Ob(P.e))},t.\u0275cmp=S.Ib({type:t,selectors:[["mfa-confirm"]],decls:13,vars:5,consts:[["heading","HEADING.AUTHORIZE_ACTION"],[3,"ngSwitch"],[3,"ngTemplateOutlet",4,"ngSwitchCase"],["fetching",""],["ready",""],["fidoWaiting",""],["fidoError",""],[3,"ngTemplateOutlet"],["color","accent"],[3,"ngSwitch",4,"ngIf"],["class","global__text global__text-caption",4,"ngIf"],["class","totp-verify",4,"ngIf"],[1,"global__text","global__text-caption"],[1,"totp-verify"],["body","","translate",""],["controlName","totp",3,"form"],[1,"hwauth-verify"],[1,"hwauth-error"],["icon","warning","size","lg"],["mat-raised-button","","size","small",3,"click"]],template:function(t,e){1&t&&(S.Ub(0,"pro-dialog",0),S.Sb(1,1),S.gc(2,"async"),S.Oc(3,U,1,1,"ng-container",2),S.Oc(4,F,1,1,"ng-container",2),S.Rb(),S.Tb(),S.Oc(5,B,1,0,"ng-template",null,3,S.Pc),S.Oc(7,Q,6,9,"ng-template",null,4,S.Pc),S.Oc(9,W,4,0,"ng-template",null,5,S.Pc),S.Oc(11,G,8,3,"ng-template",null,6,S.Pc)),2&t&&(S.Cb(1),S.mc("ngSwitch",S.hc(2,3,e.step$)),S.Cb(2),S.mc("ngSwitchCase","fetching"),S.Cb(1),S.mc("ngSwitchCase","ready"))},directives:[A.a,I.a,M.p,M.q,M.s,D.a,M.n,R.a,P.a,j.a,L.b,N.b],pipes:[M.b,P.d],styles:["input-otp-entry[_ngcontent-%COMP%]{--margin-top:var(--spacing);width:100%}"],changeDetection:0}),t=Object(i.d)([Object(s.a)()],t),t})()},sPys:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s=n("w6/c");e.default=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e}(s.default)},sWLk:function(t,e,n){"use strict";function i(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(e,"a",(function(){return r}));const r=i()},sXtk:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i=n("AytR"),r=n("kZht");const s=["ar","de","en","es","fr","he","it","ja","ko","nl","pl","pt","ru","tr","uk","vi","zh"],o=["fido2","wsHealth","flex","fusionBanners"],a=["PF_PEPEUSD","PF_SHIBUSD","PF_BONKUSD"],c="localhost:4280";let l=(()=>{class t{constructor(){this.platform="kraken",this.appVersion="0.0.0",this.urls={rest:`http://${c}/derivatives/api/v4`,websocket:`ws://${c}/ws/v1`,auth:`http://${c}/api/auth/v1`,health:`http://${c}/api/health/v1`,healthWs:`ws://${c}/ws/health`,history:`http://${c}/api/history/v2`,base:`http://${c}/`,support:"https://support.kraken.com",externalSignIn:"https://www.kraken.com/login-futures",externalSignUp:"https://www.kraken.com/sign-up",fusion:"https://pro.kraken.com/app/trade/futures-btc-usd-perp#dialog/sign-in?utm_source=KF&utm_medium=banner&utm_campaign=pro_futures_launch&utm_content=banner"},this.demo=!0,this.locales=s,this.featuresEnabled=o,this.hiddenMarkets=a}get production(){return i.b.production}get localDev(){return!i.b.production}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},scAs:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("kZht");let r=(()=>{class t{constructor(t,e){this.renderer=t,this.element=e}ngOnInit(){this.renderer.addClass(this.element.nativeElement,"global__text--bold")}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.G),i.Ob(i.l))},t.\u0275dir=i.Jb({type:t,selectors:[["","bold",""]]}),t})()},sikL:function(t,e,n){"use strict";n.r(e),n.d(e,"LimitCloseComponent",(function(){return _}));var i=n("3kIJ"),r=n("mcff"),s=n("h3eB"),o=n("kZht"),a=n("zqNl"),c=n("rfPA"),l=n("bBQR"),u=n("An66"),h=n("EmXI"),d=n("Tcl6"),p=n("UDV5"),f=n("hCLc"),b=n("aDqW"),g=n("DpwM"),m=n("rUBT");const v=function(t,e){return{"global__text--accent":t,"global__text--warn":e}};let _=(()=>{class t{constructor(t,e,n){this.store=t,this.inputs=e,this.formBuilder=n}ngOnInit(){this.form=this.buildForm}get buildForm(){return this.formBuilder.group({limitPrice:[this.inputs.position.balance>0?this.inputs.ticker.ask:this.inputs.ticker.bid,i.x.required],makerOnly:[!1,[i.x.required]]})}submitForm(){const t={limitPrice:this.form.get("limitPrice").value,orderType:this.form.get("makerOnly").value?"post":"limit",reduceOnly:!0,side:this.inputs.position.balance>0?"sell":"buy",size:Math.abs(this.inputs.position.balance),symbol:this.inputs.position.instrument};this.store.dispatch(Object(s.o)(t))}get absBalance(){return Math.abs(this.inputs.position.balance)}get tickSize(){return this.inputs.instrument?this.inputs.instrument.tickSize:1}get direction(){return this.inputs.position.balance>0?"Long":"Short"}}return t.\u0275fac=function(e){return new(e||t)(o.Ob(a.b),o.Ob(r.a),o.Ob(i.d))},t.\u0275cmp=o.Ib({type:t,selectors:[["limit-close"]],decls:48,vars:50,consts:[["heading","DIALOG.CONFIRM_CLOSE_AT_PRICE.TITLE"],[1,"limit-close__form","global__text","global__text-body",3,"formGroup"],[1,"limit-close__details"],[1,"limit-close__detail"],[1,"global__text","global__text-body"],[1,"global__text","global__text-body","global__text--mono"],[1,"global__text","global__text-body","global__text--mono",3,"ngClass"],["color","accent","appearance","fill",1,"limit-close__quantity","global__text","global__text-body"],["matInput","","readonly","",3,"value"],["formControlName","limitPrice","required","","matInput","","type","number","min","0",3,"step"],[1,"limit-close__checkboxes"],["formControlName","makerOnly"],["mat-raised-button","","color","warn",1,"global__text","global__text-body",3,"disabled","click"]],template:function(t,e){1&t&&(o.Ub(0,"pro-dialog",0),o.Ub(1,"form",1),o.Ub(2,"section",2),o.Ub(3,"div",3),o.Ub(4,"p",4),o.Qc(5),o.gc(6,"translate"),o.Tb(),o.Ub(7,"p",5),o.Qc(8),o.Tb(),o.Tb(),o.Ub(9,"div",3),o.Ub(10,"p",4),o.Qc(11),o.gc(12,"translate"),o.Tb(),o.Ub(13,"p",5),o.Qc(14),o.gc(15,"number"),o.Tb(),o.Tb(),o.Ub(16,"div",3),o.Ub(17,"p",4),o.Qc(18),o.gc(19,"translate"),o.Tb(),o.Ub(20,"p",6),o.Qc(21),o.Tb(),o.Tb(),o.Ub(22,"div",3),o.Ub(23,"p",4),o.Qc(24),o.gc(25,"translate"),o.Tb(),o.Ub(26,"p",6),o.Qc(27),o.gc(28,"cryptoPrecise"),o.gc(29,"collateral"),o.gc(30,"collateral"),o.Tb(),o.Tb(),o.Tb(),o.Ub(31,"mat-form-field",7),o.Ub(32,"mat-label"),o.Qc(33),o.gc(34,"translate"),o.Tb(),o.Pb(35,"input",8),o.Tb(),o.Ub(36,"mat-form-field",7),o.Ub(37,"mat-label"),o.Qc(38),o.gc(39,"translate"),o.Tb(),o.Pb(40,"input",9),o.Tb(),o.Ub(41,"div",10),o.Ub(42,"mat-checkbox",11),o.Qc(43),o.gc(44,"translate"),o.Tb(),o.Tb(),o.Ub(45,"button",12),o.bc("click",(function(){return e.submitForm()})),o.Qc(46),o.gc(47,"translate"),o.Tb(),o.Tb(),o.Tb()),2&t&&(o.Cb(1),o.mc("formGroup",e.form),o.Cb(4),o.Rc(o.hc(6,19,"COLUMN.SYMBOL")),o.Cb(3),o.Sc(" ",e.inputs.position.instrument," "),o.Cb(3),o.Rc(o.hc(12,21,"COLUMN.SIZE")),o.Cb(3),o.Sc(" ",o.hc(15,23,e.inputs.position.balance)," "),o.Cb(4),o.Rc(o.hc(19,25,"COLUMN.DIRECTION")),o.Cb(2),o.mc("ngClass",o.sc(44,v,e.inputs.position.balance>0,e.inputs.position.balance<0)),o.Cb(1),o.Sc(" ",e.direction," "),o.Cb(3),o.Rc(o.hc(25,27,"COLUMN.PROFIT_LOSS")),o.Cb(2),o.mc("ngClass",o.sc(47,v,e.inputs.position.pnl>0,e.inputs.position.pnl<0)),o.Cb(1),o.Tc(" ",o.ic(28,29,e.inputs.position.pnl,o.hc(29,32,e.inputs.position.instrument))," ",o.hc(30,34,e.inputs.position.instrument)," "),o.Cb(6),o.Rc(o.hc(34,36,"FORM.QUANTITY")),o.Cb(2),o.mc("value",e.absBalance),o.Cb(3),o.Rc(o.hc(39,38,"FORM.LIMIT_PRICE")),o.Cb(2),o.mc("step",e.tickSize),o.Cb(3),o.Sc(" ",o.hc(44,40,"BUTTON.MAKER_ONLY")," "),o.Cb(2),o.mc("disabled",e.form.invalid),o.Cb(1),o.Sc(" ",o.hc(47,42,"BUTTON.CLOSE_POSITION")," "))},directives:[c.a,l.a,i.z,i.p,i.h,u.l,h.c,h.f,d.b,i.c,i.s,i.o,i.g,i.v,p.a,f.b],pipes:[b.d,u.f,g.b,m.b],styles:["@media (max-width:599px){form[_ngcontent-%COMP%]{width:100%}}form[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%]{width:100%}form[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{margin-top:var(--spacing);width:100%}.limit-close__checkboxes[_ngcontent-%COMP%], .limit-close__details[_ngcontent-%COMP%]{padding:var(--spacing) 0}.limit-close__detail[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:space-between;margin-bottom:6px}"],changeDetection:0}),t})()},sq1e:function(t,e,n){"use strict";n.d(e,"a",(function(){return Z})),n.d(e,"b",(function(){return H})),n.d(e,"c",(function(){return ct})),n.d(e,"d",(function(){return Q})),n.d(e,"e",(function(){return gt}));var i=n("jL3B"),r=n("s2U3"),s=n("ZtZA"),o=n("An66"),a=n("kZht"),c=n("pTnX"),l=n("FxgA"),u=n("ZTXN"),h=n("bwdy"),d=n("g6G6"),p=n("KTx3"),f=n("ROBh"),b=n("8lHc"),g=n("vE5V"),m=n("+6xv"),v=n("jIqt"),_=n("Ohay"),y=n("kuMc"),O=n("5XID"),C=n("VbQ3"),w=n("O1jd"),T=n("Hq54");function S(t,e){1&t&&a.kc(0)}const k=["*"];function E(t,e){}const x=function(t){return{animationDuration:t}},P=function(t,e){return{value:t,params:e}},A=["tabBodyWrapper"],I=["tabHeader"];function M(t,e){}function D(t,e){if(1&t&&a.Oc(0,M,0,0,"ng-template",9),2&t){const t=a.fc().$implicit;a.mc("cdkPortalOutlet",t.templateLabel)}}function R(t,e){if(1&t&&a.Qc(0),2&t){const t=a.fc().$implicit;a.Rc(t.textLabel)}}function j(t,e){if(1&t){const t=a.Vb();a.Ub(0,"div",6),a.bc("click",(function(){a.Ec(t);const n=e.$implicit,i=e.index,r=a.fc(),s=a.Ac(1);return r._handleClick(n,s,i)})),a.Ub(1,"div",7),a.Oc(2,D,1,1,"ng-template",8),a.Oc(3,R,1,1,"ng-template",8),a.Tb(),a.Tb()}if(2&t){const t=e.$implicit,n=e.index,i=a.fc();a.Gb("mat-tab-label-active",i.selectedIndex==n),a.mc("id",i._getTabLabelId(n))("disabled",t.disabled)("matRippleDisabled",t.disabled||i.disableRipple),a.Db("tabIndex",i._getTabIndex(t,n))("aria-posinset",n+1)("aria-setsize",i._tabs.length)("aria-controls",i._getTabContentId(n))("aria-selected",i.selectedIndex==n)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null),a.Cb(2),a.mc("ngIf",t.templateLabel),a.Cb(1),a.mc("ngIf",!t.templateLabel)}}function L(t,e){if(1&t){const t=a.Vb();a.Ub(0,"mat-tab-body",10),a.bc("_onCentered",(function(){return a.Ec(t),a.fc()._removeTabBodyWrapperHeight()}))("_onCentering",(function(e){return a.Ec(t),a.fc()._setTabBodyWrapperHeight(e)})),a.Tb()}if(2&t){const t=e.$implicit,n=e.index,i=a.fc();a.Gb("mat-tab-body-active",i.selectedIndex==n),a.mc("id",i._getTabContentId(n))("content",t.content)("position",t.position)("origin",t.origin)("animationDuration",i.animationDuration),a.Db("aria-labelledby",i._getTabLabelId(n))}}const N=["tabListContainer"],U=["tabList"],F=["nextPaginator"],B=["previousPaginator"],z=new a.s("MatInkBarPositioner",{providedIn:"root",factory:function(){return t=>({left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"})}});let V=(()=>{class t{constructor(t,e,n,i){this._elementRef=t,this._ngZone=e,this._inkBarPositioner=n,this._animationMode=i}alignToElement(t){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(t))}):this._setStyles(t)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(t){const e=this._inkBarPositioner(t),n=this._elementRef.nativeElement;n.style.left=e.left,n.style.width=e.width}}return t.\u0275fac=function(e){return new(e||t)(a.Ob(a.l),a.Ob(a.B),a.Ob(z),a.Ob(l.a,8))},t.\u0275dir=a.Jb({type:t,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,e){2&t&&a.Gb("_mat-animation-noopable","NoopAnimations"===e._animationMode)}}),t})();const $=new a.s("MatTabContent");let H=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(a.Ob(a.N))},t.\u0275dir=a.Jb({type:t,selectors:[["","matTabContent",""]],features:[a.Bb([{provide:$,useExisting:t}])]}),t})();const q=new a.s("MatTabLabel");let Q=(()=>{class t extends s.b{}return t.\u0275fac=function(e){return W(e||t)},t.\u0275dir=a.Jb({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[a.Bb([{provide:q,useExisting:t}]),a.zb]}),t})();const W=a.Wb(Q);class G{}const Y=Object(c.y)(G),K=new a.s("MAT_TAB_GROUP");let Z=(()=>{class t extends Y{constructor(t,e){super(),this._viewContainerRef=t,this._closestTabGroup=e,this.textLabel="",this._contentPortal=null,this._stateChanges=new u.b,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(t){this._setTemplateLabelInput(t)}get content(){return this._contentPortal}ngOnChanges(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new s.h(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(t){t&&(this._templateLabel=t)}}return t.\u0275fac=function(e){return new(e||t)(a.Ob(a.R),a.Ob(K,8))},t.\u0275cmp=a.Ib({type:t,selectors:[["mat-tab"]],contentQueries:function(t,e,n){var i;1&t&&(a.Hb(n,q,!0),a.Ic(n,$,!0,a.N)),2&t&&(a.zc(i=a.cc())&&(e.templateLabel=i.first),a.zc(i=a.cc())&&(e._explicitContent=i.first))},viewQuery:function(t,e){var n;1&t&&a.Jc(a.N,!0),2&t&&a.zc(n=a.cc())&&(e._implicitContent=n.first)},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[a.zb,a.Ab],ngContentSelectors:k,decls:1,vars:0,template:function(t,e){1&t&&(a.lc(),a.Oc(0,S,1,0,"ng-template"))},encapsulation:2}),t})();const X={translateTab:Object(m.n)("translateTab",[Object(m.k)("center, void, left-origin-center, right-origin-center",Object(m.l)({transform:"none"})),Object(m.k)("left",Object(m.l)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),Object(m.k)("right",Object(m.l)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),Object(m.m)("* => left, * => right, left => center, right => center",Object(m.e)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Object(m.m)("void => left-origin-center",[Object(m.l)({transform:"translate3d(-100%, 0, 0)"}),Object(m.e)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Object(m.m)("void => right-origin-center",[Object(m.l)({transform:"translate3d(100%, 0, 0)"}),Object(m.e)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let J=(()=>{class t extends s.c{constructor(t,e,n,i){super(t,e,i),this._host=n,this._centeringSub=h.a.EMPTY,this._leavingSub=h.a.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(Object(v.a)(this._host._isCenterPosition(this._host._position))).subscribe(t=>{t&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(a.Ob(a.j),a.Ob(a.R),a.Ob(Object(a.V)(()=>et)),a.Ob(o.d))},t.\u0275dir=a.Jb({type:t,selectors:[["","matTabBodyHost",""]],features:[a.zb]}),t})(),tt=(()=>{class t{constructor(t,e,n){this._elementRef=t,this._dir=e,this._dirChangeSubscription=h.a.EMPTY,this._translateTabComplete=new u.b,this._onCentering=new a.o,this._beforeCentering=new a.o,this._afterLeavingCenter=new a.o,this._onCentered=new a.o(!0),this.animationDuration="500ms",e&&(this._dirChangeSubscription=e.change.subscribe(t=>{this._computePositionAnimationState(t),n.markForCheck()})),this._translateTabComplete.pipe(Object(_.a)((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{this._isCenterPosition(t.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(t.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(t){this._positionIndex=t,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(t){const e=this._isCenterPosition(t.toState);this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(t){return"center"==t||"left-origin-center"==t||"right-origin-center"==t}_computePositionAnimationState(t=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==t?"left":"right":this._positionIndex>0?"ltr"==t?"right":"left":"center"}_computePositionFromOrigin(t){const e=this._getLayoutDirection();return"ltr"==e&&t<=0||"rtl"==e&&t>0?"left-origin-center":"right-origin-center"}}return t.\u0275fac=function(e){return new(e||t)(a.Ob(a.l),a.Ob(g.b,8),a.Ob(a.h))},t.\u0275dir=a.Jb({type:t,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),t})(),et=(()=>{class t extends tt{constructor(t,e,n){super(t,e,n)}}return t.\u0275fac=function(e){return new(e||t)(a.Ob(a.l),a.Ob(g.b,8),a.Ob(a.h))},t.\u0275cmp=a.Ib({type:t,selectors:[["mat-tab-body"]],viewQuery:function(t,e){var n;1&t&&a.Wc(s.f,!0),2&t&&a.zc(n=a.cc())&&(e._portalHost=n.first)},hostAttrs:[1,"mat-tab-body"],features:[a.zb],decls:3,vars:6,consts:[[1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,e){1&t&&(a.Ub(0,"div",0,1),a.bc("@translateTab.start",(function(t){return e._onTranslateTabStarted(t)}))("@translateTab.done",(function(t){return e._translateTabComplete.next(t)})),a.Oc(2,E,0,0,"ng-template",2),a.Tb()),2&t&&a.mc("@translateTab",a.sc(3,P,e._position,a.rc(1,x,e.animationDuration)))},directives:[J],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[X.translateTab]}}),t})();const nt=new a.s("MAT_TABS_CONFIG");let it=0;class rt{}class st{constructor(t){this._elementRef=t}}const ot=Object(c.w)(Object(c.x)(st),"primary");let at=(()=>{class t extends ot{constructor(t,e,n,i){super(t),this._changeDetectorRef=e,this._animationMode=i,this._tabs=new a.F,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=h.a.EMPTY,this._tabLabelSubscription=h.a.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new a.o,this.focusChange=new a.o,this.animationDone=new a.o,this.selectedTabChange=new a.o(!0),this._groupId=it++,this.animationDuration=n&&n.animationDuration?n.animationDuration:"500ms",this.disablePagination=!(!n||null==n.disablePagination)&&n.disablePagination}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(t){this._dynamicHeight=Object(O.c)(t)}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){this._indexToSelect=Object(O.f)(t,null)}get animationDuration(){return this._animationDuration}set animationDuration(t){this._animationDuration=/^\d+$/.test(t)?t+"ms":t}get backgroundColor(){return this._backgroundColor}set backgroundColor(t){const e=this._elementRef.nativeElement;e.classList.remove("mat-background-"+this.backgroundColor),t&&e.classList.add("mat-background-"+t),this._backgroundColor=t}ngAfterContentChecked(){const t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=t){const e=null==this._selectedIndex;e||this.selectedTabChange.emit(this._createChangeEvent(t)),Promise.resolve().then(()=>{this._tabs.forEach((e,n)=>e.isActive=n===t),e||this.selectedIndexChange.emit(t)})}this._tabs.forEach((e,n)=>{e.position=n-t,null==this._selectedIndex||0!=e.position||e.origin||(e.origin=t-this._selectedIndex)}),this._selectedIndex!==t&&(this._selectedIndex=t,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const t=this._tabs.toArray();for(let e=0;e{this._tabs.reset(t.filter(t=>!t._closestTabGroup||t._closestTabGroup===this)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}_focusChanged(t){this.focusChange.emit(this._createChangeEvent(t))}_createChangeEvent(t){const e=new rt;return e.index=t,this._tabs&&this._tabs.length&&(e.tab=this._tabs.toArray()[t]),e}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=Object(d.a)(...this._tabs.map(t=>t._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(t){return Math.min(this._tabs.length-1,Math.max(t||0,0))}_getTabLabelId(t){return`mat-tab-label-${this._groupId}-${t}`}_getTabContentId(t){return`mat-tab-content-${this._groupId}-${t}`}_setTabBodyWrapperHeight(t){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const e=this._tabBodyWrapper.nativeElement;e.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(e.style.height=t+"px")}_removeTabBodyWrapperHeight(){const t=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=t.clientHeight,t.style.height="",this.animationDone.emit()}_handleClick(t,e,n){t.disabled||(this.selectedIndex=e.focusIndex=n)}_getTabIndex(t,e){return t.disabled?null:this.selectedIndex===e?0:-1}}return t.\u0275fac=function(e){return new(e||t)(a.Ob(a.l),a.Ob(a.h),a.Ob(nt,8),a.Ob(l.a,8))},t.\u0275dir=a.Jb({type:t,inputs:{headerPosition:"headerPosition",animationDuration:"animationDuration",disablePagination:"disablePagination",dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[a.zb]}),t})(),ct=(()=>{class t extends at{constructor(t,e,n,i){super(t,e,n,i)}}return t.\u0275fac=function(e){return new(e||t)(a.Ob(a.l),a.Ob(a.h),a.Ob(nt,8),a.Ob(l.a,8))},t.\u0275cmp=a.Ib({type:t,selectors:[["mat-tab-group"]],contentQueries:function(t,e,n){var i;1&t&&a.Hb(n,Z,!0),2&t&&a.zc(i=a.cc())&&(e._allTabs=i)},viewQuery:function(t,e){var n;1&t&&(a.Wc(A,!0),a.Wc(I,!0)),2&t&&(a.zc(n=a.cc())&&(e._tabBodyWrapper=n.first),a.zc(n=a.cc())&&(e._tabHeader=n.first))},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(t,e){2&t&&a.Gb("mat-tab-group-dynamic-height",e.dynamicHeight)("mat-tab-group-inverted-header","below"===e.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[a.Bb([{provide:K,useExisting:t}]),a.zb],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","disabled","matRippleDisabled","click",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(t,e){1&t&&(a.Ub(0,"mat-tab-header",0,1),a.bc("indexFocused",(function(t){return e._focusChanged(t)}))("selectFocusedIndex",(function(t){return e.selectedIndex=t})),a.Oc(2,j,4,14,"div",2),a.Tb(),a.Ub(3,"div",3,4),a.Oc(5,L,1,8,"mat-tab-body",5),a.Tb()),2&t&&(a.mc("selectedIndex",e.selectedIndex||0)("disableRipple",e.disableRipple)("disablePagination",e.disablePagination),a.Cb(2),a.mc("ngForOf",e._tabs),a.Cb(1),a.Gb("_mat-animation-noopable","NoopAnimations"===e._animationMode),a.Cb(2),a.mc("ngForOf",e._tabs))},directives:function(){return[bt,o.m,ht,c.r,i.e,o.n,s.c,et]},styles:[".mat-tab-group{display:flex;flex-direction:column}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),t})();class lt{}const ut=Object(c.y)(lt);let ht=(()=>{class t extends ut{constructor(t){super(),this.elementRef=t}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return t.\u0275fac=function(e){return new(e||t)(a.Ob(a.l))},t.\u0275dir=a.Jb({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,e){2&t&&(a.Db("aria-disabled",!!e.disabled),a.Gb("mat-tab-disabled",e.disabled))},inputs:{disabled:"disabled"},features:[a.zb]}),t})();const dt=Object(w.f)({passive:!0});let pt=(()=>{class t{constructor(t,e,n,i,r,s,o){this._elementRef=t,this._changeDetectorRef=e,this._viewportRuler=n,this._dir=i,this._ngZone=r,this._platform=s,this._animationMode=o,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new u.b,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new u.b,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new a.o,this.indexFocused=new a.o,r.runOutsideAngular(()=>{Object(p.a)(t.nativeElement,"mouseleave").pipe(Object(y.a)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){t=Object(O.f)(t),this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t))}ngAfterViewInit(){Object(p.a)(this._previousPaginator.nativeElement,"touchstart",dt).pipe(Object(y.a)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),Object(p.a)(this._nextPaginator.nativeElement,"touchstart",dt).pipe(Object(y.a)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const t=this._dir?this._dir.change:Object(f.a)(null),e=this._viewportRuler.change(150),n=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new i.g(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(0),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(n):n(),Object(d.a)(t,e,this._items.changes).pipe(Object(y.a)(this._destroyed)).subscribe(()=>{Promise.resolve().then(n),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe(Object(y.a)(this._destroyed)).subscribe(t=>{this.indexFocused.emit(t),this._setTabFocus(t)})}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(t){if(!Object(T.r)(t))switch(t.keyCode){case T.e:case T.m:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t));break;default:this._keyManager.onKeydown(t)}}_onContentChanges(){const t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(t){this._isValidIndex(t)&&this.focusIndex!==t&&this._keyManager&&this._keyManager.setActiveItem(t)}_isValidIndex(t){if(!this._items)return!0;const e=this._items?this._items.toArray()[t]:null;return!!e&&!e.disabled}_setTabFocus(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();const e=this._tabListContainer.nativeElement,n=this._getLayoutDirection();e.scrollLeft="ltr"==n?0:e.scrollWidth-e.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const t=this.scrollDistance,e=this._platform,n="ltr"===this._getLayoutDirection()?-t:t;this._tabList.nativeElement.style.transform=`translateX(${Math.round(n)}px)`,e&&(e.TRIDENT||e.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(t){this._scrollTo(t)}_scrollHeader(t){return this._scrollTo(this._scrollDistance+("before"==t?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(t){this._stopInterval(),this._scrollHeader(t)}_scrollToLabel(t){if(this.disablePagination)return;const e=this._items?this._items.toArray()[t]:null;if(!e)return;const n=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:i,offsetWidth:r}=e.elementRef.nativeElement;let s,o;"ltr"==this._getLayoutDirection()?(s=i,o=s+r):(o=this._tabList.nativeElement.offsetWidth-i,s=o-r);const a=this.scrollDistance,c=this.scrollDistance+n;sc&&(this.scrollDistance+=o-c+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const t=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;t||(this.scrollDistance=0),t!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=t}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,e=t?t.elementRef.nativeElement:null;e?this._inkBar.alignToElement(e):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(t,e){e&&null!=e.button&&0!==e.button||(this._stopInterval(),Object(b.a)(650,100).pipe(Object(y.a)(Object(d.a)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:e,distance:n}=this._scrollHeader(t);(0===n||n>=e)&&this._stopInterval()}))}_scrollTo(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}}}return t.\u0275fac=function(e){return new(e||t)(a.Ob(a.l),a.Ob(a.h),a.Ob(C.h),a.Ob(g.b,8),a.Ob(a.B),a.Ob(w.a),a.Ob(l.a,8))},t.\u0275dir=a.Jb({type:t,inputs:{disablePagination:"disablePagination"}}),t})(),ft=(()=>{class t extends pt{constructor(t,e,n,i,r,s,o){super(t,e,n,i,r,s,o),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Object(O.c)(t)}_itemSelected(t){t.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)(a.Ob(a.l),a.Ob(a.h),a.Ob(C.h),a.Ob(g.b,8),a.Ob(a.B),a.Ob(w.a),a.Ob(l.a,8))},t.\u0275dir=a.Jb({type:t,inputs:{disableRipple:"disableRipple"},features:[a.zb]}),t})(),bt=(()=>{class t extends ft{constructor(t,e,n,i,r,s,o){super(t,e,n,i,r,s,o)}}return t.\u0275fac=function(e){return new(e||t)(a.Ob(a.l),a.Ob(a.h),a.Ob(C.h),a.Ob(g.b,8),a.Ob(a.B),a.Ob(w.a),a.Ob(l.a,8))},t.\u0275cmp=a.Ib({type:t,selectors:[["mat-tab-header"]],contentQueries:function(t,e,n){var i;1&t&&a.Hb(n,ht,!1),2&t&&a.zc(i=a.cc())&&(e._items=i)},viewQuery:function(t,e){var n;1&t&&(a.Jc(V,!0),a.Jc(N,!0),a.Jc(U,!0),a.Wc(F,!0),a.Wc(B,!0)),2&t&&(a.zc(n=a.cc())&&(e._inkBar=n.first),a.zc(n=a.cc())&&(e._tabListContainer=n.first),a.zc(n=a.cc())&&(e._tabList=n.first),a.zc(n=a.cc())&&(e._nextPaginator=n.first),a.zc(n=a.cc())&&(e._previousPaginator=n.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(t,e){2&t&&a.Gb("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[a.zb],ngContentSelectors:k,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,e){1&t&&(a.lc(),a.Ub(0,"div",0,1),a.bc("click",(function(){return e._handlePaginatorClick("before")}))("mousedown",(function(t){return e._handlePaginatorPress("before",t)}))("touchend",(function(){return e._stopInterval()})),a.Pb(2,"div",2),a.Tb(),a.Ub(3,"div",3,4),a.bc("keydown",(function(t){return e._handleKeydown(t)})),a.Ub(5,"div",5,6),a.bc("cdkObserveContent",(function(){return e._onContentChanges()})),a.Ub(7,"div",7),a.kc(8),a.Tb(),a.Pb(9,"mat-ink-bar"),a.Tb(),a.Tb(),a.Ub(10,"div",8,9),a.bc("mousedown",(function(t){return e._handlePaginatorPress("after",t)}))("click",(function(){return e._handlePaginatorClick("after")}))("touchend",(function(){return e._stopInterval()})),a.Pb(12,"div",2),a.Tb()),2&t&&(a.Gb("mat-tab-header-pagination-disabled",e._disableScrollBefore),a.mc("matRippleDisabled",e._disableScrollBefore||e.disableRipple),a.Cb(5),a.Gb("_mat-animation-noopable","NoopAnimations"===e._animationMode),a.Cb(5),a.Gb("mat-tab-header-pagination-disabled",e._disableScrollAfter),a.mc("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[c.r,r.a,V],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),t})(),gt=(()=>{class t{}return t.\u0275mod=a.Mb({type:t}),t.\u0275inj=a.Lb({factory:function(e){return new(e||t)},imports:[[o.c,c.j,s.g,c.s,r.c,i.a],c.j]}),t})()},ssKD:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){function t(){}return t.arraycopy=function(t,e,n,i,r){for(;r--;)n[i++]=t[e++]},t.currentTimeMillis=function(){return Date.now()},t}()},sxqi:function(t,e,n){"use strict";n.d(e,"a",(function(){return v}));var i=n("6uGs"),r=n("YtkY"),s=n("VmIW"),o=n("KQpv"),a=n.n(o),c=n("i67J"),l=n("sXtk"),u=n("M/Eb"),h=n("TYVA"),d=n("7UDb"),p=n("a1kK"),f=n("kZht"),b=n("1VvW");const g=a()("app:service:market"),m={headers:new i.c({"Content-Type":"application/json"}),withCredentials:!0};let v=(()=>{class t{constructor(t,e,n,i){this.http=t,this.env=e,this.router=n,this.route=i}fetchFuturesMarkets(){return"cf"===this.env.platform?this.http.get(this.env.urls.rest+"/instruments",m).pipe(Object(r.a)(t=>t.instruments),Object(r.a)(u.c),Object(r.a)(u.e),Object(r.a)(u.b),Object(r.a)(Object(u.d)(this.env.hiddenMarkets))):this.http.get(this.env.urls.rest+"/instruments",m).pipe(Object(r.a)(t=>t.instruments),Object(r.a)(u.c),Object(r.a)(u.e),Object(r.a)(Object(u.d)(this.env.hiddenMarkets)))}fetchAuthenticatedFuturesMarkets(){return this.http.get(this.env.urls.rest+"/trading/instruments",m).pipe(Object(r.a)(t=>t.instruments),Object(r.a)(u.c),Object(r.a)(u.e),Object(r.a)(u.c),Object(r.a)(Object(u.d)(this.env.hiddenMarkets)))}fetchLeveragePrefs(){return this.http.get(this.env.urls.rest+"/leveragepreferences",m).pipe(Object(c.k)("leveragePreferences"))}fetchPnlPrefs(){return this.http.get(this.env.urls.rest+"/pnlpreferences",m).pipe(Object(c.k)("preferences"))}setPnlPrefs(t){const e=new URL(this.env.urls.rest+"/pnlpreferences");return e.searchParams.set("symbol",t.symbol),e.searchParams.set("pnlPreference",t.pnlCurrency),this.http.put(e.href,null,m)}setLeveragePrefs(t){const e=new URL(this.env.urls.rest+"/leveragepreferences");return e.searchParams.set("symbol",t.symbol),t.maxLeverage&&e.searchParams.set("maxLeverage",t.maxLeverage),this.http.put(e.href,null,m)}fetchFeeSchedules(){return this.http.get(this.env.urls.rest+"/feeschedules",d.a).pipe(Object(c.k)("feeSchedules"))}currentMarketClass(){var t,e,n,i;return s.Maybe.fromUndefined(null!==(i=null===(n=null===(e=null===(t=this.route.firstChild)||void 0===t?void 0:t.snapshot)||void 0===e?void 0:e.data)||void 0===n?void 0:n.marketClass)&&void 0!==i?i:void 0)}navigateToMarket(t,e=!1){const n=Object(h.x)(t);n?(g("navigating to",n),this.router.navigate([p.c,n.original],{replaceUrl:e})):console.warn(`"${n}" is not a valid market`)}}return t.\u0275fac=function(e){return new(e||t)(f.Yb(i.a),f.Yb(l.a),f.Yb(b.d),f.Yb(b.a))},t.\u0275prov=f.Kb({token:t,factory:t.\u0275fac}),t})()},"t+Fc":function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s=n("unaY"),o=n("qvG1"),a=n("oznm");e.HTMLCanvasElementLuminanceSource=function(t){function e(n){var i=t.call(this,n.width,n.height)||this;return i.canvas=n,i.tempCanvasElement=null,i.buffer=e.makeBufferFromCanvasImageData(n),i}return r(e,t),e.makeBufferFromCanvasImageData=function(t){var n=t.getContext("2d").getImageData(0,0,t.width,t.height);return e.toGrayscaleBuffer(n.data,t.width,t.height)},e.toGrayscaleBuffer=function(t,e,n){for(var i=new Uint8ClampedArray(e*n),r=0,s=0,o=t.length;r>10;return i},e.prototype.getRow=function(t,e){if(t<0||t>=this.getHeight())throw new a.default("Requested row is outside the image: "+t);var n=this.getWidth(),i=t*n;return null===e?e=this.buffer.slice(i,i+n):(e.length{let t=class{constructor(t,e,n){this.store=t,this.translate=e,this.supportArticle=n,this.debug=L,this.lvgControl=new r.e(!1),this.userData$=this.store.pipe(Object(a.m)(c.a)),this.displayTooltips$=this.store.pipe(Object(a.m)(c.y))}ngOnInit(){this.userData$.pipe(Object(f.b)(this)).subscribe(t=>{var e;this.lvgControl.setValue(null!==(e=t.leverageSlider)&&void 0!==e&&e)})}toggleLeverage(){L("toggling leverage limiter"),this.userData$.pipe(Object(l.a)()).subscribe(t=>{if(L("lvg disclaimer accepted date",null==t?void 0:t.leverageDisclaimerAccepted),null==t?void 0:t.leverageDisclaimerAccepted){const t=!this.lvgControl.value;this.lvgControl.setValue(t),this.store.dispatch(Object(u.e)({leverageSlider:t}))}else this.openSliderDialog(!0)})}openSliderDialog(t=!1){const e=[this.translate.instant("DIALOG.LVG_SLIDER.BODY.0"),this.translate.instant("DIALOG.LVG_SLIDER.BODY.1"),this.translate.instant("DIALOG.LVG_SLIDER.BODY.2"),this.translate.instant("DIALOG.LVG_SLIDER.BODY.3"),this.translate.instant("DIALOG.LVG_SLIDER.BODY.4")],n=this.supportArticle.transform(360024116752),i={title:"DIALOG.LVG_SLIDER.TITLE",subtitle:"DIALOG.LVG_SLIDER.SUBTITLE",checkbox:t?"DIALOG.LVG_SLIDER.CHECKBOX":void 0,body:`\n
      \n
    • ${e[0]}
    • \n
    • ${e[1]}
    • \n
    • ${e[2]}
    • \n
    • ${e[3]}
    • \n
    \n ${e[4]}\n `,buttons:t?[{label:"BUTTON.ACCEPT",colour:"accent",actions:[Object(h.c)(),Object(u.e)({leverage:0,leverageSlider:!0,leverageDisclaimerAccepted:d.DateTime.utc().toISO()})],callback:()=>{this.lvgControl.setValue(!0)}}]:[]};this.store.dispatch(Object(h.g)({name:"confirmation",inputs:i}))}get leverageSteps(){return Object(b.b)()}get leverageStepsRange(){const t=[];return this.leverageSteps.forEach(e=>t.push({value:e,legend:e+"x"})),t}leverageMultipliers(){return Object(b.a)()}leverageMax(t){var e;return this.leverageSteps[null!==(e=null==t?void 0:t.leverage)&&void 0!==e?e:0]}changeLeverage(t){this.store.dispatch(Object(u.e)({leverage:t}))}};return t.\u0275fac=function(e){return new(e||t)(g.Ob(a.b),g.Ob(m.e),g.Ob(p.a))},t.\u0275cmp=g.Ib({type:t,selectors:[["leverage-limiter"]],decls:3,vars:8,consts:[[4,"ngIf"],[1,"leverage-limiter","multi-input"],[1,"flex-split"],[3,"formControl","click"],["tooltip","","sbTooltip","TOOLTIP.LEVERAGE_LIMIT",3,"sbDisabled","sbDelay"],["class","global__text global__text-accent",4,"ngIf"],[1,"slider-info",3,"click"],["icon","info","size","lg"],[3,"step","steps","suffix","stepChange",4,"ngIf"],["body","","ghost","","caption","",3,"marginBottom",4,"ngIf"],[1,"global__text","global__text-accent"],[3,"step","steps","suffix","stepChange"],["body","","ghost","","caption",""]],template:function(t,e){1&t&&(g.Oc(0,R,12,10,"ng-container",0),g.gc(1,"async"),g.gc(2,"async")),2&t&&g.mc("ngIf",g.sc(5,j,g.hc(1,1,e.userData$),g.hc(2,3,e.displayTooltips$)))},directives:[v.n,_.a,r.o,r.f,y.a,O.a,C.a,w.a,T.b,S.a,k.a,E.a,x.a],pipes:[v.b,m.d],styles:[".multi-input[_ngcontent-%COMP%]{border-bottom:1px solid var(--border-colour-dark)}.multi-input[_ngcontent-%COMP%] mat-checkbox[_ngcontent-%COMP%]{--layout-border-width:0}.multi-input[_ngcontent-%COMP%] mat-button-toggle-group[_ngcontent-%COMP%]{margin-top:var(--spacing-s);margin-bottom:var(--spacing)!important}"],changeDetection:0}),t=Object(i.d)([Object(f.a)()],t),t})()},u7r1:function(t,e,n){"use strict";function i(t=16){return function(t=16,e=16){let n="";for(;n.lengthl({message:t,title:e,class:"warn"}),c=(t,e,n)=>l({message:t,title:e,class:"warn",action:n}),l=Object(i.g)("Open Snackbar",Object(i.l)()),u=t=>h({action:t}),h=Object(i.g)("Add Loading Action",Object(i.l)()),d=t=>p({action:t}),p=Object(i.g)("Remove Loading Action",Object(i.l)()),f=Object(i.g)("Open External Link",Object(i.l)()),b=Object(i.g)("Restart Platform"),g=Object(i.g)("Select Theme",Object(i.l)()),m=Object(i.g)("Navigate To Route",Object(i.l)()),v=t=>_({title:t}),_=Object(i.g)("Set Page Title",Object(i.l)()),y=Object(i.g)("Set Orderbook Depth",Object(i.l)()),O=Object(i.g)("Set Orderbook Group",Object(i.l)()),C=t=>w({alt:t}),w=Object(i.g)("Set Alt",Object(i.l)()),T=Object(i.g)("Set System Health",Object(i.l)()),S=Object(i.g)("Start Tour",Object(i.l)()),k=Object(i.g)("End Tour"),E=Object(i.g)("Next Tour Step"),x=Object(i.g)("Previous Tour Step"),P=(Object(i.g)("Toggle Layout Lock"),Object(i.g)("Set Layout Type",Object(i.l)())),A=Object(i.g)("Set Enable Chart Pointer",Object(i.l)())},uQul:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s=n("w6/c");e.default=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e}(s.default)},uepk:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s=n("4Pxi"),o=n("YrFw"),a=n("LBoB"),c=n("S21V"),l=n("ZCEf"),u=n("2Agw"),h=n("OX2b"),d=n("LqyJ"),p=n("iiuT");e.default=function(t){function e(e){var n=t.call(this)||this;n.readers=[];var i=e?e.get(l.default.POSSIBLE_FORMATS):null,r=e&&void 0!==e.get(l.default.ASSUME_CODE_39_CHECK_DIGIT);return i&&((i.includes(s.default.EAN_13)||i.includes(s.default.EAN_8))&&n.readers.push(new h.default(e)),i.includes(s.default.CODE_39)&&n.readers.push(new o.default(r)),i.includes(s.default.CODE_128)&&n.readers.push(new a.default),i.includes(s.default.ITF)&&n.readers.push(new u.default),i.includes(s.default.RSS_14)&&n.readers.push(new c.default)),0===n.readers.length&&(n.readers.push(new o.default),n.readers.push(new h.default(e)),n.readers.push(new a.default),n.readers.push(new u.default),n.readers.push(new c.default)),n}return r(e,t),e.prototype.decodeRow=function(t,e,n){for(var i=0;i{var n;const i={symbol:t.instrument,price:null!==(n=t.limit_price)&&void 0!==n?n:0,trigger_when:t.stop_price,filled:t.qty,side:t.direction};return e in i?i[e]:t[e]};let tt=(()=>{let t=class{constructor(){this.tableData=new s.k([]),this.tableColumns=["time","symbol","side","price","filled","reduce_only","order_actions"],this.selectTicker=new r.o,this.editOrder=new r.o,this.cancelOrder=new r.o,this.cancelAllOrders=new r.o,this.viewDetailed=new r.o}set orders(t){this.tableData.data=t.valueSeq().toArray()}ngOnInit(){this.tableData.sortingDataAccessor=J,this.tableData.paginator=this.paginator}ngAfterViewInit(){this.tableSort.changes.pipe(Object(l.a)(this.tableSort),Object(c.b)(this)).subscribe(t=>{t.first&&(this.tableData.sort=t.first)})}trackByOrderId(t,e){return e.order_id}getDirection(t){return t.direction===u.a.Sell?"SIDE.SELL":"SIDE.BUY"}getFilledProgress(t,e){return 0===t?0:Math.round(t/(t+e)*100)}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Ib({type:t,selectors:[["open-orders-desktop"]],viewQuery:function(t,e){var n;1&t&&(r.Jc(a.a,!0),r.Wc(o.a,!0)),2&t&&(r.zc(n=r.cc())&&(e.paginator=n.first),r.zc(n=r.cc())&&(e.tableSort=n))},inputs:{orders:"orders",displayTooltips:"displayTooltips"},outputs:{selectTicker:"selectTicker",editOrder:"editOrder",cancelOrder:"cancelOrder",cancelAllOrders:"cancelAllOrders",viewDetailed:"viewDetailed"},decls:31,vars:10,consts:[["breakpoint","","mat-table","","matSort","",3,"breakpoints","dataSource","trackBy"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",3,"click",4,"matRowDef","matRowDefColumns"],["matColumnDef","time"],["mat-header-cell","","mat-sort-header","","tooltip","","sbTooltip","TOOLTIP.OPEN_ORDERS.DATE",3,"sbDisabled","sbDelay",4,"matHeaderCellDef"],["class","block-cell","mat-cell","","body","",4,"matCellDef"],["matColumnDef","symbol"],["mat-header-cell","","mat-sort-header","","tooltip","","sbTooltip","TOOLTIP.OPEN_ORDERS.MARKET",3,"sbDisabled","sbDelay",4,"matHeaderCellDef"],["mat-cell","","body","",4,"matCellDef"],["matColumnDef","side"],["mat-header-cell","","mat-sort-header","","tooltip","","sbTooltip","TOOLTIP.OPEN_ORDERS.SIDE",3,"sbDisabled","sbDelay",4,"matHeaderCellDef"],["matColumnDef","price"],["mat-header-cell","","mat-sort-header","","tooltip","","sbTooltip","TOOLTIP.OPEN_ORDERS.PRICE",3,"sbDisabled","sbDelay",4,"matHeaderCellDef"],["matColumnDef","type"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","qty"],["mat-cell","","body","","mono","",4,"matCellDef"],["matColumnDef","filled"],["mat-header-cell","","mat-sort-header","","tooltip","","sbTooltip","TOOLTIP.OPEN_ORDERS.REMAINING",3,"sbDisabled","sbDelay",4,"matHeaderCellDef"],["matColumnDef","reduce_only"],["mat-header-cell","","tooltip","","sbTooltip","TOOLTIP.OPEN_ORDERS.REDUCE_ONLY",3,"sbDisabled","sbDelay",4,"matHeaderCellDef"],["mat-cell","","body","",3,"pnl",4,"matCellDef"],["matColumnDef","order_actions"],["class","cancel-all-button","body","","mat-header-cell","",3,"click",4,"matHeaderCellDef"],[3,"pageSize","pageSizeOptions"],["mat-header-row",""],["mat-row","",3,"click"],["mat-header-cell","","mat-sort-header","","tooltip","","sbTooltip","TOOLTIP.OPEN_ORDERS.DATE",3,"sbDisabled","sbDelay"],["mat-cell","","body","",1,"block-cell"],["ghost",""],["mat-header-cell","","mat-sort-header","","tooltip","","sbTooltip","TOOLTIP.OPEN_ORDERS.MARKET",3,"sbDisabled","sbDelay"],["mat-cell","","body",""],[3,"base"],["mat-header-cell","","mat-sort-header","","tooltip","","sbTooltip","TOOLTIP.OPEN_ORDERS.SIDE",3,"sbDisabled","sbDelay"],["mat-header-cell","","mat-sort-header","","tooltip","","sbTooltip","TOOLTIP.OPEN_ORDERS.PRICE",3,"sbDisabled","sbDelay"],["mono",""],["mat-header-cell","","mat-sort-header",""],["mat-cell","","body","","mono",""],["mat-header-cell","","mat-sort-header","","tooltip","","sbTooltip","TOOLTIP.OPEN_ORDERS.REMAINING",3,"sbDisabled","sbDelay"],[3,"content","showZeros"],["ghost","",2,"white-space","nowrap"],[3,"progress","showPercentage"],["mat-header-cell","","tooltip","","sbTooltip","TOOLTIP.OPEN_ORDERS.REDUCE_ONLY",3,"sbDisabled","sbDelay"],["mat-cell","","body","",3,"pnl"],["body","","mat-header-cell","",1,"cancel-all-button",3,"click"],["icon","close","size","lg"],[1,"copy-button",3,"click"],["icon","file","size","lg"],[1,"edit-button",3,"click"],["primary","","icon","edit","size","lg",3,"matTooltip"],[1,"cancel-button",3,"click"],["icon","close","size","lg",3,"matTooltip"]],template:function(t,e){1&t&&(r.Ub(0,"table",0),r.Oc(1,A,1,0,"tr",1),r.Oc(2,I,1,0,"tr",2),r.Sb(3,3),r.Oc(4,D,3,6,"th",4),r.Oc(5,R,7,8,"td",5),r.Rb(),r.Sb(6,6),r.Oc(7,j,3,6,"th",7),r.Oc(8,L,9,17,"td",8),r.Rb(),r.Sb(9,9),r.Oc(10,N,3,6,"th",10),r.Oc(11,U,4,7,"td",8),r.Rb(),r.Sb(12,11),r.Oc(13,F,3,6,"th",12),r.Oc(14,B,8,9,"td",5),r.Rb(),r.Sb(15,13),r.Oc(16,z,3,3,"th",14),r.Oc(17,V,3,3,"td",8),r.Rb(),r.Sb(18,15),r.Oc(19,$,3,3,"th",14),r.Oc(20,H,2,1,"td",16),r.Rb(),r.Sb(21,17),r.Oc(22,q,3,6,"th",18),r.Oc(23,Q,13,10,"td",16),r.Rb(),r.Sb(24,19),r.Oc(25,W,3,6,"th",20),r.Oc(26,G,2,2,"td",21),r.Rb(),r.Sb(27,22),r.Oc(28,Y,5,3,"th",23),r.Oc(29,K,15,12,"td",8),r.Rb(),r.Tb(),r.Pb(30,"mat-paginator",24)),2&t&&(r.mc("breakpoints",r.qc(8,Z))("dataSource",e.tableData)("trackBy",e.trackByOrderId),r.Cb(1),r.mc("matHeaderRowDef",e.tableColumns)("matHeaderRowDefSticky",!0),r.Cb(1),r.mc("matRowDefColumns",e.tableColumns),r.Cb(28),r.mc("pageSize",20)("pageSizeOptions",r.qc(9,X)))},directives:[s.j,h.a,o.a,s.g,s.i,s.c,s.e,s.b,a.a,s.f,s.h,s.d,o.b,d.a,p.a,f.a,b.a,s.a,g.a,m.a,v.a,_.a,y.a,O.a,C.a,w.b,T.a],pipes:[S.d,k.e,E.a,k.x,E.c,E.e,E.d,x.c,E.f,k.w,P.a],styles:["market-icon[_ngcontent-%COMP%]{font-size:20px}table[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%]{height:calc(var(--table-row-height) + var(--spacing))!important}table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]:last-of-type, table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]:last-of-type{text-align:right}.block-cell[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:block;line-height:1.25em}.actions-header[_ngcontent-%COMP%]{cursor:pointer}.actions-header[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{display:inline}.actions-header[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{color:var(--warn-colour);margin-right:var(--spacing-s)}.actions-header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--warn-colour);text-transform:capitalize!important}.cancel-button[_ngcontent-%COMP%], .copy-button[_ngcontent-%COMP%], .edit-button[_ngcontent-%COMP%], .info-button[_ngcontent-%COMP%], .limit-button[_ngcontent-%COMP%], .market-button[_ngcontent-%COMP%]{cursor:pointer;display:inline-block}.cancel-button[_ngcontent-%COMP%] > *[_ngcontent-%COMP%], .copy-button[_ngcontent-%COMP%] > *[_ngcontent-%COMP%], .edit-button[_ngcontent-%COMP%] > *[_ngcontent-%COMP%], .info-button[_ngcontent-%COMP%] > *[_ngcontent-%COMP%], .limit-button[_ngcontent-%COMP%] > *[_ngcontent-%COMP%], .market-button[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{display:inline}.cancel-button[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .copy-button[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .edit-button[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .info-button[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .limit-button[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .market-button[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding-left:var(--spacing-s)}.copy-button[_ngcontent-%COMP%], .edit-button[_ngcontent-%COMP%], .info-button[_ngcontent-%COMP%], .limit-button[_ngcontent-%COMP%], .market-button[_ngcontent-%COMP%]{margin-right:var(--spacing)}.copy-button[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%], .edit-button[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%], .info-button[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%], .limit-button[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%], .market-button[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{color:var(--brand)}.cancel-button[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{color:var(--warn-colour)}.cancel-all-button[_ngcontent-%COMP%]{cursor:pointer}.cancel-all-button[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{display:inline}.cancel-all-button[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{color:var(--warn-colour);margin-right:var(--spacing-s)}.cancel-all-button[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--warn-colour);text-transform:capitalize!important}table[breakpoint=medium][_ngcontent-%COMP%] .cancel-button[_ngcontent-%COMP%] p[_ngcontent-%COMP%], table[breakpoint=medium][_ngcontent-%COMP%] .copy-button[_ngcontent-%COMP%] p[_ngcontent-%COMP%], table[breakpoint=medium][_ngcontent-%COMP%] .edit-button[_ngcontent-%COMP%] p[_ngcontent-%COMP%], table[breakpoint=medium][_ngcontent-%COMP%] .mat-column-reduce_only[_ngcontent-%COMP%]{display:none}.mat-column-reduce_only[_ngcontent-%COMP%]{text-align:right;text-transform:capitalize;padding-right:var(--spacing)}"],changeDetection:0}),t=Object(i.d)([Object(c.a)()],t),t})()},v4C1:function(t,e,n){"use strict";n.d(e,"a",(function(){return M}));var i=n("zqNl"),r=n("YtkY"),s=n("i67J"),o=n("MT7k"),a=n("+Px6"),c=n("rxqU"),l=n("YyhG"),u=n("kZht"),h=n("Eu46"),d=n("F6wS"),p=n("An66"),f=n("DTJn"),b=n("NxuZ"),g=n("anSm"),m=n("IkSM"),v=n("B6Vo"),_=n("Cc4E"),y=n("zho4"),O=n("7J2L"),C=n("chaP"),w=n("za3o"),T=n("aDqW"),S=n("DpwM"),k=n("rcUp");function E(t,e){1&t&&u.Pb(0,"kraken-loading")}const x=function(){return[250,100]};function P(t,e){if(1&t&&(u.Ub(0,"sb-table-row"),u.Ub(1,"sb-table-cell"),u.Pb(2,"fa-icon",10),u.Tb(),u.Ub(3,"sb-table-cell",11),u.Qc(4),u.gc(5,"sato"),u.Tb(),u.Ub(6,"sb-table-cell",11),u.Qc(7),u.gc(8,"satoSize"),u.Tb(),u.Ub(9,"sb-table-cell",12),u.Qc(10),u.gc(11,"truncate"),u.Tb(),u.Ub(12,"sb-table-cell",13),u.gc(13,"date"),u.Qc(14),u.gc(15,"date"),u.Tb(),u.Tb()),2&t){const t=e.$implicit,n=e.index,i=u.fc().ngLet,r=u.fc();u.Lc("background-color",i.sizeRelativeTradeHistory?r.sizeRelativeBackground(t):""),u.Gb("positive","buy"===t.side)("negative","sell"===t.side),u.Cb(2),u.mc("icon",r.getTradeDirection(t,i.trades[n+1])),u.Cb(2),u.Sc(" ",u.ic(5,15,t.price,i.selectedMarket)," "),u.Cb(3),u.Sc(" ",u.ic(8,18,t.displayQty,i.selectedMarket)," "),u.Cb(2),u.mc("sbTooltip",r.getTypeTooltip(t.type))("sbDisabled",!i.displayTooltips)("sbDelay",u.qc(30,x)),u.Cb(1),u.Sc(" ",u.ic(11,21,t.type,1)," "),u.Cb(2),u.mc("sbTooltip",u.ic(13,24,t.time,"d MMM y - HH:mm:ss")),u.Cb(2),u.Rc(u.ic(15,27,t.time,"HH:mm:ss"))}}function A(t,e){if(1&t&&(u.Ub(0,"mat-card",1),u.Oc(1,E,1,0,"kraken-loading",2),u.Ub(2,"sb-table"),u.Ub(3,"sb-table-row",3),u.Ub(4,"sb-table-cell"),u.Pb(5,"fa-icon",4),u.Tb(),u.Ub(6,"sb-table-cell",5),u.Qc(7),u.gc(8,"translate"),u.Tb(),u.Ub(9,"sb-table-cell",6),u.Qc(10),u.gc(11,"translate"),u.Tb(),u.Ub(12,"sb-table-cell",7),u.Qc(13),u.gc(14,"translate"),u.Tb(),u.Ub(15,"sb-table-cell",8),u.Qc(16),u.gc(17,"translate"),u.Tb(),u.Tb(),u.Oc(18,P,16,31,"sb-table-row",9),u.Tb(),u.Tb()),2&t){const t=e.ngLet,n=u.fc();u.Cb(1),u.mc("ngIf",n.isLoading(t.trades)),u.Cb(2),u.mc("header",!0),u.Cb(3),u.mc("sbDisabled",!t.displayTooltips)("sbDelay",u.qc(25,x)),u.Cb(1),u.Sc(" ",u.hc(8,17,"COLUMN.PRICE")," "),u.Cb(2),u.mc("sbDisabled",!t.displayTooltips)("sbDelay",u.qc(26,x)),u.Cb(1),u.Tc(" ",u.hc(11,19,"COLUMN.SIZE")," (",t.sizeUnit,") "),u.Cb(2),u.mc("sbDisabled",!t.displayTooltips)("sbDelay",u.qc(27,x)),u.Cb(1),u.Sc(" ",u.hc(14,21,"COLUMN.TYPE")," "),u.Cb(2),u.mc("sbDisabled",!t.displayTooltips)("sbDelay",u.qc(28,x)),u.Cb(1),u.Sc(" ",u.hc(17,23,"COLUMN.TIME")," "),u.Cb(2),u.mc("ngForOf",t.trades)("ngForTrackBy",n.trackByUid)}}const I=function(t,e,n,i,r,s){return{trades:t,selectedMarket:e,sizeUnit:n,sizeFormatter:i,sizeRelativeTradeHistory:r,displayTooltips:s}};let M=(()=>{class t{constructor(t){this.store=t,this.trades$=this.store.pipe(Object(i.m)(o.c),Object(s.p)()),this.selectedMarket$=this.store.pipe(Object(i.m)(a.n)),this.userData$=this.store.pipe(Object(i.m)(c.a)),this.sizeUnit$=this.store.pipe(Object(i.m)(l.n)),this.sizeFormatter$=this.store.pipe(Object(i.m)(l.m)),this.sizeRelativeTradeHistory$=this.userData$.pipe(Object(r.a)(t=>{var e;return null===(e=t.sizeRelativeTradeHistory)||void 0===e||e})),this.displayTooltips$=this.store.pipe(Object(i.m)(c.y))}trackByUid(t,e){return e.uid}getTradeDirection(t,e){return e?t.price>e.price?"arrow-small-up":t.price{class t{constructor(t){if(this.value="ltr",this.change=new i.o,t){const e=t.documentElement?t.documentElement.dir:null,n=(t.body?t.body.dir:null)||e;this.value="ltr"===n||"rtl"===n?n:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(s,8))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(s,8))},token:t,providedIn:"root"}),t})(),a=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)}}),t})()},vI0g:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("YwYi"),r=n("Nxx2"),s=n("oznm"),o=n("hTBg");e.default=function(){function t(t,e,n){this.primitive=t,this.size=e,this.generatorBase=n;for(var r=new Int32Array(e),s=1,o=0;o=e&&(s^=t,s&=e-1);this.expTable=r;var a=new Int32Array(e);for(o=0;oPromise.resolve())(),s={};function o(t){return t in s&&(delete s[t],!0)}const a={setImmediate(t){const e=i++;return s[e]=!0,r.then(()=>o(e)&&t()),e},clearImmediate(t){o(t)}};var c=n("EWqr");class l extends c.a{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,n=0){return null!==n&&n>0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=a.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(t,e,n);0===t.actions.length&&(a.clearImmediate(e),t.scheduled=void 0)}}var u=n("DG/E");class h extends u.a{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,i=-1,r=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++i{class t{constructor(t,e,n,l){this.env=t,this.feature=e,this.store=n,this.router=l,this.quantityUnits=h.a,this.openNotificationDraw=new i.o,this.updateLanguage$=new i.o,this.selectTheme=new i.o,this.serverDateTime$=Object(o.a)(0,1e3).pipe(Object(a.a)(()=>s.DateTime.utc()),Object(c.a)(1)),this.flexEnabled$=this.store.pipe(Object(r.m)(v.f)),this.serverTime$=this.serverDateTime$.pipe(Object(a.a)(t=>t.toLocaleString(ht))),this.serverTimeShort$=this.serverDateTime$.pipe(Object(a.a)(t=>t.toLocaleString(ut))),this.localTime$=this.serverDateTime$.pipe(Object(a.a)(t=>t.toLocal().toLocaleString(ht))),this.systemStatus$=this.store.pipe(Object(r.m)(f.i)),this.overallSystemStatus$=this.store.pipe(Object(r.m)(f.g)).pipe(Object(a.a)(t=>t.map(t=>[pt[t],ft[t]]).orSome(["LOADING.LOADING","var(--n500)"]))),this.futureMaintenance$=Object(o.a)(0,u.e).pipe(Object(a.a)(()=>{var t;const e=null===(t=this.notifications)||void 0===t?void 0:t.find(t=>"maintenance"===t.type&&null!=t.effective_time&&s.DateTime.fromMillis(t.effective_time).isValid&&s.DateTime.fromMillis(t.effective_time)>s.DateTime.local()&&"high"===t.priority);if(e)return s.DateTime.fromMillis(e.effective_time).toRelative()})),this.tour$=this.store.pipe(Object(r.m)(f.k))}ngOnInit(){this.tour$.pipe(Object(l.a)(t=>t.inProgress),Object(l.a)(t=>"trading-dashboard"===t.type&&9===t.step||"wallets"===t.type&&5===t.step||"workspaces"===t.type&&6===t.step)).subscribe(()=>{this.infoTourPopper.centerTrigger()})}get hasLanguages(){return this.env.locales.length>1}get tradingUnits(){return this.quantityUnits.trading}get walletUnits(){return this.quantityUnits.wallet}openShortcutCheatsheet(){this.store.dispatch(Object(d.g)({name:"shortcuts-cheatsheet"}))}setTradingUnits(t){this.store.dispatch(Object(g.D)({trading:t}))}setWalletUnits(t){this.store.dispatch(Object(g.D)({wallet:t}))}getHealthParts(t){return t.map(t=>[dt[t],ft[t]]).orSome(["LOADING.LOADING","var(--n500)"])}startTour(t){"trading-dashboard"===t||"workspaces"===t?this.router.navigate(["/futures"]):"wallets"===t&&this.router.navigate(["/wallets"]),this.store.dispatch(Object(d.A)({tour:t}))}closeDialog(){this.store.dispatch(Object(d.c)())}openWaitingList(){this.store.dispatch(Object(d.g)({name:"waiting-list"}))}get demo(){return this.env.demo}get restrictedBanner(){var t,e;if(null===(t=this.userDetails)||void 0===t?void 0:t.countryCode){const t=Object(m.b)(null===(e=this.userDetails)||void 0===e?void 0:e.countryCode);if(m.a.includes(t))return"RESTRICTED.BANNER."+t}return"RESTRICTED.BANNER.GENERIC"}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(p.a),i.Ob(b.a),i.Ob(r.b),i.Ob(_.d))},t.\u0275cmp=i.Ib({type:t,selectors:[["status-bar"]],viewQuery:function(t,e){var n;1&t&&i.Jc(V,!0),2&t&&i.zc(n=i.cc())&&(e.infoTourPopper=n.first)},inputs:{notifications:"notifications",unreadNotifications:"unreadNotifications",currentLanguage:"currentLanguage",currentTheme:"currentTheme",quantityUnits:"quantityUnits",signedIn:"signedIn",userDetails:"userDetails",platform:"platform"},outputs:{openNotificationDraw:"openNotificationDraw",updateLanguage$:"updateLanguage",selectTheme:"updateTheme"},decls:63,vars:46,consts:[[1,"left"],["body","","class","status system-status","sbPlacement","topStart",3,"sbTooltip",4,"ngLet"],["body","","class","status",4,"ngIf"],["body","","class","status system-status","sbPlacement","topStart",3,"style","sbTooltip",4,"ngIf"],[1,"spacer"],[1,"right"],["body","",1,"status","status--button",3,"sbMenuTriggerFor"],["sbDelay","200",1,"status","status--button",3,"sbTooltip","click"],["icon","command","size","lg"],["sbTooltip","NAV.THEME","sbDelay","200",1,"status","status--button",3,"sbMenuTriggerFor"],["icon","brush","size","lg"],["class","status status--button language-select","sbTooltip","LABEL.SELECT_LANGUAGE","sbDelay","200",4,"ngIf"],["sbTooltip","HEADING.NOTIFICATIONS","sbDelay","200",1,"status","status--button",3,"click"],[1,"global__text",3,"sbBadge","sbBadgeShow"],["size","lg",3,"icon"],["body","","sbDelay","200",1,"status",3,"sbTooltip"],["ghost",""],["themeMenu","sbMenu"],["sb-menu-item","",3,"sbIcon","click"],["tourMenu","sbMenu"],["sb-menu-item","",3,"click",4,"ngIf"],["sb-menu-item","",3,"click"],["localTime",""],["systemHealth",""],["serviceHealth",""],["loading",""],["sbPlacement","topEnd"],["unitsPopper",""],[3,"quantityUnits","changeTradingUnits","changeWalletUnits",4,"sbContent"],["sbPlacement","topStart"],["infoTourPopper",""],[3,"title","dispose",4,"sbContent"],["body","","sbPlacement","topStart",1,"status","system-status",3,"sbTooltip"],["icon","circle","size","lg"],["body","",1,"status"],["icon","warning","size","lg"],["sbTooltip","LABEL.SELECT_LANGUAGE","sbDelay","200",1,"status","status--button","language-select"],[3,"currentLanguage","updateLanguage"],["icon","language","size","lg"],["body","",1,"time-tooltip"],["body","","class","grid-0-1 gap-s-m system-health-tooltip",4,"ngIf","ngIfElse"],["body","",1,"grid-0-1","gap-s-m","system-health-tooltip"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf","ngIfElse"],["icon","circle"],["translate",""],[3,"quantityUnits","changeTradingUnits","changeWalletUnits"],[3,"title","dispose"],["subheading","","target","_blank","href","https://support.kraken.com/hc/en-us/categories/360001977131-Futures",1,"external-button"],["icon","external-link"],[1,"all-tours"],["body","","translate",""],[1,"options"],["body","","mat-raised-button","",3,"click"]],template:function(t,e){if(1&t&&(i.Ub(0,"footer"),i.Ub(1,"div",0),i.Oc(2,H,4,8,"div",1),i.gc(3,"async"),i.Oc(4,Q,3,6,"div",2),i.gc(5,"async"),i.Oc(6,G,3,4,"div",3),i.Tb(),i.Pb(7,"div",4),i.Ub(8,"div",5),i.Ub(9,"div",6),i.Qc(10),i.gc(11,"translate"),i.Tb(),i.Ub(12,"div",7),i.bc("click",(function(){return e.openShortcutCheatsheet()})),i.gc(13,"translate"),i.Pb(14,"fa-icon",8),i.Tb(),i.Ub(15,"div",9),i.Pb(16,"fa-icon",10),i.Tb(),i.Oc(17,Y,3,1,"div",11),i.Ub(18,"div",12),i.bc("click",(function(){return e.openNotificationDraw.emit()})),i.Ub(19,"span",13),i.Pb(20,"fa-icon",14),i.Tb(),i.Tb(),i.Ub(21,"div",15),i.Ub(22,"p",16),i.Qc(23),i.gc(24,"translate"),i.Tb(),i.Qc(25," \xa0 "),i.Ub(26,"p"),i.Qc(27),i.gc(28,"async"),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(29,"sb-menu",null,17),i.Ub(31,"button",18),i.bc("click",(function(){return e.selectTheme.emit("auto")})),i.Qc(32),i.gc(33,"translate"),i.Tb(),i.Ub(34,"button",18),i.bc("click",(function(){return e.selectTheme.emit("dark")})),i.Qc(35),i.gc(36,"translate"),i.Tb(),i.Ub(37,"button",18),i.bc("click",(function(){return e.selectTheme.emit("light")})),i.Qc(38),i.gc(39,"translate"),i.Tb(),i.Tb(),i.Ub(40,"sb-menu",null,19),i.Oc(42,K,3,3,"button",20),i.gc(43,"async"),i.Ub(44,"button",21),i.bc("click",(function(){return e.startTour("trading-dashboard")})),i.Qc(45),i.gc(46,"translate"),i.Tb(),i.Tb(),i.Oc(47,Z,13,12,"ng-template",null,22,i.Pc),i.Oc(49,rt,2,4,"ng-template",null,23,i.Pc),i.Oc(51,ot,1,2,"ng-template",null,24,i.Pc),i.Oc(53,at,2,0,"ng-template",null,25,i.Pc),i.Ub(55,"sb-popper",26,27),i.Oc(57,ct,1,1,"quantity-units-choice",28),i.Tb(),i.Ub(58,"sb-popper",29,30),i.Oc(60,lt,12,7,"tour-step",31),i.Tb(),i.Pb(61,"trading-tour"),i.Pb(62,"flex-tour")),2&t){const t=i.Ac(30),n=i.Ac(41),r=i.Ac(48);i.Cb(2),i.mc("ngLet",i.hc(3,24,e.overallSystemStatus$)),i.Cb(2),i.mc("ngIf",i.hc(5,26,e.futureMaintenance$)),i.Cb(2),i.mc("ngIf",null==e.userDetails?null:e.userDetails.isRestricted),i.Cb(3),i.mc("sbMenuTriggerFor",n),i.Cb(1),i.Sc(" ",i.hc(11,28,"LABEL.TOURS")," "),i.Cb(2),i.oc("sbTooltip","",i.hc(13,30,"TOOLTIP.KEYBOARD_SHORTCUTS")," (?)"),i.Cb(3),i.mc("sbMenuTriggerFor",t),i.Cb(2),i.mc("ngIf",e.hasLanguages),i.Cb(2),i.Lc("--badge-bg",null!=e.unreadNotifications&&e.unreadNotifications.length?"var(--warn-colour)":"var(--accent-colour)"),i.mc("sbBadge",null==e.notifications?null:e.notifications.length)("sbBadgeShow",null==e.notifications?null:e.notifications.length),i.Cb(1),i.mc("icon",null!=e.notifications&&e.notifications.length?"notification-full":"notification"),i.Cb(1),i.mc("sbTooltip",r),i.Cb(2),i.Sc("",i.hc(24,32,"LABEL.SERVER_TIME"),":"),i.Cb(4),i.Rc(i.hc(28,34,e.serverTimeShort$)),i.Cb(4),i.mc("sbIcon","auto"===e.currentTheme?"check-1":"blank"),i.Cb(1),i.Sc(" ",i.hc(33,36,"LABEL.AUTOMATIC")," "),i.Cb(2),i.mc("sbIcon","dark"===e.currentTheme?"check-1":"blank"),i.Cb(1),i.Sc(" ",i.hc(36,38,"THEME.DARK")," "),i.Cb(2),i.mc("sbIcon","light"===e.currentTheme?"check-1":"blank"),i.Cb(1),i.Sc(" ",i.hc(39,40,"THEME.LIGHT")," "),i.Cb(4),i.mc("ngIf",i.hc(43,42,e.flexEnabled$)),i.Cb(3),i.Sc(" ",i.hc(46,44,"LABEL.TRADING_DASH")," ")}},directives:[y.a,O.n,C.a,w.b,T.a,S.a,k.b,E.a,x.a,P.a,A.a,I.a,M.a,D.a,R.a,j.a,L.a,O.s,N.a,U.a,F.a,B.a,z.b],pipes:[O.b,N.d],styles:["[_nghost-%COMP%]{display:block;color:var(--text-colour);background-color:var(--toolbar-colour);border:1px solid var(--border-colour);border-radius:var(--bdrs);-webkit-user-select:none;-moz-user-select:none;user-select:none}footer[_ngcontent-%COMP%]{height:100%;display:flex}footer[_ngcontent-%COMP%] .spacer[_ngcontent-%COMP%]{flex:1}footer[_ngcontent-%COMP%] .left[_ngcontent-%COMP%], footer[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{display:flex}footer[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .status[_ngcontent-%COMP%]{border-right-width:1px}footer[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .status[_ngcontent-%COMP%]{border-left-width:1px}.status[_ngcontent-%COMP%]{display:flex;align-items:center;padding:0 var(--spacing);border:0 solid var(--border-colour);cursor:default}.status--button[_ngcontent-%COMP%]{cursor:pointer}.system-status[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{margin-right:var(--spacing-s)}.time-tooltip[_ngcontent-%COMP%]{font-size:.9rem}.time-tooltip[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin-bottom:var(--spacing-s)}.time-tooltip[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]:not(:first-of-type){margin-top:var(--spacing)}.system-health-tooltip[_ngcontent-%COMP%]{font-size:.9rem}.transparent-backdrop[_ngcontent-%COMP%]{background-color:transparent}quantity-units-choice[_ngcontent-%COMP%]{padding:var(--spacing);max-width:60ch;font-size:14px}.external-button[_ngcontent-%COMP%]{color:var(--brand)}.all-tours[_ngcontent-%COMP%]{margin-top:var(--spacing-l);display:flex;flex-direction:column}.all-tours[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:var(--spacing)}.all-tours[_ngcontent-%COMP%] .options[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between}.all-tours[_ngcontent-%COMP%] .options[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:not(:first-child){margin-left:var(--spacing)}"],changeDetection:0}),t})()},vYTc:function(t,e,n){"use strict";n.d(e,"j",(function(){return r})),n.d(e,"c",(function(){return s})),n.d(e,"i",(function(){return o})),n.d(e,"e",(function(){return a})),n.d(e,"d",(function(){return l})),n.d(e,"h",(function(){return u})),n.d(e,"g",(function(){return h})),n.d(e,"f",(function(){return d})),n.d(e,"b",(function(){return p})),n.d(e,"a",(function(){return f}));var i=n("TYVA");function r(t){return Object(i.s)(t.ask,t.bid)}function s(t){const e=t.pair.replace(i.c,i.b),n="XBT/USD"===e?"BTC/USD":e;return Object.assign(Object.assign({},t),{product_id:t.product_id.toUpperCase(),pair:n})}function o(t){return`${t.pair}@${t.tag}`.toLowerCase()}function a(t,e){return i.r.indexOf(t.tag)-i.r.indexOf(e.tag)}const c=["VOLATILE","BURST","VOLUME","SUSPENDING"];function l(t,e){return c.indexOf(t.product_id.split("_")[2])-c.indexOf(e.product_id.split("_")[2])}function u(t,e){return(n,i)=>e.indexOf(t(n))-e.indexOf(t(i))}const h=u(t=>Object(i.p)(t.product_id),i.w),d=u(t=>Object(i.m)(t.product_id),i.e);function p(t){return{price:t.price,base:t.base,quote:t.quote}}const f=t=>t.startsWith("PF_")||t.startsWith("FF_")},va0y:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("Qkwj"),r=n("dyLe"),s=n("LqyJ"),o=function(){function t(e,n,i,r){this.image=e,this.height=e.getHeight(),this.width=e.getWidth(),null==n&&(n=t.INIT_SIZE),null==i&&(i=e.getWidth()/2|0),null==r&&(r=e.getHeight()/2|0);var o=n/2|0;if(this.leftInit=i-o,this.rightInit=i+o,this.upInit=r-o,this.downInit=r+o,this.upInit<0||this.leftInit<0||this.downInit>=this.height||this.rightInit>=this.width)throw new s.default}return t.prototype.detect=function(){for(var t=this.leftInit,e=this.rightInit,n=this.upInit,i=this.downInit,r=!1,o=!0,a=!1,c=!1,l=!1,u=!1,h=!1,d=this.width,p=this.height;o;){o=!1;for(var f=!0;(f||!c)&&e=d){r=!0;break}for(var b=!0;(b||!l)&&i=p){r=!0;break}for(var g=!0;(g||!u)&&t>=0;)(g=this.containsBlackPoint(n,i,t,!1))?(t--,o=!0,u=!0):u||t--;if(t<0){r=!0;break}for(var m=!0;(m||!h)&&n>=0;)(m=this.containsBlackPoint(t,e,n,!0))?(n--,o=!0,h=!0):h||n--;if(n<0){r=!0;break}o&&(a=!0)}if(!r&&a){for(var v=e-t,_=null,y=1;null===_&&y>16&255)+(p>>7&510)+(255&p))/4&255}l.luminances=h}else l.luminances=e;if(void 0===r&&(l.dataWidth=n),void 0===s&&(l.dataHeight=i),void 0===o&&(l.left=0),void 0===a&&(l.top=0),l.left+n>l.dataWidth||l.top+i>l.dataHeight)throw new c.default("Crop rectangle does not fit within image data.");return l}return r(e,t),e.prototype.getRow=function(t,e){if(t<0||t>=this.getHeight())throw new c.default("Requested row is outside the image: "+t);var n=this.getWidth();return(null==e||e.length{let n;return"function"==typeof t[t.length-1]&&(n=t.pop()),e.lift(new o(t,n))}}class o{constructor(t,e){this.observables=t,this.project=e}call(t,e){return e.subscribe(new a(t,this.observables,this.project))}}class a extends i.a{constructor(t,e,n){super(t),this.observables=e,this.project=n,this.toRespond=[];const i=e.length;this.values=new Array(i);for(let r=0;r0){const t=i.indexOf(n);-1!==t&&i.splice(t,1)}}notifyComplete(){}_next(t){if(0===this.toRespond.length){const e=[t,...this.values];this.project?this._tryProject(e):this.destination.next(e)}}_tryProject(t){let e;try{e=this.project.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}},w2Kr:function(t,e,n){"use strict";n.d(e,"a",(function(){return O}));var i=n("kZht"),r=n("zqNl"),s=n("uJYd"),o=n("bjK4"),a=n("1VvW"),c=n("F6wS"),l=n("NxuZ"),u=n("Eu46"),h=n("An66"),d=n("1etq"),p=n("scAs"),f=n("WRMk"),b=n("hCLc"),g=n("aDqW");function m(t,e){if(1&t&&(i.Ub(0,"div",16),i.Pb(1,"img",17),i.Tb()),2&t){const t=i.fc(2);i.Cb(1),i.mc("src",t.imageUrl,i.Gc)}}function v(t,e){if(1&t&&(i.Ub(0,"a",18),i.Pb(1,"fa-icon",19),i.Ub(2,"span",20),i.Qc(3,"TOUR.WATCH_VIDEO"),i.Tb(),i.Tb()),2&t){const t=i.fc(2);i.mc("href",t.videoUrl,i.Gc)}}function _(t,e){if(1&t){const t=i.Vb();i.Ub(0,"div",2),i.Oc(1,m,2,1,"div",3),i.Ub(2,"div",4),i.Ub(3,"div"),i.Ub(4,"div",5),i.Ub(5,"span"),i.Pb(6,"fa-icon",6),i.Ub(7,"span",7),i.Qc(8),i.gc(9,"translate"),i.Tb(),i.Tb(),i.Ub(10,"p",8),i.Qc(11),i.Tb(),i.Tb(),i.Pb(12,"progress-bar",9),i.Ub(13,"div",10),i.kc(14),i.Tb(),i.Tb(),i.Ub(15,"div",11),i.Oc(16,v,4,1,"a",12),i.Pb(17,"div",13),i.Ub(18,"span"),i.Ub(19,"button",14),i.bc("click",(function(){return i.Ec(t),i.fc().previous()})),i.Qc(20),i.gc(21,"translate"),i.Tb(),i.Ub(22,"button",15),i.bc("click",(function(){return i.Ec(t),i.fc().next()})),i.Qc(23),i.gc(24,"translate"),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb()}if(2&t){const t=e.ngLet,n=i.fc();i.Lc("min-height",n.minHeight),i.Cb(1),i.mc("ngIf",n.image),i.Cb(7),i.Rc(i.hc(9,11,n.title)),i.Cb(3),i.Tc("",t.step," / ",t.total,""),i.Cb(1),i.mc("progress",n.progress(t)),i.Cb(4),i.mc("ngIf",n.videoUrl),i.Cb(3),i.mc("disabled",t.step<2),i.Cb(1),i.Sc(" ",i.hc(21,13,"BUTTON.PREVIOUS")," "),i.Cb(3),i.Sc(" ",i.hc(24,15,100===n.progress(t)?"BUTTON.FINISH":"BUTTON.NEXT")," ")}}const y=["*"];let O=(()=>{class t{constructor(t,e){this.store=t,this.router=e,this.minHeight="auto",this.dispose=new i.o,this.nextEvent=new i.o,this.previousEvent=new i.o,this.tour$=this.store.pipe(Object(r.m)(o.k)),this.stepMoved=!1}ngOnDestroy(){this.stepMoved||this.endTour()}endTour(){this.store.dispatch(Object(s.d)())}next(){this.stepMoved=!0,this.nextRouteTo&&this.router.navigate([this.nextRouteTo]),this.nextEvent.emit(),this.store.dispatch(Object(s.f)()),this.dispose.emit()}previous(){this.stepMoved=!0,this.previousRouteTo&&this.router.navigate([this.previousRouteTo]),this.previousEvent.emit(),this.store.dispatch(Object(s.m)()),this.dispose.emit()}progress(t){return t.step/t.total*100}get imageUrl(){return`assets/images/tour-${this.image}.png`}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(r.b),i.Ob(a.d))},t.\u0275cmp=i.Ib({type:t,selectors:[["tour-step"]],inputs:{image:"image",title:"title",nextRouteTo:"nextRouteTo",previousRouteTo:"previousRouteTo",videoUrl:"videoUrl",minHeight:"minHeight"},outputs:{dispose:"dispose",nextEvent:"nextEvent",previousEvent:"previousEvent"},ngContentSelectors:y,decls:6,vars:3,consts:[["icon","close-medium","size","lg",1,"close",3,"click"],["class","tour-step",3,"minHeight",4,"ngLet"],[1,"tour-step"],["class","left-container",4,"ngIf"],[1,"right-container"],[1,"title"],["icon","kraken","size","lg"],["subheading","","bold",""],["subheading","",1,"step-id"],[3,"progress"],[1,"content"],[1,"buttons"],["subheading","","target","_blank","rel","noopener",3,"href",4,"ngIf"],[1,"spacer"],["subheading","","mat-button","",3,"disabled","click"],["subheading","","mat-raised-button","",3,"click"],[1,"left-container"],["alt","Tour component",3,"src"],["subheading","","target","_blank","rel","noopener",3,"href"],["icon","caret-right","size","3x"],["translate",""]],template:function(t,e){1&t&&(i.lc(),i.Ub(0,"mat-card"),i.Ub(1,"mat-card-title"),i.Ub(2,"fa-icon",0),i.bc("click",(function(){return e.dispose.emit()})),i.Tb(),i.Tb(),i.Ub(3,"mat-card-content"),i.Oc(4,_,25,17,"div",1),i.gc(5,"async"),i.Tb(),i.Tb()),2&t&&(i.Cb(4),i.mc("ngLet",i.hc(5,1,e.tour$)))},directives:[c.a,c.d,l.b,c.b,u.a,h.n,d.a,p.a,f.a,b.b,g.a],pipes:[h.b,g.d],styles:[".tour-step[_ngcontent-%COMP%]{display:flex;flex-direction:row;padding:var(--spacing-l);background:var(--card-colour);min-height:300px}mat-card-title[_ngcontent-%COMP%]{color:var(--text-colour);display:flex;justify-content:flex-end!important}mat-card-title[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{cursor:pointer}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.left-container[_ngcontent-%COMP%]{margin-right:var(--spacing-l);width:400px}.left-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:400px;border-radius:10px;animation:fadeIn 1s;-webkit-animation:fadeIn 1s;-moz-animation:fadeIn 1s;-o-animation:fadeIn 1s;-ms-animation:fadeIn 1s}.right-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-between;max-width:400px}progress-bar[_ngcontent-%COMP%]{width:100%;margin-bottom:var(--spacing-l)}.content[_ngcontent-%COMP%]{line-height:1.3!important}.step-id[_ngcontent-%COMP%]{margin-left:var(--spacing);align-self:center}.title[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;color:var(--brand);padding-bottom:var(--spacing-s);margin-bottom:var(--spacing)}.title[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{padding-right:var(--spacing)}.buttons[_ngcontent-%COMP%]{display:flex;margin-top:var(--spacing-l);flex-direction:row;justify-content:space-between;align-self:flex-end;width:100%}.buttons[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{cursor:pointer;color:var(--brand);vertical-align:middle}.buttons[_ngcontent-%COMP%] fa-icon.disabled[_ngcontent-%COMP%]{color:var(--ghost-colour)}"],changeDetection:0}),t})()},"w6/c":function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s=n("sKBq");e.default=function(t){function e(e){void 0===e&&(e=void 0);var n=t.call(this,e)||this;return n.message=e,n}return r(e,t),e}(s.CustomError)},wCIf:function(t,e,n){var i=n("67SP"),r=n("bT3u");function s(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}s.prototype.initialize=function(t){this.degree=t,this.genPoly=r.generateECPolynomial(this.degree)},s.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");var e=new i(this.degree);e.fill(0);var n=i.concat([t,e],t.length+this.degree),s=r.mod(n,this.genPoly),o=this.degree-s.length;if(o>0){var a=new i(this.degree);return a.fill(0),s.copy(a,o),a}return s},t.exports=s},wMit:function(t,e,n){"use strict";n.d(e,"q",(function(){return r})),n.d(e,"p",(function(){return s})),n.d(e,"k",(function(){return o})),n.d(e,"h",(function(){return a})),n.d(e,"f",(function(){return c})),n.d(e,"d",(function(){return l})),n.d(e,"m",(function(){return u})),n.d(e,"j",(function(){return h})),n.d(e,"c",(function(){return d})),n.d(e,"e",(function(){return p})),n.d(e,"l",(function(){return f})),n.d(e,"g",(function(){return b})),n.d(e,"a",(function(){return g})),n.d(e,"n",(function(){return m})),n.d(e,"i",(function(){return v})),n.d(e,"b",(function(){return _})),n.d(e,"o",(function(){return y}));var i=n("zqNl");const r=Object(i.g)("Set Selected Market",Object(i.l)()),s=Object(i.g)("Set Quote Asset",Object(i.l)()),o=Object(i.g)("Set Assets",Object(i.l)()),a=Object(i.g)("Fetch Markets"),c=Object(i.g)("Fetch Futures Markets"),l=Object(i.g)("Fetch Authenticated Futures Markets"),u=Object(i.g)("Set Futures Markets",Object(i.l)()),h=Object(i.g)("Get Funding Rates",Object(i.l)()),d=Object(i.g)("Check Contract Expiry"),p=Object(i.g)("Fetch Fee Schedules"),f=Object(i.g)("Set Fee Schedules",Object(i.l)()),b=Object(i.g)("Fetch Leverage Preferences"),g=Object(i.g)("Set Flex Leverage Preferences",Object(i.l)()),m=Object(i.g)("Set Leverage Preferences",Object(i.l)()),v=Object(i.g)("Fetch PnL Preferences"),_=Object(i.g)("Set Flex PnL Preferences",Object(i.l)()),y=Object(i.g)("Set PnL Preferences",Object(i.l)())},wdR4:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return a}));var i=n("An66"),r=n("kZht");class s{constructor(t,e){this._document=e;const n=this._textarea=this._document.createElement("textarea"),i=n.style;i.position="fixed",i.top=i.opacity="0",i.left="-999em",n.setAttribute("aria-hidden","true"),n.value=t,this._document.body.appendChild(n)}copy(){const t=this._textarea;let e=!1;try{if(t){const n=this._document.activeElement;t.select(),t.setSelectionRange(0,t.value.length),e=this._document.execCommand("copy"),n&&n.focus()}}catch(n){}return e}destroy(){const t=this._textarea;t&&(t.parentNode&&t.parentNode.removeChild(t),this._textarea=void 0)}}let o=(()=>{class t{constructor(t){this._document=t}copy(t){const e=this.beginCopy(t),n=e.copy();return e.destroy(),n}beginCopy(t){return new s(t,this._document)}}return t.\u0275fac=function(e){return new(e||t)(r.Yb(i.d))},t.\u0275prov=Object(r.Kb)({factory:function(){return new t(Object(r.Yb)(i.d))},token:t,providedIn:"root"}),t})(),a=(()=>{class t{}return t.\u0275mod=r.Mb({type:t}),t.\u0275inj=r.Lb({factory:function(e){return new(e||t)}}),t})()},wjKt:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("lcP6"),r=n("y1Fj"),s=n("SnIc"),o=n("PDjX"),a=n("L09h"),c=n("KZGf"),l=n("3xzP"),u=n("nB6u");e.default=function(){function t(){}return t.decode=function(e,n,o,l){var h=new i.default(e),d=new c.default,p=new Array,f=-1,b=-1;try{var g=null,m=!1,v=void 0;do{if(h.available()<4)v=a.default.TERMINATOR;else{var _=h.readBits(4);v=a.default.forBits(_)}switch(v){case a.default.TERMINATOR:break;case a.default.FNC1_FIRST_POSITION:case a.default.FNC1_SECOND_POSITION:m=!0;break;case a.default.STRUCTURED_APPEND:if(h.available()<16)throw new u.default;f=h.readBits(8),b=h.readBits(8);break;case a.default.ECI:var y=t.parseECIValue(h);if(null===(g=r.default.getCharacterSetECIByValue(y)))throw new u.default;break;case a.default.HANZI:var O=h.readBits(4),C=h.readBits(v.getCharacterCountBits(n));O===t.GB2312_SUBSET&&t.decodeHanziSegment(h,d,C);break;default:var w=h.readBits(v.getCharacterCountBits(n));switch(v){case a.default.NUMERIC:t.decodeNumericSegment(h,d,w);break;case a.default.ALPHANUMERIC:t.decodeAlphanumericSegment(h,d,w,m);break;case a.default.BYTE:t.decodeByteSegment(h,d,w,g,p,l);break;case a.default.KANJI:t.decodeKanjiSegment(h,d,w);break;default:throw new u.default}}}while(v!==a.default.TERMINATOR)}catch(T){throw new u.default}return new s.default(e,d.toString(),0===p.length?null:p,null===o?null:o.toString(),f,b)},t.decodeHanziSegment=function(t,e,n){if(13*n>t.available())throw new u.default;for(var i=new Uint8Array(2*n),r=0;n>0;){var s=t.readBits(13),a=s/96<<8&4294967295|s%96;i[r]=(a+=a<959?41377:42657)>>8&255,i[r+1]=255&a,r+=2,n--}try{e.append(l.default.decode(i,o.default.GB2312))}catch(c){throw new u.default(c)}},t.decodeKanjiSegment=function(t,e,n){if(13*n>t.available())throw new u.default;for(var i=new Uint8Array(2*n),r=0;n>0;){var s=t.readBits(13),a=s/192<<8&4294967295|s%192;i[r]=(a+=a<7936?33088:49472)>>8,i[r+1]=a,r+=2,n--}try{e.append(l.default.decode(i,o.default.SHIFT_JIS))}catch(c){throw new u.default(c)}},t.decodeByteSegment=function(t,e,n,i,r,s){if(8*n>t.available())throw new u.default;for(var a,c=new Uint8Array(n),h=0;h=t.ALPHANUMERIC_CHARS.length)throw new u.default;return t.ALPHANUMERIC_CHARS[e]},t.decodeAlphanumericSegment=function(e,n,i,r){for(var s=n.length();i>1;){if(e.available()<11)throw new u.default;var o=e.readBits(11);n.append(t.toAlphaNumericChar(Math.floor(o/45))),n.append(t.toAlphaNumericChar(o%45)),i-=2}if(1===i){if(e.available()<6)throw new u.default;n.append(t.toAlphaNumericChar(e.readBits(6)))}if(r)for(var a=s;a=3;){if(e.available()<10)throw new u.default;var r=e.readBits(10);if(r>=1e3)throw new u.default;n.append(t.toAlphaNumericChar(Math.floor(r/100))),n.append(t.toAlphaNumericChar(Math.floor(r/10)%10)),n.append(t.toAlphaNumericChar(r%10)),i-=3}if(2===i){if(e.available()<7)throw new u.default;var s=e.readBits(7);if(s>=100)throw new u.default;n.append(t.toAlphaNumericChar(Math.floor(s/10))),n.append(t.toAlphaNumericChar(s%10))}else if(1===i){if(e.available()<4)throw new u.default;var o=e.readBits(4);if(o>=10)throw new u.default;n.append(t.toAlphaNumericChar(o))}},t.parseECIValue=function(t){var e=t.readBits(8);if(0==(128&e))return 127&e;if(128==(192&e))return(63&e)<<8&4294967295|t.readBits(8);if(192==(224&e))return(31&e)<<16&4294967295|t.readBits(16);throw new u.default},t.ALPHANUMERIC_CHARS="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",t.GB2312_SUBSET=1,t}()},wk3K:function(t,e,n){"use strict";n.d(e,"a",(function(){return H}));var i=n("D57K"),r=n("6uGs"),s=n("gxtV"),o=n("zqNl"),a=n("KQpv"),c=n.n(a),l=n("HM3f"),u=n("BwBJ"),h=n("jOdJ"),d=n("iT4G"),p=n("xVbo"),f=n("w0kG"),b=n("0Woy"),g=n("yBos"),m=n("TYVA"),v=n("i67J"),_=n("lx5p"),y=n("Qbn9"),O=n("pjhv"),C=n("NloN"),w=n("rTkt"),T=n("uJYd"),S=n("h3eB"),k=n("sXtk"),E=n("ylpo"),x=n("bjK4"),P=n("+Px6"),A=n("qAYy"),I=n("YyhG"),M=n("rxqU"),D=n("J/3c"),R=n("UbJG"),j=n("0goF"),L=n("mlVJ"),N=n("kZht"),U=n("Asjx"),F=n("F6wS"),B=n("An66");function z(t,e){1&t&&N.Pb(0,"div",3)}const V=c()("app:chart-tradingview"),$=c()("trace:app:chart-tradingview");let H=(()=>{let t=class{constructor(t,e,n,i,a,c){this.http=t,this.breakpointObserver=e,this.env=n,this.el=i,this.store=a,this.zone=c,this.socket=Object(g.a)(this.env.urls.websocket+"?chart"),this.chart=null,this.retryDelay=100,this.resolution="1",this.resolutionMap={1:"1m",5:"5m",15:"15m",30:"30m",60:"1h",240:"4h",720:"12h","1D":"1d",D:"1d"},this.chartType="trade",this.thereIsSomeData=!1,this.orderLines=new Map,this.positionLines=new Map,this.liquidationLine=null,this.options={disableUndo:!1},this.userSignedIn$=this.store.pipe(Object(o.m)(M.m)),this.markets$=this.store.pipe(Object(o.m)(P.j)),this.instrumentSymbol$=this.store.pipe(Object(o.m)(P.r)),this.selectedMarket$=this.store.pipe(Object(o.m)(P.n)),this.selectedMarketPosition$=this.store.pipe(Object(o.m)(I.g)),this.selectedMarketOrders$=this.store.pipe(Object(o.m)(I.f)),this.userData$=this.store.pipe(Object(o.m)(M.a)),this.selectedTicker$=this.store.pipe(Object(o.m)(A.p)),this.userFuturesWallets$=this.store.pipe(Object(o.m)(D.h)),this.userSelectedFuturesWallet$=this.store.pipe(Object(o.m)(D.n)),this.layoutTheme$=this.store.pipe(Object(o.m)(x.q)),this.workspaceId$=this.store.pipe(Object(o.m)(R.b)),this.enableChartPointer$=this.store.pipe(Object(o.m)(x.b)),this.datafeed={onReady:t=>{setTimeout(()=>t({exchanges:[{value:"",name:"",desc:""}],supported_resolutions:["1","5","15","30","60","240","720","D","W"],supports_marks:!1,supports_timescale_marks:!1,supports_time:!1}),0)},searchSymbols:()=>{},resolveSymbol:(t,e)=>{V("resolving symbol",t),this.store.pipe(Object(o.m)(P.i,{symbol:t}),Object(v.h)(),Object(u.a)(0)).subscribe(n=>{var i,r;V("found market",n);const s=null!==(r=null===(i=n.numericPrecision)||void 0===i?void 0:i.short)&&void 0!==r?r:8,o=Math.pow(10,s);$("using precision/scale",s,o);const a=t.replace(L.b,"BTC");e({name:a,full_name:"",ticker:a,description:a,type:"futures",session:"24x7",exchange:"",listed_exchange:"",timezone:"Europe/London",pricescale:o,minmov:1,supported_resolutions:["1","5","15","30","60","240","720","D","W"],has_intraday:!0,intraday_multipliers:["1","5","15","30","60","240","720"],has_no_volume:!1})})},getBars:(t,e,n,i,s,o)=>{const a={headers:new r.c({"Content-Type":"application/json"}),withCredentials:!0},c=t.name.replace(L.a,"XBT");this.resolution=e,this.http.get(`${this.env.urls.rest}/charts/${this.chartType}/${c}/${this.resolutionMap[e]}?from=${n}&to=${i}`,a).subscribe(t=>{this.thereIsSomeData=!0,this.retryDelay=100;const e=t.candles.map(t=>({open:Number(t.open),high:Number(t.high),low:Number(t.low),close:Number(t.close),volume:Number(t.volume),time:t.time}));s(e,{noData:0===t.candles.length||!t.more_candles})},t=>{console.error("Market Chart Snapshot Error",t),this.retryDelay=Object(v.b)(this.retryDelay),V(`Market Chart HTTP Error; Retrying in ${this.retryDelay}ms`),setTimeout(()=>this.createChart(),this.retryDelay),o("http error")})},subscribeBars:(t,e,n)=>{Object(l.a)([this.selectedMarketOrders$,this.selectedMarketPosition$,this.selectedTicker$,this.userData$]).pipe(Object(h.a)(),Object(s.b)(this)).subscribe(([i,r,o,a])=>{const c=t.name.replace(L.a,"XBT");this.socket.next({event:"subscribe",feed:`candles_${this.chartType}_${this.resolutionMap[e]}`,product_ids:[c]}),this.socket.pipe(Object(d.a)(12.5*y.e),Object(p.a)(t=>t.feed===`candles_${this.chartType}_${this.resolutionMap[e]}`),Object(p.a)(t=>!!t.candle),Object(s.b)(this)).subscribe(({candle:t})=>{this.retryDelay=100,n({open:Number(t.open),high:Number(t.high),low:Number(t.low),close:Number(t.close),volume:Number(t.volume),time:t.time})},t=>{var e;null===(e=this.socket)||void 0===e||e.complete(),console.error("Market Chart Realtime Error",t),this.retryDelay=Object(v.b)(this.retryDelay),V(`Market Chart WS Error; Restarting in ${this.retryDelay}ms`),setTimeout(()=>this.createChart(),this.retryDelay)},()=>{var t;console.warn("Chart WS completed. Page reload might be necessary."),null===(t=this.socket)||void 0===t||t.complete(),this.createChart()}),i&&this.ordersVisible(a)&&i.size<100&&this.updateOrderLines(),r&&(this.updatePositionLines(),this.liquidationPriceVisible(a)&&this.updateLiquidationLine())})},unsubscribeBars:t=>{const e=t.replace(L.a,"XBT").split("_");this.socket.next("PV"===e[0]||"PI"===e[0]||"PF"===e[0]?{event:"unsubscribe",product_ids:[`${e[0]}_${e[1]}`],feed:`candles_${this.chartType}_${this.resolutionMap[this.resolution]}`}:{event:"unsubscribe",product_ids:[`${e[0]}_${e[1]}_${e[2]}`],feed:`candles_${this.chartType}_${this.resolutionMap[this.resolution]}`})}}}get overrides(){const t=window.getComputedStyle(this.el.nativeElement);return this.proxyCssProps(),{"paneProperties.background":t.getPropertyValue("--card-colour").trim(),"paneProperties.vertGridProperties.color":t.getPropertyValue("--border-colour-dark").trim(),"paneProperties.horzGridProperties.color":t.getPropertyValue("--border-colour-dark").trim(),"scalesProperties.textColor":t.getPropertyValue("--text-colour").trim(),"scalesProperties.lineColor":t.getPropertyValue("--text-colour").trim(),"mainSeriesProperties.candleStyle.upColor":t.getPropertyValue("--accent-colour").trim(),"mainSeriesProperties.candleStyle.borderUpColor":t.getPropertyValue("--accent-colour").trim(),"mainSeriesProperties.candleStyle.downColor":t.getPropertyValue("--warn-colour").trim(),"mainSeriesProperties.candleStyle.borderDownColor":t.getPropertyValue("--warn-colour").trim()}}saveChart(){var t;null===(t=this.chart)||void 0===t||t.save(({charts:t})=>{const e="cf"===this.env.platform?E.c:E.d;Object(C.c)(e,{charts:t})})}ngOnInit(){this.workspaceId$.pipe(Object(h.a)()).subscribe(t=>{this.activeWorkspaceId=t}),this.instrumentSymbol$.pipe(Object(s.b)(this)).subscribe(t=>{if(this.chart){try{this.chart.setSymbol(t.toUpperCase(),this.resolution,()=>{})}catch(e){console.warn("Chart not yet initialised.")}this.liquidationLine&&(this.liquidationLine.remove(),this.liquidationLine=null)}else setTimeout(()=>{this.createChart()},100)}),this.selectedMarketOrders$.pipe(Object(f.a)(this.userData$),Object(s.b)(this)).subscribe(([t,e])=>{this.chart&&this.ordersVisible(e)&&t.size<100&&this.updateOrderLines()}),this.selectedMarketPosition$.pipe(Object(f.a)(this.userData$),Object(s.b)(this)).subscribe(([t,e])=>{this.chart&&this.positionsVisible(e)&&(this.updatePositionLines(),this.liquidationPriceVisible(e)&&this.updateLiquidationLine())}),this.layoutTheme$.pipe(Object(b.a)(),Object(s.b)(this)).subscribe(([t,e])=>{this.saveChart(),setTimeout(()=>this.createChart())}),this.watchChartSettings()}ngOnDestroy(){try{this.saveChart()}catch(t){console.error("internal chart error",t)}}liquidationPriceVisible(t){return!!t&&!t.hideMarketChartLiquidationPrice}ordersVisible(t){return!!t&&!t.hideMarketChartOrders}positionsVisible(t){return!!t&&!t.hideMarketChartPositions}watchChartSettings(){this.userData$.pipe(Object(s.b)(this)).subscribe(t=>{t.chartType&&t.chartType!==this.chartType&&this.changeChartType(t.chartType),"hideMarketChartLiquidationPrice"in t&&void 0!==t.hideMarketChartLiquidationPrice&&this.toggleLiquidationPrice(t.hideMarketChartLiquidationPrice),"hideMarketChartOrders"in t&&void 0!==t.hideMarketChartOrders&&this.toggleOrders(t.hideMarketChartOrders),"hideMarketChartPositions"in t&&void 0!==t.hideMarketChartPositions&&this.togglePositions(t.hideMarketChartPositions)})}changeChartType(t){this.saveChart(),this.chartType=t,this.createChart()}resetLines(){this.orderLines=new Map,this.positionLines=new Map,this.liquidationLine=null}toggleLiquidationPrice(t){this.liquidationLine&&t&&(this.liquidationLine.remove(),this.liquidationLine=null),this.liquidationLine||t||this.updateLiquidationLine()}toggleOrders(t){this.orderLines.size>0&&t&&(this.orderLines.forEach((t,e)=>{this.orderLines.get(e).remove()}),this.orderLines=new Map),this.orderLines&&0!==this.orderLines.size||t||this.updateOrderLines()}togglePositions(t){this.positionLines.size>0&&t&&(this.positionLines.forEach((t,e)=>{this.positionLines.get(e).remove()}),this.positionLines=new Map,this.liquidationLine&&(this.liquidationLine.remove(),this.liquidationLine=null)),this.positionLines&&0!==this.positionLines.size||t||this.updatePositionLines()}onCancelOrder(t){this.zone.run(()=>this.store.dispatch(Object(S.d)({id:t})))}onEditOrder(t){V("editing order",t),Object(l.a)([this.markets$,this.userSelectedFuturesWallet$]).pipe(Object(h.a)()).subscribe(([e,n])=>{const i=e.get(t.instrument),r=(null==n?void 0:n.am)||0;this.zone.run(()=>this.store.dispatch(Object(T.g)({name:"edit-order",inputs:{order:t,instrument:i,availableMargin:r}})))})}createChart(){this.instrumentSymbol$.pipe(Object(h.a)()).subscribe(t=>{const e=window.getComputedStyle(this.el.nativeElement),n=e.getPropertyValue("--background-colour")||"#ffffff",i=e.getPropertyValue("--card-colour")||"#ffffff",r="cf"===this.env.platform?E.c:E.d,s=Object(C.b)(r,void 0);s&&(s.charts[0].panes[0].sources[0].state.symbol=t.toUpperCase(),s.charts[0].panes[0].sources[0].state.shortName=t.toUpperCase(),i!==s.charts[0].chartProperties.paneProperties.background&&(s.charts[0].chartProperties.paneProperties.background=i.trim()));const o=Object.assign(Object.assign({symbol:t.toUpperCase(),datafeed:this.datafeed,saved_data:s||void 0,container_id:"chart-container",library_path:"./assets/scripts/charting_library/",interval:Object(C.b)(E.e,"60"),locale:"en",timezone:"Europe/London"},this.isMobile?{preset:"mobile"}:null),{disabled_features:["timeframes_toolbar","edit_buttons_in_legend","control_bar","border_around_the_chart","header_interval_dialog_button","header_compare","header_undo_redo","compare_symbol","widget_logo","symbol_search_hot_key"],autosize:!0,overrides:this.overrides,custom_css_url:"css/chart-overrides.css",loading_screen:{backgroundColor:n},theme:"Dark"});this.socket.next({event:"subscribe",feed:"heartbeat"}),this.chart=new j.widget(o),this.chart.onChartReady(()=>{var t;this.proxyCssProps(),null===(t=this.chart)||void 0===t||t.applyOverrides(this.overrides),this.resetLines()})})}updateLiquidationLine(){if(!this.chart||!this.thereIsSomeData)return;try{this.chart.chart()}catch(e){return}const t=window.getComputedStyle(this.el.nativeElement).getPropertyValue("--warn-colour");this.selectedMarketPosition$.pipe(Object(h.a)()).subscribe(n=>{if(n&&n.liquidation_threshold>0)if(this.liquidationLine)this.liquidationLine.setPrice(n.liquidation_threshold).setQuantity(n.balance.toString());else try{this.liquidationLine=this.chart.chart().createPositionLine(this.options).setPrice(n.liquidation_threshold).setQuantity(n.balance.toString()).setText("Liquidation").setLineColor(t).setBodyTextColor(t).setBodyBorderColor(t).setQuantityBackgroundColor(t).setQuantityBorderColor(t)}catch(e){console.error(e)}})}updatePositionLines(){if(this.chart&&this.thereIsSomeData){try{this.chart.chart()}catch(t){return}Object(l.a)([this.selectedMarketPosition$,this.instrumentSymbol$]).pipe(Object(h.a)()).subscribe(([t,e])=>{if(t){const n=t.pnl>0,i=n?"\u25b2":"\u25bc",r=n?"#009688":"#f44336",s=this.positionLines.get(t.instrument),o=Object(m.n)(e).replace(L.b,"BTC");s?s.setText(`${i} ${t.pnl.toFixed(Object(O.b)(o))} ${o}`).setBodyTextColor(r).setBodyBorderColor(r).setQuantity(t.balance.toString()).setPrice(t.entry_price):this.positionLines.set(t.instrument,this.chart.chart().createPositionLine(this.options).setText(`${i} ${t.pnl.toFixed(Object(O.b)(o))} ${o}`).setBodyTextColor(r).setBodyBorderColor(r).setQuantity(t.balance.toString()).setPrice(t.entry_price)),this.positionLines&&this.positionLines.forEach((e,n)=>{(!t||t.instrument!==n)&&(this.positionLines.get(n).remove(),this.positionLines.delete(n))})}else this.positionLines.size>0&&this.positionLines.forEach((t,e)=>{this.positionLines.get(e).remove(),this.positionLines.delete(e)})})}}updateOrderLines(){Object(l.a)([this.selectedMarketOrders$,this.selectedMarket$]).pipe(Object(h.a)()).subscribe(([t,e])=>{if(this.chart&&t&&this.thereIsSomeData){try{this.chart.chart()}catch(n){return}t.forEach(t=>{const n=0===t.direction?"Long":"Short",i="stop"===t.type,r="take_profit"===t.type,s=i?"- Stop Loss":r?"- Take Profit":"limit"===t.type?"- Limit":"";if(this.orderLines.get(t.order_id))this.orderLines.get(t.order_id).onMove(()=>{setTimeout(()=>{this.onEditOrder(Object.assign(Object.assign(Object.assign({},t),t.limit_price&&!i&&!r&&{limit_price:this.getPriceOfOrder(t.order_id,e)}),(i||r)&&{stop_price:this.getPriceOfOrder(t.order_id,e)})),this.updateOrderLinePrice(t.order_id,i?t.stop_price:t.limit_price)},250)}).onModify("",()=>{setTimeout(()=>this.onEditOrder(t),250)}).onCancel("",()=>this.onCancelOrder(t.order_id)).setQuantity(t.qty.toString()).setPrice(i||r?t.stop_price:t.limit_price).setText(`${n} ${s}`);else{const o=window.getComputedStyle(this.el.nativeElement),a=o.getPropertyValue("--g300"),c=o.getPropertyValue("--warn-colour"),l=0===t.direction?a:c,u=i||r?t.stop_price:t.limit_price;this.orderLines.set(t.order_id,this.chart.chart().createOrderLine(this.options).onMove(()=>{setTimeout(()=>{this.onEditOrder(Object.assign(Object.assign(Object.assign({},t),t.limit_price&&!i&&!r&&{limit_price:this.getPriceOfOrder(t.order_id,e)}),(i||r)&&{stop_price:this.getPriceOfOrder(t.order_id,e)})),this.updateOrderLinePrice(t.order_id,i?t.stop_price:t.limit_price)},250)}).onModify("",e=>{setTimeout(()=>this.onEditOrder(t),250)}).onCancel("",()=>this.onCancelOrder(t.order_id)).setText(`${n} ${s}`).setLineLength(3).setLineStyle(2).setLineLength(50).setLineColor(l).setExtendLeft(!0).setQuantity(t.qty.toString()).setPrice(u).setBodyTextColor(l).setBodyBorderColor(l).setQuantityBackgroundColor(l).setQuantityBorderColor(l).setCancelButtonBackgroundColor(l).setCancelButtonBorderColor(l).setCancelButtonIconColor("#FFF"))}}),this.orderLines.forEach((e,n)=>{t&&(t.get(n)||(this.orderLines.get(n).remove(),this.orderLines.delete(n)))})}})}proxyCssProps(){setTimeout(()=>{const t=this.el.nativeElement.querySelector("iframe");if(t){const e=window.getComputedStyle(this.el.nativeElement);["--brand","--accent-colour","--warn-colour","--background-colour","--toolbar-colour","--card-colour","--button-colour","--form-input-colour","--text-colour","--ghost-colour","--button-text-colour","--input-colour","--link-colour","--border-colour-dark","--icon-colour","--g300"].forEach(n=>Object(w.a)(n,e,t))}},100)}getPriceOfOrder(t,e){var n,i;const r=this.orderLines.get(t).getPrice();if(!e)return r;const s=null!==(i=null===(n=e.numericPrecision)||void 0===n?void 0:n.full)&&void 0!==i?i:8,o=Object(_.H)(s)(r),a=Object(_.I)(e.tickSize)(o);return $("get price of order id "+t,{rawPrice:r,price:o,nearestTick:a}),a}updateOrderLinePrice(t,e){return this.orderLines.get(t).setPrice(e)}get isMobile(){return this.breakpointObserver.isMatched("(max-width: 599px)")}};return t.\u0275fac=function(e){return new(e||t)(N.Ob(r.a),N.Ob(U.a),N.Ob(k.a),N.Ob(N.l),N.Ob(o.b),N.Ob(N.B))},t.\u0275cmp=N.Ib({type:t,selectors:[["market-chart"]],hostBindings:function(t,e){1&t&&N.bc("beforeunload",(function(){return e.saveChart()}),!1,N.Dc)},decls:5,vars:3,consts:[["id","market-chart",1,"market-chart"],["class","drag-event-hider",4,"ngIf"],["id","chart-container"],[1,"drag-event-hider"]],template:function(t,e){1&t&&(N.Ub(0,"mat-card",0),N.Ub(1,"mat-card-content"),N.Oc(2,z,1,0,"div",1),N.gc(3,"async"),N.Pb(4,"div",2),N.Tb(),N.Tb()),2&t&&(N.Cb(2),N.mc("ngIf",!1===N.hc(3,1,e.enableChartPointer$)))},directives:[F.a,F.b,B.n],pipes:[B.b],styles:["mat-card[_ngcontent-%COMP%]{box-shadow:none!important}.market-chart[_ngcontent-%COMP%], .market-chart[_ngcontent-%COMP%] #chart-container[_ngcontent-%COMP%], .market-chart[_ngcontent-%COMP%] .mat-card-content[_ngcontent-%COMP%]{height:100%}@media (max-width:1024px){.market-chart[_ngcontent-%COMP%] #chart-container[_ngcontent-%COMP%]{height:100%}}.drag-event-hider[_ngcontent-%COMP%]{height:100%;width:100%;position:absolute}"],changeDetection:0}),t=Object(i.d)([Object(s.a)()],t),t})()},wny4:function(t,e){var n=console.debug||console.log;t.exports={load:function(t,e){var i=Object.assign({sync:!1,libUrl:"https://cdnjs.cloudflare.com/ajax/libs/zxcvbn/4.4.2/zxcvbn.js",libIntegrity:"sha384-jhGcGHNZytnBnH1wbEM3KxJYyRDy9Q0QLKjE65xk+aMqXFCdvFuYIjzMWAAWBBtR"},t);return i.sync?function(t){return s(t.libUrl,t.libIntegrity,(function(){n("zxcvbn loaded"),o=global.zxcvbn}),(function(){console.error(new Error("Cannot load zxcvbn"))})),function(t,e){return o?o(t,e):{password:t,user_inputs:e,guesses:-1,guesses_log10:-1,crack_times_seconds:-1,crack_times_display:-1,score:-1,feedback:{suggestions:[],warning:""},sequence:[],calc_time:0}}}(i):function(t,e){if("function"!=typeof e)return new Promise((function(e,n){s(t.libUrl,t.libIntegrity,(function(){e(global.zxcvbn)}),(function(){n(new Error("Cannot load zxcvbn"))}))}));s(t.libUrl,t.libIntegrity,(function(){e(null,global.zxcvbn)}),(function(){e(new Error("Cannot load zxcvbn"))}))}(i,e)}};var i=!1,r=0;function s(t,e,n,s){if(i)1===r?n():-1===r&&s();else{i=!0;var o=global.document.getElementsByTagName("head")[0],a=global.document.createElement("script");a.type="text/javascript",e&&(a.integrity=e,a.crossOrigin="anonymous"),a.async=!0,a.onload=function(){r=1,n()},a.onerror=function(){r=-1,s()},a.src=t,o.appendChild(a)}}var o=null},"wqq/":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("QQZH");function r(t,e,n){let r;return r=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:n},t=>t.lift(function({bufferSize:t=Number.POSITIVE_INFINITY,windowTime:e=Number.POSITIVE_INFINITY,refCount:n,scheduler:r}){let s,o,a=0,c=!1,l=!1;return function(u){let h;a++,!s||c?(c=!1,s=new i.a(t,e,r),h=s.subscribe(this),o=u.subscribe({next(t){s.next(t)},error(t){c=!0,s.error(t)},complete(){l=!0,o=void 0,s.complete()}})):h=s.subscribe(this),this.add(()=>{a--,h.unsubscribe(),o&&!l&&n&&0===a&&(o.unsubscribe(),o=void 0,s=void 0)})}}(r))}},x94p:function(t,e,n){"use strict";n.d(e,"a",(function(){return O}));var i=n("1VvW"),r=n("xVbo"),s=n("kZht"),o=n("Asjx"),a=n("NxuZ"),c=n("An66"),l=n("y1fC"),u=n("zho4"),h=n("B6Vo"),d=n("aDqW");function p(t,e){if(1&t&&(s.Ub(0,"a",11),s.Ub(1,"div",2),s.Pb(2,"fa-icon",12),s.Tb(),s.Ub(3,"div",4),s.Ub(4,"div",13),s.Qc(5),s.gc(6,"translate"),s.Tb(),s.Tb(),s.Tb()),2&t){const t=s.fc().$implicit,e=s.fc();s.mc("routerLink",t.link)("sbTooltip",e.mouseOver?void 0:t.name),s.Cb(2),s.mc("icon",t.icon),s.Cb(3),s.Sc(" ",s.hc(6,4,t.name)," ")}}function f(t,e){if(1&t&&(s.Sb(0),s.Oc(1,p,7,6,"a",10),s.Rb()),2&t){const t=e.$implicit;s.Cb(1),s.mc("ngIf",!t.hidden)}}function b(t,e){if(1&t){const t=s.Vb();s.Ub(0,"a",14),s.bc("click",(function(){s.Ec(t);const e=s.fc();return e.mouseOver=!e.mouseOver})),s.Ub(1,"div",2),s.Pb(2,"fa-icon",15),s.Tb(),s.Ub(3,"div",4),s.Ub(4,"div",13),s.Qc(5),s.gc(6,"translate"),s.Tb(),s.Tb(),s.Tb()}2&t&&(s.Cb(5),s.Sc(" ",s.hc(6,1,"BUTTON.COLLAPSE_SIDEBAR")," "))}function g(t,e){if(1&t){const t=s.Vb();s.Ub(0,"a",16),s.bc("click",(function(){return s.Ec(t),s.fc().mouseOver=!0})),s.Ub(1,"div",2),s.Pb(2,"fa-icon",17),s.Tb(),s.Tb()}}const m=function(t){return{brand:t}};function v(t,e){if(1&t){const t=s.Vb();s.Ub(0,"div",20),s.bc("click",(function(){return s.Ec(t),s.fc(2).mouseOver=!0})),s.Ub(1,"div",2),s.Pb(2,"fa-icon",12),s.Tb(),s.Ub(3,"div",4),s.Ub(4,"div",13),s.Qc(5),s.gc(6,"translate"),s.Tb(),s.Tb(),s.Tb()}if(2&t){const t=s.fc().$implicit,e=s.fc();s.mc("ngClass",s.rc(5,m,e.isCurrentRoute(t.link))),s.Cb(2),s.mc("icon",t.icon),s.Cb(3),s.Sc(" ",s.hc(6,3,t.name)," ")}}function _(t,e){if(1&t){const t=s.Vb();s.Ub(0,"a",21),s.bc("click",(function(){s.Ec(t);const e=s.fc().$implicit,n=s.fc();return n.router.url.includes(e.link)?n.mouseOver=!1:null})),s.Ub(1,"div",2),s.Pb(2,"fa-icon",12),s.Tb(),s.Ub(3,"div",4),s.Ub(4,"div",13),s.Qc(5),s.gc(6,"translate"),s.Tb(),s.Tb(),s.Tb()}if(2&t){const t=s.fc().$implicit;s.mc("routerLink",t.link),s.Cb(2),s.mc("icon",t.icon),s.Cb(3),s.Sc(" ",s.hc(6,3,t.name)," ")}}function y(t,e){if(1&t&&(s.Sb(0),s.Oc(1,v,7,7,"div",18),s.Oc(2,_,7,5,"a",19),s.Rb()),2&t){const t=e.$implicit,n=s.fc();s.Cb(1),s.mc("ngIf",!t.hidden&&!n.mouseOver&&n.isCurrentRoute(t.link)),s.Cb(1),s.mc("ngIf",!t.hidden&&n.mouseOver)}}let O=(()=>{class t{constructor(t,e,n){this.router=t,this.cdr=e,this.breakpointObserver=n,this.navItems=[{name:"NAV.TRADING",link:"/futures",icon:"trade"},{name:"NAV.WALLETS",link:"/wallets",icon:"wallet"},{name:"NAV.LOGS",link:"/history",icon:"list"},{name:"NAV.ASSIGNMENT",link:"/assignment",icon:"thunder"},{name:"NAV.AFFILIATE",link:"/affiliate",icon:"user",hidden:!0},{name:"NAV.SUBACCOUNTS",link:"/subaccounts",icon:"user-group"},{name:"NAV.SUPPORT",link:"/support",icon:"support"},{name:"NAV.SETTINGS",link:"/settings",icon:"cog"},{name:"NAV.VERIFICATION",link:"/verification",icon:"check"}],this.mouseOver=!1,this.router.events.pipe(Object(r.a)(t=>t instanceof i.b)).subscribe(()=>{this.mouseOver&&(this.mouseOver=!1),this.cdr.detectChanges()})}ngOnChanges(t){("userTier"in t||"userClassification"in t||"email"in t)&&(this.navItems.find(({name:t})=>"NAV.VERIFICATION"===t).hidden=this.demo||!(("NONE"===this.userTier||"FAILED"===this.userTier||"NONE"===this.userClassification)&&this.email)),"hasSubAccounts"in t&&(this.navItems.find(({name:t})=>"NAV.SUBACCOUNTS"===t).hidden=!this.hasSubAccounts)}clickout(t){t.target.classList.contains("open")&&(this.mouseOver=!1)}isCurrentRoute(t){return this.router.url.includes(t)||"/"===this.router.url&&"/futures"===t}get isMobile(){return this.breakpointObserver.isMatched("(max-width: 599px)")}}return t.\u0275fac=function(e){return new(e||t)(s.Ob(i.d),s.Ob(s.h),s.Ob(o.a))},t.\u0275cmp=s.Ib({type:t,selectors:[["app-expandable-sidenav"]],hostVars:2,hostBindings:function(t,e){1&t&&s.bc("click",(function(t){return e.clickout(t)}),!1,s.Cc),2&t&&s.Gb("open",e.mouseOver)},inputs:{demo:"demo",isAffiliate:"isAffiliate",email:"email",userTier:"userTier",userClassification:"userClassification",hasSubAccounts:"hasSubAccounts",logo:"logo",platform:"platform"},features:[s.Ab],decls:12,vars:7,consts:[[1,"hover-wrapper","desktop-nav"],["routerLink","/",1,"nav-item","brand"],[1,"nav-item__icon"],[3,"icon","size"],[1,"nav-item__text"],["alt","Logo",1,"nav-item__logo",3,"src"],[4,"ngFor","ngForOf"],["class","nav-item expander",3,"click",4,"ngIf"],["class","nav-item expander expander--narrow","sbTooltip","BUTTON.EXPAND_SIDEBAR","sbPlacement","end","sbDelay","100",3,"click",4,"ngIf"],[1,"hover-wrapper","mobile-nav"],["routerLinkActive","nav-item--active","class","nav-item","sbPlacement","end","sbDelay","100",3,"routerLink","sbTooltip",4,"ngIf"],["routerLinkActive","nav-item--active","sbPlacement","end","sbDelay","100",1,"nav-item",3,"routerLink","sbTooltip"],["size","lg",3,"icon"],[1,"nav-item__text-inner"],[1,"nav-item","expander",3,"click"],["icon","chevron-left","size","lg"],["sbTooltip","BUTTON.EXPAND_SIDEBAR","sbPlacement","end","sbDelay","100",1,"nav-item","expander","expander--narrow",3,"click"],["icon","chevron-right","size","lg"],["class","nav-item",3,"ngClass","click",4,"ngIf"],["routerLinkActive","brand","class","nav-item",3,"routerLink","click",4,"ngIf"],[1,"nav-item",3,"ngClass","click"],["routerLinkActive","brand",1,"nav-item",3,"routerLink","click"]],template:function(t,e){1&t&&(s.Ub(0,"div",0),s.Ub(1,"div"),s.Ub(2,"a",1),s.Ub(3,"div",2),s.Pb(4,"fa-icon",3),s.Tb(),s.Ub(5,"div",4),s.Pb(6,"img",5),s.Tb(),s.Tb(),s.Oc(7,f,2,1,"ng-container",6),s.Tb(),s.Oc(8,b,7,3,"a",7),s.Oc(9,g,3,0,"a",8),s.Tb(),s.Ub(10,"div",9),s.Oc(11,y,3,2,"ng-container",6),s.Tb()),2&t&&(s.Cb(4),s.mc("icon",e.platform)("size","kraken"===e.platform?"lg":"xs"),s.Cb(2),s.mc("src",e.logo,s.Gc),s.Cb(1),s.mc("ngForOf",e.navItems),s.Cb(1),s.mc("ngIf",e.mouseOver),s.Cb(1),s.mc("ngIf",!e.mouseOver),s.Cb(2),s.mc("ngForOf",e.navItems))},directives:[i.g,a.b,c.m,c.n,i.f,l.a,u.a,h.a,c.l],pipes:[d.d],styles:['[_nghost-%COMP%]{z-index:10;margin-left:calc(-1 * var(--spacing))}.open[_nghost-%COMP%]:after{content:"";position:absolute;width:100%;height:100%;left:0;top:0;background:rgba(0,0,0,.32);z-index:101}@media (max-width:1024px){.open[_nghost-%COMP%] .nav-item[_ngcontent-%COMP%]{height:calc(44px * 1.5)}}.open[_nghost-%COMP%] .hover-wrapper[_ngcontent-%COMP%]{width:calc(54px * 6.5)}@media (max-width:1024px){.open[_nghost-%COMP%] .hover-wrapper[_ngcontent-%COMP%]{background:var(--card-colour);height:100%;width:calc(44px * 6.5)}}.hover-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-between;width:54px;height:100%;padding:var(--spacing-s);position:relative;z-index:102;background-color:var(--toolbar-colour);border:1px solid var(--border-colour);border-radius:var(--bdrs);transform:translateX(var(--spacing));transition:width .3s ease}@media (max-width:1024px){.hover-wrapper[_ngcontent-%COMP%]{border:0;background-color:var(--background-colour);padding:0;width:44px}}.expander[_ngcontent-%COMP%]{margin-bottom:0!important}.expander--narrow[_ngcontent-%COMP%]{width:44px}.nav-item[_ngcontent-%COMP%]{display:grid;grid-template-columns:auto 1fr;gap:var(--spacing);align-items:center;padding:var(--spacing-s) 0;font-family:var(--typeface);color:var(--icon-colour);border:1px solid var(--border-colour);border-radius:var(--bdrs);cursor:pointer}@media (max-width:1024px){.nav-item[_ngcontent-%COMP%]{background:var(--background-colour);padding:0;height:46px;margin-bottom:0!important}}.nav-item[_ngcontent-%COMP%]:not(:last-child){margin-bottom:var(--spacing-s)}.nav-item--active[_ngcontent-%COMP%], .nav-item[_ngcontent-%COMP%]:focus, .nav-item[_ngcontent-%COMP%]:hover{color:var(--text-colour)}.nav-item--active[_ngcontent-%COMP%]{font-weight:700;background:var(--form-input-colour)}.nav-item__icon[_ngcontent-%COMP%]{margin:var(--spacing)}.nav-item__text[_ngcontent-%COMP%]{overflow-x:hidden;font-size:1.2rem;font-weight:500;line-height:1.3}@media (min-width:1025px){.brand[_ngcontent-%COMP%] .nav-item__text[_ngcontent-%COMP%]{font-size:1.1rem;letter-spacing:.3ch;font-weight:700;text-transform:uppercase}}.nav-item__text-inner[_ngcontent-%COMP%]{white-space:nowrap}.nav-item__logo[_ngcontent-%COMP%]{vertical-align:bottom}.brand[_ngcontent-%COMP%]{background:var(--form-input-colour);color:var(--logo-colour)}@media (max-width:1024px){.desktop-nav[_ngcontent-%COMP%]{display:none!important}}@media (min-width:1025px){.mobile-nav[_ngcontent-%COMP%]{display:none!important}}.spacer[_ngcontent-%COMP%]{flex-grow:1}.nav-tooltip[_ngcontent-%COMP%]{white-space:nowrap}.nav-tooltip[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding:7px}'],changeDetection:0}),t})()},xSUO:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t[t.OTHER=0]="OTHER",t[t.ORIENTATION=1]="ORIENTATION",t[t.BYTE_SEGMENTS=2]="BYTE_SEGMENTS",t[t.ERROR_CORRECTION_LEVEL=3]="ERROR_CORRECTION_LEVEL",t[t.ISSUE_NUMBER=4]="ISSUE_NUMBER",t[t.SUGGESTED_PRICE=5]="SUGGESTED_PRICE",t[t.POSSIBLE_COUNTRY=6]="POSSIBLE_COUNTRY",t[t.UPC_EAN_EXTENSION=7]="UPC_EAN_EXTENSION",t[t.PDF417_EXTRA_METADATA=8]="PDF417_EXTRA_METADATA",t[t.STRUCTURED_APPEND_SEQUENCE=9]="STRUCTURED_APPEND_SEQUENCE",t[t.STRUCTURED_APPEND_PARITY=10]="STRUCTURED_APPEND_PARITY",t}({})},xVbo:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("5uGe");function r(t,e){return function(n){return n.lift(new s(t,e))}}class s{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new o(t,this.predicate,this.thisArg))}}class o extends i.a{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}},y1Fj:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("nB6u"),r=e.CharacterSetValueIdentifiers=function(t){return t[t.Cp437=0]="Cp437",t[t.ISO8859_1=1]="ISO8859_1",t[t.ISO8859_2=2]="ISO8859_2",t[t.ISO8859_3=3]="ISO8859_3",t[t.ISO8859_4=4]="ISO8859_4",t[t.ISO8859_5=5]="ISO8859_5",t[t.ISO8859_6=6]="ISO8859_6",t[t.ISO8859_7=7]="ISO8859_7",t[t.ISO8859_8=8]="ISO8859_8",t[t.ISO8859_9=9]="ISO8859_9",t[t.ISO8859_10=10]="ISO8859_10",t[t.ISO8859_11=11]="ISO8859_11",t[t.ISO8859_13=12]="ISO8859_13",t[t.ISO8859_14=13]="ISO8859_14",t[t.ISO8859_15=14]="ISO8859_15",t[t.ISO8859_16=15]="ISO8859_16",t[t.SJIS=16]="SJIS",t[t.Cp1250=17]="Cp1250",t[t.Cp1251=18]="Cp1251",t[t.Cp1252=19]="Cp1252",t[t.Cp1256=20]="Cp1256",t[t.UnicodeBigUnmarked=21]="UnicodeBigUnmarked",t[t.UTF8=22]="UTF8",t[t.ASCII=23]="ASCII",t[t.Big5=24]="Big5",t[t.GB18030=25]="GB18030",t[t.EUC_KR=26]="EUC_KR",t}(e.CharacterSetValueIdentifiers||{});e.default=function(){function t(e,n,i){for(var r=[],s=3;s=900)throw new i.default("incorect value");var n=t.VALUES_TO_ECI.get(e);if(void 0===n)throw new i.default("incorect value");return n},t.getCharacterSetECIByName=function(e){var n=t.NAME_TO_ECI.get(e);if(void 0===n)throw new i.default("incorect value");return n},t.prototype.equals=function(e){if(!(e instanceof t))return!1;var n=e;return this.getName()===n.getName()},t.VALUE_IDENTIFIER_TO_ECI=new Map,t.VALUES_TO_ECI=new Map,t.NAME_TO_ECI=new Map,t.Cp437=new t(r.Cp437,Int32Array.from([0,2]),"Cp437"),t.ISO8859_1=new t(r.ISO8859_1,Int32Array.from([1,3]),"ISO-8859-1","ISO88591","ISO8859_1"),t.ISO8859_2=new t(r.ISO8859_2,4,"ISO-8859-2","ISO88592","ISO8859_2"),t.ISO8859_3=new t(r.ISO8859_3,5,"ISO-8859-3","ISO88593","ISO8859_3"),t.ISO8859_4=new t(r.ISO8859_4,6,"ISO-8859-4","ISO88594","ISO8859_4"),t.ISO8859_5=new t(r.ISO8859_5,7,"ISO-8859-5","ISO88595","ISO8859_5"),t.ISO8859_6=new t(r.ISO8859_6,8,"ISO-8859-6","ISO88596","ISO8859_6"),t.ISO8859_7=new t(r.ISO8859_7,9,"ISO-8859-7","ISO88597","ISO8859_7"),t.ISO8859_8=new t(r.ISO8859_8,10,"ISO-8859-8","ISO88598","ISO8859_8"),t.ISO8859_9=new t(r.ISO8859_9,11,"ISO-8859-9","ISO88599","ISO8859_9"),t.ISO8859_10=new t(r.ISO8859_10,12,"ISO-8859-10","ISO885910","ISO8859_10"),t.ISO8859_11=new t(r.ISO8859_11,13,"ISO-8859-11","ISO885911","ISO8859_11"),t.ISO8859_13=new t(r.ISO8859_13,15,"ISO-8859-13","ISO885913","ISO8859_13"),t.ISO8859_14=new t(r.ISO8859_14,16,"ISO-8859-14","ISO885914","ISO8859_14"),t.ISO8859_15=new t(r.ISO8859_15,17,"ISO-8859-15","ISO885915","ISO8859_15"),t.ISO8859_16=new t(r.ISO8859_16,18,"ISO-8859-16","ISO885916","ISO8859_16"),t.SJIS=new t(r.SJIS,20,"SJIS","Shift_JIS"),t.Cp1250=new t(r.Cp1250,21,"Cp1250","windows-1250"),t.Cp1251=new t(r.Cp1251,22,"Cp1251","windows-1251"),t.Cp1252=new t(r.Cp1252,23,"Cp1252","windows-1252"),t.Cp1256=new t(r.Cp1256,24,"Cp1256","windows-1256"),t.UnicodeBigUnmarked=new t(r.UnicodeBigUnmarked,25,"UnicodeBigUnmarked","UTF-16BE","UnicodeBig"),t.UTF8=new t(r.UTF8,26,"UTF8","UTF-8"),t.ASCII=new t(r.ASCII,Int32Array.from([27,170]),"ASCII","US-ASCII"),t.Big5=new t(r.Big5,28,"Big5"),t.GB18030=new t(r.GB18030,29,"GB18030","GB2312","EUC_CN","GBK"),t.EUC_KR=new t(r.EUC_KR,30,"EUC_KR","EUC-KR"),t}()},y1fC:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return c}));var i=n("kZht");let r=(()=>{class t{connectedPositions(){const t=this.placement;return this.positionsForPlacement(t in l?l[t]:t)}positionsForPlacement(t){return[c[t],a(c[t])]}static get topThenBottom(){return[c.topCenter,a(c.topCenter)]}static get bottomThenTop(){return[c.bottomCenter,a(c.bottomCenter)]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","sbPlacement",""]],inputs:{placement:["sbPlacement","placement"]},exportAs:["sbPlacement"]}),t})();function s(t){return"start"===t?"end":"end"===t?"start":"center"}function o(t){return"top"===t?"bottom":"bottom"===t?"top":"center"}function a(t){return{originX:s(t.originX),originY:o(t.originY),overlayX:s(t.overlayX),overlayY:o(t.overlayY),offsetX:t.offsetX?-t.offsetX:void 0,offsetY:t.offsetY?-t.offsetY:void 0,panelClass:t.panelClass,weight:t.weight}}const c={topStart:{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",offsetY:-2},topCenter:{originX:"center",originY:"top",overlayX:"center",overlayY:"bottom",offsetY:-2},topEnd:{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",offsetY:-2},centerStart:{originX:"start",originY:"center",overlayX:"end",overlayY:"center",offsetX:-2},centerEnd:{originX:"end",originY:"center",overlayX:"start",overlayY:"center",offsetX:2},bottomStart:{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top",offsetY:2},bottomCenter:{originX:"center",originY:"bottom",overlayX:"center",overlayY:"top",offsetY:2},bottomEnd:{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top",offsetY:2},flyoutStart:{originX:"start",originY:"top",overlayX:"end",overlayY:"top",offsetY:2},flyoutEnd:{originX:"end",originY:"top",overlayX:"start",overlayY:"top",offsetY:2}},l={top:"topCenter",bottom:"bottomCenter",start:"centerStart",end:"centerEnd"}},y6QJ:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("kZht"),r=n("aJOL"),s=n("An66");function o(t,e){if(1&t){const t=i.Vb();i.Ub(0,"a",2),i.bc("click",(function(){i.Ec(t);const n=e.$implicit,r=i.fc();return r.updateLayout(n),r.updateSelected(n)})),i.Qc(1),i.Tb()}if(2&t){const t=e.$implicit,n=i.fc();i.Gb("bottom-nav--selected",n.selected===t),i.Cb(1),i.Sc(" ",t," ")}}let a=(()=>{class t{constructor(){this.bottomNavUpdateLayout=new i.o}ngOnInit(){this.selected=this.buttons[0]}updateSelected(t){this.selected=t}updateLayout(t){this.bottomNavUpdateLayout.emit(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["bottom-nav"]],inputs:{buttons:"buttons"},outputs:{bottomNavUpdateLayout:"bottomNavUpdateLayout"},decls:2,vars:1,consts:[[1,"bottom-nav"],["class","global__text global__text-body global__text--link",3,"bottom-nav--selected","click",4,"ngFor","ngForOf"],[1,"global__text","global__text-body","global__text--link",3,"click"]],template:function(t,e){1&t&&(i.Ub(0,"mat-toolbar",0),i.Oc(1,o,2,3,"a",1),i.Tb()),2&t&&(i.Cb(1),i.mc("ngForOf",e.buttons))},directives:[r.a,s.m],styles:["[_nghost-%COMP%]{bottom:0;border-top:1px solid var(--border-colour);left:0;margin-bottom:0!important;position:fixed;width:100%;z-index:2}.bottom-nav[_ngcontent-%COMP%]{align-content:center;background-color:var(--toolbar-colour);display:flex;justify-content:space-around;max-height:46px!important;min-height:46px!important;padding:0}.bottom-nav[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{flex:1;font-weight:700;text-align:center;text-transform:capitalize}.bottom-nav[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]:nth-of-type(2n){border-left:2px solid var(--border-colour);border-right:2px solid var(--border-colour)}.bottom-nav--selected[_ngcontent-%COMP%]{color:var(--accent-colour)!important}"],changeDetection:0}),t})()},yBEi:function(t,e){var n,i=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];e.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return 4*t+17},e.getSymbolTotalCodewords=function(t){return i[t]},e.getBCHDigit=function(t){for(var e=0;0!==t;)e++,t>>>=1;return e},e.setToSJISFunction=function(t){if("function"!=typeof t)throw new Error('"toSJISFunc" is not a valid function.');n=t},e.isKanjiModeEnabled=function(){return void 0!==n},e.toSJIS=function(t){return n(t)}},yBos:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var i=n("ZTXN"),r=n("5uGe"),s=n("IdLP"),o=n("bwdy"),a=n("QQZH");const c={url:"",deserializer:t=>JSON.parse(t.data),serializer:t=>JSON.stringify(t)};class l extends i.a{constructor(t,e){if(super(),t instanceof s.a)this.destination=e,this.source=t;else{const e=this._config=Object.assign({},c);if(this._output=new i.b,"string"==typeof t)e.url=t;else for(let n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);if(!e.WebSocketCtor&&WebSocket)e.WebSocketCtor=WebSocket;else if(!e.WebSocketCtor)throw new Error("no WebSocket constructor can be found");this.destination=new a.a}}lift(t){const e=new l(this._config,this.destination);return e.operator=t,e.source=this,e}_resetState(){this._socket=null,this.source||(this.destination=new a.a),this._output=new i.b}multiplex(t,e,n){const i=this;return new s.a(r=>{try{i.next(t())}catch(o){r.error(o)}const s=i.subscribe(t=>{try{n(t)&&r.next(t)}catch(o){r.error(o)}},t=>r.error(t),()=>r.complete());return()=>{try{i.next(e())}catch(o){r.error(o)}s.unsubscribe()}})}_connectSocket(){const{WebSocketCtor:t,protocol:e,url:n,binaryType:i}=this._config,s=this._output;let c=null;try{c=e?new t(n,e):new t(n),this._socket=c,i&&(this._socket.binaryType=i)}catch(u){return void s.error(u)}const l=new o.a(()=>{this._socket=null,c&&1===c.readyState&&c.close()});c.onopen=t=>{const{_socket:e}=this;if(!e)return c.close(),void this._resetState();const{openObserver:n}=this._config;n&&n.next(t);const i=this.destination;this.destination=r.a.create(e=>{if(1===c.readyState)try{const{serializer:t}=this._config;c.send(t(e))}catch(t){this.destination.error(t)}},t=>{const{closingObserver:e}=this._config;e&&e.next(void 0),t&&t.code?c.close(t.code,t.reason):s.error(new TypeError("WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }")),this._resetState()},()=>{const{closingObserver:t}=this._config;t&&t.next(void 0),c.close(),this._resetState()}),i&&i instanceof a.a&&l.add(i.subscribe(this.destination))},c.onerror=t=>{this._resetState(),s.error(t)},c.onclose=t=>{this._resetState();const{closeObserver:e}=this._config;e&&e.next(t),t.wasClean?s.complete():s.error(t)},c.onmessage=t=>{try{const{deserializer:e}=this._config;s.next(e(t))}catch(e){s.error(e)}}}_subscribe(t){const{source:e}=this;return e?e.subscribe(t):(this._socket||this._connectSocket(),this._output.subscribe(t),t.add(()=>{const{_socket:t}=this;0===this._output.observers.length&&(t&&1===t.readyState&&t.close(),this._resetState())}),t)}unsubscribe(){const{_socket:t}=this;t&&1===t.readyState&&t.close(),this._resetState(),super.unsubscribe()}}function u(t){return new l(t)}},yHDr:function(t,e,n){"use strict";n.d(e,"a",(function(){return m}));var i=n("kZht"),r=n("+vck"),s=n("1etq"),o=n("yPvj"),a=n("anSm"),c=n("NxuZ"),l=n("WYJo"),u=n("1o0v"),h=n("chaP"),d=n("rUBT"),p=n("An66"),f=n("rcUp"),b=n("aDqW"),g=n("DpwM");let m=(()=>{class t{constructor(){this.selectTicker=new i.o,this.editOrder=new i.o,this.cancelOrder=new i.o,this.viewDetailed=new i.o}get direction(){return this.order.direction===r.a.Sell?"SIDE.SELL":"SIDE.BUY"}get triggerSign(){return"stop"===this.order.type==(this.order.direction===r.a.Buy)?"\u2265":"\u2264"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["trigger-orders-mobile"]],inputs:{order:"order"},outputs:{selectTicker:"selectTicker",editOrder:"editOrder",cancelOrder:"cancelOrder",viewDetailed:"viewDetailed"},decls:49,vars:62,consts:[[1,"card",3,"click"],[1,"row"],["subheading",""],[3,"pair"],["body","",1,"buttons"],["icon","file","size","2x",1,"copy-button",3,"click"],["primary","","icon","edit","size","2x",1,"edit-button",3,"matTooltip","click"],["icon","close","size","2x",1,"close-button",3,"matTooltip","click"],["body",""],["ghost",""],[1,"global__text--mono"],["body","",1,"type-cell"],["body","",1,"direction-cell"],["body","","mono","",1,"size-cell"],["body","",1,"price-cell"],["mono",""]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.bc("click",(function(){return e.selectTicker.emit({symbol:e.order.instrument,replaceUrl:!1})})),i.Ub(1,"div",1),i.Ub(2,"div",2),i.Pb(3,"market-icon",3),i.gc(4,"pair"),i.Qc(5),i.gc(6,"uppercase"),i.gc(7,"contractFamily"),i.gc(8,"pair"),i.gc(9,"truncate"),i.gc(10,"translate"),i.gc(11,"maturityMonth"),i.Tb(),i.Ub(12,"div",4),i.Ub(13,"fa-icon",5),i.bc("click",(function(t){return e.viewDetailed.emit({order:e.order}),t.stopPropagation()})),i.Tb(),i.Ub(14,"fa-icon",6),i.bc("click",(function(t){return e.editOrder.emit({order:e.order}),t.stopPropagation()})),i.gc(15,"translate"),i.Tb(),i.Ub(16,"fa-icon",7),i.bc("click",(function(t){return e.cancelOrder.emit({id:e.order.order_id}),t.stopPropagation()})),i.gc(17,"translate"),i.Tb(),i.Tb(),i.Tb(),i.Ub(18,"div",1),i.Ub(19,"div",8),i.Qc(20),i.gc(21,"date"),i.Ub(22,"span",9),i.Qc(23),i.gc(24,"date"),i.Tb(),i.Tb(),i.Ub(25,"div",8),i.Qc(26),i.gc(27,"titlecase"),i.Ub(28,"span",10),i.Qc(29),i.gc(30,"sato"),i.Tb(),i.Tb(),i.Tb(),i.Ub(31,"div",1),i.Ub(32,"div",11),i.Qc(33),i.gc(34,"titlecase"),i.Tb(),i.Ub(35,"div",12),i.Ub(36,"strong"),i.Qc(37),i.gc(38,"translate"),i.Tb(),i.Tb(),i.Ub(39,"div",13),i.Qc(40),i.Tb(),i.Ub(41,"div",14),i.Ub(42,"span",15),i.Qc(43),i.gc(44,"sato"),i.gc(45,"translate"),i.Tb(),i.Ub(46,"span",9),i.Qc(47),i.gc(48,"quote"),i.Tb(),i.Tb(),i.Tb(),i.Tb()),2&t&&(i.Cb(3),i.mc("pair",i.hc(4,20,e.order.instrument)),i.Cb(2),i.Uc(" ",i.hc(6,22,i.hc(7,24,e.order.instrument))," ",i.hc(8,26,e.order.instrument)," ",i.ic(9,28,i.hc(10,31,i.ic(11,33,e.order.instrument,"short")),4),". "),i.Cb(9),i.mc("matTooltip",i.hc(15,36,"BUTTON.EDIT")),i.Cb(2),i.mc("matTooltip",i.hc(17,38,"BUTTON.CANCEL")),i.Cb(4),i.Sc(" ",i.ic(21,40,e.order.time,"HH:mm:ss")," "),i.Cb(3),i.Rc(i.ic(24,43,e.order.time,"dd/MMM/yyyy")),i.Cb(3),i.Tc(" ",e.order.triggerSignal?i.hc(27,46,e.order.triggerSignal):null," ",e.triggerSign," "),i.Cb(3),i.Sc(" ",i.ic(30,48,e.order.stop_price,e.order)," "),i.Cb(4),i.Sc(" ",i.hc(34,51,e.order.type.replace("_"," "))," "),i.Cb(3),i.Gb("global__text--accent",0===e.order.direction)("global__text--warn",1===e.order.direction),i.Cb(1),i.Sc(" ",i.hc(38,53,e.direction)," "),i.Cb(3),i.Sc(" ",e.order.qty," "),i.Cb(3),i.Sc(" ",e.order.limit_price?i.ic(44,55,e.order.limit_price,e.order):i.hc(45,58,"LABEL.MARKET")," "),i.Cb(4),i.Rc(e.order.limit_price?i.hc(48,60,e.order.instrument):null))},directives:[s.a,o.a,a.a,c.b,l.a,u.a,h.a],pipes:[d.e,p.x,d.c,f.a,b.d,d.d,p.e,p.w,g.c,d.f],styles:["market-icon[_ngcontent-%COMP%]{font-size:20px}[_nghost-%COMP%]{display:block;border-bottom:1px solid var(--border-colour);margin-bottom:var(--spacing);padding-bottom:var(--spacing)}market-icon[_ngcontent-%COMP%]{margin-right:var(--spacing-s);vertical-align:middle}.row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding:0 var(--spacing-s)}.row[_ngcontent-%COMP%] + .row[_ngcontent-%COMP%]{margin-top:var(--spacing)}.buttons[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{cursor:pointer}.buttons[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]:not(:last-of-type){margin-right:var(--spacing)}.buttons[_ngcontent-%COMP%] .copy-button[_ngcontent-%COMP%], .buttons[_ngcontent-%COMP%] .edit-button[_ngcontent-%COMP%], .buttons[_ngcontent-%COMP%] .info-button[_ngcontent-%COMP%], .buttons[_ngcontent-%COMP%] .limit-button[_ngcontent-%COMP%], .buttons[_ngcontent-%COMP%] .market-button[_ngcontent-%COMP%]{color:var(--brand)}.buttons[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%]{color:var(--warn-colour)}.type-cell[_ngcontent-%COMP%]{display:flex;align-items:center;flex:0.5}.direction-cell[_ngcontent-%COMP%], .size-cell[_ngcontent-%COMP%]{display:flex;align-items:center;flex:0.25}.price-cell[_ngcontent-%COMP%]{display:flex;flex-direction:column;text-align:right;flex:0.5}.price-cell[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:first-of-type{margin-bottom:var(--spacing-s)}.progress-cell[_ngcontent-%COMP%]{text-align:right;flex:0.75}.progress-cell[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:first-of-type{margin-bottom:var(--spacing-s)}"],changeDetection:0}),t})()},yN5A:function(t,e,n){"use strict";n.d(e,"i",(function(){return r})),n.d(e,"c",(function(){return s})),n.d(e,"b",(function(){return o})),n.d(e,"l",(function(){return a})),n.d(e,"j",(function(){return c})),n.d(e,"h",(function(){return l})),n.d(e,"e",(function(){return u})),n.d(e,"a",(function(){return h})),n.d(e,"g",(function(){return d})),n.d(e,"d",(function(){return p})),n.d(e,"f",(function(){return f})),n.d(e,"k",(function(){return b}));var i=n("zqNl");const r=Object(i.g)("Reset Workspaces"),s=Object(i.g)("Create and Add Workspace from Config",Object(i.l)()),o=Object(i.g)("Add Workspace",Object(i.l)()),a=Object(i.g)("Set Workspaces",Object(i.l)()),c=Object(i.g)("Set Active Workspace",Object(i.l)()),l=Object(i.g)("Rename Workspace",Object(i.l)()),u=Object(i.g)("Delete Workspace",Object(i.l)()),h=Object(i.g)("Add Tab",Object(i.l)()),d=Object(i.g)("Move Tab",Object(i.l)()),p=Object(i.g)("Delete Tab",Object(i.l)()),f=Object(i.g)("Focus Tab",Object(i.l)()),b=Object(i.g)("Set Dragged Component",Object(i.l)())},yPvj:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var i=n("VmIW");const r=new Set(["$pac","0xbtc","2give","abt","act","actn","ada","add","adx","ae","aeon","aeur","agi","agrs","aion","amb","amp","ant","apex","appc","ardr","arg","ark","arn","ary","ast","atm","atom","audr","auto","aywa","bab","bat","bay","bcbc","bcc","bcd","bch","bcio","bcn","bco","bcpt","bdl","beam","bela","bix","blcn","blk","block","blz","bnb","bnt","bnty","booty","bos","bpt","bq","brd","bsd","bsv","btc","btcd","btch","btcp","btcz","btdx","btg","btm","bts","btt","btx","burst","call","cc","cdn","cdt","cenz","chain","chat","chips","cix","clam","cloak","cmm","cmt","cnd","cnx","cny","cob","colx","coqui","cred","crpt","crw","cs","ctr","ctxc","cvc","d","dai","dash","dat","data","dbc","dcn","dcr","deez","dent","dew","dgb","dgd","dlt","dnt","dock","doge","drgn","drop","dta","dth","dtr","ebst","eca","edg","edo","edoge","ela","elec","elf","elix","ella","emc","emc2","eng","enj","entrp","eon","eop","eos","eqli","equa","etc","eth","ethos","etn","etp","eur","evx","exmo","exp","fair","fct","fil","fjc","fldc","flo","fsn","ftc","fuel","fun","game","gas","gbp","gbx","gbyte","generic","gin","glxt","gmr","gno","gnt","gold","grc","grin","grs","gsc","gto","gup","gusd","gvt","gxs","gzr","hight","hodl","hot","hpb","hsr","ht","html","huc","hush","icn","icx","ignis","ilk","ink","ins","ion","iop","iost","iotx","iq","itc","jnt","jpy","kcs","kin","kmd","knc","krb","lbc","lend","link","lkk","loom","lpt","lrc","lsk","ltc","lun","maid","mana","matic","mcap","mco","mda","mds","med","meetone","mft","miota","mith","mkr","mln","mnx","mnz","moac","mod","mona","msr","mth","mtl","music","mzc","nano","nas","nav","ncash","ndz","nebl","neo","neos","neu","nexo","ngc","nio","nlc2","nlg","nmc","npxs","nuls","nxs","nxt","oax","ok","omg","omni","ong","ont","oot","ost","ox","part","pasc","pasl","pax","pay","payx","pink","pirl","pivx","plr","poa","poe","polis","poly","pot","powr","ppc","ppp","ppt","pre","prl","pungo","pura","qash","qiwi","qlc","qrl","qsp","qtum","r","rads","rap","rcn","rdd","rdn","ren","rep","req","rhoc","ric","rise","rlc","rpx","rub","rvn","ryo","safe","salt","san","sbd","sberbank","sc","shift","sib","sky","slr","sls","smart","sngls","snm","snt","soc","spank","sphtx","srn","stak","start","steem","storj","storm","stq","strat","sub","sumo","sys","taas","tau","tbx","tel","ten","tern","tgch","theta","tix","tkn","tks","tnb","tnc","tnt","tomo","tpay","trig","trtl","trx","tusd","tzc","ubq","unity","usd","usdc","usdt","utk","veri","vet","via","vib","vibe","vivo","vrc","vrsc","vtc","vtho","wabi","wan","waves","wax","wgr","wicc","wings","wpr","wtc","x","xas","xbc","xbp","xbt","xby","xcp","xdn","xem","xin","xlm","xmcc","xmg","xmo","xmr","xmy","xp","xpa","xpm","xrp","xsg","xtz","xuc","xvc","xvg","xzc","yoyow","zcl","zec","zel","zen","zest","zil","zilla","zrx","link","snx","comp","bal","yfi","aave","gme","tsla","defi","privacy","sol","avax","luna","dot","shib","uni","luna2","ape","gmt","op","near","axs","ftm","crv","chz","grt","sand","ksm","algo","1inch","knc","sushi","bnb","ftt","ogn","flow","kava","gala"]);var s=n("kZht"),o=n("An66");function a(t,e){if(1&t&&s.Pb(0,"img",2),2&t){const t=s.fc();s.mc("src",t.icon1url,s.Gc)}}function c(t,e){1&t&&s.Pb(0,"img",3),2&t&&s.mc("src",e.$implicit,s.Gc)}const l=/^\s*([a-z]+)(?:[-_:\/\\]([a-z]+))?\s*$/i;let u=(()=>{class t{constructor(){this.solid=!1}splitPair(){if(this.pair){const t=l.exec(this.pair);if(!t)return null;const[,e,n]=t;return[e,n]}return null}get icon1(){const t=this.splitPair();return t&&t[0]?t[0]:this.base||"generic"}get icon2(){const t=this.splitPair();return t&&t[1]?Object(i.Some)(t[1]):this.quote?Object(i.Some)(this.quote):Object(i.None)()}get icon1base(){return h(this.icon1)}get icon2base(){return this.icon2.map(h)}get icon1url(){return d(this.icon1base)}get icon2url(){return this.icon2base.map(d)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Ib({type:t,selectors:[["market-icon"]],inputs:{pair:"pair",base:"base",quote:"quote",solid:"solid"},decls:2,vars:2,consts:[["alt","icon1 name","class","icon1",3,"src",4,"ngIf"],["alt","icon2 name","class","icon2",3,"src",4,"ngIf"],["alt","icon1 name",1,"icon1",3,"src"],["alt","icon2 name",1,"icon2",3,"src"]],template:function(t,e){1&t&&(s.Oc(0,a,1,1,"img",0),s.Oc(1,c,1,1,"img",1)),2&t&&(s.mc("ngIf",e.icon1url),s.Cb(1),s.mc("ngIf",e.icon2url.orUndefined()))},directives:[o.n],styles:["[_nghost-%COMP%]{display:inline;white-space:nowrap;font-size:1.2em;vertical-align:-.2em;line-height:0}img[_ngcontent-%COMP%]{height:1em;z-index:1}.icon2[_ngcontent-%COMP%], img[_ngcontent-%COMP%]{position:relative}.icon2[_ngcontent-%COMP%]{margin-left:-.3em;z-index:0}"],changeDetection:0}),t})();function h(t){return void 0===t?"generic":r.has(t.toLowerCase())?t.toLowerCase():"generic"}function d(t){return`assets/images/crypto-icons/color/${t}.svg`}},yTkW:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("bwdy");class r extends i.a{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},ykds:function(t,e,n){"use strict";n.d(e,"a",(function(){return $}));var i=n("D57K"),r=n("gxtV"),s=n("zqNl"),o=n("KQpv"),a=n.n(o),c=n("jOdJ"),l=n("TYVA"),u=n("Ee7O"),h=n("NloN"),d=n("i67J"),p=n("qAYy"),f=n("rxqU"),b=n("Aey0"),g=n("sxqi"),m=n("ylpo"),v=n("uJYd"),_=n("kZht"),y=n("aDqW"),O=n("An66"),C=n("LBlH"),w=n("pPqe"),T=n("hCLc"),S=n("anSm"),k=n("o09O"),E=n("yPvj"),x=n("za3o"),P=n("NxuZ"),A=n("1o0v"),I=n("RCeD"),M=n("rUBT"),D=n("15qg");function R(t,e){1&t&&(_.Sb(0),_.Ub(1,"span"),_.Qc(2),_.gc(3,"translate"),_.Tb(),_.Rb()),2&t&&(_.Cb(2),_.Rc(_.hc(3,1,"TAG.PERPETUAL")))}function j(t,e){if(1&t&&(_.Ub(0,"span"),_.Qc(1),_.gc(2,"maturityMonth"),_.Tb(),_.Qc(3),_.Ub(4,"span",12),_.Qc(5),_.gc(6,"tag"),_.Tb()),2&t){const t=_.fc().$implicit;_.Cb(1),_.Rc(_.ic(2,3,t.product_id,"short")),_.Cb(2),_.Sc(" "," "," "),_.Cb(2),_.Sc("(",_.hc(6,6,t.tag),")")}}function L(t,e){if(1&t){const t=_.Vb();_.Sb(0),_.Ub(1,"button",6),_.bc("click",(function(){return _.Ec(t),_.fc().shortcutHelper()})),_.Pb(2,"market-icon",7),_.gc(3,"base"),_.Ub(4,"span",8),_.Qc(5),_.gc(6,"pair"),_.Ub(7,"span"),_.Qc(8),_.gc(9,"uppercase"),_.gc(10,"contractFamily"),_.Tb(),_.Tb(),_.Ub(11,"span",9),_.Oc(12,R,4,3,"ng-container",1),_.Oc(13,j,7,8,"ng-template",null,10,_.Pc),_.Tb(),_.Pb(15,"fa-icon",11),_.Tb(),_.Rb()}if(2&t){const t=e.$implicit,n=_.Ac(14);_.fc();const i=_.Ac(4);_.Cb(1),_.mc("sbTriggerFor",i),_.Cb(1),_.mc("base",_.hc(3,8,t.product_id)),_.Cb(3),_.Sc("",_.hc(6,10,t.pair)," "),_.Cb(2),_.Lc("color","var(--brand)"),_.Cb(1),_.Rc(_.hc(9,12,_.hc(10,14,t.product_id))),_.Cb(4),_.mc("ngIf","perpetual"===t.tag)("ngIfElse",n)}}function N(t,e){if(1&t&&_.Pb(0,"market-picker",13),2&t){_.fc();const t=_.Ac(4);_.mc("popper",t)}}function U(t,e){1&t&&(_.Sb(0),_.Ub(1,"span"),_.Qc(2),_.gc(3,"translate"),_.Tb(),_.Rb()),2&t&&(_.Cb(2),_.Rc(_.hc(3,1,"Perp")))}function F(t,e){if(1&t&&(_.Ub(0,"span"),_.Qc(1),_.gc(2,"maturityMonth"),_.Tb(),_.Qc(3),_.Ub(4,"span",12),_.Qc(5),_.gc(6,"tag"),_.Tb()),2&t){const t=_.fc().$implicit;_.Cb(1),_.Rc(_.ic(2,3,t.product_id,"short")),_.Cb(2),_.Sc(" "," "," "),_.Cb(2),_.Sc("(",_.hc(6,6,t.tag),")")}}function B(t,e){if(1&t){const t=_.Vb();_.Sb(0),_.Ub(1,"button",14),_.bc("click",(function(){return _.Ec(t),_.fc().openMarketSelector()})),_.Ub(2,"span",8),_.Qc(3),_.gc(4,"pair"),_.Ub(5,"span"),_.Qc(6),_.gc(7,"uppercase"),_.gc(8,"contractFamily"),_.Tb(),_.Tb(),_.Ub(9,"span",9),_.Oc(10,U,4,3,"ng-container",1),_.Oc(11,F,7,8,"ng-template",null,10,_.Pc),_.Tb(),_.Pb(13,"fa-icon",11),_.Tb(),_.Rb()}if(2&t){const t=e.$implicit,n=_.Ac(12);_.Cb(3),_.Sc("",_.hc(4,6,t.pair)," "),_.Cb(2),_.Lc("color","var(--brand)"),_.Cb(1),_.Rc(_.hc(7,8,_.hc(8,10,t.product_id))),_.Cb(4),_.mc("ngIf","perpetual"===t.tag)("ngIfElse",n)}}function z(t,e){1&t&&(_.Ub(0,"div",15),_.Ub(1,"span",16),_.Qc(2),_.gc(3,"translate"),_.Tb(),_.Tb()),2&t&&(_.Cb(2),_.Rc(_.hc(3,1,"LOADING.MARKETS")))}const V=a()("app:market-dropdowns");let $=(()=>{let t=class{constructor(t,e,n,i,r){this.vcr=t,this.store=e,this.market=n,this.layout=i,this.translateService=r,this.userSignedIn$=this.store.pipe(Object(s.m)(f.m)),this.selectedTicker$=this.store.pipe(Object(s.m)(p.p),Object(d.g)()),this.groupedTickers$=this.store.pipe(Object(s.m)(p.i)),this.pairs$=this.store.pipe(Object(s.m)(p.m)),this.selectedPairTags$=this.store.pipe(Object(s.m)(p.l)),this.tickers$=this.store.pipe(Object(s.m)(p.o))}ngOnInit(){this.layout.openPicker$.pipe(Object(r.b)(this)).subscribe(()=>{this.marketPicker.onTrigger({trigger:{vcr:this.vcr},event:null})})}selectPair(t){V("select pair",t),this.groupedTickers$.pipe(Object(c.a)()).subscribe(e=>{const n=e[Object(l.k)(t)].find(e=>e.pair===t).product_id;this.changeSelectedTicker(n)})}changeSelectedTicker(t,e=!1){V("select symbol",t),this.market.navigateToMarket(t,e)}trackByValue(t,e){return e}trackBySymbol(t,{symbol:e}){return e}openMarketSelector(){this.store.dispatch(Object(v.g)({name:"markets-overview"}))}shortcutHelper(){if(!Object(h.b)(m.s,void 0)){const t=this.translateService.instant("HEADING.KEYBOARD_SHORTCUTS"),e=this.translateService.instant("LABEL.SHORTCUTS_INFO"),n=this.translateService.instant("LABEL.CLICK_FOR_SHORTCUTS"),i=Object(v.g)({name:"shortcuts-cheatsheet"});this.store.dispatch(Object(v.j)({title:t,message:e,class:"info",action:{actionKey:n,action:i}})),Object(h.c)(m.s,Date.now())}}};return t.\u0275fac=function(e){return new(e||t)(_.Ob(_.R),_.Ob(s.b),_.Ob(g.a),_.Ob(b.a),_.Ob(y.e))},t.\u0275cmp=_.Ib({type:t,selectors:[["market-dropdowns"]],viewQuery:function(t,e){var n;1&t&&_.Jc(u.a,!0),2&t&&_.zc(n=_.cc())&&(e.marketPicker=n.first)},decls:11,vars:8,consts:[[1,"desktop-dropdown"],[4,"ngIf","ngIfElse"],["marketPicker",""],[3,"popper",4,"sbContent"],[1,"mobile-dropdown"],["loading",""],["mat-button","","body","",3,"sbTriggerFor","click"],[3,"base"],[1,"pair"],["capitalize","",1,"pair"],["fixed",""],["icon","chevron-down","size","lg"],["ghost",""],[3,"popper"],["mat-button","","body","",3,"click"],[1,"loading"],["body",""]],template:function(t,e){if(1&t&&(_.Ub(0,"div",0),_.Oc(1,L,16,16,"ng-container",1),_.gc(2,"async"),_.Tb(),_.Ub(3,"sb-popper",null,2),_.Oc(5,N,1,1,"market-picker",3),_.Tb(),_.Ub(6,"div",4),_.Oc(7,B,14,12,"ng-container",1),_.gc(8,"async"),_.Tb(),_.Oc(9,z,4,3,"ng-template",null,5,_.Pc)),2&t){const t=_.Ac(10);_.Cb(1),_.mc("ngIf",_.hc(2,4,e.selectedTicker$))("ngIfElse",t),_.Cb(6),_.mc("ngIf",_.hc(8,6,e.selectedTicker$))("ngIfElse",t)}},directives:[O.n,C.a,w.a,T.b,S.a,k.a,E.a,x.a,P.b,A.a,I.a],pipes:[O.b,M.a,M.e,O.x,M.c,y.d,M.d,D.a],styles:[".mat-button[_ngcontent-%COMP%]{padding-left:calc(var(--spacing) * 1.5);padding-right:var(--spacing)}@media (max-width:1024px){.mat-button[_ngcontent-%COMP%]{padding-left:var(--spacing-s);padding-right:0}}fa-icon[_ngcontent-%COMP%]{margin-left:var(--spacing)}fa-icon[_ngcontent-%COMP%], market-icon[_ngcontent-%COMP%]{display:inline-block}market-icon[_ngcontent-%COMP%]{margin-right:var(--spacing-s);font-size:32px}.pair[_ngcontent-%COMP%]{margin-right:var(--spacing);font-weight:700}.pair[_ngcontent-%COMP%], .tag[_ngcontent-%COMP%]{font-size:14px}@media (max-width:599px){.desktop-dropdown[_ngcontent-%COMP%]{display:none}}@media (min-width:600px) and (max-width:1024px){.mobile-dropdown[_ngcontent-%COMP%]{display:none}}@media (min-width:1025px){.mobile-dropdown[_ngcontent-%COMP%]{display:none}}"],changeDetection:0}),t=Object(i.d)([Object(r.a)()],t),t})()},ylpo:function(t,e,n){"use strict";n.d(e,"p",(function(){return i})),n.d(e,"q",(function(){return r})),n.d(e,"o",(function(){return s})),n.d(e,"v",(function(){return o})),n.d(e,"a",(function(){return a})),n.d(e,"d",(function(){return c})),n.d(e,"e",(function(){return l})),n.d(e,"l",(function(){return u})),n.d(e,"g",(function(){return h})),n.d(e,"k",(function(){return d})),n.d(e,"r",(function(){return p})),n.d(e,"j",(function(){return f})),n.d(e,"b",(function(){return b})),n.d(e,"f",(function(){return g})),n.d(e,"n",(function(){return m})),n.d(e,"t",(function(){return v})),n.d(e,"u",(function(){return _})),n.d(e,"s",(function(){return y})),n.d(e,"m",(function(){return O})),n.d(e,"i",(function(){return C})),n.d(e,"h",(function(){return w})),n.d(e,"c",(function(){return T}));const i="kf-market-futures",r="kf-theme2",s="kf-read-notifications",o="kf-layouts2",a="kf-layout-active",c="kf-chart",l="kf-chart__resolution",u="kf-language2",h="kf-downtime-notification",d="kf-orderbook__grouping",p="kf-show-dust",f="kf-form-options",b="kf-bracket-form-options",g="kf-depth-chart-span",m="kf-mobile-order-form",v="kf-snackbar-info-wallets",_="kf-snackbar-info-workspaces",y="kf-snackbar-info-shortcuts",O="kf-layout-type",C="kf-draggable-options",w="kf-draggable-items",T="cf-chart__data"},yucr:function(t,e,n){"use strict";n.r(e),n.d(e,"CreateAlgoComponent",(function(){return m}));var i=n("3kIJ"),r=n("0tVE"),s=n("kZht"),o=n("mcff"),a=n("zqNl"),c=n("rfPA"),l=n("bBQR"),u=n("anSm"),h=n("1etq"),d=n("aDqW"),p=n("EmXI"),f=n("Tcl6"),b=n("UDV5"),g=n("hCLc");let m=(()=>{class t{constructor(t,e,n){this.dialogRef=t,this.store=e,this.formBuilder=n,this.form=this.buildForm}get buildForm(){return this.formBuilder.group({label:[""],conformanceTested:[!1,[i.x.requiredTrue]],pretradeRisk:[!1,[i.x.requiredTrue]],shutOff:[!1,[i.x.requiredTrue]],materialChange:[!1,[i.x.requiredTrue]]})}submitForm(){const{label:t}=this.form.value;this.store.dispatch(Object(r.i)({label:t})),this.form.reset(),Object.keys(this.form.controls).forEach(t=>this.form.get(t).setErrors(null))}closeDialog(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(s.Ob(o.d),s.Ob(a.b),s.Ob(i.d))},t.\u0275cmp=s.Ib({type:t,selectors:[["create-algo"]],decls:31,vars:20,consts:[["heading","HEADING.CREATE_ALGO"],["body","",3,"formGroup","ngSubmit"],[1,"heading"],["subheading","","translate",""],["body","","translate",""],["color","accent","appearance","fill"],["matInput","","formControlName","label","autocomplete","off"],[1,"terms"],[1,"checkboxes"],["formControlName","conformanceTested","required","",1,"no-border"],["formControlName","pretradeRisk","required","",1,"no-border"],["formControlName","shutOff","required","",1,"no-border"],["formControlName","materialChange","required","",1,"no-border"],["mat-raised-button","","body","",3,"disabled"]],template:function(t,e){1&t&&(s.Ub(0,"pro-dialog",0),s.Ub(1,"form",1),s.bc("ngSubmit",(function(){return e.submitForm()})),s.Ub(2,"section",2),s.Ub(3,"h2",3),s.Qc(4,"HEADING.CREATE_ALGOID"),s.Tb(),s.Ub(5,"p",4),s.Qc(6,"ALGOIDS.LABEL"),s.Tb(),s.Tb(),s.Ub(7,"mat-form-field",5),s.Ub(8,"mat-label"),s.Qc(9),s.gc(10,"translate"),s.Tb(),s.Pb(11,"input",6),s.Tb(),s.Ub(12,"section",7),s.Ub(13,"p",4),s.Qc(14,"ALGOIDS.SELF_CERTIFICATION"),s.Tb(),s.Ub(15,"section",8),s.Ub(16,"mat-checkbox",9),s.Qc(17),s.gc(18,"translate"),s.Tb(),s.Ub(19,"mat-checkbox",10),s.Qc(20),s.gc(21,"translate"),s.Tb(),s.Ub(22,"mat-checkbox",11),s.Qc(23),s.gc(24,"translate"),s.Tb(),s.Ub(25,"mat-checkbox",12),s.Qc(26),s.gc(27,"translate"),s.Tb(),s.Tb(),s.Tb(),s.Ub(28,"button",13),s.Qc(29),s.gc(30,"translate"),s.Tb(),s.Tb(),s.Tb()),2&t&&(s.Cb(1),s.mc("formGroup",e.form),s.Cb(8),s.Rc(s.hc(10,8,"FORM.ALGO_LABEL")),s.Cb(8),s.Sc(" ",s.hc(18,10,"ALGOIDS.CONFORMANCE_TESTED")," "),s.Cb(3),s.Sc(" ",s.hc(21,12,"ALGOIDS.PRETRADE_RISK")," "),s.Cb(3),s.Sc(" ",s.hc(24,14,"ALGOIDS.SHUT_OFF")," "),s.Cb(3),s.Sc(" ",s.hc(27,16,"ALGOIDS.MATERIAL_CHANGE")," "),s.Cb(2),s.mc("disabled",e.form.invalid),s.Cb(1),s.Sc(" ",s.hc(30,18,"BUTTON.CREATE_ALGOID")," "))},directives:[c.a,l.a,i.z,i.p,u.a,i.h,h.a,d.a,p.c,p.f,f.b,i.c,i.o,i.g,b.a,b.c,i.v,g.b],pipes:[d.d],styles:[".terms[_ngcontent-%COMP%]{margin:var(--spacing) 0}.terms[_ngcontent-%COMP%] .checkboxes[_ngcontent-%COMP%]{margin:var(--spacing) 0 var(--spacing) var(--spacing)}.heading[_ngcontent-%COMP%]{margin-bottom:var(--spacing)}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:500px}@media (max-width:1024px){form[_ngcontent-%COMP%]{width:100%}}h2[_ngcontent-%COMP%]{margin-bottom:var(--spacing)}"],changeDetection:0}),t})()},yvKM:function(t,e,n){"use strict";n.d(e,"a",(function(){return _})),n.d(e,"b",(function(){return g})),n.d(e,"c",(function(){return y}));var i=n("jL3B"),r=n("5XID"),s=n("sBeF"),o=n("kZht"),a=n("3kIJ"),c=n("pTnX");const l=["button"],u=["*"],h=new o.s("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS"),d=new o.s("MatButtonToggleGroup"),p={provide:a.m,useExisting:Object(o.V)(()=>g),multi:!0};let f=0;class b{constructor(t,e){this.source=t,this.value=e}}let g=(()=>{class t{constructor(t,e){this._changeDetector=t,this._vertical=!1,this._multiple=!1,this._disabled=!1,this._controlValueAccessorChangeFn=()=>{},this._onTouched=()=>{},this._name="mat-button-toggle-group-"+f++,this.valueChange=new o.o,this.change=new o.o,this.appearance=e&&e.appearance?e.appearance:"standard"}get name(){return this._name}set name(t){this._name=t,this._buttonToggles&&this._buttonToggles.forEach(t=>{t.name=this._name,t._markForCheck()})}get vertical(){return this._vertical}set vertical(t){this._vertical=Object(r.c)(t)}get value(){const t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t.map(t=>t.value):t[0]?t[0].value:void 0}set value(t){this._setSelectionByValue(t),this.valueChange.emit(this.value)}get selected(){const t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t:t[0]||null}get multiple(){return this._multiple}set multiple(t){this._multiple=Object(r.c)(t)}get disabled(){return this._disabled}set disabled(t){this._disabled=Object(r.c)(t),this._buttonToggles&&this._buttonToggles.forEach(t=>t._markForCheck())}ngOnInit(){this._selectionModel=new s.c(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(t=>t.checked))}writeValue(t){this.value=t,this._changeDetector.markForCheck()}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_emitChangeEvent(){const t=this.selected,e=Array.isArray(t)?t[t.length-1]:t,n=new b(e,this.value);this._controlValueAccessorChangeFn(n.value),this.change.emit(n)}_syncButtonToggle(t,e,n=!1,i=!1){this.multiple||!this.selected||t.checked||(this.selected.checked=!1),this._selectionModel?e?this._selectionModel.select(t):this._selectionModel.deselect(t):i=!0,i?Promise.resolve().then(()=>this._updateModelValue(n)):this._updateModelValue(n)}_isSelected(t){return this._selectionModel&&this._selectionModel.isSelected(t)}_isPrechecked(t){return void 0!==this._rawValue&&(this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(e=>null!=t.value&&e===t.value):t.value===this._rawValue)}_setSelectionByValue(t){this._rawValue=t,this._buttonToggles&&(this.multiple&&t?(Array.isArray(t),this._clearSelection(),t.forEach(t=>this._selectValue(t))):(this._clearSelection(),this._selectValue(t)))}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(t=>t.checked=!1)}_selectValue(t){const e=this._buttonToggles.find(e=>null!=e.value&&e.value===t);e&&(e.checked=!0,this._selectionModel.select(e))}_updateModelValue(t){t&&this._emitChangeEvent(),this.valueChange.emit(this.value)}}return t.\u0275fac=function(e){return new(e||t)(o.Ob(o.h),o.Ob(h,8))},t.\u0275dir=o.Jb({type:t,selectors:[["mat-button-toggle-group"]],contentQueries:function(t,e,n){var i;1&t&&o.Hb(n,_,!0),2&t&&o.zc(i=o.cc())&&(e._buttonToggles=i)},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(t,e){2&t&&(o.Db("aria-disabled",e.disabled),o.Gb("mat-button-toggle-vertical",e.vertical)("mat-button-toggle-group-appearance-standard","standard"===e.appearance))},inputs:{appearance:"appearance",name:"name",vertical:"vertical",value:"value",multiple:"multiple",disabled:"disabled"},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[o.Bb([p,{provide:d,useExisting:t}])]}),t})();class m{}const v=Object(c.x)(m);let _=(()=>{class t extends v{constructor(t,e,n,i,r,s){super(),this._changeDetectorRef=e,this._elementRef=n,this._focusMonitor=i,this._isSingleSelector=!1,this._checked=!1,this.ariaLabelledby=null,this._disabled=!1,this.change=new o.o;const a=Number(r);this.tabIndex=a||0===a?a:null,this.buttonToggleGroup=t,this.appearance=s&&s.appearance?s.appearance:"standard"}get buttonId(){return this.id+"-button"}get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(t){this._appearance=t}get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(t){const e=Object(r.c)(t);e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(t){this._disabled=Object(r.c)(t)}ngOnInit(){const t=this.buttonToggleGroup;this._isSingleSelector=t&&!t.multiple,this.id=this.id||"mat-button-toggle-"+f++,this._isSingleSelector&&(this.name=t.name),t&&(t._isPrechecked(this)?this.checked=!0:t._isSelected(this)!==this._checked&&t._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){const t=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),t&&t._isSelected(this)&&t._syncButtonToggle(this,!1,!1,!0)}focus(t){this._buttonElement.nativeElement.focus(t)}_onButtonClick(){const t=!!this._isSingleSelector||!this._checked;t!==this._checked&&(this._checked=t,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.change.emit(new b(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(o.Ob(d,8),o.Ob(o.h),o.Ob(o.l),o.Ob(i.h),o.Zb("tabindex"),o.Ob(h,8))},t.\u0275cmp=o.Ib({type:t,selectors:[["mat-button-toggle"]],viewQuery:function(t,e){var n;1&t&&o.Wc(l,!0),2&t&&o.zc(n=o.cc())&&(e._buttonElement=n.first)},hostAttrs:[1,"mat-button-toggle"],hostVars:11,hostBindings:function(t,e){1&t&&o.bc("focus",(function(){return e.focus()})),2&t&&(o.Db("tabindex",-1)("id",e.id)("name",null),o.Gb("mat-button-toggle-standalone",!e.buttonToggleGroup)("mat-button-toggle-checked",e.checked)("mat-button-toggle-disabled",e.disabled)("mat-button-toggle-appearance-standard","standard"===e.appearance))},inputs:{disableRipple:"disableRipple",ariaLabelledby:["aria-labelledby","ariaLabelledby"],tabIndex:"tabIndex",appearance:"appearance",checked:"checked",disabled:"disabled",id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],value:"value"},outputs:{change:"change"},exportAs:["matButtonToggle"],features:[o.zb],ngContentSelectors:u,decls:6,vars:9,consts:[["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"id","disabled","click"],["button",""],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(t,e){if(1&t&&(o.lc(),o.Ub(0,"button",0,1),o.bc("click",(function(){return e._onButtonClick()})),o.Ub(2,"div",2),o.kc(3),o.Tb(),o.Tb(),o.Pb(4,"div",3),o.Pb(5,"div",4)),2&t){const t=o.Ac(1);o.mc("id",e.buttonId)("disabled",e.disabled||null),o.Db("tabindex",e.disabled?-1:e.tabIndex)("aria-pressed",e.checked)("name",e.name||null)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),o.Cb(5),o.mc("matRippleTrigger",t)("matRippleDisabled",e.disableRipple||e.disabled)}},directives:[c.r],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;border-radius:2px;-webkit-tap-highlight-color:transparent}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .mat-button-toggle-group{outline:solid 1px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:4px}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .mat-button-toggle-group-appearance-standard{outline:0}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:1}.cdk-high-contrast-active .mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:.5}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:.04}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.12}.cdk-high-contrast-active .mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.5}@media(hover: none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-block;line-height:36px;padding:0 16px;position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{border-radius:inherit;pointer-events:none;opacity:0;top:0;left:0;right:0;bottom:0;position:absolute}.mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 36px}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}\n"],encapsulation:2,changeDetection:0}),t})(),y=(()=>{class t{}return t.\u0275mod=o.Mb({type:t}),t.\u0275inj=o.Lb({factory:function(e){return new(e||t)},imports:[[c.j,c.s],c.j]}),t})()},"zK/z":function(t,e,n){"use strict";n.d(e,"a",(function(){return v}));var i=n("YyhG"),r=n("zqNl"),s=n("kZht"),o=n("sq1e"),a=n("36Sp"),c=n("O0qa"),l=n("hnst"),u=n("rEzU"),h=n("bxcy"),d=n("zW++"),p=n("aDqW"),f=n("An66");function b(t,e){if(1&t&&(s.Ub(0,"span",3),s.gc(1,"async"),s.gc(2,"async"),s.Qc(3),s.gc(4,"translate"),s.Tb()),2&t){const t=s.fc();s.mc("matBadge",s.hc(1,3,t.numPositions$))("matBadgeHidden",0===s.hc(2,5,t.numPositions$)),s.Cb(3),s.Rc(s.hc(4,7,"HEADING.OPEN_POSITIONS"))}}function g(t,e){if(1&t&&(s.Ub(0,"span",3),s.gc(1,"async"),s.gc(2,"async"),s.Qc(3),s.gc(4,"translate"),s.Tb()),2&t){const t=s.fc();s.mc("matBadge",s.hc(1,3,t.numOrders$))("matBadgeHidden",0===s.hc(2,5,t.numOrders$)),s.Cb(3),s.Rc(s.hc(4,7,"HEADING.OPEN_ORDERS"))}}function m(t,e){if(1&t&&(s.Ub(0,"span",3),s.gc(1,"async"),s.gc(2,"async"),s.Qc(3),s.gc(4,"translate"),s.Tb()),2&t){const t=s.fc();s.mc("matBadge",s.hc(1,3,t.numTriggers$))("matBadgeHidden",0===s.hc(2,5,t.numTriggers$)),s.Cb(3),s.Rc(s.hc(4,7,"HEADING.TRIGGER_ORDERS"))}}let v=(()=>{class t{constructor(t){this.store=t,this.numOrders$=this.store.pipe(Object(r.m)(i.h)),this.numTriggers$=this.store.pipe(Object(r.m)(i.j)),this.numPositions$=this.store.pipe(Object(r.m)(i.i))}}return t.\u0275fac=function(e){return new(e||t)(s.Ob(r.b))},t.\u0275cmp=s.Ib({type:t,selectors:[["account-activity"]],decls:13,vars:4,consts:[["dynamicHeight",""],["matTabLabel",""],[3,"label"],["matBadgeOverlap","false",3,"matBadge","matBadgeHidden"]],template:function(t,e){1&t&&(s.Ub(0,"mat-tab-group",0),s.Ub(1,"mat-tab"),s.Oc(2,b,5,9,"ng-template",1),s.Pb(3,"open-positions"),s.Tb(),s.Ub(4,"mat-tab"),s.Oc(5,g,5,9,"ng-template",1),s.Pb(6,"open-orders"),s.Tb(),s.Ub(7,"mat-tab"),s.Oc(8,m,5,9,"ng-template",1),s.Pb(9,"trigger-orders"),s.Tb(),s.Ub(10,"mat-tab",2),s.gc(11,"translate"),s.Pb(12,"filled-orders"),s.Tb(),s.Tb()),2&t&&(s.mc("@.disabled",!0),s.Cb(10),s.mc("label",s.hc(11,2,"HEADING.FILLED_ORDERS")))},directives:[o.c,o.a,o.d,a.a,c.a,l.a,u.a,h.a,d.a],pipes:[p.d,f.b],styles:[""],changeDetection:0}),t})()},zUnb:function(t,e,n){"use strict";n.r(e);var i=n("kZht"),r=n("AytR"),s=n("6uGs"),o=n("ENSU"),a=n("FxgA"),c=n("1VvW"),l=n("An66"),u=n("i9xl"),h=n("47ST"),d=n("KTx3"),p=n("ROBh"),f=n("qZtG"),b=n("ZTXN"),g=n("IdLP"),m=n("kgbq");const v=new g.a(m.a);var _=n("g6G6"),y=n("YtkY"),O=n("xVbo"),C=n("TLy2"),w=n("JHA6"),T=n("J+dc"),S=n("8j5Y"),k=n("BwBJ");const E="Service workers are disabled or not supported by this browser";class x{constructor(t){if(this.serviceWorker=t,t){const e=Object(d.a)(t,"controllerchange").pipe(Object(y.a)(()=>t.controller)),n=Object(u.a)(()=>Object(p.a)(t.controller)),i=Object(f.a)(n,e);this.worker=i.pipe(Object(O.a)(t=>!!t)),this.registration=this.worker.pipe(Object(C.a)(()=>t.getRegistration()));const r=Object(d.a)(t,"message").pipe(Object(y.a)(t=>t.data)).pipe(Object(O.a)(t=>t&&t.type)).pipe(Object(w.a)(new b.b));r.connect(),this.events=r}else this.worker=this.events=this.registration=Object(u.a)(()=>Object(h.a)(new Error("Service workers are disabled or not supported by this browser")))}postMessage(t,e){return this.worker.pipe(Object(T.a)(1),Object(S.a)(n=>{n.postMessage(Object.assign({action:t},e))})).toPromise().then(()=>{})}postMessageWithStatus(t,e,n){const i=this.waitForStatus(n),r=this.postMessage(t,e);return Promise.all([i,r]).then(()=>{})}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(t){return this.events.pipe(Object(O.a)(e=>e.type===t))}nextEventOfType(t){return this.eventsOfType(t).pipe(Object(T.a)(1))}waitForStatus(t){return this.eventsOfType("STATUS").pipe(Object(O.a)(e=>e.nonce===t),Object(T.a)(1),Object(y.a)(t=>{if(!t.status)throw new Error(t.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}}let P=(()=>{class t{constructor(t){if(this.sw=t,this.subscriptionChanges=new b.b,!t.isEnabled)return this.messages=v,this.notificationClicks=v,void(this.subscription=v);this.messages=this.sw.eventsOfType("PUSH").pipe(Object(y.a)(t=>t.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe(Object(y.a)(t=>t.data)),this.pushManager=this.sw.registration.pipe(Object(y.a)(t=>t.pushManager));const e=this.pushManager.pipe(Object(C.a)(t=>t.getSubscription()));this.subscription=Object(_.a)(e,this.subscriptionChanges)}get isEnabled(){return this.sw.isEnabled}requestSubscription(t){if(!this.sw.isEnabled)return Promise.reject(new Error(E));const e={userVisibleOnly:!0};let n=this.decodeBase64(t.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),i=new Uint8Array(new ArrayBuffer(n.length));for(let r=0;rt.subscribe(e)),Object(T.a)(1)).toPromise().then(t=>(this.subscriptionChanges.next(t),t))}unsubscribe(){return this.sw.isEnabled?this.subscription.pipe(Object(T.a)(1),Object(C.a)(t=>{if(null===t)throw new Error("Not subscribed to push notifications.");return t.unsubscribe().then(t=>{if(!t)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})})).toPromise():Promise.reject(new Error(E))}decodeBase64(t){return atob(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(x))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),A=(()=>{class t{constructor(t){if(this.sw=t,!t.isEnabled)return this.available=v,void(this.activated=v);this.available=this.sw.eventsOfType("UPDATE_AVAILABLE"),this.activated=this.sw.eventsOfType("UPDATE_ACTIVATED")}get isEnabled(){return this.sw.isEnabled}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(E));const t=this.sw.generateNonce();return this.sw.postMessageWithStatus("CHECK_FOR_UPDATES",{statusNonce:t},t)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(E));const t=this.sw.generateNonce();return this.sw.postMessageWithStatus("ACTIVATE_UPDATE",{statusNonce:t},t)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(x))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();class I{}const M=new i.s("NGSW_REGISTER_SCRIPT");function D(t,e,n,r){return()=>{if(!Object(l.z)(r)||!("serviceWorker"in navigator)||!1===n.enabled)return;let s;if(navigator.serviceWorker.addEventListener("controllerchange",()=>{null!==navigator.serviceWorker.controller&&navigator.serviceWorker.controller.postMessage({action:"INITIALIZE"})}),"function"==typeof n.registrationStrategy)s=n.registrationStrategy();else{const[e,...i]=(n.registrationStrategy||"registerWhenStable:30000").split(":");switch(e){case"registerImmediately":s=Object(p.a)(null);break;case"registerWithDelay":s=R(+i[0]||0);break;case"registerWhenStable":s=i[0]?Object(_.a)(j(t),R(+i[0])):j(t);break;default:throw new Error("Unknown ServiceWorker registration strategy: "+n.registrationStrategy)}}t.get(i.B).runOutsideAngular(()=>s.pipe(Object(T.a)(1)).subscribe(()=>navigator.serviceWorker.register(e,{scope:n.scope}).catch(t=>console.error("Service worker registration failed with:",t))))}}function R(t){return Object(p.a)(null).pipe(Object(k.a)(t))}function j(t){return t.get(i.g).isStable.pipe(Object(O.a)(t=>t))}function L(t,e){return new x(Object(l.z)(e)&&!1!==t.enabled?navigator.serviceWorker:void 0)}let N=(()=>{class t{static register(e,n={}){return{ngModule:t,providers:[{provide:M,useValue:e},{provide:I,useValue:n},{provide:x,useFactory:L,deps:[I,i.D]},{provide:i.d,useFactory:D,deps:[i.t,M,I,i.D],multi:!0}]}}}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},providers:[P,A]}),t})();var U=n("aDqW");class F{constructor(t,e="/assets/i18n/",n=".json"){this.http=t,this.prefix=e,this.suffix=n}getTranslation(t){return this.http.get(`${this.prefix}${t}${this.suffix}`)}}var B=n("i9Na"),z=n("zqNl"),V=n("KQpv"),$=n.n(V),H=n("9baa"),q=n("og7C"),Q=n("9hG1"),W=n("+Aie"),G=n("HM3f"),Y=n("8lHc"),K=n("5E2i"),Z=n("jIqt"),X=n("0Woy"),J=n("w0kG"),tt=n("VmIW"),et=n("NloN"),nt=n("i67J"),it=n("eMi/"),rt=n("94ty"),st=n("uJYd"),ot=n("GGXD"),at=n("h3eB"),ct=n("lE9u"),lt=n("sXtk"),ut=n("ylpo"),ht=n("e7kw"),dt=n("zdQl"),pt=n("bjK4"),ft=n("p5wL"),bt=n("rxqU");const gt={public:[],private:[]},mt=Object(z.i)(gt,Object(z.k)(ot.c,t=>Object(ft.b)(gt.private,t,"private")),Object(z.k)(ot.e,(t,{notifications:e})=>Object(ft.b)(e,t,"public")),Object(z.k)(ot.d,(t,{notifications:e})=>Object(ft.b)(e,t,"private"))),vt=Object(z.h)("notifications"),_t=Object(z.j)(vt,t=>t.public),yt=Object(z.j)(vt,t=>t.private),Ot=Object(z.j)(bt.m,yt,_t,(t,e,n)=>t?e:n);var Ct=n("R1aX"),wt=n("MUfl"),Tt=n("Rjzq"),St=n("C05f"),kt=n("3p4X"),Et=n("6Oco"),xt=n("4e/d"),Pt=n("Qbn9");const At=$()("app:service:version|web"),It=new s.c({"Cache-Control":"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"});let Mt=(()=>{class t{constructor(t,e){this.env=t,this.http=e,this.outdated$=new St.a(!1),this.forceUpdate$=new St.a(!1),At("init version service")}watchVersion(){this.env.localDev||Object(kt.a)(Pt.c).pipe(Object(Z.a)(0),Object(C.a)(()=>this.fetchLatestVersion())).subscribe(({version:t})=>{const e=this.env.appVersion;t!==e&&(At(`newer version detected: ${t}, current: ${e}`),this.outdated$.next(!0))})}fetchLatestVersion(){const t=`${this.env.urls.base}/version.json?cacheBuster=${Math.random()}`;return this.http.get(t,{headers:It}).pipe(Object(nt.l)(1e3,2),Object(xt.a)(()=>Et.a))}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(lt.a),i.Yb(s.a))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();var Dt,Rt=n("aeRQ"),jt=n("IiX2"),Lt=n("yN5A"),Nt=n("UbJG"),Ut=n("D57K");const Ft=$()("app:service:broadcast");class Bt{constructor(t){this.store=t,Dt.set(this,void 0)}init(){var t;"BroadcastChannel"in window?Object(Ut.c)(this,Dt,new BroadcastChannel("auth")):Ft("broadcast channel not supported in this browser"),null===(t=Object(Ut.b)(this,Dt))||void 0===t||t.addEventListener("message",({data:t})=>{const{event:e}=t;Ft("event received",e),{login:()=>this.store.dispatch(Object(rt.f)({firstCheck:!0})),logout:()=>this.store.dispatch(Object(rt.B)({source:"broadcast"}))}[e]()})}emit(t){var e;const n={event:t};null===(e=Object(Ut.b)(this,Dt))||void 0===e||e.postMessage(n)}close(){var t;null===(t=Object(Ut.b)(this,Dt))||void 0===t||t.close()}}Dt=new WeakMap,Bt.\u0275fac=function(t){return new(t||Bt)(i.Yb(z.b))},Bt.\u0275prov=i.Kb({token:Bt,factory:Bt.\u0275fac});var zt=n("0YqF"),Vt=n("5JSY"),$t=n("sxqi"),Ht=n("0FJ2"),qt=n("P0vk"),Qt=n("x94p"),Wt=n("AdKB"),Gt=n("vVza"),Yt=n("bZCB"),Kt=n("aygZ"),Zt=n("Dm6q");const Xt=["navDrawer"],Jt=["notificationDrawer"],te=["notificationContainer"];function ee(t,e){1&t&&i.Pb(0,"ticker-bar")}function ne(t,e){1&t&&(i.Ub(0,"popup-banner"),i.Pb(1,"update-banner"),i.Tb())}const ie=function(t){return{"is-trading":t}},re=$()("app:root");let se=(()=>{class t{constructor(t,e,n,i,r,s,o,a,c,l,u,h,d,p){this.env=t,this.version=e,this.feature=n,this.zone=i,this.router=r,this.activatedRoute=s,this.store=o,this.translateService=a,this.keybinds=c,this.cookieService=l,this.ws=u,this.supportArticle=h,this.broadcast=d,this.market=p,this.updateReadNotifs$=new b.b,this.platform$=this.store.pipe(Object(z.m)(Vt.a)),this.logoUrl$=this.store.pipe(Object(z.m)(pt.f,{demo:this.env.demo,badge:!0})),this.activeTheme$=this.store.pipe(Object(z.m)(pt.j)),this.internalNav$=this.store.pipe(Object(z.m)(pt.d)),this.externalNav$=this.store.pipe(Object(z.m)(pt.c)),this.internalDropdownNav$=this.internalNav$.pipe(Object(y.a)(t=>t.filter(t=>t.alwaysDisplay))),this.internalTopbarNav$=this.internalNav$.pipe(Object(y.a)(t=>t.filter(t=>!t.alwaysDisplay))),this.userSignedIn$=this.store.pipe(Object(z.m)(bt.m)),this.email$=this.store.pipe(Object(z.m)(bt.e)),this.userTier$=this.store.pipe(Object(z.m)(Ct.e)),this.notifications$=this.store.pipe(Object(z.m)(Ot)),this.unreadNotifications$=Object(G.a)([this.notifications$,this.updateReadNotifs$.pipe(Object(Z.a)(void 0))]).pipe(Object(y.a)(([t])=>{const e=Object(q.f)(Object(et.b)(ut.o,[]));return t.filter(({id:t})=>!e.has(t))})),this.userDetails$=this.store.pipe(Object(z.m)(bt.d)),this.userData$=this.store.pipe(Object(z.m)(bt.a)),this.userClassification$=this.store.pipe(Object(z.m)(Ct.c)),this.quantityUnits$=this.store.pipe(Object(z.m)(bt.r)),this.isAffiliate$=this.store.pipe(Object(z.m)(dt.b)),this.userHasSubAccounts$=this.store.pipe(Object(z.m)(bt.f)),this.customWorkspaces$=this.store.pipe(Object(z.m)(Nt.f)),this.systemHealth$=this.store.pipe(Object(z.m)(pt.g))}ngOnInit(){re("starting with features",[...this.feature.features]),this.setPlatform(),this.registerKeybinds(),this.setFallbackLanguage("en"),this.useLanguage(this.currentLanguage),this.applyTheme(),this.checkSession(),this.checkDialog(),this.checkActivation(),this.checkPasswordReset(),this.checkCacheBuster(),this.openPublicNotificationFeed(),this.openUserFeedsOnSignin(),this.closeUserFeedsOnSignout(),this.openNotificationsFeedOnSignin(),this.checkAffiliateReferral(),this.checkWorkspace(),this.watchSystemHealth(),this.broadcast.init(),this.watchVersion(),this.checkJailBreak()}ngOnDestroy(){this.unregisterKeybinds(),this.ws.closeAllFeeds()}checkJailBreak(){H.a.isNative&&IRoot.isRooted(t=>{if(t){const t={title:"DIALOG.JAILBROKEN_APP.TITLE",checkbox:"DIALOG.JAILBROKEN_APP.CHECKBOX",body:`\n

    ${this.translateService.instant("DIALOG.JAILBROKEN_APP.BODY")}

    \n `,buttons:[{label:"DIALOG.JAILBROKEN_APP.ACCEPT",colour:"accent",actions:[Object(st.c)()]}]};this.store.dispatch(Object(st.g)({name:"confirmation",inputs:t}))}},t=>{console.log("IRoot.isRooted error:",t)})}setPlatform(){this.store.dispatch(Object(zt.a)({platform:this.env.platform}))}openUserFeedsOnSignin(){this.userSignedIn$.pipe(Object(X.a)(),Object(O.a)(([t,e])=>!t&&!!e)).subscribe(()=>{this.store.dispatch(Object(ct.o)()),this.store.dispatch(Object(at.h)())})}closeUserFeedsOnSignout(){this.userSignedIn$.pipe(Object(X.a)(),Object(O.a)(([t,e])=>!!t&&!e)).subscribe(()=>{this.store.dispatch(Object(ct.e)()),this.store.dispatch(Object(at.e)())})}openPublicNotificationFeed(){this.store.dispatch(Object(ot.b)())}openNotificationsFeedOnSignin(){this.userSignedIn$.pipe(Object(X.a)(),Object(O.a)(([t,e])=>!t&&!!e)).subscribe(()=>this.store.dispatch(Object(ot.a)()))}checkSession(){this.store.dispatch(Object(rt.f)({firstCheck:!0})),Object(Y.a)(6e4,6e4).subscribe(()=>this.store.dispatch(Object(rt.f)({firstCheck:!1})))}checkWorkspace(){this.activatedRoute.queryParamMap.pipe(Object(O.a)(t=>t.has("workspace")),Object(J.a)(this.customWorkspaces$)).subscribe(([t,e])=>{const n=t.get("workspace");e.find(t=>t.id===n)&&n&&this.zone.run(()=>this.store.dispatch(Object(Lt.j)({id:n})))})}checkDialog(){this.activatedRoute.queryParamMap.pipe(Object(O.a)(t=>t.has("dialog"))).subscribe(t=>{const e=t.get("dialog");if("disallowed"===e){const t={title:"DIALOG.DISALLOWED.TITLE",subtitle:"DIALOG.DISALLOWED.SUBTITLE",body:this.translateService.instant("DIALOG.DISALLOWED.BODY"),buttons:[{label:"DIALOG.DISALLOWED.BUTTONS.VIEW_REQUIREMENTS",colour:"accent",actions:[Object(st.h)({url:this.supportArticle.transform(360022618012),target:"_self"})]}]};this.store.dispatch(Object(st.g)({name:"confirmation",inputs:t}))}else this.store.dispatch(Object(st.g)({name:e}))})}checkPasswordReset(){this.activatedRoute.queryParamMap.pipe(Object(O.a)(t=>t.has("password_reset"))).subscribe(t=>{const e=t.get("password_reset");this.store.dispatch(Object(st.g)({name:"password-reset-confirm",inputs:{code:e}}))})}checkActivation(){this.activatedRoute.queryParamMap.pipe(Object(O.a)(t=>t.has("activate"))).subscribe(t=>{const e=t.get("activate");this.store.dispatch(Object(rt.c)({uid:e}))})}checkCacheBuster(){this.activatedRoute.queryParams.pipe(Object(O.a)(t=>"cacheBuster"in t)).subscribe(()=>Object(et.e)("cacheBuster"))}selectTheme(t){this.store.dispatch(Object(st.q)({theme:t}))}applyTheme(){const t=Object(et.b)(ut.q,"dark");if(this.selectTheme(t),H.a.isNative){const{StatusBar:e}=H.b;e.setStyle({style:"dark"===t?H.c.Dark:H.c.Light})}}watchVersion(){this.version.watchVersion(),this.version.forceUpdate$.pipe(Object(O.a)(K.a)).subscribe(()=>{this.router.navigate(["/outdated"])})}checkAffiliateReferral(){this.cookieService.check("affiliateUid")&&this.store.dispatch(Object(it.d)({code:this.cookieService.get("affiliateUid")})),this.activatedRoute.queryParamMap.pipe(Object(O.a)(t=>t.has("affiliate"))).subscribe(t=>{const e=Q.DateTime.local().plus({days:30}).toJSDate(),n=t.get("affiliate");this.cookieService.set("affiliateUid",n,e),this.store.dispatch(Object(it.d)({code:n}))})}registerKeybinds(){this.keybinds.addBind("?",()=>{this.store.dispatch(Object(st.c)()),this.store.dispatch(Object(st.g)({name:"shortcuts-cheatsheet"}))}),this.keybinds.addBind("g f",()=>this.zone.run(()=>this.router.navigate(["trade"]))),this.keybinds.addBind("g w",()=>this.zone.run(()=>this.router.navigate(["wallets"]))),this.keybinds.addBind("g l",()=>this.zone.run(()=>this.router.navigate(["history"]))),this.keybinds.addBind("g a",()=>this.zone.run(()=>this.router.navigate(["assignment"]))),this.keybinds.addBind("g h",()=>this.zone.run(()=>this.router.navigate(["support"]))),this.keybinds.addBind("g s",()=>this.zone.run(()=>this.router.navigate(["settings"]))),this.keybinds.register(),Object(W.bind)("alt",()=>this.zone.run(()=>this.store.dispatch(Object(st.r)(!0))),"keydown"),Object(W.bind)("alt",()=>this.zone.run(()=>this.store.dispatch(Object(st.r)(!1))),"keyup"),Object(d.a)(window,"blur").subscribe(()=>{this.zone.run(()=>this.store.dispatch(Object(st.r)(!1)))})}unregisterKeybinds(){this.keybinds.dispose(),Object(W.unbind)("alt","keydown"),Object(W.unbind)("alt","keyup")}watchSystemHealth(){this.systemHealth$.pipe(Object(Z.a)(Object(tt.None)()),Object(nt.e)(),Object(X.a)()).subscribe(([t,e])=>{re("system health",t.orNull(),e.orNull()),e.contains("maintenance")&&this.router.navigate(["/maintenance"])})}closeNotificationDrawer(){this.notificationDrawer.close()}notificationDrawerToggled(t){if(!t){if(this.notificationContainer.notifications){const t=this.notificationContainer.notifications.map(t=>t.id);Object(et.c)(ut.o,t)}this.updateReadNotifs$.next()}}openAppStore(t){window.open("ios"===t?"https://apps.apple.com/us/app/kraken-futures/id1475904904?ls=1":"https://play.google.com/store/apps/details?id=com.krakenfutures","_blank")}openDemo(){window.open("https://demo-futures.kraken.com","_blank")}signUp(){this.env.demo?this.store.dispatch(Object(st.g)({name:"sign-up-demo"})):window.open(this.env.urls.externalSignUp,"_blank","noopener")}signIn(){this.store.dispatch(Object(st.g)({name:"sign-in"}))}signInQR(){this.store.dispatch(Object(st.g)({name:"mobile-login-info"}))}signOut(){this.store.dispatch(Object(rt.B)({source:"self"}))}addMoney(){this.store.dispatch(Object(ct.a)())}restartPlatform(){this.store.dispatch(Object(st.p)())}setFallbackLanguage(t){this.translateService.setDefaultLang(t)}useLanguage(t){re("use language",t),this.language=t,this.translateService.use(t),this.persistLanguage(t),document.documentElement.dir=["ar","arc","dv","fa","ha","he","khw","ks","ku","ps","ur","yi"].includes(t)?"rtl":"ltr",document.documentElement.lang=t}persistLanguage(t){re("persisting language preference",t),Object(et.c)(ut.l,t)}get currentLanguage(){var t,e;return null!==(e=null!==(t=this.language)&&void 0!==t?t:Object(et.b)(ut.l,void 0))&&void 0!==e?e:this.browserLanguage}get browserLanguage(){const t=this.translateService.getBrowserLang();return this.env.locales.includes(t)?t:(console.warn(`Your current browser language "${t}" is not supported yet, using English.`),"en")}get multipleLocales(){return this.env.locales.length>1}get isTrading(){return this.market.currentMarketClass().isSome()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(lt.a),i.Ob(Mt),i.Ob(wt.a),i.Ob(i.B),i.Ob(c.d),i.Ob(c.a),i.Ob(z.b),i.Ob(U.e),i.Ob(Tt.a,2),i.Ob(Ht.a),i.Ob(Rt.a),i.Ob(ht.a),i.Ob(Bt),i.Ob($t.a))},t.\u0275cmp=i.Ib({type:t,selectors:[["app-root"]],viewQuery:function(t,e){var n;1&t&&(i.Jc(Xt,!0),i.Jc(Jt,!0),i.Jc(te,!0)),2&t&&(i.zc(n=i.cc())&&(e.navDrawer=n.first),i.zc(n=i.cc())&&(e.notificationDrawer=n.first),i.zc(n=i.cc())&&(e.notificationContainer=n.first))},features:[i.Bb([Tt.a])],decls:35,vars:70,consts:[["position","end",3,"openedChange"],["notificationDrawer",""],[3,"notifications","close"],["notificationContainer",""],[3,"ngClass"],[3,"demo","isAffiliate","email","userTier","userClassification","hasSubAccounts","logo","platform"],[1,"route"],[3,"email","isAffiliate","userTier","currentLanguage","userClassification","userDetails","toggleNavDrawer","restartPlatform","selectLanguage"],[4,"ngIf"],[3,"notifications","unreadNotifications","currentLanguage","currentTheme","quantityUnits","platform","signedIn","userDetails","openNotificationDraw","updateLanguage","updateTheme"]],template:function(t,e){if(1&t){const t=i.Vb();i.Ub(0,"mat-sidenav-container"),i.Ub(1,"mat-sidenav",0,1),i.bc("openedChange",(function(t){return e.notificationDrawerToggled(t)})),i.Ub(3,"drawer-notifications",2,3),i.bc("close",(function(){return e.closeNotificationDrawer()})),i.gc(5,"async"),i.Tb(),i.Tb(),i.Ub(6,"mat-sidenav-content",4),i.Ub(7,"main"),i.Pb(8,"app-expandable-sidenav",5),i.gc(9,"async"),i.gc(10,"async"),i.gc(11,"async"),i.gc(12,"async"),i.gc(13,"async"),i.gc(14,"async"),i.gc(15,"async"),i.Ub(16,"div",6),i.Pb(17,"router-outlet"),i.Tb(),i.Ub(18,"app-toolbar",7),i.bc("toggleNavDrawer",(function(){return e.navDrawer.toggle()}))("restartPlatform",(function(){return e.restartPlatform()}))("selectLanguage",(function(t){return e.useLanguage(t)})),i.gc(19,"async"),i.gc(20,"async"),i.gc(21,"async"),i.gc(22,"async"),i.gc(23,"async"),i.Tb(),i.Oc(24,ee,1,0,"ticker-bar",8),i.Ub(25,"status-bar",9),i.bc("openNotificationDraw",(function(){return i.Ec(t),i.Ac(2).toggle()}))("updateLanguage",(function(t){return e.useLanguage(t)}))("updateTheme",(function(t){return e.selectTheme(t)})),i.gc(26,"async"),i.gc(27,"async"),i.gc(28,"async"),i.gc(29,"async"),i.gc(30,"async"),i.gc(31,"async"),i.gc(32,"async"),i.Tb(),i.Tb(),i.Oc(33,ne,2,0,"popup-banner",8),i.gc(34,"async"),i.Tb(),i.Tb()}2&t&&(i.Cb(3),i.mc("notifications",i.hc(5,26,e.notifications$)),i.Cb(3),i.mc("ngClass",i.rc(68,ie,e.isTrading)),i.Cb(2),i.mc("demo",e.env.demo)("isAffiliate",i.hc(9,28,e.isAffiliate$))("email",i.hc(10,30,e.email$))("userTier",i.hc(11,32,e.userTier$))("userClassification",i.hc(12,34,e.userClassification$))("hasSubAccounts",i.hc(13,36,e.userHasSubAccounts$))("logo",i.hc(14,38,e.logoUrl$))("platform",i.hc(15,40,e.platform$)),i.Cb(10),i.mc("email",i.hc(19,42,e.email$))("isAffiliate",i.hc(20,44,e.isAffiliate$))("userTier",i.hc(21,46,e.userTier$))("currentLanguage",e.currentLanguage)("userClassification",i.hc(22,48,e.userClassification$))("userDetails",i.hc(23,50,e.userDetails$)),i.Cb(6),i.mc("ngIf",e.isTrading),i.Cb(1),i.mc("notifications",i.hc(26,52,e.notifications$))("unreadNotifications",i.hc(27,54,e.unreadNotifications$))("currentLanguage",e.currentLanguage)("currentTheme",i.hc(28,56,e.activeTheme$))("quantityUnits",i.hc(29,58,e.quantityUnits$))("platform",i.hc(30,60,e.platform$))("signedIn",i.hc(31,62,e.userSignedIn$))("userDetails",i.hc(32,64,e.userDetails$)),i.Cb(8),i.mc("ngIf",i.hc(34,66,e.version.outdated$)))},directives:[qt.b,qt.a,jt.a,qt.c,l.l,Qt.a,c.i,Wt.a,l.n,Gt.a,Yt.a,Kt.a,Zt.a],pipes:[l.b],styles:['mat-sidenav-container[_ngcontent-%COMP%]{height:100%;max-height:100%}main[_ngcontent-%COMP%]{display:grid;grid-template:"sidenav toolbar" 46px "sidenav route" 1fr "sidenav footer" 30px/54px 1fr;gap:var(--spacing);padding:var(--spacing)}@media (min-width:1025px) and (max-width:1366px){.is-trading[_ngcontent-%COMP%] main[_ngcontent-%COMP%]{grid-template:"sidenav toolbar" 100px "sidenav route" 1fr "sidenav footer" 30px/54px 1fr}.is-trading[_ngcontent-%COMP%] main[_ngcontent-%COMP%] ticker-bar[_ngcontent-%COMP%]{display:none}}@media (min-width:1367px) and (max-width:1440px){.is-trading[_ngcontent-%COMP%] main[_ngcontent-%COMP%]{grid-template:"sidenav toolbar" 100px "sidenav route" 1fr "sidenav footer" 30px/54px 1fr}.is-trading[_ngcontent-%COMP%] main[_ngcontent-%COMP%] ticker-bar[_ngcontent-%COMP%]{display:none}}@media (min-width:1441px){.is-trading[_ngcontent-%COMP%] main[_ngcontent-%COMP%]{grid-template:"sidenav tickers" 25px "sidenav toolbar" 100px "sidenav route" 1fr "sidenav footer" 30px/54px 1fr}main[_ngcontent-%COMP%] ticker-toolbar[_ngcontent-%COMP%]{display:block}}@media (max-width:1024px){main[_ngcontent-%COMP%]{height:100%;grid-template:"sidenav toolbar" 46px "route route" 1fr/44px 1fr;gap:var(--spacing-s);padding:var(--spacing-s)}main[_ngcontent-%COMP%] market-bar[_ngcontent-%COMP%], main[_ngcontent-%COMP%] ticker-bar[_ngcontent-%COMP%]{display:none}}@media (min-width:1441px){.is-trading[_ngcontent-%COMP%] .route[_ngcontent-%COMP%], .is-trading[_ngcontent-%COMP%] app-footer[_ngcontent-%COMP%], .is-trading[_ngcontent-%COMP%] app-toolbar[_ngcontent-%COMP%]{margin-top:-3px}}app-toolbar[_ngcontent-%COMP%]{grid-area:toolbar}app-expandable-sidenav[_ngcontent-%COMP%]{grid-area:sidenav}app-footer[_ngcontent-%COMP%]{grid-area:footer}.route[_ngcontent-%COMP%]{grid-area:route;--route-outlet-height:calc(100vh - 46px - (var(--spacing) * 4) - 30px);height:var(--route-outlet-height);max-height:var(--route-outlet-height);overflow:hidden}@media (min-width:1367px) and (max-width:1440px){.is-trading[_ngcontent-%COMP%] .route[_ngcontent-%COMP%]{--route-outlet-height:calc(100vh - 100px - (var(--spacing) * 4) - 30px)}}@media (min-width:1025px) and (max-width:1366px){.is-trading[_ngcontent-%COMP%] .route[_ngcontent-%COMP%]{--route-outlet-height:calc(100vh - 100px - (var(--spacing) * 4) - 30px)}}@media (min-width:1441px){.is-trading[_ngcontent-%COMP%] .route[_ngcontent-%COMP%]{--route-outlet-height:calc(100vh - 100px - 25px - (var(--spacing) * 5) - 30px)}}@media (max-width:1024px){.route[_ngcontent-%COMP%]{height:calc(100% - var(--spacing));max-height:calc(100% - var(--spacing))}}@media (max-width:1024px){status-bar[_ngcontent-%COMP%]{display:none}}'],changeDetection:0}),t})();const oe={provide:lt.a,useFactory:()=>{const t=new lt.a,e=window||{},n=e.__env||{};for(const i in n)n.hasOwnProperty(i)&&(t[i]=e.__env[i]);return t}};var ae=n("ob6c"),ce=(n("B6ip"),n("sC+B"),n("Vb9w"),n("eI8f"),n("3ZBw"),n("sJbC"),n("87BI"),n("lj7+"),n("/rTw"),n("zio8"),n("LXEP"),n("sikL"),n("IwOb"),n("YbHt"),n("HeQ8"),n("7fYw"),n("sPsw"),n("G0l2"),n("1a33"),n("5AUt"),n("4cvs"),n("mcff")),le=n("0tVE");n("rfPA"),n("bBQR"),n("3kIJ"),n("anSm"),n("UDV5"),n("hCLc"),n("EmXI"),n("8spT"),n("cMxr"),n("kfYe"),n("98H0"),n("RnvC"),n("eL2r"),n("cedy"),n("RnHX"),n("I1e+"),n("Ptgi"),n("Fy0W"),n("Q/zH"),n("LCtx"),n("sHul"),n("Qohw"),n("nXbC"),n("AlFj"),n("S4LQ"),n("HGNU"),n("W7x1"),n("gelr"),n("yucr");var ue=n("i2L+");n("fLha");let he=(()=>{class t{constructor(t,e){this.http=t,this.env=e,this.headers=new s.c({"Content-Type":"application/json"}),this.options={headers:this.headers,withCredentials:!0}}getAffiliateDetails(){return this.http.get(this.env.urls.rest+"/affiliate",this.options)}createAffiliateDetails(){const t=JSON.stringify("");return this.http.post(this.env.urls.rest+"/affiliate",t,this.options)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(s.a),i.Yb(lt.a))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();var de=n("vYTc");let pe=(()=>{class t{constructor(t,e){this.http=t,this.env=e,this.headers=new s.c({"Content-Type":"application/json"}),this.options={headers:this.headers,withCredentials:!0}}getCurrentPrefs(){return this.http.get(this.env.urls.rest+"/assignmentprogram/current",this.options)}getHistoricalPrefs(){return this.http.get(this.env.urls.rest+"/assignmentprogram/history",this.options)}addPreference(t){if(Object(de.a)(t.contractType))return this.http.post(this.env.urls.rest+"/assignmentprogram/current",JSON.stringify(Object.assign(Object.assign({},t),{contractType:"flex",contract:t.contractType})),this.options);const e=JSON.stringify(t);return this.http.post(this.env.urls.rest+"/assignmentprogram/current",e,this.options)}updatePreferences(t){const e=JSON.stringify(t);return this.http.post(this.env.urls.rest+"/assignmentprogram/batch",e,this.options)}deletePreference(t){return this.http.request("delete",`${this.env.urls.rest}/assignmentprogram/current/${t}`,{headers:this.headers,withCredentials:!0})}acceptTerms(){const t=JSON.stringify("");return this.http.post(this.env.urls.rest+"/assignmentprogram/readandagree",t,this.options)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(s.a),i.Yb(lt.a))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();var fe=n("r1OQ"),be=n("CLaS"),ge=n("T5QL");const me={headers:new s.c({"Content-Type":"application/json"}),withCredentials:!0};let ve=(()=>{class t{constructor(t,e){this.http=t,this.env=e}getRequiredMargin(t){return this.http.post(this.env.urls.rest+"/initialmargin",t,me)}getFundingRates(t){const e=new URL(this.env.urls.rest+"/historicalfundingrates");return e.searchParams.set("symbol",t),this.http.get(e.toString(),me)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(s.a),i.Yb(lt.a))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();var _e=n("Aey0"),ye=n("7UDb"),Oe=n("H0/1");let Ce=(()=>{class t{constructor(t,e){this.http=t,this.env=e}getAdditionalLogs(t,e){const n=new URL(this.env.urls.rest+"/accountlog");return n.searchParams.set("start",t.beforeId.toString()),e&&n.searchParams.set("types",e.join(",")),this.http.get(n.href,ye.a).pipe(Object(y.a)(t=>Object(Oe.c)(t.log)))}getTransferLogs(t){return this.getAdditionalLogs(t,["cross-exchange transfer","cross-exchange transfer failed"])}getTradeLogs(t){return this.getAdditionalLogs(t,["futures trade","futures liquidation","futures assignment"])}getRecentOrderActivity(){const t=new URL(this.env.urls.history+"/orders");return this.http.get(t.href,ye.a).pipe(Object(y.a)(t=>Object(Oe.f)(t)))}getManualFiatWithdrawals(){const t=new URL(this.env.urls.rest+"/fiat/withdrawals/manualwithdrawals");return t.searchParams.set("currencyUnit","EUR"),this.http.get(t.href,ye.a).pipe(Object(y.a)(t=>Object(Oe.e)(t)))}getManualFiatDeposits(){const t=new URL(this.env.urls.rest+"/fiat/deposits/manualdeposits");return t.searchParams.set("currencyUnit","EUR"),this.http.get(t.href,ye.a).pipe(Object(y.a)(t=>Object(Oe.d)(t)))}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(s.a),i.Yb(lt.a))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),we=(()=>{class t{constructor(t){this.env=t}requestPermission(){return Object(Ut.a)(this,void 0,void 0,(function*(){return"Notification"in window?"denied"!==Notification.permission&&("granted"===Notification.permission||"granted"===(yield Notification.requestPermission())):(console.log("notifications not possible"),!1)}))}notify({title:t,extras:{body:e,onlyWhenInBackground:n=!0,timeout:i,tag:r,badge:s,silent:o}={},events:{onclick:a,onclose:c,onerror:l,onshow:u}={}}){return Object(Ut.a)(this,void 0,void 0,(function*(){if(!(yield this.requestPermission()))return;if(n&&"hidden"!==document.visibilityState)return;const h=new Notification(t,{body:e,tag:r,badge:s,silent:o,icon:this.env.urls.base+"/favicon.ico"});return i&&setTimeout(h.close.bind(h),i),a&&h.addEventListener("click",a),c&&h.addEventListener("close",c),l&&h.addEventListener("error",l),u&&h.addEventListener("show",u),h}))}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(lt.a))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();var Te=n("l5Az"),Se=n("hsG4"),ke=n("nXdR");const Ee={headers:new s.c({"Content-Type":"application/json"}),withCredentials:!0};let xe=(()=>{class t{constructor(t,e){this.http=t,this.env=e}getDepositDetails(){return this.http.get(this.env.urls.rest+"/depositInfo",Ee)}generateDepositAddress(t){return this.http.get(`${this.env.urls.rest}/depositInfoWithNewAddress?currency=${t}`,Ee)}transferCrypto(t){const e=function(t){const[e,n]=t.source.name.substring(2).toUpperCase().split(ke.a),[i,r]=t.destination.name.substring(2).toUpperCase().split(ke.a);return{amount:t.quantity,fromAccount:{currency:"BTC"===t.source.currency?"XBT":t.source.currency,type:"flex"===t.source.type?"FLEX":"holding"===t.source.type?"CASH":"MARGIN",marginAccount:"futures"===t.source.type?{type:"FUTURES",baseCurrency:e,quoteCurrency:n}:void 0},toAccount:{currency:"BTC"===t.destination.currency?"XBT":t.destination.currency,type:"flex"===t.destination.type?"FLEX":"holding"===t.destination.type?"CASH":"MARGIN",marginAccount:"futures"===t.destination.type?{type:"FUTURES",baseCurrency:i,quoteCurrency:r}:void 0}}}(t);return this.http.post(this.env.urls.rest+"/transfer",e,Ee)}subAccountWalletTransfer(t){return this.http.post(this.env.urls.rest+"/transfer/subaccount",t,Object.assign({},Ee))}getDetailedMargin(t){const e=new URL(this.env.urls.rest+"/marginrequirements"),n={name:t.name.toLowerCase()};return this.http.post(e.href,n,Ee)}externalWithdrawal(t,e,n){return this.http.post(this.env.urls.rest+"/crossexchangetransfer/out",{amount:t,currency:e,sourceWallet:n},Ee)}cryptoWithdrawal(t){return this.http.post(this.env.urls.rest+"/withdraw",t,Ee)}confirmCryptoWithdrawal(t,e){return this.http.post(this.env.urls.rest+"/confirmwithdrawal",{authCode:e,withdrawalRequestId:t},Ee)}cancelWithdrawal(t){return this.http.post(this.env.urls.rest+"/cancelwithdrawal",{uid:t},Ee)}addDemoMoney(){return this.http.post(this.env.urls.rest+"/replenish",null,Ee)}getFiatDepositDetails(){return this.http.get(this.env.urls.rest+"/fiat/deposits/details/eur",Ee)}getFiatWithdrawalDetails(){const t=new URL(this.env.urls.rest+"/fiat/withdrawals/details");return t.searchParams.set("currencyUnit","eur"),this.http.get(t.href,Ee)}addFiatWithdrawalDetails(t){const e=t,n=new URL(this.env.urls.rest+"/fiat/withdrawals/details");return n.searchParams.set("currencyUnit","eur"),this.http.post(n.href,e,Ee)}removeFiatWithdrawallDetails(t){return this.http.delete(`${this.env.urls.rest}/fiat/withdrawals/details/${t}`,Ee)}initiateManualWithdrawal(t){const e=new URL(this.env.urls.rest+"/fiat/withdrawals/manualwithdrawals"),n=Object.assign({},t);return this.http.post(e.href,n,Ee)}fetchAuthenticatedWallets(){return this.http.get(this.env.urls.rest+"/trading/wallets",Ee)}fetchAvailableTransferPreferences(){return this.http.get(this.env.urls.rest+"/available-transfer-preferences",Ee)}changeTransferPreference(t){return this.http.patch(this.env.urls.rest+"/transfer-preferences",{transferPreference:t},Ee)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(s.a),i.Yb(lt.a))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();var Pe=n("mQ8X"),Ae=n("qAYy"),Ie=n("KyJX"),Me=n("+Px6"),De=n("YyhG"),Re=n("J/3c"),je=n("MT7k"),Le=n("9Ccw"),Ne=n("+axt");const Ue={layout:pt.n,user:bt.o,notifications:function(t,e){return mt(t,e)},assignment:Pe.a,tickers:Ae.c,margin:Ie.a,market:Me.b,trades:De.b,wallets:Re.a,logs:je.a,verification:Ct.a,authentication:Le.c,affiliate:dt.d,workspace:Nt.g,env:Vt.c,prices:Ne.b};let Fe=(()=>{class t{constructor(t,e,n){this.actions=t,this.affiliateService=e,this.translate=n,this.getAffiliateDetails$=Object(ae.d)(()=>this.actions.pipe(Object(ae.e)(it.b),Object(C.a)(()=>this.affiliateService.getAffiliateDetails().pipe(Object(y.a)(t=>Object(it.e)({details:t})),Object(xt.a)(({error:t})=>{const e=this.translate.instant("ERROR.GET_AFFILIATE_ERR"),n=this.translate.instant("ERROR_CODE."+t.errors[0].code);return[Object(st.j)({message:`${e} - ${n}`,class:"warn"})]}))))),this.createAffiliateDetails$=Object(ae.d)(()=>this.actions.pipe(Object(ae.e)(it.a),Object(C.a)(()=>this.affiliateService.createAffiliateDetails().pipe(Object(y.a)(t=>Object(it.e)({details:t})),Object(xt.a)(({error:t})=>{const e=this.translate.instant("ERROR.GET_AFFILIATE_ERR"),n=this.translate.instant("ERROR_CODE."+t.errors[0].code);return[Object(st.j)({message:`${e} - ${n}`,class:"warn"})]})))))}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(ae.a),i.Yb(he),i.Yb(U.e))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();var Be=n("1ONQ");let ze=(()=>{class t{constructor(t,e,n,i){this.actions=t,this.assignmentService=e,this.translate=n,this.router=i,this.getCurrentPrefs$=Object(ae.d)(()=>this.actions.pipe(Object(ae.e)(Be.e),Object(C.a)(()=>this.assignmentService.getCurrentPrefs().pipe(Object(y.a)(t=>Object(Be.h)({preferences:t})),Object(xt.a)(({error:t})=>{const e=this.translate.instant("ERROR.GET_ASSIGNMENT_PREFS_ERR"),n=this.translate.instant("ERROR_CODE."+t.errors[0].code);return[Object(st.j)({message:`${e} - ${n}`,class:"warn"})]}))))),this.getHistoricalPrefs$=Object(ae.d)(()=>this.actions.pipe(Object(ae.e)(Be.d),Object(C.a)(()=>this.assignmentService.getHistoricalPrefs().pipe(Object(y.a)(t=>Object(Be.g)({history:t})),Object(xt.a)(({error:t})=>{const e=this.translate.instant("ERROR.GET_ASSIGNMENT_HISTORY_ERR"),n=this.translate.instant("ERROR_CODE."+t.errors[0].code);return[Object(st.j)({message:`${e} - ${n}`,class:"warn"})]}))))),this.addPref$=Object(ae.d)(()=>this.actions.pipe(Object(ae.e)(Be.b),Object(C.a)(t=>this.assignmentService.addPreference(t).pipe(Object(C.a)(()=>[Object(st.j)({message:"SNACKBAR.ADD_PREFERENCE"}),Object(Be.e)(),Object(Be.d)(),Object(st.c)()]),Object(xt.a)(({error:t})=>{const e=this.translate.instant("ERROR.ADD_PREFERENCE_ERR"),n=this.translate.instant("ERROR_CODE."+t.errors[0].code);return[Object(st.j)({message:`${e} - ${n}`,class:"warn"})]}))))),this.updatePref$=Object(ae.d)(()=>this.actions.pipe(Object(ae.e)(Be.i),Object(C.a)(({participants:t})=>this.assignmentService.updatePreferences(t).pipe(Object(C.a)(()=>[Object(st.j)({message:"Updated assignment preferences"}),Object(Be.e)(),Object(Be.d)(),Object(st.c)()]),Object(xt.a)(({error:t})=>{const e=this.translate.instant("ERROR.ADD_PREFERENCE_ERR"),n=this.translate.instant("ERROR_CODE."+t.errors[0].code);return[Object(st.j)({message:`${e} - ${n}`,class:"warn"})]}))))),this.deletePref$=Object(ae.d)(()=>this.actions.pipe(Object(ae.e)(Be.c),Object(C.a)(({prefId:t})=>this.assignmentService.deletePreference(t).pipe(Object(C.a)(()=>[Object(st.j)({message:"SNACKBAR.DELETED_PREFERENCE"}),Object(Be.d)(),Object(Be.e)()]),Object(xt.a)(({error:t})=>{const e=this.translate.instant("ERROR.DELETE_PREFERENCE_ERR"),n=this.translate.instant("ERROR_CODE."+t.errors[0].code);return[Object(st.j)({message:`${e} - ${n}`,class:"warn"})]}))))),this.acceptTerms$=Object(ae.d)(()=>this.actions.pipe(Object(ae.e)(Be.a),Object(C.a)(()=>this.assignmentService.acceptTerms().pipe(Object(C.a)(()=>[Object(le.A)({date:Q.DateTime.local().toString()}),Object(st.j)({message:"SNACKBAR.ACCEPTED_ASSIGNMENT_TERMS"}),Object(st.c)()]),Object(S.a)(()=>this.router.navigate(["/assignment"])),Object(xt.a)(({error:t})=>{const e=this.translate.instant("ERROR.ACCEPT_TERMS_ERR"),n=this.translate.instant("ERROR_CODE."+t.errors[0].code);return[Object(st.j)({message:`${e} - ${n}`,class:"warn"}),Object(st.n)(Be.a.type),Object(st.c)()]})))))}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(ae.a),i.Yb(pe),i.Yb(U.e),i.Yb(c.d))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();var Ve=n("GoAz"),$e=n("P4Xx"),He=n("7SLS"),qe=n("Wxxs"),Qe=n("1OAy");let We=(()=>{class t{constructor(e,n,i,r,s,o,a,c,l,u){this.store=e,this.router=n,this.actions=i,this.env=r,this.auth=s,this.rest=o,this.fido2=a,this.ws=c,this.translate=l,this.broadcast=u,this.checkSession$=this.rest.createApiEffect({ofType:rt.f,apiStream:t=>this.auth.isSignedIn().pipe(Object(y.a)(()=>t.firstCheck),Object(J.a)(this.store.pipe(Object(z.m)(bt.d)))),onSuccess:([t,e])=>!e||t?Object(p.a)(Object(le.l)()):Et.a,errSnackbarMsg:!1}),this.demoSignIn$=this.rest.createApiEffect({ofType:rt.l,loading:rt.l.type,apiStream:t=>this.auth.signIn(t),onSuccess:()=>Object(Ve.a)([Object(le.l)(),Object(st.c)(),Object(st.j)({message:"SNACKBAR.SIGNIN_SUCCESS"})]),tapPost:()=>{this.ws.restartSocket(),this.broadcast.emit("login")},errSnackbarMsg:"SIGNIN_ERR"}),this.signUp$=this.rest.createApiEffect({ofType:rt.C,loading:rt.C.type,apiStream:t=>this.auth.signUp(t).pipe(Object(y.a)(()=>t)),onSuccess:({email:t,password:e})=>this.env.demo?Object(Ve.a)([Object(st.c)(),Object(st.j)({message:"SNACKBAR.SIGNUP_SUCCESS"}),Object(rt.l)({email:t,password:e})]):Object(Ve.a)([Object(st.c)(),Object(st.g)({name:"confirmation",inputs:{title:"DIALOG.ACTIVATION_REQUIRED.TITLE",subtitle:"DIALOG.ACTIVATION_REQUIRED.SUBTITLE",body:this.translate.instant("DIALOG.ACTIVATION_REQUIRED.BODY"),buttons:[{label:"BUTTON.CLOSE",colour:"accent",actions:[Object(st.c)()]}]}})]),onError:t=>"PASSWORD_COMPROMISED"===t.error.error.toUpperCase()?Object(p.a)(Object(rt.q)({passwordCompromised:!0})):Object(p.a)(),errSnackbarMsg:"SIGNUP_ERR"}),this.subAccountSignup$=this.rest.createApiEffect({ofType:le.M,loading:le.M.type,apiStream:t=>this.auth.subaccountSignup(t),onSuccess:()=>Object(Ve.a)([Object(le.r)(),Object(st.c)(),Object(st.j)({message:"SNACKBAR.SUBACCOUNT_SIGNUP_SUCCESS"})]),errSnackbarMsg:"SUBACCOUNT_SIGNUP_ERR"}),this.activateUser$=this.rest.createApiEffect({ofType:rt.c,loading:rt.c.type,apiStream:({uid:t})=>this.auth.activateAccount(t),onSuccess:()=>Object(Ve.a)([Object(st.c)(),Object(st.g)({name:"confirmation",inputs:{title:"DIALOG.EMAIL_VERIFIED.TITLE",subtitle:"DIALOG.EMAIL_VERIFIED.SUBTITLE",body:this.translate.instant("DIALOG.EMAIL_VERIFIED.BODY"),buttons:[{label:"BUTTON.SIGNIN",colour:"accent",actions:[Object(st.c)(),Object(st.g)({name:"sign-in"})]}]}})]),errSnackbarMsg:"USER_ACTIVATION_ERR"}),this.signedIn$=Object(ae.d)(()=>this.actions.pipe(Object(ae.e)(rt.D),Object(S.a)(()=>{this.ws.restartSocket(),this.broadcast.emit("login")}),Object(y.a)(()=>Object(le.l)()))),this.signOut$=this.rest.createApiEffect({ofType:rt.B,tapPre:()=>this.router.navigate(["/futures"]),apiStream:({source:t})=>this.auth.signOut().pipe(Object(He.a)(t)),onSuccess:()=>Object(Ve.a)(t.logoutActions),onError:()=>Object(Ve.a)(t.logoutActions),tapPost:t=>{this.ws.restartSocket(),"broadcast"!==t&&this.broadcast.emit("logout")},errSnackbarMsg:"SIGNOUT_ERR"}),this.requestPasswordReset$=this.rest.createApiEffect({ofType:rt.t,loading:rt.t.type,apiStream:({email:t})=>this.auth.requestPasswordReset(t),onSuccess:()=>Object(p.a)(Object(st.g)({name:"confirmation",inputs:{title:"DIALOG.PASSWORD_RESET_SENT.TITLE",subtitle:"DIALOG.PASSWORD_RESET_SENT.SUBTITLE",body:this.translate.instant("DIALOG.PASSWORD_RESET_SENT.BODY"),buttons:[{label:"BUTTON.OK",colour:"accent",actions:[Object(st.c)()]}]}})),errSnackbarMsg:"PASS_RESET_ERR"}),this.confirmPasswordReset$=this.rest.createApiEffect({ofType:rt.i,loading:rt.i.type,apiStream:t=>this.auth.confirmPasswordReset(t),onSuccess:()=>{try{const t=new URL(window.location.href);t.searchParams.delete("password_reset"),window.history.replaceState(null,document.title,t.toString())}catch(t){}return Object(Ve.a)([Object(st.j)({message:"SNACKBAR.NEW_PASS_SUCCESS"}),Object(st.c)()])},onError:t=>"PASSWORD_COMPROMISED"===t.error.error.toUpperCase()?Object(p.a)(Object(rt.q)({passwordCompromised:!0})):Object(p.a)(),errSnackbarMsg:"PASS_SET_ERR"}),this.getHardwareAuthDevices$=this.rest.createApiEffect({ofType:rt.n,apiStream:()=>this.fido2.fetchCredentials(),onSuccess:t=>Object(p.a)(Object(rt.y)({devices:t}))}),this.deregisterHardwareAuthDevice$=this.rest.createApiEffect({ofType:rt.m,apiStream:({id:t})=>this.fido2.deleteCred(t),onSuccess:()=>Object(p.a)(Object(rt.n)())}),this.changePassword$=this.rest.createApiEffect({ofType:rt.d,loading:rt.d.type,apiStream:t=>this.auth.changePassword(t),onSuccess:()=>Object(Ve.a)([Object(st.j)({message:"SNACKBAR.PASSWORD_CHANGED_SUCCESS"}),Object(rt.B)({source:"self"})]),onError:t=>"PASSWORD_COMPROMISED"===t.error.error.toUpperCase()?Object(p.a)(Object(rt.q)({passwordCompromised:!0})):Object(p.a)(),errSnackbarMsg:"CHANGE_PASS_ERR"}),this.activateTotp$=this.rest.createApiEffect({ofType:rt.b,loading:rt.b.type,apiStream:({secret:t,totp:e})=>this.auth.activateTotp(t,e),onSuccess:()=>Object(Ve.a)([Object(st.j)({message:"SNACKBAR.2FA_ACTIVATED_SUCCESS"}),Object(le.o)()]),errSnackbarMsg:"ACTIVATE_2FA_ERR"}),this.deactivateTotp$=this.rest.createApiEffect({ofType:rt.j,loading:rt.j.type,apiStream:({totp:t})=>this.auth.deactivateTotp(t),onSuccess:()=>Object(Ve.a)([Object(st.j)({message:"SNACKBAR.2FA_DEACTIVATED_SUCCESS"}),Object(le.o)()]),errSnackbarMsg:"ACTIVATE_2FA_ERR"}),this.getActiveSessions$=this.rest.createApiEffect({ofType:rt.p,apiStream:()=>this.auth.getActiveSessions(),onSuccess:t=>Object(Ve.a)([Object(rt.w)({sessions:t.tokens})]),errSnackbarMsg:"GET_ACTIVE_SESSIONS_ERR"}),this.deleteSession$=this.rest.createApiEffect({ofType:rt.k,loading:rt.k.type,apiStream:({uid:t})=>this.auth.deleteSession(t),onSuccess:()=>Object(Ve.a)([Object(rt.f)({firstCheck:!0}),Object(rt.p)(),Object(st.j)({message:"SNACKBAR.DELETE_SESSION_SUCCESS"})]),errSnackbarMsg:"DELETE_SESSION_ERR"}),this.replenishSession$=this.rest.createApiEffect({ofType:rt.r,loading:rt.r.type,apiStream:()=>this.auth.replenishSession(),onSuccess:()=>Object(Ve.a)([Object(rt.f)({firstCheck:!0}),Object(rt.p)(),Object(st.j)({message:"SNACKBAR.REPLENISH_SESSION_SUCCESS"})]),errSnackbarMsg:"REPLENISH_SESSION_ERR"}),this.fetchSessionLength$=this.rest.createApiEffect({ofType:rt.o,loading:rt.o.type,apiStream:()=>this.auth.fetchSessionLength(),onSuccess:({lifespan:t})=>Object(p.a)(Object(rt.x)({lifespan:t}))}),this.changeSessionLength$=this.rest.createApiEffect({ofType:rt.e,loading:rt.e.type,apiStream:({lifespan:t})=>this.auth.changeSessionLength(t),onSuccess:t=>Object(Ve.a)([Object(st.j)({message:"SNACKBAR.SESSION_CHANGE_SUCCESS"}),Object(rt.x)({lifespan:t}),Object(rt.r)()]),errSnackbarMsg:"SESSION_CHANGE_ERR"}),this.requestMobileToken$=this.rest.createApiEffect({ofType:rt.s,loading:rt.s.type,apiStream:t=>this.auth.requestMobileToken(t),onSuccess:t=>Object(Ve.a)([Object(rt.A)({qr:t}),Object(st.j)({message:"SNACKBAR.REQUEST_MOBILE_TOKEN_SUCCESS"}),Object(st.c)()]),errSnackbarMsg:"REQUEST_MOBILE_TOKEN"}),this.scanMobileToken$=this.rest.createApiEffect({ofType:rt.v,loading:rt.v.type,apiStream:({serializedPayload:t})=>{const e=JSON.parse(t).uid;return Object($e.a)([this.auth.scanMobileToken(t),Object(p.a)(e)])},onSuccess:([{confirmationCode:t},e])=>Object(Ve.a)([Object(rt.z)({code:t}),Object(rt.g)({uid:e,count:0}),Object(st.j)({message:"SNACKBAR.SCAN_MOBILE_TOKEN_SUCCESS"})]),errSnackbarMsg:"SCAN_MOBILE_TOKEN_ERR"}),this.confirmMobileSession$=Object(ae.d)(()=>this.actions.pipe(Object(ae.e)(rt.h),Object(S.a)(()=>this.store.dispatch(Object(st.a)(rt.h.type))),Object(C.a)(t=>this.auth.confirmMobileSession(t).pipe(Object(C.a)(()=>Object(Ve.a)([Object(rt.f)({firstCheck:!0}),Object(rt.z)({code:void 0}),Object(rt.A)({qr:void 0}),Object(rt.p)(),Object(st.j)({message:"Successfully confirmed mobile session"}),Object(st.n)(rt.h.type)])),Object(xt.a)(({error:t})=>{const e=this.translate.instant("ERROR.SESSION_CONFIRM_ERR"),n=this.translate.instant("ERROR_CODE."+t.error.toString().toUpperCase());return[Object(st.c)(),Object(st.n)(rt.h.type),Object(st.j)({message:`${e} - ${n}`,class:"warn"})]}))),Object(k.a)(2e3))),this.checkStatusConfirmationCode$=Object(ae.d)(()=>this.actions.pipe(Object(ae.e)(rt.g),Object(S.a)(()=>this.store.dispatch(Object(st.a)(rt.g.type))),Object(C.a)(t=>this.auth.checkStatusConfirmationCode(t.uid).pipe(Object(C.a)(()=>Object(Ve.a)([Object(rt.f)({firstCheck:!0}),Object(st.j)({message:"SNACKBAR.SIGNIN_SUCCESS"}),Object(st.n)(rt.g.type),Object(st.c)()])),Object(S.a)(()=>{this.ws.restartSocket(),this.broadcast.emit("login")}),Object(xt.a)(()=>40===t.count?[Object(st.c)(),Object(st.n)(rt.g.type),Object(st.j)({message:"ERROR.CHECK_STATUS_TIMEOUT",class:"warn"})]:[Object(rt.g)(Object.assign(Object.assign({},t),{count:t.count+1}))]))),Object(k.a)(3e3)))}}return t.logoutActions=[Object(le.x)(),Object(rt.u)(),Object(qe.c)(),Object(ct.q)(),Object(at.j)(),Object(Qe.j)(),Object(Be.f)(),Object(ot.c)(),Object(it.c)(),Object(st.j)({message:"SNACKBAR.SIGNOUT_SUCCESS"})],t.\u0275fac=function(e){return new(e||t)(i.Yb(z.b),i.Yb(c.d),i.Yb(ae.a),i.Yb(lt.a),i.Yb(fe.a),i.Yb(ye.b),i.Yb(ge.a),i.Yb(Rt.a),i.Yb(U.e),i.Yb(Bt))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),Ge=(()=>{class t{constructor(t,e){this.actions=t,this._document=e,this.setPlatform$=Object(ae.d)(()=>this.actions.pipe(Object(ae.e)(zt.a),Object(S.a)(({platform:t})=>{var e;this._document.body.setAttribute("platform",t),null===(e=this._document.getElementById("appFavicon"))||void 0===e||e.setAttribute("href",`favicon-${t}.ico`)})),{dispatch:!1})}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(ae.a),i.Yb(l.d))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();function Ye(t,e){return e?Object(C.a)(()=>t,e):Object(C.a)(()=>t)}var Ke=n("rTkt"),Ze=n("QmxK"),Xe=n("MRfT");const Je={"assignment-disclaimer":()=>Object(Ut.a)(void 0,void 0,void 0,(function*(){return(yield Promise.resolve().then(n.bind(null,"B6ip"))).AssignmentDisclaimerComponent})),confirmation:()=>Object(Ut.a)(void 0,void 0,void 0,(function*(){return(yield Promise.resolve().then(n.bind(null,"sC+B"))).ConfirmationComponent})),"wallet-transaction":()=>Object(Ut.a)(void 0,void 0,void 0,(function*(){return(yield Promise.resolve().then(n.bind(null,"AlFj"))).WalletTransactionComponent})),"sign-up-demo":()=>Object(Ut.a)(void 0,void 0,void 0,(function*(){return(yield Promise.resolve().then(n.bind(null,"eI8f"))).DemoCredentialsComponent})),"edit-order":()=>Object(Ut.a)(void 0,void 0,void 0,(function*(){return(yield Promise.resolve().then(n.bind(null,"3ZBw"))).EditOrderComponent})),"external-terms":()=>Object(Ut.a)(void 0,void 0,void 0,(function*(){return(yield Promise.resolve().then(n.bind(null,"sJbC"))).ExternalTermsComponent})),"funding-rates":()=>Object(Ut.a)(void 0,void 0,void 0,(function*(){return(yield Promise.resolve().then(n.bind(null,"zio8"))).FundingRatesComponent})),"limit-close":()=>Object(Ut.a)(void 0,void 0,void 0,(function*(){return(yield Promise.resolve().then(n.bind(null,"sikL"))).LimitCloseComponent})),"margin-details":()=>Object(Ut.a)(void 0,void 0,void 0,(function*(){return(yield Promise.resolve().then(n.bind(null,"YbHt"))).MarginDetailsComponent})),"markets-overview":()=>Object(Ut.a)(void 0,void 0,void 0,(function*(){return(yield Promise.resolve().then(n.bind(null,"7fYw"))).MarketsOverviewComponent})),"mfa-confirm":()=>Object(Ut.a)(void 0,void 0,void 0,(function*(){return(yield Promise.resolve().then(n.bind(null,"sPsw"))).MfaConfirmComponent})),"mobile-login-info":()=>Object(Ut.a)(void 0,void 0,void 0,(function*(){return(yield Promise.resolve().then(n.bind(null,"G0l2"))).MobileLoginInfoComponent})),"mobile-scan":()=>Object(Ut.a)(void 0,void 0,void 0,(function*(){return(yield Promise.resolve().then(n.bind(null,"1a33"))).MobileScanComponent})),"order-calculators":()=>Object(Ut.a)(void 0,void 0,void 0,(function*(){return(yield Promise.resolve().then(n.bind(null,"5AUt"))).OrderCalculatorsComponent})),"otp-confirmation":()=>Object(Ut.a)(void 0,void 0,void 0,(function*(){return(yield Promise.resolve().then(n.bind(null,"kfYe"))).OTPConfirmationComponent})),"password-reset-confirm":()=>Object(Ut.a)(void 0,void 0,void 0,(function*(){return(yield Promise.resolve().then(n.bind(null,"98H0"))).PasswordResetConfirmComponent})),"password-reset-request":()=>Object(Ut.a)(void 0,void 0,void 0,(function*(){return(yield Promise.resolve().then(n.bind(null,"RnvC"))).PasswordResetRequestComponent})),"position-assignment":()=>Object(Ut.a)(void 0,void 0,void 0,(function*(){return(yield Promise.resolve().then(n.bind(null,"eL2r"))).PositionAssignmentComponent})),"private-key":()=>Object(Ut.a)(void 0,void 0,void 0,(function*(){return(yield Promise.resolve().then(n.bind(null,"cedy"))).PrivateKeyComponent})),"sign-in":()=>Object(Ut.a)(void 0,void 0,void 0,(function*(){return(yield Promise.resolve().then(n.bind(null,"LCtx"))).SignInComponent})),"sign-up":()=>Object(Ut.a)(void 0,void 0,void 0,(function*(){return(yield Promise.resolve().then(n.bind(null,"sHul"))).SignUpComponent})),"subaccount-sign-up":()=>Object(Ut.a)(void 0,void 0,void 0,(function*(){return(yield Promise.resolve().then(n.bind(null,"rP1E"))).SubaccountSignUpComponent})),"create-layout":()=>Object(Ut.a)(void 0,void 0,void 0,(function*(){return(yield Promise.resolve().then(n.bind(null,"Vb9w"))).CreateLayoutComponent})),"tab-settings":()=>Object(Ut.a)(void 0,void 0,void 0,(function*(){return(yield Promise.resolve().then(n.bind(null,"Qohw"))).TabSettingsComponent})),tours:()=>Object(Ut.a)(void 0,void 0,void 0,(function*(){return(yield Promise.resolve().then(n.bind(null,"nXbC"))).ToursComponent})),"rename-layout":()=>Object(Ut.a)(void 0,void 0,void 0,(function*(){return(yield Promise.resolve().then(n.bind(null,"Ptgi"))).RenameLayoutComponent})),"layout-loader":()=>Object(Ut.a)(void 0,void 0,void 0,(function*(){return(yield Promise.resolve().then(n.bind(null,"LXEP"))).LayoutLoaderComponent})),"shortcuts-cheatsheet":()=>Object(Ut.a)(void 0,void 0,void 0,(function*(){return(yield Promise.resolve().then(n.bind(null,"Q/zH"))).ShortcutsCheatsheetComponent})),"order-confirmation":()=>Object(Ut.a)(void 0,void 0,void 0,(function*(){return(yield Promise.resolve().then(n.bind(null,"4cvs"))).OrderConfirmationComponent})),"order-details":()=>Object(Ut.a)(void 0,void 0,void 0,(function*(){return(yield n.e(0).then(n.bind(null,"zeIl"))).OrderDetailsComponent})),"position-details":()=>Object(Ut.a)(void 0,void 0,void 0,(function*(){return(yield n.e(0).then(n.bind(null,"CGx5"))).PositionDetailsComponent})),"fill-details":()=>Object(Ut.a)(void 0,void 0,void 0,(function*(){return(yield n.e(0).then(n.bind(null,"wvPa"))).FillDetailsComponent})),"share-position":()=>Object(Ut.a)(void 0,void 0,void 0,(function*(){return(yield n.e(0).then(n.bind(null,"C28A"))).SharePositionComponent})),"fee-schedule":()=>Object(Ut.a)(void 0,void 0,void 0,(function*(){return(yield Promise.resolve().then(n.bind(null,"W7x1"))).FeeSchedulesDialogComponent})),"sg-broker-terms":()=>Object(Ut.a)(void 0,void 0,void 0,(function*(){return(yield Promise.resolve().then(n.bind(null,"Fy0W"))).SgBrokerTermsComponent})),"recertify-algo":()=>Object(Ut.a)(void 0,void 0,void 0,(function*(){return(yield Promise.resolve().then(n.bind(null,"I1e+"))).RecertifyAlgoComponent})),"create-algo":()=>Object(Ut.a)(void 0,void 0,void 0,(function*(){return(yield Promise.resolve().then(n.bind(null,"yucr"))).CreateAlgoComponent})),"uk-retail-popup":()=>Object(Ut.a)(void 0,void 0,void 0,(function*(){return(yield Promise.resolve().then(n.bind(null,"S4LQ"))).UKRetailPopupComponent})),"fiat-deposit-details":()=>Object(Ut.a)(void 0,void 0,void 0,(function*(){return(yield Promise.resolve().then(n.bind(null,"87BI"))).FiatDepositDetailsComponent})),"fiat-withdrawal-details":()=>Object(Ut.a)(void 0,void 0,void 0,(function*(){return(yield Promise.resolve().then(n.bind(null,"/rTw"))).FiatWithdrawalDetailsComponent})),"fiat-withdraw":()=>Object(Ut.a)(void 0,void 0,void 0,(function*(){return(yield Promise.resolve().then(n.bind(null,"lj7+"))).FiatWithdrawComponent})),"flex-prefs":()=>Object(Ut.a)(void 0,void 0,void 0,(function*(){return(yield Promise.resolve().then(n.bind(null,"gelr"))).FlexPreferencesComponent})),"waiting-list":()=>Object(Ut.a)(void 0,void 0,void 0,(function*(){return(yield Promise.resolve().then(n.bind(null,"fLha"))).WaitingListComponent})),"inbound-transfer-popup":()=>Object(Ut.a)(void 0,void 0,void 0,(function*(){return(yield Promise.resolve().then(n.bind(null,"HGNU"))).InboundTransferPopupComponent}))};let tn=(()=>{class t{constructor(t,e,n,i,r,s,o,a){this.store=t,this.actions=e,this.dialog=n,this.translateService=i,this.router=r,this.feature=s,this.health=o,this.toastr=a,this.systemHealthChecks$=Object(ae.d)(()=>this.actions.pipe(Object(ae.e)(ae.c),Ye(this.feature.isEnabled("wsHealth")?this.health.healthWebsocket():Object(Y.a)(0,3e4).pipe(Object(C.a)(()=>this.health.checkSystemHealth()))),Object(y.a)(t=>Object(st.z)({health:t})))),this.openDialog$=Object(ae.d)(()=>this.actions.pipe(Object(ae.e)(st.g),Object(S.a)(({name:t,inputs:e})=>Object(Ut.a)(this,void 0,void 0,(function*(){const n=Object.assign(Object.assign({panelClass:"global__dialog",maxHeight:"100%",maxWidth:"100%"},e?{data:e}:void 0),{autoFocus:!1});t in Je?this.dialog.open(yield Je[t](),n):console.warn("Unknown dialog requested:",t)})))),{dispatch:!1}),this.closeDialog$=Object(ae.d)(()=>this.actions.pipe(Object(ae.e)(st.c),Object(S.a)(()=>this.dialog.closeAll())),{dispatch:!1}),this.openMandatoryDialogs$=Object(ae.d)(()=>this.actions.pipe(Object(ae.e)(st.i),Object(J.a)(this.store.select(bt.a),this.store.pipe(Object(z.m)(bt.i))),Object(S.a)(([t,e,n])=>{var i,r;const s=n.documents.find(t=>"sgb_terms_and_conditions"===t.documentName);[{trigger:"sgb_platform"===(null===(i=n.details)||void 0===i?void 0:i.platformName)&&!!s&&!e.mtfNoticeShown,dialog:{name:"confirmation",inputs:{title:"Payward Brokers PTE Ltd Notice",body:"\n As per our previous communications via email and platform notice, access to Kraken Futures is now provided by Payward Brokers PTE Ltd.\n\n You can find more details [here](https://support.kraken.com/hc/en-us/sections/360009749092-Payward-Brokers).\n\n If you have an questions, please [contact support](https://support.kraken.com/hc/en-us/requests/new?ticket_form_id=360000286871).\n ",buttons:[{label:"Close",actions:[Object(le.e)({mtfNoticeShown:!1})]},{label:"Don't show me this again",colour:"accent",actions:[Object(le.e)({mtfNoticeShown:!0})]}]}}},{trigger:!(null===(r=n.details)||void 0===r?void 0:r.defaultTransferPreference)&&this.feature.isEnabled("transferDestination"),dialog:{name:"inbound-transfer-popup"}}].forEach(({trigger:t,dialog:e})=>{t&&this.store.dispatch(Object(st.g)(e))})})),{dispatch:!1}),this.openSnackbar$=Object(ae.d)(()=>this.actions.pipe(Object(ae.e)(st.j),Object(J.a)(this.store.pipe(Object(z.m)(bt.a))),Object(S.a)(([{message:t,class:e,title:n,action:i},{snackbars:r}])=>{if(null==r||r){const r=n?this.translateService.instant(n):"",s=`${this.translateService.instant(t)} ${i?"

    ":""} ${i?this.translateService.instant(i.actionKey):""}`,o={progressBar:!0,enableHtml:!0};"warn"===e?this.toastr.error(s,r,Object.assign({timeOut:i?5e3:3e3},o)).onTap.pipe(Object(T.a)(1)).subscribe(()=>{(null==i?void 0:i.action)&&this.store.dispatch(i.action)}):"info"===e?this.toastr.info(s,r,Object.assign({timeOut:i?7500:3e3},o)).onTap.pipe(Object(T.a)(1)).subscribe(()=>{(null==i?void 0:i.action)&&this.store.dispatch(i.action)}):this.toastr.success(s,r,o)}})),{dispatch:!1}),this.openExternalLink$=Object(ae.d)(()=>this.actions.pipe(Object(ae.e)(st.h),Object(S.a)(({url:t,target:e})=>window.open(t,e))),{dispatch:!1}),this.restartPlatform$=Object(ae.d)(()=>this.actions.pipe(Object(ae.e)(st.p),Object(S.a)(()=>location.reload())),{dispatch:!1}),this.applyTheme$=Object(ae.d)(()=>this.actions.pipe(Object(ae.e)(st.q),Object(S.a)(({theme:t})=>{const e=Object(Ke.b)(t);document.body.setAttribute("theme",e),Object(et.c)(ut.q,t)})),{dispatch:!1}),this.navigateToRoute$=Object(ae.d)(()=>this.actions.pipe(Object(ae.e)(st.e),Object(S.a)(({route:t})=>this.router.navigate([t]))),{dispatch:!1})}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(z.b),i.Yb(ae.a),i.Yb(ce.b),i.Yb(U.e),i.Yb(c.d),i.Yb(wt.a),i.Yb(Ze.a),i.Yb(Xe.b))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),en=(()=>{class t{constructor(t,e,n,i,r){this.actions=t,this.logsService=e,this.translate=n,this.ws=i,this.rest=r,this.openPrivateLogFeeds$=Object(ae.d)(()=>this.actions.pipe(Object(ae.e)(Qe.i),Object(C.a)(()=>{const t=[];return this.ws.openFeed({feed:"account_log"}),this.ws.openFeed({feed:"deposits_withdrawals"}),t.push(Object(Qe.f)()),t}))),this.closePrivateLogFeeds$=Object(ae.d)(()=>this.actions.pipe(Object(ae.e)(Qe.d),Object(C.a)(()=>[this.ws.closeFeed({feed:"account_log"}),this.ws.closeFeed({feed:"deposits_withdrawals"})])),{dispatch:!1}),this.getPrivateLogs$=Object(ae.d)(()=>this.actions.pipe(Object(ae.e)(Qe.e),Object(C.a)(t=>Object($e.a)([this.logsService.getAdditionalLogs(t),this.logsService.getTradeLogs(t),this.logsService.getTransferLogs(t)]).pipe(Object(C.a)(([t,e,n])=>[Object(Qe.a)({logs:t}),Object(Qe.a)({logs:e}),Object(Qe.a)({logs:n})]),Object(xt.a)(({error:t})=>{const e=this.translate.instant("ERROR.RETRIEVE_LOGS_ERR"),n=this.translate.instant("ERROR_CODE."+t.errors[0].code);return[Object(st.j)({message:`${e} - ${n}`,class:"warn"})]}))))),this.getPrivateOrders$=Object(ae.d)(()=>this.actions.pipe(Object(ae.e)(Qe.f),Object(C.a)(()=>this.logsService.getRecentOrderActivity().pipe(Object(C.a)(t=>[Object(Qe.n)({activity:t})]),Object(xt.a)(({error:t})=>{const e=this.translate.instant("ERROR.GET_ORDER_ACTIVITY"),n=this.translate.instant("ERROR_CODE."+t.errors[0].code);return[Object(st.j)({message:`${e} - ${n}`,class:"warn"})]}))))),this.getManualFiatWithdrawals$=this.rest.createApiEffect({ofType:Qe.h,apiStream:()=>this.logsService.getManualFiatWithdrawals(),onSuccess:t=>Object(p.a)(Object(Qe.l)({withdrawals:t})),errSnackbarMsg:"GET_MANUAL_FIAT_WITHDRAWALS"}),this.getManualFiatDeposits$=this.rest.createApiEffect({ofType:Qe.g,apiStream:()=>this.logsService.getManualFiatDeposits(),onSuccess:t=>Object(p.a)(Object(Qe.k)({deposits:t})),errSnackbarMsg:"GET_MANUAL_FIAT_DEPOSITS"})}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(ae.a),i.Yb(Ce),i.Yb(U.e),i.Yb(Rt.a),i.Yb(ye.b))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();var nn=n("1u95");let rn=(()=>{class t{constructor(t,e){this.rest=t,this.futures=e,this.getInitialMargin$=this.rest.createApiEffect({ofType:nn.b,apiStream:({order:t,editMargin:e})=>Object($e.a)([this.futures.getRequiredMargin(t),Object(p.a)(e)]),onSuccess:([t,e])=>Object(p.a)(e?Object(nn.d)({buy:t.initialMarginBuy,sell:t.initialMarginSell}):Object(nn.e)({buy:t.initialMarginBuy,sell:t.initialMarginSell})),errSnackbarMsg:"ORDER_MARGINS_ERR"}),this.getBracketInitialMargin$=this.rest.createApiEffect({ofType:nn.a,apiStream:({order:t})=>this.futures.getRequiredMargin(t),onSuccess:t=>Object(p.a)(Object(nn.c)({buy:t.initialMarginBuy,sell:t.initialMarginSell})),errSnackbarMsg:"ORDER_MARGINS_ERR"})}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(ye.b),i.Yb(ve))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();var sn=n("TYVA"),on=n("M/Eb"),an=n("wMit");let cn=(()=>{class t{constructor(t,e,n,i,r,s){this.store=t,this.actions=e,this.futures=n,this.market=i,this.rest=r,this.ws=s,this.initMarkets$=Object(ae.d)(()=>this.actions.pipe(Object(ae.e)(ae.c),Ye(Object(Ve.a)([Object(an.h)(),Object(an.e)()])))),this.setFuturesAssets$=Object(ae.d)(()=>this.actions.pipe(Object(ae.e)(an.m),Object(y.a)(({markets:t})=>Object(an.k)({assets:Object(on.a)(t)})))),this.fetchMarkets$=Object(ae.d)(()=>this.actions.pipe(Object(ae.e)(an.h),Object(J.a)(this.store.pipe(Object(z.m)(bt.m))),Object(C.a)(([t,e])=>e?Object(p.a)(Object(an.d)()):Object(p.a)(Object(an.f)())))),this.fetchFuturesMarkets$=this.rest.createApiEffect({ofType:an.f,apiStream:()=>this.market.fetchFuturesMarkets(),onSuccess:t=>Object(p.a)(Object(an.m)({markets:t}))}),this.fetchAuthenticatedFuturesMarkets$=this.rest.createApiEffect({ofType:an.d,apiStream:()=>this.market.fetchAuthenticatedFuturesMarkets(),onSuccess:t=>Object(p.a)(Object(an.m)({markets:t}))}),this.setSelectedMarket$=Object(ae.d)(()=>this.actions.pipe(Object(ae.e)(an.q),Object(S.a)(({symbol:t})=>{Object(sn.x)(t)&&localStorage.setItem(ut.p,t.toUpperCase())})),{dispatch:!1}),this.openSelectedMarketFeeds$=Object(ae.d)(()=>this.store.pipe(Object(z.m)(Me.n),Object(X.a)(),Object(S.a)(([t,e])=>{t&&(this.ws.closeFeed({feed:"trade",product_ids:[t.symbol]}),this.ws.closeFeed({feed:"ticker",product_ids:[t.symbol]})),e&&(this.ws.openFeed({feed:"trade",product_ids:[e.symbol]}),this.ws.openFeed({feed:"ticker",product_ids:[e.symbol]}))})),{dispatch:!1}),this.getFundingRates$=this.rest.createApiEffect({ofType:an.j,apiStream:({symbol:t})=>this.futures.getFundingRates(t),onSuccess:({rates:t})=>Object(p.a)(Object(st.g)({name:"funding-rates",inputs:{rates:t}}))}),this.checkContractExpiry$=Object(ae.d)(()=>this.actions.pipe(Object(ae.e)(an.c),Object(C.a)(()=>this.store.pipe(Object(z.m)(Me.f))),Object(C.a)(t=>t.some(({lastTradingTime:t})=>!!t&&Q.DateTime.fromISO(t)this.market.fetchFeeSchedules(),onSuccess:t=>Object(p.a)(Object(an.l)({feeSchedules:t})),errSnackbarMsg:"FETCH_USER_FEES"}),this.fetchLeveragePrefs$=this.rest.createApiEffect({ofType:an.g,loading:an.g.type,apiStream:()=>this.market.fetchLeveragePrefs(),onSuccess:t=>Object(p.a)(Object(an.n)({leveragePreferences:t})),errSnackbarMsg:"FETCH_USER_LEVERAGE_PREFS"}),this.fetchPnlPrefs$=this.rest.createApiEffect({ofType:an.i,loading:an.i.type,apiStream:()=>this.market.fetchPnlPrefs(),onSuccess:t=>Object(p.a)(Object(an.o)({pnlCurrency:t})),errSnackbarMsg:"FETCH_USER_PNL_PREFS"}),this.changePnlPrefs$=this.rest.createApiEffect({ofType:an.b,loading:an.b.type,apiStream:({prefs:t})=>this.market.setPnlPrefs(t),onSuccess:()=>Object(p.a)(Object(st.c)(),Object(an.i)(),Object(st.j)({message:"SNACKBAR.UPDATED_PNL_PREFS"})),errSnackbarMsg:"SET_PNL_PREFS"}),this.changeLeveragePrefs$=this.rest.createApiEffect({ofType:an.a,loading:an.a.type,apiStream:({prefs:t})=>this.market.setLeveragePrefs(t),onSuccess:()=>Object(p.a)(Object(st.c)(),Object(an.g)(),Object(st.j)({message:"SNACKBAR.UPDATED_LVG_PREFS"})),errSnackbarMsg:"SET_LVG_PREFS"})}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(z.b),i.Yb(ae.a),i.Yb(ve),i.Yb($t.a),i.Yb(ye.b),i.Yb(Rt.a))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),ln=(()=>{class t{constructor(t,e,n){this.actions$=t,this.translate=e,this.ws=n,this.openPublicNotificationFeed$=Object(ae.d)(()=>this.actions$.pipe(Object(ae.e)(ot.b),Object(S.a)(()=>this.ws.openFeed({feed:"notifications"}))),{dispatch:!1}),this.openPrivateNotificationFeed$=Object(ae.d)(()=>this.actions$.pipe(Object(ae.e)(ot.a),Object(S.a)(()=>this.ws.openFeed({feed:"notifications_auth"}))),{dispatch:!1}),this.setNotifications$=Object(ae.d)(()=>this.actions$.pipe(Object(ae.e)(ot.d),Object(O.a)(({notifications:t})=>t.length>0),Object(y.a)(({notifications:t})=>t[t.length-1]),Object(O.a)(t=>"maintenance"===t.type&&!!t.effective_time&&Q.DateTime.fromMillis(t.effective_time)>Q.DateTime.local()&&"high"===t.priority&&!(Object(et.b)(ut.g,0)===t.effective_time)),Object(y.a)(t=>{const e=Object(sn.h)(t.effective_time);Object(et.c)(ut.g,t.effective_time);const n=this.translate.instant("DIALOG.PLATFORM_DOWNTIME.CONTENT",{countdown:e});return Object(st.g)({name:"confirmation",inputs:{title:"DIALOG.PLATFORM_DOWNTIME.TITLE",subtitle:"DIALOG.PLATFORM_DOWNTIME.SUBTITLE",body:n,buttons:[{label:"BUTTON.CLOSE",colour:"accent",actions:[Object(st.c)()]}]}})})))}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(ae.a),i.Yb(U.e),i.Yb(Rt.a))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();var un=n("DpwM");let hn=(()=>{class t{constructor(t,e,n,i,r){this.title=t,this.store=e,this.actions=n,this.crypto=i,this.ws=r,this.openMarketTickers$=Object(ae.d)(()=>this.actions.pipe(Object(ae.e)(an.m),Object(O.a)(({markets:t})=>t.length>0),Object(S.a)(({markets:t})=>{const e=t.map(t=>t.symbol);this.ws.openFeed({feed:"ticker_lite",product_ids:e})})),{dispatch:!1}),this.setTitleTicker$=Object(ae.d)(()=>this.store.pipe(Object(z.m)(Ae.p),Object(nt.g)(),Object(J.a)(this.store.select(Vt.b)),Object(S.a)(([t,e])=>{const n=this.crypto.transform(Object(de.j)(t),t),i=t.pair.replace("XBT","BTC");this.title.setTitle(`${n} ${i} | ${e}`)})),{dispatch:!1})}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(o.c),i.Yb(z.b),i.Yb(ae.a),i.Yb(un.c),i.Yb(Rt.a))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();var dn=n("3mST"),pn=n("prE9"),fn=n("XcTA");let bn=(()=>{class t{constructor(t,e,n,i,r,s){this.actions=t,this.translate=e,this.tradesService=n,this.ws=i,this.notifications=r,this.rest=s,this.openTradesFeeds$=Object(ae.d)(()=>this.actions.pipe(Object(ae.e)(at.h),Object(S.a)(()=>{this.ws.openFeed({feed:"open_positions"}),this.ws.openFeed({feed:"open_orders"}),this.ws.openFeed({feed:"fills"})})),{dispatch:!1}),this.closeTradesFeeds$=Object(ae.d)(()=>this.actions.pipe(Object(ae.e)(at.e),Object(S.a)(()=>{this.ws.closeFeed({feed:"open_positions"}),this.ws.closeFeed({feed:"open_orders"}),this.ws.closeFeed({feed:"fills"})})),{dispatch:!1}),this.submitOrder$=this.rest.createApiEffect({ofType:at.o,loading:at.o.type,apiStream:t=>this.tradesService.submitMarsOrder(t),onSuccess:t=>Object(Ve.a)([Object(at.f)({response:t}),Object(st.c)()]),errSnackbarMsg:"SUBMIT_ORDER_ERR"}),this.submitBracketOrder$=Object(ae.d)(()=>this.actions.pipe(Object(ae.e)(at.n),Object(C.a)(({mainOrder:t,takeProfit:e,stopLoss:n})=>this.tradesService.submitMarsOrder(t).pipe(Object(C.a)(t=>e&&n?Object(f.a)(Object(p.a)(Object(at.f)({response:t})),Object(p.a)(Object(at.o)(e)).pipe(Object(k.a)(250)),Object(p.a)(Object(at.o)(n)).pipe(Object(k.a)(250))):e?Object(f.a)(Object(p.a)(Object(at.f)({response:t})),Object(p.a)(Object(at.o)(e)).pipe(Object(k.a)(250))):n?Object(f.a)(Object(p.a)(Object(at.f)({response:t})),Object(p.a)(Object(at.o)(n)).pipe(Object(k.a)(250))):Object(p.a)(Object(at.f)({response:t}))),Object(xt.a)(({error:t})=>{const e=this.translate.instant("ERROR.SUBMIT_ORDER_ERR"),n=this.translate.instant("ERROR_CODE."+t.errors[0].code);return[Object(st.j)({message:`${e} - ${n}`,class:"warn"})]}))))),this.editOrder$=Object(ae.d)(()=>this.actions.pipe(Object(ae.e)(at.g),Object(C.a)(t=>this.tradesService.editOrder(t).pipe(Object(C.a)(({editStatus:t})=>[Object(at.f)({response:{status:t.status,orderEvents:t.orderEvents}}),Object(st.c)()]),Object(xt.a)(({error:t})=>{const e=this.translate.instant("ERROR.SUBMIT_ORDER_ERR"),n=this.translate.instant("ERROR_CODE."+t.errors[0].code);return[Object(st.j)({message:`${e} - ${n}`,class:"warn"})]}))))),this.displayOrderStatus$=Object(ae.d)(()=>this.actions.pipe(Object(ae.e)(at.f),Object(C.a)(({response:t})=>{const{status:e,orderEvents:n}=t;return(null!=n?n:[]).map(t=>Object(fn.b)(t)).map(t=>[..."placed"===e?[Object(st.j)({message:t,title:"SNACKBAR.ORDER_PLACED_SUCCESS"})]:[],..."post_would_execute"===e?[Object(st.j)({message:t,title:"SNACKBAR.ORDER_MATCH_REJECT",class:"warn"})]:[],..."ioc_would_not_execute"===e?[Object(st.j)({message:t,title:"SNACKBAR.IOC_ORDER",class:"warn"})]:[],..."placed_reduced"===e?[Object(st.j)({message:t,title:"SNACKBAR.ORDER_PLACED_REDUCED"})]:[],..."filled_reduced"===e?[Object(st.j)({message:t,title:"SNACKBAR.ORDER_FILLED_REDUCED"})]:[],..."partially_filled"===e?[Object(st.j)({message:t,title:"SNACKBAR.ORDER_PARTIALLY_FILLED"})]:[],..."partially_filled_reduced"===e?[Object(st.j)({message:t,title:"SNACKBAR.ORDER_PARTIAL_FILL_REDUCED"})]:[],..."filled"===e?[Object(st.j)({message:t,title:"SNACKBAR.ORDER_EXECUTED"})]:[],..."edited"===e?[Object(st.j)({message:t,title:"SNACKBAR.ORDER_EDITED"})]:[]]).flat()}))),this.cancelOrder$=Object(ae.d)(()=>this.actions.pipe(Object(ae.e)(at.d),Object(C.a)(({id:t})=>this.tradesService.cancelOrder(t).pipe(Object(C.a)(()=>[Object(st.j)({message:"SNACKBAR.ORDER_CANCELLED_SUCCESS"})]),Object(xt.a)(({error:t})=>{const e=this.translate.instant("ERROR.CANCEL_ORDER_ERR"),n=this.translate.instant("ERROR_CODE."+t.errors[0].code);return[Object(st.j)({message:`${e} - ${n}`,class:"warn"})]}))))),this.cancelAllOrders$=Object(ae.d)(()=>this.actions.pipe(Object(ae.e)(at.c),Object(C.a)(()=>this.tradesService.cancelAllOrders().pipe(Object(C.a)(()=>[Object(st.j)({message:"SNACKBAR.ALL_ORDERS_CANCELLED_SUCCESS"})]),Object(xt.a)(({error:t})=>{const e=this.translate.instant("ERROR.CANCEL_ALL_ORDERS_ERR"),n=this.translate.instant("ERROR_CODE."+t.errors[0].code);return[Object(st.j)({message:`${e} - ${n}`,class:"warn"})]}))))),this.notifyExecution$=Object(ae.d)(()=>this.actions.pipe(Object(ae.e)(at.a),Object(dn.a)(1),Object(S.a)(({fills:t})=>{Promise.all(t.map(t=>this.notifications.notify({title:t.instrument+" Execution",extras:{body:`${t.buy?"Buy":"Sell"} ${t.qty} @ ${t.price}`}})))})),{dispatch:!1}),this.updateFeesOnContributedVolumeChange$=Object(ae.d)(()=>this.actions.pipe(Object(ae.e)(at.a),Object(dn.a)(1),Object(pn.a)(2*Pt.e),Object(He.a)(Object(le.p)())))}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(ae.a),i.Yb(U.e),i.Yb(Te.a),i.Yb(Rt.a),i.Yb(we),i.Yb(ye.b))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();var gn=n("ppTs");let mn=(()=>{class t{constructor(t,e,n,i,r){this.store=t,this.actions=e,this.userService=n,this.translate=i,this.rest=r,this.getUser$=Object(ae.d)(()=>this.actions.pipe(Object(ae.e)(le.l),Object(S.a)(()=>this.store.dispatch(Object(st.a)(le.l.type))),Object(C.a)(()=>this.userService.getAccountDetails().pipe(Object(C.a)(t=>{const e=[],{investorType:n,tier1:i,tier2:r}=t.details.userVerification,s=Object.assign({email:t.details.email,countryCode:t.details.countryCode,external:t.external,loginTime:(new Date).toISOString(),isSubAccount:t.isSubAccount,platformName:t.platformName,isRestricted:t.isRestricted,defaultTransferPreference:t.defaultTransferPreference},t.userDetails),o={termsAgreedDate:t.lastReadAndAgreeDate,assignmentProgramAgreedDate:t.assignmentProgramReadAndAgreeDate,allowedEWallet:t.allowedForEWallet},a=JSON.parse(t.frontendData);return e.push(Object(le.G)(s)),e.push(Object(le.s)(a)),e.push(Object(le.I)(o)),e.push(Object(le.k)()),e.push(Object(le.r)()),e.push(Object(le.o)()),e.push(Object(le.k)()),e.push(Object(le.n)()),e.push(Object(le.p)()),e.push(Object(an.d)()),e.push(Object(ct.f)()),e.push(Object(ct.h)()),"GBR"===Object(gn.b)(s.countryCode)&&null===t.ukRetailPopupResponseDate&&this.store.dispatch(Object(st.g)({name:"uk-retail-popup"})),e.push(s.external?Object(it.e)({details:{isAffiliate:!1}}):Object(it.b)()),t.accountType&&e.push(Object(qe.d)({accountType:t.accountType})),n&&e.push(Object(qe.e)({classification:n})),i&&e.push(Object(qe.f)({status:i})),r&&e.push(Object(qe.g)({status:r})),Object(Ve.a)(e)}),Object(xt.a)(t=>(this.store.dispatch(Object(st.n)(le.l.type)),Object(h.a)(t))))),Object(S.a)(()=>this.store.dispatch(Object(st.n)(le.l.type))))),this.getSummary$=this.rest.createApiEffect({ofType:le.o,apiStream:()=>this.userService.getSummary(),onSuccess:t=>Object(p.a)(Object(le.J)(t))}),this.acceptTerms$=Object(ae.d)(()=>this.actions.pipe(Object(ae.e)(le.a),Object(C.a)(()=>this.userService.acceptTerms()),Object(C.a)(()=>[Object(st.j)({message:"SNACKBAR.UPDATED_TERMS_SUCCESS"})]),Object(xt.a)(({error:t})=>{const e=this.translate.instant("ERROR.ACCEPT_TERMS_ERR"),n=this.translate.instant("ERROR_CODE."+t.errors[0].code);return[Object(st.j)({message:`${e} - ${n}`,class:"warn"})]}))),this.activateSSOTransfers$=this.rest.createApiEffect({ofType:le.b,apiStream:()=>this.userService.activateSSO(),onSuccess:()=>Object(Ve.a)([Object(st.j)({message:"SNACKBAR.ACTIVATE_SSO_SUCCESS"}),Object(st.e)({route:"wallets"}),Object(st.A)({tour:"wallets"})]),errSnackbarMsg:"ERROR.ACTIVATE_SSO"}),this.processNewSSO$=this.rest.createApiEffect({ofType:le.t,apiStream:()=>this.userService.respondUserDoc({documentName:"sgb_terms_and_conditions",response:!0}),onSuccess:()=>Object(Ve.a)([Object(st.j)({message:"SNACKBAR.UPDATED_TERMS_SUCCESS"}),Object(le.b)()]),errSnackbarMsg:"ACCEPT_TERMS_ERR"}),this.affirmUKClassification$=this.rest.createApiEffect({ofType:qe.a,apiStream:({classification:t})=>this.userService.affirmUKClassification(t),onSuccess:()=>Object(Ve.a)([Object(le.l)(),Object(st.c)()]),errSnackbarMsg:"UK_RETAIL_POPUP"}),this.saveFrontendData$=this.rest.createApiEffect({ofType:[le.e,le.d,le.v,le.D],loading:le.e.type,apiStream:()=>Object($e.a)([this.store.pipe(Object(nt.n)(bt.m)),this.store.pipe(Object(nt.n)(bt.a))]).pipe(Object(C.a)(([t,e])=>t?this.userService.saveFrontendData(e):Et.a)),errSnackbarMsg:"UPDATE_PREFS_ERR"}),this.setNewsletter$=this.rest.createApiEffect({ofType:le.C,apiStream:({newsletterEnabled:t})=>this.userService.updateNewsletter(t),errSnackbarMsg:"CHANGE_NEWSLETTER_ERR"}),this.getAPIKeys$=this.rest.createApiEffect({ofType:le.q,apiStream:()=>this.userService.getAPIKeys(),onSuccess:t=>Object(p.a)(Object(le.z)(t)),errSnackbarMsg:"GET_API_KEYS_ERR"}),this.createAPIKey$=this.rest.createApiEffect({ofType:le.h,loading:le.h.type,apiStream:t=>this.userService.createAPIKey(t),onSuccess:({key:t})=>Object(Ve.a)([Object(le.c)(t),Object(st.c)(),Object(st.g)({name:"private-key",inputs:{publicKey:t.publicKey,privateKey:t.privateKey}}),Object(st.j)({message:"SNACKBAR.CREATE_KEY_SUCCESS"})]),errSnackbarMsg:"CREATE_API_KEY_ERR"}),this.deleteAPIKey$=this.rest.createApiEffect({ofType:le.j,loading:le.j.type,apiStream:t=>this.userService.deleteAPIKey(t),onSuccess:t=>Object(Ve.a)([Object(le.u)({keyId:t}),Object(st.c)(),Object(st.j)({message:"SNACKBAR.DELETE_KEY_SUCCESS"})]),errSnackbarMsg:"DELETE_API_KEY_ERR"}),this.resetAPIKey$=this.rest.createApiEffect({ofType:le.w,loading:le.w.type,apiStream:t=>this.userService.resetAPIKey(t),onSuccess:()=>Object(Ve.a)([Object(st.c)(),Object(st.j)({message:"SNACKBAR.RESET_KEY_SUCCESS"})]),errSnackbarMsg:"RESET_API_KEY_ERR"}),this.fetchEmailAlerts$=this.rest.createApiEffect({ofType:le.k,loading:le.k.type,apiStream:()=>this.userService.fetchEmailAlerts(),onSuccess:t=>Object(p.a)(Object(le.B)(t))}),this.changeEmailAlerts$=this.rest.createApiEffect({ofType:le.f,loading:le.f.type,apiStream:t=>this.userService.changeEmailAlerts(t),onSuccess:t=>Object(Ve.a)([Object(le.B)(t),Object(st.j)({message:"SNACKBAR.ALERTS_CHANGED_SUCCESS"})]),errSnackbarMsg:"CHANGE_ALERTS_ERR"}),this.getSubAccounts$=this.rest.createApiEffect({ofType:le.r,apiStream:()=>this.userService.getSubAccounts(),onSuccess:t=>Object(Ve.a)([Object(le.E)({accounts:t})])}),this.fetchUserDocs$=this.rest.createApiEffect({ofType:le.n,apiStream:()=>this.userService.getUserDocs(),onSuccess:t=>Object(Ve.a)([Object(le.H)({docs:t}),Object(le.g)(),Object(st.i)()])}),this.respondUserDoc$=this.rest.createApiEffect({ofType:le.y,apiStream:t=>this.userService.respondUserDoc(t),onSuccess:()=>Object(Ve.a)([Object(le.n)(),Object(st.j)({message:"SNACKBAR.TERMS_RESPONSE_SAVED"})]),errSnackbarMsg:"DOC_RESPOND_ERR"}),this.checkUserTerms$=Object(ae.d)(()=>this.actions.pipe(Object(ae.e)(le.g),Object(J.a)(this.store.pipe(Object(z.m)(bt.i))),Object(S.a)(([t,e])=>{var n,i,r,s,o;if("sgb_platform"===(null===(n=e.details)||void 0===n?void 0:n.platformName)){const t=e.documents.find(t=>"sgb_terms_and_conditions"===t.documentName),n=e.documents.find(t=>"terms_and_conditions"===t.documentName);if(!t&&n)return void this.store.dispatch(Object(st.g)({name:"sg-broker-terms"}));if((null===(i=e.details)||void 0===i?void 0:i.external)&&!t&&!n)return void this.store.dispatch(Object(st.g)({name:"external-terms"}))}if((null===(r=e.details)||void 0===r?void 0:r.isRestricted)&&(null===(s=e.details)||void 0===s?void 0:s.countryCode)){const t=Object(gn.b)(null===(o=e.details)||void 0===o?void 0:o.countryCode);if(gn.a.includes(t)){const e=this.translate.instant("RESTRICTED.POPUP."+t);this.store.dispatch(Object(st.g)({name:"confirmation",inputs:{title:"DIALOG.RESTRICTED.TITLE",body:`\n

    ${e}

    \n `,buttons:[{label:"BUTTON.CLOSE",colour:"accent",actions:[Object(st.c)()]}]}}))}}})),{dispatch:!1}),this.trySsoActivation$=Object(ae.d)(()=>this.actions.pipe(Object(ae.e)(le.H),Object(J.a)(this.store.pipe(Object(z.m)(Ct.e))),Object(C.a)(([t,e])=>t.docs.find(t=>"sgb_terms_and_conditions"===t.documentName)&&"NONE"===e?Object(p.a)(Object(le.t)()):Et.a))),this.fetchUserVolumes$=this.rest.createApiEffect({ofType:le.p,loading:le.p.type,apiStream:()=>this.userService.fetchUserVolumes(),onSuccess:t=>Object(p.a)(Object(le.K)({volumes:t})),errSnackbarMsg:"FETCH_USER_FEES"}),this.fetchUserAlgos$=this.rest.createApiEffect({ofType:le.m,loading:le.m.type,apiStream:()=>this.userService.getUserAlgos(),onSuccess:({algoIds:t})=>Object(p.a)(Object(le.F)({algos:t})),errSnackbarMsg:"FETCH_USER_ALGOS"}),this.createAlgo$=this.rest.createApiEffect({ofType:le.i,apiStream:({label:t})=>this.userService.createAlgo(t),onSuccess:()=>Object(Ve.a)([Object(le.m)(),Object(st.c)(),Object(st.j)({message:"SNACKBAR.CREATE_ALGO"})]),errSnackbarMsg:"CREATE_ALGO"}),this.signAlgo$=this.rest.createApiEffect({ofType:le.L,apiStream:({id:t})=>this.userService.signAlgo(t),onSuccess:()=>Object(Ve.a)([Object(le.m)(),Object(st.c)(),Object(st.j)({message:"SNACKBAR.SIGNED_ALGO"})]),errSnackbarMsg:"SIGNED_ALGO"})}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(z.b),i.Yb(ae.a),i.Yb(Se.a),i.Yb(U.e),i.Yb(ye.b))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),vn=(()=>{class t{constructor(t){this.actions=t,this.checkTier$=Object(ae.d)(()=>this.actions.pipe(Object(ae.e)(qe.b),Object(k.a)(5e3),Object(y.a)(()=>Object(le.l)())))}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(ae.a))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();var _n=n("lx5p");let yn=(()=>{class t{constructor(t,e,n,i,r,s,o){this.actions=t,this.walletsService=e,this.translate=n,this.ws=i,this.rest=r,this.feature=s,this.store=o,this.openWalletsFeed$=Object(ae.d)(()=>this.actions.pipe(Object(ae.e)(ct.o),Object(S.a)(()=>this.ws.openFeed({feed:this.feature.isEnabled("flex")?"balances":"account_balances_and_margins"}))),{dispatch:!1}),this.closeWalletsFeed$=Object(ae.d)(()=>this.actions.pipe(Object(ae.e)(ct.e),Object(S.a)(()=>this.ws.closeFeed({feed:this.feature.isEnabled("flex")?"balances":"account_balances_and_margins"}))),{dispatch:!1}),this.addDemoMoney$=this.rest.createApiEffect({ofType:ct.a,apiStream:()=>this.walletsService.addDemoMoney(),onSuccess:()=>Object(Ve.a)([Object(st.j)({message:"SNACKBAR.DEMO_BALANCES_REPLENISHED"})]),errSnackbarMsg:"REPLENISH_BALANCES_ERR"}),this.getCryptoDepositDetails$=this.rest.createApiEffect({ofType:ct.i,apiStream:()=>this.walletsService.getDepositDetails(),onSuccess:({status:t,addresses:e})=>{if("accountCanNotDeposit"===t){const t=this.translate.instant("ERROR.GET_DEPOSIT_ERR");return Object(p.a)(Object(st.j)({message:t,class:"warn"}))}return Object(p.a)(Object(ct.t)(e))},errSnackbarMsg:!1}),this.getFiatDepositDetails$=this.rest.createApiEffect({ofType:ct.k,apiStream:()=>this.walletsService.getFiatDepositDetails(),onSuccess:t=>Object(p.a)(Object(ct.u)(t)),errSnackbarMsg:!1}),this.getFiatWithdrawalAddresses$=this.rest.createApiEffect({ofType:ct.l,loading:ct.l.type,apiStream:()=>this.walletsService.getFiatWithdrawalDetails(),onSuccess:t=>Object(p.a)(Object(ct.v)({addresses:t})),errSnackbarMsg:!1}),this.addFiatWithdrawalAddress$=this.rest.createApiEffect({ofType:ct.b,loading:ct.b.type,apiStream:t=>this.walletsService.addFiatWithdrawalDetails(t),onSuccess:()=>Object(p.a)(Object(ct.l)()),errSnackbarMsg:"ADD_FIAT_WITHDRAWAL"}),this.removeFiatWithdrawalAddress$=this.rest.createApiEffect({ofType:ct.p,loading:ct.p.type,apiStream:({addressUid:t})=>this.walletsService.removeFiatWithdrawallDetails(t),onSuccess:()=>Object(p.a)(Object(ct.l)()),errSnackbarMsg:"REMOVE_FIAT_WITHDRAWAL"}),this.generateCryptoDepositAddress$=Object(ae.d)(()=>this.actions.pipe(Object(ae.e)(ct.g),Object(C.a)(({wallet:t})=>this.walletsService.generateDepositAddress(t.name).pipe(Object(C.a)(({addresses:e})=>[Object(ct.t)(e),Object(st.c)(),Object(st.g)({name:"wallet-transaction",inputs:{type:"deposit",originWallet:t}})]),Object(xt.a)(({error:t})=>{const e=this.translate.instant("ERROR.GET_DEPOSIT_ERR"),n=this.translate.instant("ERROR_CODE."+t.errors[0].code);return[Object(st.j)({message:`${e} - ${n}`,class:"warn"})]}))))),this.walletTransfer$=this.rest.createApiEffect({ofType:ct.y,loading:ct.y.type,apiStream:t=>this.walletsService.transferCrypto(t),onSuccess:()=>Object(Ve.a)([Object(st.c)(),Object(st.j)({message:"SNACKBAR.WALLET_TRANSFER_SUCCESS"})]),errSnackbarMsg:"WALLET_TRANSFER_ERR"}),this.subAccountWalletTransfer$=this.rest.createApiEffect({ofType:ct.x,apiStream:t=>this.walletsService.subAccountWalletTransfer(t),onSuccess:()=>Object(Ve.a)([Object(st.c)(),Object(st.j)({message:"SNACKBAR.WALLET_TRANSFER_SUCCESS"}),Object(le.r)()]),errSnackbarMsg:"WALLET_TRANSFER_ERR"}),this.withdrawCrypto$=Object(ae.d)(()=>this.actions.pipe(Object(ae.e)(ct.z),Object(C.a)(t=>this.walletsService.cryptoWithdrawal(t).pipe(Object(C.a)(({withdrawalRequestId:t})=>{const e=Object(ct.A)({id:t});return Object(p.a)(Object(st.g)({name:"otp-confirmation",inputs:{title:"DIALOG.WITHDRAWAL_CONFIRMATION.TITLE",action:e}}))}),Object(xt.a)(({error:t})=>{const e=this.translate.instant("ERROR.CRYPTO_WITHDRAWAL_ERR"),n=this.translate.instant("ERROR_CODE."+t.errors[0].code);return[Object(st.j)({message:`${e} - ${n}`,class:"warn"})]}))))),this.withdrawCryptoConfirm$=Object(ae.d)(()=>this.actions.pipe(Object(ae.e)(ct.A),Object(C.a)(({id:t,otp:e})=>this.walletsService.confirmCryptoWithdrawal(t,e).pipe(Object(C.a)(()=>[Object(st.j)({message:"SNACKBAR.WALLET_WITHDRAWAL_SUCCESS"}),Object(st.c)()]),Object(xt.a)(({error:t})=>{const e=this.translate.instant("ERROR.WITHDRAWAL_CONFIRMATION_ERR"),n=this.translate.instant("ERROR_CODE."+t.errors[0].code);return[Object(st.j)({message:`${e} - ${n}`,class:"warn"}),Object(st.c)()]}))))),this.withdrawCryptoExternal$=Object(ae.d)(()=>this.actions.pipe(Object(ae.e)(ct.B),Object(C.a)(({amount:t,currency:e,source:n})=>this.walletsService.externalWithdrawal(t,e,n).pipe(Object(C.a)(()=>{const n={title:"DIALOG.WITHDRAWAL_TO_KRAKEN.TITLE",subtitle:"DIALOG.WITHDRAWAL_TO_KRAKEN.SUBTITLE",body:this.translate.instant("DIALOG.WITHDRAWAL_TO_KRAKEN.BODY",{amount:t,currency:e}),buttons:[{label:"BUTTON.VIEW_KRAKEN_STATUS",colour:"accent",actions:[Object(st.c)(),Object(st.h)({url:"https://kraken.com/u/funding/transfers",target:"_blank"})]}]};return[Object(st.g)({name:"confirmation",inputs:n})]}),Object(xt.a)(({error:t})=>{const e=this.translate.instant("ERROR.CRYPTO_WITHDRAWAL_ERR"),n=this.translate.instant("ERROR_CODE."+t.errors[0].code);return[Object(st.j)({message:`${e} - ${n}`,class:"warn"})]}))))),this.getDetailedWalletData$=Object(ae.d)(()=>this.actions.pipe(Object(ae.e)(ct.j),Object(C.a)(({wallet:t})=>this.walletsService.getDetailedMargin(t).pipe(Object(C.a)(e=>[Object(st.g)({name:"margin-details",inputs:{wallet:t,margin:e}})]),Object(xt.a)(({error:t})=>{const e=this.translate.instant("ERROR.DETAILED_MARGIN_ERR"),n=this.translate.instant("ERROR_CODE."+t.errors[0].code);return[Object(st.j)({message:`${e} - ${n}`,class:"warn"})]}))))),this.cancelWithdrawal$=Object(ae.d)(()=>this.actions.pipe(Object(ae.e)(ct.c),Object(C.a)(({withdrawalId:t})=>this.walletsService.cancelWithdrawal(t).pipe(Object(C.a)(()=>[Object(st.j)({message:"SNACKBAR.WITHDRAWAL_CANCELLED"})]),Object(xt.a)(({error:t})=>{const e=this.translate.instant("ERROR.CANCEL_WITHDRAWAL_ERR"),n=this.translate.instant("ERROR_CODE."+t.errors[0].code);return[Object(st.j)({message:`${e} - ${n}`,class:"warn"})]}))))),this.openTransferDialog$=Object(ae.d)(()=>this.actions.pipe(Object(ae.e)(ct.n),Object(J.a)(this.store.pipe(Object(z.m)(Re.o),Object(y.a)(_n.O))),Object(S.a)(([t,e])=>{e&&this.store.dispatch(Object(st.g)({name:"wallet-transaction",inputs:{type:"crypto-transfer",originWallet:e}}))})),{dispatch:!1}),this.initiateManualFiatWithdrawal$=this.rest.createApiEffect({ofType:ct.m,loading:ct.m.type,apiStream:t=>this.walletsService.initiateManualWithdrawal(t),onSuccess:()=>Object(Ve.a)([Object(st.j)({message:"SNACKBAR.INITIATE_MANUAL_FIAT_WITHDRAWAL"}),Object(Qe.h)(),Object(st.c)()]),errSnackbarMsg:"INITIATE_MANUAL_FIAT_WITHDRAWAL"}),this.fetchAuthenticatedWallets$=this.rest.createApiEffect({ofType:ct.f,apiStream:()=>this.walletsService.fetchAuthenticatedWallets().pipe(Object(J.a)(this.store.select(bt.a))),onSuccess:([t,e])=>t.flexibleFutures?e.flexTourShown?Object(Ve.a)([Object(ct.r)({authenticatedWallets:t}),Object(an.g)(),Object(an.i)()]):Object(Ve.a)([Object(ct.r)({authenticatedWallets:t}),Object(an.g)(),Object(an.i)(),Object(st.A)({tour:"flex"}),Object(le.e)({flexTourShown:!0})]):Object(p.a)(Object(ct.r)({authenticatedWallets:t})),errSnackbarMsg:"Failed to fetch authenticated wallets"}),this.getAvailableTransferPreferences$=Object(ae.d)(()=>this.actions.pipe(Object(ae.e)(ct.h),Object(C.a)(()=>this.walletsService.fetchAvailableTransferPreferences().pipe(Object(C.a)(({availableTransferPreferences:t})=>[Object(ct.s)({availableTransferPreferences:t})]),Object(xt.a)(({})=>{const t=this.translate.instant("Failed to fetch transfer preferences");return[Object(st.j)({message:""+t,class:"warn"})]}))))),this.changeTransferPreference$=Object(ae.d)(()=>this.actions.pipe(Object(ae.e)(ct.d),Object(C.a)(({transferPreference:t})=>this.walletsService.changeTransferPreference(t).pipe(Object(C.a)(()=>[Object(le.l)(),Object(st.j)({message:"Succesfully changed inbound transfer preference"}),Object(st.c)()]),Object(xt.a)(({})=>{const t=this.translate.instant("Failed to set transfer preferences");return[Object(st.c)(),Object(st.j)({message:""+t,class:"warn"})]})))))}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(ae.a),i.Yb(xe),i.Yb(U.e),i.Yb(Rt.a),i.Yb(ye.b),i.Yb(wt.a),i.Yb(z.b))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),On=(()=>{class t{constructor(t,e){this.store=t,this.actions=e,this.persistWorkspaces$=Object(ae.d)(()=>this.actions.pipe(Object(ae.e)(Lt.i,Lt.l,Lt.c,Lt.b,Lt.h,Lt.e,Lt.a,Lt.g,Lt.f,Lt.d,Lt.j),Object(J.a)(this.store.pipe(Object(z.m)(Nt.f)),this.store.pipe(Object(z.m)(Nt.b))),Object(S.a)(([,t,e])=>{Object(et.c)(ut.v,t),Object(et.c)(ut.a,e)})),{dispatch:!1}),this.deleteWorkspace$=Object(ae.d)(()=>this.actions.pipe(Object(ae.e)(Lt.e),Object(S.a)(({id:t})=>{Object(et.b)(`${ut.d}-${t}`,null)&&localStorage.removeItem(`${ut.d}-${t}`)})),{dispatch:!1})}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(z.b),i.Yb(ae.a))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();var Cn=n("dWHr");let wn=(()=>{class t{constructor(t,e){this.actions=t,this.ws=e,this.openPricesFeed$=Object(ae.d)(()=>this.actions.pipe(Object(ae.e)(Cn.a,an.m),Object(S.a)(()=>{this.ws.openFeed({feed:"prices"})})),{dispatch:!1})}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(ae.a),i.Yb(Rt.a))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),Tn=(()=>{class t{constructor(t,e){this.store=t,this.router=e,this.isAffiliate$=this.store.pipe(Object(z.m)(dt.b))}canActivate(){return this.isAffiliate$.pipe(Object(O.a)(t=>void 0!==t),Object(y.a)(t=>!!t||(this.router.navigate(["/futures"]),this.store.dispatch(Object(st.j)({message:"ERROR.GET_AFFILIATE_ERR",class:"warn"})),!1)))}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(z.b),i.Yb(c.d))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();var Sn=n("iT4G");let kn=(()=>{class t{constructor(t,e,n){this.store=t,this.auth=e,this.router=n,this.acceptedTerms$=this.store.pipe(Object(z.m)(bt.z)),this.loggedIn$=this.auth.isSignedIn().pipe(Object(Sn.a)(2e3),Object(y.a)(()=>!0),Object(xt.a)(()=>Object(p.a)(!1))),this.showAssignment$=Object(G.a)([this.acceptedTerms$,this.loggedIn$])}canActivate(){return this.showAssignment$.pipe(Object(y.a)(([t,e])=>e?!!t||(this.store.dispatch(Object(st.g)({name:"assignment-disclaimer"})),!1):(this.router.navigate(["/futures"]),this.store.dispatch(Object(st.j)({message:"You must be signed in to access this view",class:"warn"})),!1)))}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(z.b),i.Yb(fe.a),i.Yb(c.d))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),En=(()=>{class t{constructor(t,e,n){this.router=t,this.store=e,this.auth=n,this.loggedIn$=this.auth.isSignedIn().pipe(Object(Sn.a)(2e3),Object(y.a)(()=>!0),Object(xt.a)(()=>Object(p.a)(!1)))}canActivate(){return this.loggedIn$.pipe(Object(y.a)(t=>{if(t)return!0;{this.router.navigate(["/futures"]);const t={action:Object(st.g)({name:"sign-in"}),actionKey:"LABEL.OPEN_LOGIN_DIALOG"};return this.store.dispatch(Object(st.k)("LABEL.AUTHENTICATION_GUARD","LABEL.UNAUTHENTICATED",t)),!1}}))}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(c.d),i.Yb(z.b),i.Yb(fe.a))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();var xn=n("r9za"),Pn=n("I2Ru"),An=n("lruz");n("rP1E");const In=[ue.a,B.b],Mn=[En,kn,xn.a,Tn,Pn.a,An.a],Dn=[ye.b,Te.a,wt.a,fe.a,Se.a,Rt.a,pe,Mt,ge.a,$t.a,ve,xe,Ce,we,he,_e.a,be.a,Bt],Rn=[tn,mn,ln,hn,ze,rn,cn,bn,yn,en,vn,We,Fe,On,Ge,wn];let jn=(()=>{class t{static forRoot(){return{ngModule:t,providers:[...Mn,...Dn]}}}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},imports:[[...In,B.b.forChild(),z.d.forRoot(Ue,{runtimeChecks:{strictActionSerializability:!1,strictStateSerializability:!1,strictActionTypeUniqueness:!0,strictActionWithinNgZone:!0}}),ae.b.forRoot(Rn),...r.a],ue.a,B.b]}),t})();var Ln=n("gNrm");const Nn=[{path:"",pathMatch:"full",redirectTo:"futures"},{path:"outdated",loadChildren:()=>n.e(12).then(n.bind(null,"Xmr6")).then(t=>t.OutdatedModule)},{path:"futures",loadChildren:()=>Promise.all([n.e(0),n.e(9)]).then(n.bind(null,"832e")).then(t=>t.FuturesTradingModule),data:{marketClass:"futures"}},{path:"wallets",canActivate:[En],loadChildren:()=>n.e(16).then(n.bind(null,"Xejp")).then(t=>t.WalletsModule)},{path:"settings",canActivate:[En],loadChildren:()=>n.e(6).then(n.bind(null,"7wo0")).then(t=>t.SettingsModule)},{path:"history",canActivate:[En],loadChildren:()=>n.e(10).then(n.bind(null,"9u+z")).then(t=>t.HistoryModule)},{path:"support",loadChildren:()=>n.e(14).then(n.bind(null,"ZlwT")).then(t=>t.SupportModule)},{path:"assignment",canActivate:[kn],loadChildren:()=>n.e(8).then(n.bind(null,"L6xC")).then(t=>t.AssignmentProgramModule)},{path:"affiliate",canActivate:[En,Tn],loadChildren:()=>n.e(7).then(n.bind(null,"d326")).then(t=>t.AffiliateProgramModule)},{path:"verification",canActivate:[En,xn.a],loadChildren:()=>n.e(15).then(n.bind(null,"Kw+X")).then(t=>t.VerificationModule)},{path:"subaccounts",canActivate:[En],loadChildren:()=>n.e(13).then(n.bind(null,"g/4G")).then(({SubaccountsModule:t})=>t)},{path:"maintenance",loadChildren:()=>n.e(11).then(n.bind(null,"8OiN")).then(({MaintenanceModule:t})=>t)},{path:"**",redirectTo:"futures"}],Un=[o.a,N.register("ngsw-worker.js",{enabled:r.b.production}),a.b,c.h.forRoot(Nn,{enableTracing:!1,preloadingStrategy:c.c}),U.c.forRoot({loader:{provide:U.b,useFactory:(t,e)=>new F(t,"./assets/i18n/",".json?version="+e.appVersion),deps:[s.a,lt.a]}}),B.b.forRoot({loader:s.a,markedOptions:{provide:B.d,useFactory:function(){const t=new Ln.Renderer,e=t.link;return t.link=(n,i,r)=>e.call(t,n,i,r).replace(/^{class t extends i.n{handleError(t){console.error(t)}}return t.\u0275fac=function(e){return Bn(e||t)},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();const Bn=i.Wb(Fn);let zn=(()=>{class t{}return t.\u0275mod=i.Mb({type:t,bootstrap:[se]}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},providers:[oe,{provide:i.n,useClass:Fn},{provide:"env",useValue:r.b.production?"prod":"dev"}],imports:[Un]}),t})();r.b.production&&Object(i.U)(),o.d().bootstrapModule(zn,{ngZoneEventCoalescing:!0}).catch(t=>console.error(t))},"zW++":function(t,e,n){"use strict";n.d(e,"a",(function(){return h})),n.d(e,"b",(function(){return d}));var i=n("kZht"),r=n("pTnX"),s=n("jL3B"),o=n("5XID"),a=n("FxgA");let c=0;class l{}const u=Object(r.y)(l);let h=(()=>{class t extends u{constructor(t,e,n,i,r){super(),this._ngZone=t,this._elementRef=e,this._ariaDescriber=n,this._renderer=i,this._animationMode=r,this._hasContent=!1,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=c++}get color(){return this._color}set color(t){this._setColor(t),this._color=t}get overlap(){return this._overlap}set overlap(t){this._overlap=Object(o.c)(t)}get description(){return this._description}set description(t){if(t!==this._description){const e=this._badgeElement;this._updateHostAriaDescription(t,this._description),this._description=t,e&&(t?e.setAttribute("aria-label",t):e.removeAttribute("aria-label"))}}get hidden(){return this._hidden}set hidden(t){this._hidden=Object(o.c)(t)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}ngOnChanges(t){const e=t.content;if(e){const t=e.currentValue;this._hasContent=null!=t&&(""+t).trim().length>0,this._updateTextContent()}}ngOnDestroy(){const t=this._badgeElement;t&&(this.description&&this._ariaDescriber.removeDescription(t,this.description),this._renderer.destroyNode&&this._renderer.destroyNode(t))}getBadgeElement(){return this._badgeElement}_updateTextContent(){return this._badgeElement?this._badgeElement.textContent=this._stringifyContent():this._badgeElement=this._createBadgeElement(),this._badgeElement}_createBadgeElement(){const t=this._renderer.createElement("span");return this._clearExistingBadges("mat-badge-content"),t.setAttribute("id","mat-badge-content-"+this._id),t.classList.add("mat-badge-content"),t.textContent=this._stringifyContent(),"NoopAnimations"===this._animationMode&&t.classList.add("_mat-animation-noopable"),this.description&&t.setAttribute("aria-label",this.description),this._elementRef.nativeElement.appendChild(t),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{t.classList.add("mat-badge-active")})}):t.classList.add("mat-badge-active"),t}_updateHostAriaDescription(t,e){const n=this._updateTextContent();e&&this._ariaDescriber.removeDescription(n,e),t&&this._ariaDescriber.describe(n,t)}_setColor(t){if(t!==this._color){const e=this._elementRef.nativeElement.classList;this._color&&e.remove("mat-badge-"+this._color),t&&e.add("mat-badge-"+t)}}_clearExistingBadges(t){const e=this._elementRef.nativeElement;let n=e.children.length;for(;n--;){const i=e.children[n];i.classList.contains(t)&&e.removeChild(i)}}_stringifyContent(){const t=this.content;return null==t?"":""+t}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.B),i.Ob(i.l),i.Ob(s.c),i.Ob(i.G),i.Ob(a.a,8))},t.\u0275dir=i.Jb({type:t,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(t,e){2&t&&i.Gb("mat-badge-overlap",e.overlap)("mat-badge-above",e.isAbove())("mat-badge-below",!e.isAbove())("mat-badge-before",!e.isAfter())("mat-badge-after",e.isAfter())("mat-badge-small","small"===e.size)("mat-badge-medium","medium"===e.size)("mat-badge-large","large"===e.size)("mat-badge-hidden",e.hidden||!e._hasContent)("mat-badge-disabled",e.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],position:["matBadgePosition","position"],size:["matBadgeSize","size"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],description:["matBadgeDescription","description"],hidden:["matBadgeHidden","hidden"],content:["matBadge","content"]},features:[i.zb,i.Ab]}),t})(),d=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},imports:[[s.a,r.j],r.j]}),t})()},za3o:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("kZht");let r=(()=>{class t{constructor(t,e){this.renderer=t,this.element=e}ngOnInit(){this.renderer.addClass(this.element.nativeElement,"global__text--capitalize")}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.G),i.Ob(i.l))},t.\u0275dir=i.Jb({type:t,selectors:[["","capitalize",""]]}),t})()},zdQl:function(t,e,n){"use strict";n.d(e,"d",(function(){return c})),n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return h})),n.d(e,"c",(function(){return d}));var i=n("zqNl"),r=n("eMi/"),s=n("p5wL");const o={affiliateDetails:{isAffiliate:void 0,affiliateUid:void 0,stats:{total:{accounts:0,received:{xbt:0,xrp:0,eth:0,ltc:0}},recent:{accounts:0,received:{xbt:0,xrp:0,eth:0,ltc:0}}},revenuePercentage:0,referredFeeDiscount:0}},a=Object(i.i)(o,Object(i.k)(r.c,()=>o),Object(i.k)(r.e,(t,{details:e})=>Object(s.b)(e,t,"affiliateDetails")),Object(i.k)(r.d,(t,{code:e})=>Object(s.b)(e,t,"affiliateDetails","affiliateUid")));function c(t,e){return a(t,e)}const l=Object(i.h)("affiliate"),u=Object(i.j)(l,t=>t.affiliateDetails),h=Object(i.j)(l,t=>t.affiliateDetails.isAffiliate),d=Object(i.j)(l,t=>t.affiliateDetails.affiliateUid)},zg4B:function(t,e,n){var i=n("JgBV");function r(t){this.mode=i.NUMERIC,this.data=t.toString()}r.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(t){var e,n,i;for(e=0;e+3<=this.data.length;e+=3)n=this.data.substr(e,3),i=parseInt(n,10),t.put(i,10);var r=this.data.length-e;r>0&&(n=this.data.substr(e),i=parseInt(n,10),t.put(i,3*r+1))},t.exports=r},zho4:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("lx5p"),r=n("kZht");let s=(()=>{class t{get delays(){if("string"==typeof this.delay){const[t=0,e=0]=this.delay.split(",").map(i.M).map(Number);return[t,e]}return"number"==typeof this.delay?[this.delay,this.delay]:this.delay}get startDelay(){return this.delays[0]}get endDelay(){return this.delays[1]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Jb({type:t,selectors:[["","sbDelay",""]],inputs:{delay:["sbDelay","delay"]},exportAs:["sbDelay"]}),t})()},zio8:function(t,e,n){"use strict";n.r(e),n.d(e,"FundingRatesComponent",(function(){return M}));var i=n("mcff"),r=n("O30t"),s=n("og7C"),o=n("9hG1"),a=n("KQpv"),c=n.n(a),l=n("lx5p"),u=n("kZht"),h=n("rfPA"),d=n("bBQR"),p=n("EmXI"),f=n("za3o"),b=n("IOEv"),g=n("An66"),m=n("pTnX"),v=n("anSm"),_=n("chaP"),y=n("LbKT"),O=n("aDqW");function C(t,e){if(1&t&&(u.Ub(0,"mat-option",15),u.Qc(1),u.gc(2,"date"),u.Tb()),2&t){const t=e.$implicit,n=u.fc();u.mc("value",n.monthId(t)),u.Cb(1),u.Sc(" ",u.jc(2,2,t.toMillis(),"MMMM y","UTC")," ")}}function w(t,e){1&t&&u.Pb(0,"tr",16)}function T(t,e){1&t&&u.Pb(0,"tr",17)}function S(t,e){1&t&&(u.Ub(0,"th",18),u.Qc(1),u.gc(2,"translate"),u.Tb()),2&t&&(u.Cb(1),u.Sc("",u.hc(2,1,"COLUMN.TIMESPAN")," (UTC)"))}function k(t,e){if(1&t&&(u.Ub(0,"td",19),u.Qc(1),u.gc(2,"date"),u.gc(3,"date"),u.Tb()),2&t){const t=e.$implicit,n=u.fc();u.Cb(1),u.Tc(" ",u.jc(2,2,t.timestamp.toMillis(),"d MMM y - HH:mm","UTC")," \u2013 ",u.jc(3,6,n.fundingPeriodEnd(t.timestamp).toMillis(),"d MMM y - HH:mm","UTC")," ")}}function E(t,e){1&t&&(u.Ub(0,"th",18),u.Qc(1),u.gc(2,"translate"),u.Tb()),2&t&&(u.Cb(1),u.Rc(u.hc(2,1,"COLUMN.HOURLY_RELATIVE_RATE")))}function x(t,e){if(1&t&&(u.Ub(0,"td",20),u.Qc(1),u.gc(2,"number"),u.Tb()),2&t){const t=e.$implicit;u.mc("pnl",t.relativeFundingRate),u.Cb(1),u.Sc(" ",u.ic(2,2,100*t.relativeFundingRate,"1.10-10")," ")}}function P(t,e){1&t&&(u.Ub(0,"th",18),u.Qc(1),u.gc(2,"translate"),u.Tb()),2&t&&(u.Cb(1),u.Rc(u.hc(2,1,"COLUMN.HOURLY_ABSOLUTE_RATE")))}function A(t,e){if(1&t&&(u.Ub(0,"td",20),u.Qc(1),u.gc(2,"number"),u.Tb()),2&t){const t=e.$implicit;u.mc("pnl",t.fundingRate),u.Cb(1),u.Sc(" ",u.ic(2,2,t.fundingRate,"1.10-10")," ")}}const I=c()("app:dialog:funding-rates");let M=(()=>{class t{constructor(t){var e;this.inputs=t,this.monthId=D,this.fundingPeriodEnd=j,this.rates=(e=this.inputs.rates,Object(s.a)(e).map(t=>Object.assign(Object.assign({},t),{timestamp:o.DateTime.fromISO(t.timestamp)}))),this.selectedMonth=o.DateTime.utc().startOf("month"),this.monthsSinceLaunch=function(t){const e=o.DateTime.utc().startOf("month"),n=[e];let i=e;for(;i>t;)i=i.minus({months:1}),n.push(i);return n}(function(t){return t.minBy(t=>t.timestamp.toMillis()).timestamp}(this.rates)),this.tableColumns=["date","relative_rate","absolute_rate"],this.tableData=new r.k(R(this.rates,this.selectedMonth).toArray())}selectMonth(t){const[e,n]=t.split("-").map(Number);I(`selecting month - year: ${e}, month: ${n}`),this.selectedMonth=o.DateTime.fromObject({year:e,month:n,zone:"utc"}),this.tableData.data=R(this.rates,this.selectedMonth).toArray()}}return t.\u0275fac=function(e){return new(e||t)(u.Ob(i.a))},t.\u0275cmp=u.Ib({type:t,selectors:[["funding-rates"]],decls:20,vars:9,consts:[["heading","DIALOG.FUNDING_RATES.TITLE"],[1,"funding-rates"],["color","accent","appearance","fill",1,"month"],["capitalize",""],["matNativeControl","",3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["mat-table","",3,"dataSource"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["matColumnDef","date"],["mat-header-cell","",4,"matHeaderCellDef"],["body","","mat-cell","",4,"matCellDef"],["matColumnDef","relative_rate"],["body","","mono","","mat-cell","",3,"pnl",4,"matCellDef"],["matColumnDef","absolute_rate"],[3,"value"],["mat-header-row",""],["mat-row",""],["mat-header-cell",""],["body","","mat-cell",""],["body","","mono","","mat-cell","",3,"pnl"]],template:function(t,e){1&t&&(u.Ub(0,"pro-dialog",0),u.Ub(1,"section",1),u.Ub(2,"mat-form-field",2),u.Ub(3,"mat-label",3),u.Qc(4),u.gc(5,"translate"),u.Tb(),u.Ub(6,"mat-select",4),u.bc("selectionChange",(function(t){return e.selectMonth(t.value)})),u.Oc(7,C,3,6,"mat-option",5),u.Tb(),u.Tb(),u.Ub(8,"table",6),u.Oc(9,w,1,0,"tr",7),u.Oc(10,T,1,0,"tr",8),u.Sb(11,9),u.Oc(12,S,3,3,"th",10),u.Oc(13,k,4,10,"td",11),u.Rb(),u.Sb(14,12),u.Oc(15,E,3,3,"th",10),u.Oc(16,x,3,5,"td",13),u.Rb(),u.Sb(17,14),u.Oc(18,P,3,3,"th",10),u.Oc(19,A,3,5,"td",13),u.Rb(),u.Tb(),u.Tb(),u.Tb()),2&t&&(u.Cb(4),u.Rc(u.hc(5,7,"TAG.MONTH")),u.Cb(2),u.mc("value",e.monthId(e.selectedMonth)),u.Cb(1),u.mc("ngForOf",e.monthsSinceLaunch),u.Cb(1),u.mc("dataSource",e.tableData),u.Cb(1),u.mc("matHeaderRowDef",e.tableColumns)("matHeaderRowDefSticky",!0),u.Cb(1),u.mc("matRowDefColumns",e.tableColumns))},directives:[h.a,d.a,p.c,p.f,f.a,b.a,g.m,r.j,r.g,r.i,r.c,r.e,r.b,m.n,r.f,r.h,r.d,r.a,v.a,_.a,y.a],pipes:[O.d,g.e,g.f],styles:[".funding-rates[_ngcontent-%COMP%]{max-height:60vh;overflow:auto;scrollbar-color:var(--i300) transparent;scrollbar-width:thin}@media (max-width:599px){.funding-rates[_ngcontent-%COMP%]{max-height:calc(100% - var(--toolbar-height))}}.mat-column-date[_ngcontent-%COMP%]{white-space:nowrap}.mat-column-date[_ngcontent-%COMP%], .mat-column-relative_rate[_ngcontent-%COMP%]{padding-right:var(--spacing)}.mat-column-absolute_rate[_ngcontent-%COMP%], .mat-column-relative_rate[_ngcontent-%COMP%]{text-align:right}.month[_ngcontent-%COMP%]{margin:var(--spacing);margin-bottom:calc(-1 * var(--spacing))}"],changeDetection:0}),t})();function D(t){return`${t.toUTC().year}-${t.toUTC().month}`}function R(t,e){return t.filter(t=>D(t.timestamp)===D(e)).sortBy(t=>t.timestamp.toMillis(),l.i)}function j(t){return t.plus({hours:1})}},zn8P:function(t,e){function n(t){return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}))}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="zn8P"},zqNl:function(t,e,n){"use strict";n.d(e,"a",(function(){return Y})),n.d(e,"b",(function(){return nt})),n.d(e,"c",(function(){return Pt})),n.d(e,"d",(function(){return At})),n.d(e,"e",(function(){return xt})),n.d(e,"f",(function(){return $})),n.d(e,"g",(function(){return b})),n.d(e,"h",(function(){return ut})),n.d(e,"i",(function(){return Ut})),n.d(e,"j",(function(){return ct})),n.d(e,"k",(function(){return Nt})),n.d(e,"l",(function(){return g})),n.d(e,"m",(function(){return rt}));var i=n("kZht"),r=n("C05f"),s=n("IdLP"),o=n("ZTXN"),a=n("kSHZ"),c=n("A2S1"),l=n("w0kG"),u=n("SrNW"),h=n("iLlD"),d=n("YtkY"),p=n("Ohay");const f={};function b(t,e){if(f[t]=(f[t]||0)+1,"function"==typeof e)return m(t,(...n)=>Object.assign(Object.assign({},e(...n)),{type:t}));switch(e?e._as:"empty"){case"empty":return m(t,()=>({type:t}));case"props":return m(t,e=>Object.assign(Object.assign({},e),{type:t}));default:throw new Error("Unexpected config.")}}function g(){return{_as:"props",_p:void 0}}function m(t,e){return Object.defineProperty(e,"type",{value:t,writable:!1})}const v="@ngrx/store/init";let _=(()=>{class t extends r.a{constructor(){super({type:v})}next(t){if("function"==typeof t)throw new TypeError("\n Dispatch expected an object, instead it received a function.\n If you're using the createAction function, make sure to invoke the function\n before dispatching the action. For example, someAction should be someAction().");if(void 0===t)throw new TypeError("Actions must be objects");if(void 0===t.type)throw new TypeError("Actions must have a type property");super.next(t)}complete(){}ngOnDestroy(){super.complete()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();const y=[_],O=new i.s("@ngrx/store Internal Root Guard"),C=new i.s("@ngrx/store Internal Initial State"),w=new i.s("@ngrx/store Initial State"),T=new i.s("@ngrx/store Reducer Factory"),S=new i.s("@ngrx/store Internal Reducer Factory Provider"),k=new i.s("@ngrx/store Initial Reducers"),E=new i.s("@ngrx/store Internal Initial Reducers"),x=new i.s("@ngrx/store Store Features"),P=new i.s("@ngrx/store Internal Store Reducers"),A=new i.s("@ngrx/store Internal Feature Reducers"),I=new i.s("@ngrx/store Internal Feature Configs"),M=new i.s("@ngrx/store Internal Store Features"),D=new i.s("@ngrx/store Internal Feature Reducers Token"),R=new i.s("@ngrx/store Feature Reducers"),j=new i.s("@ngrx/store User Provided Meta Reducers"),L=new i.s("@ngrx/store Meta Reducers"),N=new i.s("@ngrx/store Internal Resolved Meta Reducers"),U=new i.s("@ngrx/store User Runtime Checks Config"),F=new i.s("@ngrx/store Internal User Runtime Checks Config"),B=new i.s("@ngrx/store Internal Runtime Checks"),z=new i.s("@ngrx/store Check if Action types are unique");function V(t,e={}){const n=Object.keys(t),i={};for(let s=0;se(t),n(e))}}function H(t,e){return Array.isArray(e)&&e.length>0&&(t=$.apply(null,[...e,t])),(e,n)=>{const i=t(e);return(t,e)=>i(t=void 0===t?n:t,e)}}class q extends s.a{}class Q extends _{}let W=(()=>{class t extends r.a{constructor(t,e,n,i){super(i(n,e)),this.dispatcher=t,this.initialState=e,this.reducers=n,this.reducerFactory=i}addFeature(t){this.addFeatures([t])}addFeatures(t){const e=t.reduce((t,{reducers:e,reducerFactory:n,metaReducers:i,initialState:r,key:s})=>{const o="function"==typeof e?function(t){const e=Array.isArray(t)&&t.length>0?$(...t):t=>t;return(t,n)=>(t=e(t),(e,i)=>t(e=void 0===e?n:e,i))}(i)(e,r):H(n,i)(e,r);return t[s]=o,t},{});this.addReducers(e)}removeFeature(t){this.removeFeatures([t])}removeFeatures(t){this.removeReducers(t.map(t=>t.key))}addReducer(t,e){this.addReducers({[t]:e})}addReducers(t){this.reducers=Object.assign(Object.assign({},this.reducers),t),this.updateReducers(Object.keys(t))}removeReducer(t){this.removeReducers([t])}removeReducers(t){t.forEach(t=>{var e,n;this.reducers=(e=this.reducers,n=t,Object.keys(e).filter(t=>t!==n).reduce((t,n)=>Object.assign(t,{[n]:e[n]}),{}))}),this.updateReducers(t)}updateReducers(t){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:"@ngrx/store/update-reducers",features:t})}ngOnDestroy(){this.complete()}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(Q),i.Yb(w),i.Yb(k),i.Yb(T))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();const G=[W,{provide:q,useExisting:W},{provide:Q,useExisting:_}];let Y=(()=>{class t extends o.b{ngOnDestroy(){this.complete()}}return t.\u0275fac=function(e){return K(e||t)},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();const K=i.Wb(Y),Z=[Y];class X extends s.a{}let J=(()=>{class t extends r.a{constructor(t,e,n,i){super(i);const r={state:i},s=t.pipe(Object(c.b)(a.b)).pipe(Object(l.a)(e)).pipe(Object(u.a)(tt,r));this.stateSubscription=s.subscribe(({state:t,action:e})=>{this.next(t),n.next(e)})}ngOnDestroy(){this.stateSubscription.unsubscribe(),this.complete()}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(_),i.Yb(q),i.Yb(Y),i.Yb(w))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t.INIT=v,t})();function tt(t={state:void 0},[e,n]){const{state:i}=t;return{state:n(i,e),action:e}}const et=[J,{provide:X,useExisting:J}];let nt=(()=>{class t extends s.a{constructor(t,e,n){super(),this.actionsObserver=e,this.reducerManager=n,this.source=t}select(t,...e){return rt.call(null,t,...e)(this)}lift(e){const n=new t(this,this.actionsObserver,this.reducerManager);return n.operator=e,n}dispatch(t){this.actionsObserver.next(t)}next(t){this.actionsObserver.next(t)}error(t){this.actionsObserver.error(t)}complete(){this.actionsObserver.complete()}addReducer(t,e){this.reducerManager.addReducer(t,e)}removeReducer(t){this.reducerManager.removeReducer(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(X),i.Yb(_),i.Yb(W))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();const it=[nt];function rt(t,e,...n){return function(i){let r;if("string"==typeof t){const s=[e,...n].filter(Boolean);r=i.pipe(Object(h.a)(t,...s))}else{if("function"!=typeof t)throw new TypeError(`Unexpected type '${typeof t}' in select operator, expected 'string' or 'function'`);r=i.pipe(Object(d.a)(n=>t(n,e)))}return r.pipe(Object(p.a)())}}function st(t,e){return t===e}function ot(t,e,n){for(let i=0;it.release&&"function"==typeof t.release),a=t((function(...t){return s.apply(null,t)})),c=at((function(t,n){return e.stateFn.apply(null,[t,r,n,a])}));return Object.assign(c.memoized,{release:function(){c.reset(),a.reset(),o.forEach(t=>t.release())},projector:a.memoized,setResult:c.setResult,clearResult:c.clearResult})}}(at)(...t)}function lt(t,e,n,i){if(void 0===n){const n=e.map(e=>e(t));return i.memoized.apply(null,n)}const r=e.map(e=>e(t,n));return i.memoized.apply(null,[...r,n])}function ut(t){return ct(e=>{const n=e[t];return!Object(i.X)()||t in e||console.warn(`@ngrx/store: The feature name "${t}" does not exist in the state, therefore createFeatureSelector cannot access it. Be sure it is imported in a loaded module using StoreModule.forRoot('${t}', ...) or StoreModule.forFeature('${t}', ...). If the default state is intended to be undefined, as is the case with router state, this development-only warning message can be ignored.`),n},t=>t)}const ht="https://ngrx.io/guide/store/configuration/runtime-checks";function dt(t){return void 0===t}function pt(t){return null===t}function ft(t){return Array.isArray(t)}function bt(t){return"object"==typeof t&&null!==t}function gt(t){return"function"==typeof t}function mt(t){Object.freeze(t);const e=gt(t);return Object.getOwnPropertyNames(t).forEach(n=>{if(!n.startsWith("\u0275")&&function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}(t,n)&&(!e||"caller"!==n&&"callee"!==n&&"arguments"!==n)){const e=t[n];!bt(e)&&!gt(e)||Object.isFrozen(e)||mt(e)}}),t}function vt(t,e=[]){return(dt(t)||pt(t))&&0===e.length?{path:["root"],value:t}:Object.keys(t).reduce((n,i)=>{if(n)return n;const r=t[i];return function(t){return gt(t)&&t.hasOwnProperty("\u0275cmp")}(r)?n:!(dt(r)||pt(r)||function(t){return"number"==typeof t}(r)||function(t){return"boolean"==typeof t}(r)||function(t){return"string"==typeof t}(r)||ft(r))&&(function(t){if(!function(t){return bt(t)&&!ft(t)}(t))return!1;const e=Object.getPrototypeOf(t);return e===Object.prototype||null===e}(r)?vt(r,[...e,i]):{path:[...e,i],value:r})},!1)}function _t(t,e){if(!1===t)return;const n=t.path.join("."),i=new Error(`Detected unserializable ${e} at "${n}". ${ht}#strict${e}serializability`);throw i.value=t.value,i.unserializablePath=n,i}function yt(t){return Object(i.X)()?Object.assign({strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!0,strictActionImmutability:!0,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1},t):{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}function Ot({strictActionSerializability:t,strictStateSerializability:e}){return n=>t||e?function(t,e){return function(n,i){e.action(i)&&_t(vt(i),"action");const r=t(n,i);return e.state()&&_t(vt(r),"state"),r}}(n,{action:e=>t&&!wt(e),state:()=>e}):n}function Ct({strictActionImmutability:t,strictStateImmutability:e}){return n=>t||e?function(t,e){return function(n,i){const r=e.action(i)?mt(i):i,s=t(n,r);return e.state()?mt(s):s}}(n,{action:e=>t&&!wt(e),state:()=>e}):n}function wt(t){return t.type.startsWith("@ngrx")}function Tt({strictActionWithinNgZone:t}){return e=>t?function(t,e){return function(n,r){if(e.action(r)&&!i.B.isInAngularZone())throw new Error(`Action '${r.type}' running outside NgZone. ${ht}#strictactionwithinngzone`);return t(n,r)}}(e,{action:e=>t&&!wt(e)}):e}function St(){return[{provide:z,multi:!0,deps:[B],useFactory:Et}]}function kt(t){return t}function Et(t){if(!t.strictActionTypeUniqueness)return;const e=Object.entries(f).filter(([,t])=>t>1).map(([t])=>t);if(e.length)throw new Error(`Action types are registered more than once, ${e.map(t=>`"${t}"`).join(", ")}. ${ht}#strictactiontypeuniqueness`)}let xt=(()=>{class t{constructor(t,e,n,i,r,s){}}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)(i.Yb(_),i.Yb(q),i.Yb(Y),i.Yb(nt),i.Yb(O,8),i.Yb(z,8))}}),t})(),Pt=(()=>{class t{constructor(t,e,n,i,r){this.features=t,this.featureReducers=e,this.reducerManager=n;const s=t.map((t,n)=>{const i=e.shift()[n];return Object.assign(Object.assign({},t),{reducers:i,initialState:Rt(t.initialState)})});n.addFeatures(s)}ngOnDestroy(){this.reducerManager.removeFeatures(this.features)}}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)(i.Yb(M),i.Yb(R),i.Yb(W),i.Yb(xt),i.Yb(z,8))}}),t})(),At=(()=>{class t{static forRoot(t,e={}){return{ngModule:xt,providers:[{provide:O,useFactory:Lt,deps:[[nt,new i.C,new i.L]]},{provide:C,useValue:e.initialState},{provide:w,useFactory:Rt,deps:[C]},{provide:E,useValue:t},{provide:P,useExisting:t instanceof i.s?t:E},{provide:k,deps:[i.t,E,[new i.q(P)]],useFactory:It},{provide:j,useValue:e.metaReducers?e.metaReducers:[]},{provide:N,deps:[L,j],useFactory:jt},{provide:S,useValue:e.reducerFactory?e.reducerFactory:V},{provide:T,deps:[S,N],useFactory:H},y,G,Z,et,it,(n=e.runtimeChecks,[{provide:F,useValue:n},{provide:U,useFactory:kt,deps:[F]},{provide:B,deps:[U],useFactory:yt},{provide:L,multi:!0,deps:[B],useFactory:Ct},{provide:L,multi:!0,deps:[B],useFactory:Ot},{provide:L,multi:!0,deps:[B],useFactory:Tt}]),St()]};var n}static forFeature(t,e,n={}){return{ngModule:Pt,providers:[{provide:I,multi:!0,useValue:n},{provide:x,multi:!0,useValue:{key:t,reducerFactory:n instanceof i.s||!n.reducerFactory?V:n.reducerFactory,metaReducers:n instanceof i.s||!n.metaReducers?[]:n.metaReducers,initialState:n instanceof i.s||!n.initialState?void 0:n.initialState}},{provide:M,deps:[i.t,I,x],useFactory:Mt},{provide:A,multi:!0,useValue:e},{provide:D,multi:!0,useExisting:e instanceof i.s?e:A},{provide:R,multi:!0,deps:[i.t,A,[new i.q(D)]],useFactory:Dt},St()]}}}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)}}),t})();function It(t,e){return e instanceof i.s?t.get(e):e}function Mt(t,e,n){return n.map((n,r)=>{if(e[r]instanceof i.s){const i=t.get(e[r]);return{key:n.key,reducerFactory:i.reducerFactory?i.reducerFactory:V,metaReducers:i.metaReducers?i.metaReducers:[],initialState:i.initialState}}return n})}function Dt(t,e){return e.map(e=>e instanceof i.s?t.get(e):e)}function Rt(t){return"function"==typeof t?t():t}function jt(t,e){return t.concat(e)}function Lt(t){if(t)throw new TypeError("StoreModule.forRoot() called twice. Feature modules should use StoreModule.forFeature() instead.");return"guarded"}function Nt(...t){return{reducer:t.pop(),types:t.reduce((t,e)=>[...t,e.type],[])}}function Ut(t,...e){const n=new Map;for(let i of e)for(let t of i.types)if(n.has(t)){const e=n.get(t);n.set(t,(t,n)=>i.reducer(e(t,n),n))}else n.set(t,i.reducer);return function(e=t,i){const r=n.get(i.type);return r?r(e,i):e}}}},[[0,1]]]);