PageSourceSearch

https://rozbijbank.pl/chunk-V5QAYXNN.js

js rozbijbank.pl collected 2026-09-24 14:27:30 UTC 296,738 bytes, 24 lines download raw bytes

vendor: 25,046 bytes, lines 1-4
1import{a as yr,b as pl}from"./chunk-SZJCL6WX.js";import{a as br}from"./chunk-3WIOG7PU.js";import{a as Zt,b as me,c as je}from"./chunk-4VVTDTGN.js";import{c as ps,d as tr,f as ir,g as ar,h as nr}from"./chunk-ZSSD5RUB.js";import{a as Sa,b as Ta,d as il,e as al}from"./chunk-Q4XRCR4X.js";import{a as Ma}from"./chunk-5YDHWBTU.js";import{a as Pa,c as Oa}from"./chunk-MMNHDOGK.js";import{a as dl,b as cl}from"./chunk-FALLGMD5.js";import{a as Xs}from"./chunk-2NAGIYMD.js";import"./chunk-B234R5G4.js";import{a as Kt,b as nl,c as rl,d as ol,e as sl,f as vr,g as ll}from"./chunk-3IIZWVZX.js";import"./chunk-C4INTM36.js";import{a as Ct,b as ua,c as ha,e as ss,f as ls,h as ds,k as ct,m as cs,n as _a}from"./chunk-C5QAKFHD.js";import{b as el,h as ka,i as xa}from"./chunk-3YLIN2KC.js";import{a as tl}from"./chunk-K4NLIESG.js";import{$ as Rs,A as ks,Aa as Bs,B as ya,Ba as $s,C as xs,Ca as wa,Da as Gs,F as Ms,G as Ss,I as Ca,K as Ts,L as Ps,M as Os,O as As,P as cr,Q as Es,R as Ie,S as wt,T as Fe,U as kt,V as Is,Va as qs,W as Fs,Wa as Ks,X as Gt,Xa as Zs,Y as Vs,Z as xt,Za as Js,_ as qt,a as os,aa as Ys,b as rr,ba as Ls,c as Dt,ca as Ns,d as ms,da as zs,e as us,ea as pr,f as Di,fa as Hs,g as va,ga as Ws,h as hs,ha as js,i as _s,ia as Us,j as fs,ja as Da,k as ba,ka as mr,l as It,la as ur,m as gs,ma as hr,n as vs,na as _r,o as or,oa as fr,p as wi,pa as ki,q as bs,r as We,ra as gr,t as ys,u as sr,v as lr,w as Cs,x as dr,y as Ds,z as ws}from"./chunk-EMLC4L66.js";import{i as rs,n as fa,p as ga,u as Qs}from"./chunk-AORX4UOP.js";import{$ as vi,$a as bt,$b as Oe,$c as is,Aa as $o,B as zn,Ba as qe,C as Lo,Ca as Q,Cb as De,Da as gt,Db as D,Eb as ra,Ec as ma,Fb as de,Fc as Xo,Gc as He,H as gi,Hb as Gn,Ia as vt,J as No,Ja as Go,Jb as x,K as zo,Kb as we,Kc as Et,M as ia,Mb as U,Mc as he,Nb as B,Oa as Un,Ob as m,Oc as er,Pb as u,Qb as y,S as Hn,Sb as $,T as aa,Tb as qn,U as st,Ub as O,Uc as es,Vb as g,Wb as Kn,X as G,Xb as Zn,Yb as Bt,Z as Wn,Zb as Qo,Zc as dt,_ as ne,_a as Ke,_b as oa,_c as ts,a as Ge,ac as ve,ba as ft,bb as qo,bc as be,bd as as,c as Ln,da as le,db as h,dd as ns,ea as w,eb as Z,ec as sa,fa as Ho,fb as Ko,fc as b,fd as Ze,g as te,ga as Wo,gb as Bn,gc as R,hc as ae,ib as bi,ic as Ci,j as Nn,jb as Zo,jd as ce,k as Ro,kc as la,l as ot,lb as re,lc as da,ma as lt,mc as ca,na as T,nc as yt,oa as P,oc as At,p as Pt,pa as pe,pc as ke,qa as Pe,qc as Ae,ra as jo,rb as Y,rc as $t,sb as yi,sc as Ee,ta as jn,tb as Ot,tc as pa,ua as Uo,ub as $n,uc as Jo,va as Bo,vc as Qn,w as Yo,wb as na,wc as Jn,xb as A,y as ye,ya as z,yc as Xn,z as _t,za as Ut}from"./chunk-OF7YPDCR.js";import{a as se,b as ze,c as ta,e as Vo,f as fi}from"./chunk-TSRGIXR5.js";var ni=Vo((Yr,ai)=>{"use strict";(function(r,d){typeof Yr=="object"&&typeof ai<"u"?ai.exports=d():typeof define=="function"&&define.amd?define(d):r.moment=d()})(Yr,function(){"use strict";var r;function d(){return r.apply(null,arguments)}function e(t){r=t}function i(t){return t instanceof Array||Object.prototype.toString.call(t)==="[object Array]"}function n(t){return t!=null&&Object.prototype.toString.call(t)==="[object Object]"}function l(t,a){return Object.prototype.hasOwnProperty.call(t,a)}function p(t){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(t).length===0;var a;for(a in t)if(l(t,a))return!1;return!0}function f(t){return t===void 0}function C(t){return typeof t=="number"||Object.prototype.toString.call(t)==="[object Number]"}function I(t){return t instanceof Date||Object.prototype.toString.call(t)==="[object Date]"}function L(t,a){var o=[],s,c=t.length;for(s=0;s<c;++s)o.push(a(t[s],s));return o}function q(t,a){for(var o in a)l(a,o)&&(t[o]=a[o]);return l(a,"toString")&&(t.toString=a.toString),l(a,"valueOf")&&(t.valueOf=a.valueOf),t}function fe(t,a,o,s){return mo(t,a,o,s,!0).utc()}function rn(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function V(t){return t._pf==null&&(t._pf=rn()),t._pf}var on;Array.prototype.some?on=Array.prototype.some:on=function(t){var a=Object(this),o=a.length>>>0,s;for(s=0;s<o;s++)if(s in a&&t.call(this,a[s],s,a))return!0;return!1};function sn(t){var a=null,o=!1,s=t._d&&!isNaN(t._d.getTime());if(s&&(a=V(t),o=on.call(a.parsedDateParts,function(c){return c!=null}),s=a.overflow<0&&!a.empty&&!a.invalidEra&&!a.invalidMonth&&!a.invalidWeekday&&!a.weekdayMismatch&&!a.nullInput&&!a.invalidFormat&&!a.userInvalidated&&(!a.meridiem||a.meridiem&&o),t._strict&&(s=s&&a.charsLeftOver===0&&a.unusedTokens.length===0&&a.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(t))t._isValid=s;else return s;return t._isValid}function Fi(t){var a=fe(NaN);return t!=null?q(V(a),t):V(a).userInvalidated=!0,a}var Nr=d.momentProperties=[],ln=!1;function dn(t,a){var o,s,c,_=Nr.length;if(f(a._isAMomentObject)||(t._isAMomentObject=a._isAMomentObject),f(a._i)||(t._i=a._i),f(a._f)||(t._f=a._f),f(a._l)||(t._l=a._l),f(a._strict)||(t._strict=a._strict),f(a._tzm)||(t._tzm=a._tzm),f(a._isUTC)||(t._isUTC=a._isUTC),f(a._offset)||(t._offset=a._offset),f(a._pf)||(t._pf=V(a)),f(a._locale)||(t._locale=a._locale),_>0)for(o=0;o<_;o++)s=Nr[o],c=a[s],f(c)||(t[s]=c);return t}function oi(t){dn(this,t),this._d=new Date(t._d!=null?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),ln===!1&&(ln=!0,d.updateOffset(this),ln=!1)}function Ye(t){return t instanceof oi||t!=null&&t._isAMomentObject!=null}function zr(t){d.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+t)}function Me(t,a){var o=!0;return q(function(){if(d.deprecationHandler!=null&&d.deprecationHandler(null,t),o){var s=[],c,_,v,M=arguments.length;for(_=0;_<M;_++){if(c="",typeof arguments[_]=="object"){c+=`
2[`+_+"] ";for(v in arguments[0])l(arguments[0],v)&&(c+=v+": "+arguments[0][v]+", ");c=c.slice(0,-2)}else c=arguments[_];s.push(c)}zr(t+`
3Arguments: `+Array.prototype.slice.call(s).join("")+`
4`+new Error().stack),o=!1}return a.apply(this,arguments)},a)}var Hr={};function Wr(t,a){d.deprecationHandler!=null&&d.deprecationHandler(t,a),Hr[t]||(zr(a),Hr[t]=!0)}d.suppressDeprecationWarnings=!1,d.deprecationHandler=null;function Ue(t){return typeof Function<"u"&&t instanceof Function||Object.prototype.toString.call(t)==="[object Function]"}function Bl(t){var a,o;for(o in t)l(t,o)&&(a=t[o],Ue(a)?this[o]=a:this["_"+o]=a);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function cn(t,a){var o=q({},t),s;for(s in a)l(a,s)&&(n(t[s])&&n(a[s])?(o[s]={},q(o[s],t[s]),q(o[s],a[s])):a[s]!=null?o[s]=a[s]:delete o[s]);for(s in t)l(t,s)&&!l(a,s)&&n(t[s])&&(o[s]=q({},o[s]));return o}function pn(t){t!=null&&this.set(t)}var mn;Object.keys?mn=Object.keys:mn=function(t){var a,o=[];for(a in t)l(t,a)&&o.push(a);return o};var $l={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Gl(t,a,o){var s=this._calendar[t]||this._calendar.sameElse;return Ue(s)?s.call(a,o):s}function Be(t,a,o){var s=""+Math.abs(t),c=a-s.length,_=t>=0;return(_?o?"+":"":"-")+Math.pow(10,Math.max(0,c)).toString().substr(1)+s}var un=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Vi=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,hn={},Vt={};function E(t,a,o,s){var c=s;typeof s=="string"&&(c=function(){return this[s]()}),t&&(Vt[t]=c),a&&(Vt[a[0]]=function(){return Be(c.apply(this,arguments),a[1],a[2])}),o&&(Vt[o]=function(){return this.localeData().ordinal(c.apply(this,arguments),t)})}function ql(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function Kl(t){var a=t.match(un),o,s;for(o=0,s=a.length;o<s;o++)Vt[a[o]]?a[o]=Vt[a[o]]:a[o]=ql(a[o]);return function(c){var _="",v;for(v=0;v<s;v++)_+=Ue(a[v])?a[v].call(c,t):a[v];return _}}function Ri(t,a){return t.isValid()?(a=jr(a,t.localeData()),hn[a]=hn[a]||Kl(a),hn[a](t)):t.localeData().invalidDate()}function jr(t,a){var o=5;function s(c){return a.longDateFormat(c)||c}for(Vi.lastIndex=0;o>=0&&Vi.test(t);)t=t.replace(Vi,s),Vi.lastIndex=0,o-=1;return t}var Zl={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Ql(t){var a=this._longDateFormat[t],o=this._longDateFormat[t.toUpperCase()];return a||!o?a:(this._longDateFormat[t]=o.match(un).map(function(s){return s==="MMMM"||s==="MM"||s==="DD"||s==="dddd"?s.slice(1):s}).join(""),this._longDateFormat[t])}var Jl="Invalid date";function Xl(){return this._invalidDate}var ed="%d",td=/\d{1,2}/;function id(t){return this._ordinal.replace("%d",t)}var ad={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function nd(t,a,o,s){var c=this._relativeTime[o];return Ue(c)?c(t,a,o,s):c.replace(/%d/i,t)}function rd(t,a){var o=this._relativeTime[t>0?"future":"past"];return Ue(o)?o(a):o.replace(/%s/i,a)}var Ur={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Se(t){return typeof t=="string"?Ur[t]||Ur[t.toLowerCase()]:void 0}function _n(t){var a={},o,s;for(s in t)l(t,s)&&(o=Se(s),o&&(a[o]=t[s]));return a}var od={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function sd(t){var a=[],o;for(o in t)l(t,o)&&a.push({unit:o,priority:od[o]});return a.sort(function(s,c){return s.priority-c.priority}),a}var Br=/\d/,Ce=/\d\d/,$r=/\d{3}/,fn=/\d{4}/,Yi=/[+-]?\d{6}/,J=/\d\d?/,Gr=/\d\d\d\d?/,qr=/\d\d\d\d\d\d?/,Li=/\d{1,3}/,gn=/\d{1,4}/,Ni=/[+-]?\d{1,6}/,Rt=/\d+/,zi=/[+-]?\d+/,ld=/Z|[+-]\d\d:?\d\d/gi,Hi=/Z|[+-]\d\d(?::?\d\d)?/gi,dd=/[+-]?\d+(\.\d{1,3})?/,si=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Yt=/^[1-9]\d?/,vn=/^([1-9]\d|\d)/,Wi;Wi={};function S(t,a,o){Wi[t]=Ue(a)?a:function(s,c){return s&&o?o:a}}function cd(t,a){return l(Wi,t)?Wi[t](a._strict,a._locale):new RegExp(pd(t))}function pd(t){return Qe(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(a,o,s,c,_){return o||s||c||_}))}function Qe(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Te(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function N(t){var a=+t,o=0;return a!==0&&isFinite(a)&&(o=Te(a)),o}var bn={};function K(t,a){var o,s=a,c;for(typeof t=="string"&&(t=[t]),C(a)&&(s=function(_,v){v[a]=N(_)}),c=t.length,o=0;o<c;o++)bn[t[o]]=s}function li(t,a){K(t,function(o,s,c,_){c._w=c._w||{},a(o,c._w,c,_)})}function md(t,a,o){a!=null&&l(bn,t)&&bn[t](a,o._a,o,t)}function ji(t){return t%4===0&&t%100!==0||t%400===0}var ue=0,Je=1,$e=2,oe=3,Le=4,Xe=5,Mt=6,ud=7,hd=8;E("Y",0,0,function(){var t=this.year();return t<=9999?Be(t,4):"+"+t}),E(0,["YY",2],0,function(){return this.year()%100}),E(0,["YYYY",4],0,"year"),E(0,["YYYYY",5],0,"year"),E(0,["YYYYYY",6,!0],0,"year"),S("Y",zi),S("YY",J,Ce),S("YYYY",gn,fn),S("YYYYY",Ni,Yi),S("YYYYYY",Ni,Yi),K(["YYYYY","YYYYYY"],ue),K("YYYY",function(t,a){a[ue]=t.length===2?d.parseTwoDigitYear(t):N(t)}),K("YY",function(t,a){a[ue]=d.parseTwoDigitYear(t)}),K("Y",function(t,a){a[ue]=parseInt(t,10)});function di(t){return ji(t)?366:365}d.parseTwoDigitYear=function(t){return N(t)+(N(t)>68?1900:2e3)};var Kr=Lt("FullYear",!0);function _d(){return ji(this.year())}function Lt(t,a){return function(o){return o!=null?(Zr(this,t,o),d.updateOffset(this,a),this):ci(this,t)}}function ci(t,a){if(!t.isValid())return NaN;var o=t._d,s=t._isUTC;switch(a){case"Milliseconds":return s?o.getUTCMilliseconds():o.getMilliseconds();case"Seconds":return s?o.getUTCSeconds():o.getSeconds();case"Minutes":return s?o.getUTCMinutes():o.getMinutes();case"Hours":return s?o.getUTCHours():o.getHours();case"Date":return s?o.getUTCDate():o.getDate();case"Day":return s?o.getUTCDay():o.getDay();case"Month":return s?o.getUTCMonth():o.getMonth();case"FullYear":return s?o.getUTCFullYear():o.getFullYear();default:return NaN}}function Zr(t,a,o){var s,c,_,v,M;if(!(!t.isValid()||isNaN(o))){switch(s=t._d,c=t._isUTC,a){case"Milliseconds":return void(c?s.setUTCMilliseconds(o):s.setMilliseconds(o));case"Seconds":return void(c?s.setUTCSeconds(o):s.setSeconds(o));case"Minutes":return void(c?s.setUTCMinutes(o):s.setMinutes(o));case"Hours":return void(c?s.setUTCHours(o):s.setHours(o));case"Date":return void(c?s.setUTCDate(o):s.setDate(o));case"FullYear":break;default:return}_=o,v=t.month(),M=t.date(),M=M===29&&v===1&&!ji(_)?28:M,c?s.setUTCFullYear(_,v,M):s.setFullYear(_,v,M)}}function fd(t){return t=Se(t),Ue(this[t])?this[t]():this}function gd(t,a){if(typeof t=="object"){t=_n(t);var o=sd(t),s,c=o.length;for(s=0;s<c;s++)this[o[s].unit](t[o[s].unit])}else if(t=Se(t),Ue(this[t]))return this[t](a);return this}function vd(t,a){return(t%a+a)%a}var ie;Array.prototype.indexOf?ie=Array.prototype.indexOf:ie=function(t){var a;for(a=0;a<this.length;++a)if(this[a]===t)return a;return-1};function yn(t,a){if(isNaN(t)||isNaN(a))return NaN;var o=vd(a,12);return t+=(a-o)/12,o===1?ji(t)?29:28:31-o%7%2}E("M",["MM",2],"Mo",function(){return this.month()+1}),E("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),E("MMMM",0,0,function(t){return this.localeData().months(this,t)}),S("M",J,Yt),S("MM",J,Ce),S("MMM",function(t,a){return a.monthsShortRegex(t)}),S("MMMM",function(t,a){return a.monthsRegex(t)}),K(["M","MM"],function(t,a){a[Je]=N(t)-1}),K(["MMM","MMMM"],function(t,a,o,s){var c=o._locale.monthsParse(t,s,o._strict);c!=null?a[Je]=c:V(o).invalidMonth=t});var bd="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Qr="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Jr=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,yd=si,Cd=si;function Dd(t,a){return t?i(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Jr).test(a)?"format":"standalone"][t.month()]:i(this._months)?this._months:this._months.standalone}function wd(t,a){return t?i(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Jr.test(a)?"format":"standalone"][t.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function kd(t,a,o){var s,c,_,v=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)_=fe([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(_,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(_,"").toLocaleLowerCase();return o?a==="MMM"?(c=ie.call(this._shortMonthsParse,v),c!==-1?c:null):(c=ie.call(this._longMonthsParse,v),c!==-1?c:null):a==="MMM"?(c=ie.call(this._shortMonthsParse,v),c!==-1?c:(c=ie.call(this._longMonthsParse,v),c!==-1?c:null)):(c=ie.call(this._longMonthsParse,v),c!==-1?c:(c=ie.call(this._shortMonthsParse,v),c!==-1?c:null))}function xd(t,a,o){var s,c,_;if(this._monthsParseExact)return kd.call(this,t,a,o);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++){if(c=fe([2e3,s]),o&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp("^"+this.months(c,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=new RegExp("^"+this.monthsShort(c,"").replace(".","")+"$","i")),!o&&!this._monthsParse[s]&&(_="^"+this.months(c,"")+"|^"+this.monthsShort(c,""),this._monthsParse[s]=new RegExp(_.replace(".",""),"i")),o&&a==="MMMM"&&this._longMonthsParse[s].test(t))return s;if(o&&a==="MMM"&&this._shortMonthsParse[s].test(t))return s;if(!o&&this._monthsParse[s].test(t))return s}}function Xr(t,a){if(!t.isValid())return t;if(typeof a=="string"){if(/^\d+$/.test(a))a=N(a);else if(a=t.localeData().monthsParse(a),!C(a))return t}var o=a,s=t.date();return s=s<29?s:Math.min(s,yn(t.year(),o)),t._isUTC?t._d.setUTCMonth(o,s):t._d.setMonth(o,s),t}function eo(t){return t!=null?(Xr(this,t),d.updateOffset(this,!0),this):ci(this,"Month")}function Md(){return yn(this.year(),this.month())}function Sd(t){return this._monthsParseExact?(l(this,"_monthsRegex")||to.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=yd),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function Td(t){return this._monthsParseExact?(l(this,"_monthsRegex")||to.call(this),t?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=Cd),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function to(){function t(F,H){return H.length-F.length}var a=[],o=[],s=[],c,_,v,M;for(c=0;c<12;c++)_=fe([2e3,c]),v=Qe(this.monthsShort(_,"")),M=Qe(this.months(_,"")),a.push(v),o.push(M),s.push(M),s.push(v);a.sort(t),o.sort(t),s.sort(t),this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Pd(t,a,o,s,c,_,v){var M;return t<100&&t>=0?(M=new Date(t+400,a,o,s,c,_,v),isFinite(M.getFullYear())&&M.setFullYear(t)):M=new Date(t,a,o,s,c,_,v),M}function pi(t){var a,o;return t<100&&t>=0?(o=Array.prototype.slice.call(arguments),o[0]=t+400,a=new Date(Date.UTC.apply(null,o)),isFinite(a.getUTCFullYear())&&a.setUTCFullYear(t)):a=new Date(Date.UTC.apply(null,arguments)),a}function Ui(t,a,o){var s=7+a-o,c=(7+pi(t,0,s).getUTCDay()-a)%7;return-c+s-1}function io(t,a,o,s,c){var _=(7+o-s)%7,v=Ui(t,s,c),M=1+7*(a-1)+_+v,F,H;return M<=0?(F=t-1,H=di(F)+M):M>di(t)?(F=t+1,H=M-di(t)):(F=t,H=M),{year:F,dayOfYear:H}}function mi(t,a,o){var s=Ui(t.year(),a,o),c=Math.floor((t.dayOfYear()-s-1)/7)+1,_,v;return c<1?(v=t.year()-1,_=c+et(v,a,o)):c>et(t.year(),a,o)?(_=c-et(t.year(),a,o),v=t.year()+1):(v=t.year(),_=c),{week:_,year:v}}function et(t,a,o){var s=Ui(t,a,o),c=Ui(t+1,a,o);return(di(t)-s+c)/7}E("w",["ww",2],"wo","week"),E("W",["WW",2],"Wo","isoWeek"),S("w",J,Yt),S("ww",J,Ce),S("W",J,Yt),S("WW",J,Ce),li(["w","ww","W","WW"],function(t,a,o,s){a[s.substr(0,1)]=N(t)});function Od(t){return mi(t,this._week.dow,this._week.doy).week}var Ad={dow:0,doy:6};function Ed(){return this._week.dow}function Id(){return this._week.doy}function Fd(t){var a=this.localeData().week(this);return t==null?a:this.add((t-a)*7,"d")}function Vd(t){var a=mi(this,1,4).week;return t==null?a:this.add((t-a)*7,"d")}E("d",0,"do","day"),E("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),E("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),E("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),E("e",0,0,"weekday"),E("E",0,0,"isoWeekday"),S("d",J),S("e",J),S("E",J),S("dd",function(t,a){return a.weekdaysMinRegex(t)}),S("ddd",function(t,a){return a.weekdaysShortRegex(t)}),S("dddd",function(t,a){return a.weekdaysRegex(t)}),li(["dd","ddd","dddd"],function(t,a,o,s){var c=o._locale.weekdaysParse(t,s,o._strict);c!=null?a.d=c:V(o).invalidWeekday=t}),li(["d","e","E"],function(t,a,o,s){a[s]=N(t)});function Rd(t,a){return typeof t!="string"?t:isNaN(t)?(t=a.weekdaysParse(t),typeof t=="number"?t:null):parseInt(t,10)}function Yd(t,a){return typeof t=="string"?a.weekdaysParse(t)%7||7:isNaN(t)?null:t}function Cn(t,a){return t.slice(a,7).concat(t.slice(0,a))}var Ld="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ao="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Nd="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),zd=si,Hd=si,Wd=si;function jd(t,a){var o=i(this._weekdays)?this._weekdays:this._weekdays[t&&t!==!0&&this._weekdays.isFormat.test(a)?"format":"standalone"];return t===!0?Cn(o,this._week.dow):t?o[t.day()]:o}function Ud(t){return t===!0?Cn(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function Bd(t){return t===!0?Cn(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function $d(t,a,o){var s,c,_,v=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)_=fe([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(_,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(_,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(_,"").toLocaleLowerCase();return o?a==="dddd"?(c=ie.call(this._weekdaysParse,v),c!==-1?c:null):a==="ddd"?(c=ie.call(this._shortWeekdaysParse,v),c!==-1?c:null):(c=ie.call(this._minWeekdaysParse,v),c!==-1?c:null):a==="dddd"?(c=ie.call(this._weekdaysParse,v),c!==-1||(c=ie.call(this._shortWeekdaysParse,v),c!==-1)?c:(c=ie.call(this._minWeekdaysParse,v),c!==-1?c:null)):a==="ddd"?(c=ie.call(this._shortWeekdaysParse,v),c!==-1||(c=ie.call(this._weekdaysParse,v),c!==-1)?c:(c=ie.call(this._minWeekdaysParse,v),c!==-1?c:null)):(c=ie.call(this._minWeekdaysParse,v),c!==-1||(c=ie.call(this._weekdaysParse,v),c!==-1)?c:(c=ie.call(this._shortWeekdaysParse,v),c!==-1?c:null))}function Gd(t,a,o){var s,c,_;if(this._weekdaysParseExact)return $d.call(this,t,a,o);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(c=fe([2e3,1]).day(s),o&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp("^"+this.weekdays(c,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[s]=new RegExp("^"+this.weekdaysShort(c,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[s]=new RegExp("^"+this.weekdaysMin(c,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[s]||(_="^"+this.weekdays(c,"")+"|^"+this.weekdaysShort(c,"")+"|^"+this.weekdaysMin(c,""),this._weekdaysParse[s]=new RegExp(_.replace(".",""),"i")),o&&a==="dddd"&&this._fullWeekdaysParse[s].test(t))return s;if(o&&a==="ddd"&&this._shortWeekdaysParse[s].test(t))return s;if(o&&a==="dd"&&this._minWeekdaysParse[s].test(t))return s;if(!o&&this._weekdaysParse[s].test(t))return s}}function qd(t){if(!this.isValid())return t!=null?this:NaN;var a=ci(this,"Day");return t!=null?(t=Rd(t,this.localeData()),this.add(t-a,"d")):a}function Kd(t){if(!this.isValid())return t!=null?this:NaN;var a=(this.day()+7-this.localeData()._week.dow)%7;return t==null?a:this.add(t-a,"d")}function Zd(t){if(!this.isValid())return t!=null?this:NaN;if(t!=null){var a=Yd(t,this.localeData());return this.day(this.day()%7?a:a-7)}else return this.day()||7}function Qd(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Dn.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=zd),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function Jd(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Dn.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Hd),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Xd(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Dn.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Wd),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Dn(){function t(ge,rt){return rt.length-ge.length}var a=[],o=[],s=[],c=[],_,v,M,F,H;for(_=0;_<7;_++)v=fe([2e3,1]).day(_),M=Qe(this.weekdaysMin(v,"")),F=Qe(this.weekdaysShort(v,"")),H=Qe(this.weekdays(v,"")),a.push(M),o.push(F),s.push(H),c.push(M),c.push(F),c.push(H);a.sort(t),o.sort(t),s.sort(t),c.sort(t),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function wn(){return this.hours()%12||12}function ec(){return this.hours()||24}E("H",["HH",2],0,"hour"),E("h",["hh",2],0,wn),E("k",["kk",2],0,ec),E("hmm",0,0,function(){return""+wn.apply(this)+Be(this.minutes(),2)}
vendor: 6,790 bytes, line 4
4),E("hmmss",0,0,function(){return""+wn.apply(this)+Be(this.minutes(),2)+Be(this.seconds(),2)}),E("Hmm",0,0,function(){return""+this.hours()+Be(this.minutes(),2)}),E("Hmmss",0,0,function(){return""+this.hours()+Be(this.minutes(),2)+Be(this.seconds(),2)});function no(t,a){E(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),a)})}no("a",!0),no("A",!1);function ro(t,a){return a._meridiemParse}S("a",ro),S("A",ro),S("H",J,vn),S("h",J,Yt),S("k",J,Yt),S("HH",J,Ce),S("hh",J,Ce),S("kk",J,Ce),S("hmm",Gr),S("hmmss",qr),S("Hmm",Gr),S("Hmmss",qr),K(["H","HH"],oe),K(["k","kk"],function(t,a,o){var s=N(t);a[oe]=s===24?0:s}),K(["a","A"],function(t,a,o){o._isPm=o._locale.isPM(t),o._meridiem=t}),K(["h","hh"],function(t,a,o){a[oe]=N(t),V(o).bigHour=!0}),K("hmm",function(t,a,o){var s=t.length-2;a[oe]=N(t.substr(0,s)),a[Le]=N(t.substr(s)),V(o).bigHour=!0}),K("hmmss",function(t,a,o){var s=t.length-4,c=t.length-2;a[oe]=N(t.substr(0,s)),a[Le]=N(t.substr(s,2)),a[Xe]=N(t.substr(c)),V(o).bigHour=!0}),K("Hmm",function(t,a,o){var s=t.length-2;a[oe]=N(t.substr(0,s)),a[Le]=N(t.substr(s))}),K("Hmmss",function(t,a,o){var s=t.length-4,c=t.length-2;a[oe]=N(t.substr(0,s)),a[Le]=N(t.substr(s,2)),a[Xe]=N(t.substr(c))});function tc(t){return(t+"").toLowerCase().charAt(0)==="p"}var ic=/[ap]\.?m?\.?/i,ac=Lt("Hours",!0);function nc(t,a,o){return t>11?o?"pm":"PM":o?"am":"AM"}var oo={calendar:$l,longDateFormat:Zl,invalidDate:Jl,ordinal:ed,dayOfMonthOrdinalParse:td,relativeTime:ad,months:bd,monthsShort:Qr,week:Ad,weekdays:Ld,weekdaysMin:Nd,weekdaysShort:ao,meridiemParse:ic},ee={},ui={},hi;function rc(t,a){var o,s=Math.min(t.length,a.length);for(o=0;o<s;o+=1)if(t[o]!==a[o])return o;return s}function so(t){return t&&t.toLowerCase().replace("_","-")}function oc(t){for(var a=0,o,s,c,_;a<t.length;){for(_=so(t[a]).split("-"),o=_.length,s=so(t[a+1]),s=s?s.split("-"):null;o>0;){if(c=Bi(_.slice(0,o).join("-")),c)return c;if(s&&s.length>=o&&rc(_,s)>=o-1)break;o--}a++}return hi}function sc(t){return!!(t&&t.match("^[^/\\\\]*$"))}function Bi(t){var a=null,o;if(ee[t]===void 0&&typeof ai<"u"&&ai&&ai.exports&&sc(t))try{a=hi._abbr,o=ta,o("./locale/"+t),mt(a)}catch{ee[t]=null}return ee[t]}function mt(t,a){var o;return t&&(f(a)?o=tt(t):o=kn(t,a),o?hi=o:typeof console<"u"&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),hi._abbr}function kn(t,a){if(a!==null){var o,s=oo;if(a.abbr=t,ee[t]!=null)Wr("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),s=ee[t]._config;else if(a.parentLocale!=null)if(ee[a.parentLocale]!=null)s=ee[a.parentLocale]._config;else if(o=Bi(a.parentLocale),o!=null)s=o._config;else return ui[a.parentLocale]||(ui[a.parentLocale]=[]),ui[a.parentLocale].push({name:t,config:a}),null;return ee[t]=new pn(cn(s,a)),ui[t]&&ui[t].forEach(function(c){kn(c.name,c.config)}),mt(t),ee[t]}else return delete ee[t],null}function lc(t,a){if(a!=null){var o,s,c=oo;ee[t]!=null&&ee[t].parentLocale!=null?ee[t].set(cn(ee[t]._config,a)):(s=Bi(t),s!=null&&(c=s._config),a=cn(c,a),s==null&&(a.abbr=t),o=new pn(a),o.parentLocale=ee[t],ee[t]=o),mt(t)}else ee[t]!=null&&(ee[t].parentLocale!=null?(ee[t]=ee[t].parentLocale,t===mt()&&mt(t)):ee[t]!=null&&delete ee[t]);return ee[t]}function tt(t){var a;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return hi;if(!i(t)){if(a=Bi(t),a)return a;t=[t]}return oc(t)}function dc(){return mn(ee)}function xn(t){var a,o=t._a;return o&&V(t).overflow===-2&&(a=o[Je]<0||o[Je]>11?Je:o[$e]<1||o[$e]>yn(o[ue],o[Je])?$e:o[oe]<0||o[oe]>24||o[oe]===24&&(o[Le]!==0||o[Xe]!==0||o[Mt]!==0)?oe:o[Le]<0||o[Le]>59?Le:o[Xe]<0||o[Xe]>59?Xe:o[Mt]<0||o[Mt]>999?Mt:-1,V(t)._overflowDayOfYear&&(a<ue||a>$e)&&(a=$e),V(t)._overflowWeeks&&a===-1&&(a=ud),V(t)._overflowWeekday&&a===-1&&(a=hd),V(t).overflow=a),t}var cc=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,pc=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,mc=/Z|[+-]\d\d(?::?\d\d)?/,$i=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Mn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],uc=/^\/?Date\((-?\d+)/i,hc=/^(?:(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{4}))$/,_c={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function lo(t){var a,o,s=t._i,c=cc.exec(s)||pc.exec(s),_,v,M,F,H=$i.length,ge=Mn.length;if(c){for(V(t).iso=!0,a=0,o=H;a<o;a++)if($i[a][1].exec(c[1])){v=$i[a][0],_=$i[a][2]!==!1;break}if(v==null){t._isValid=!1;return}if(c[3]){for(a=0,o=ge;a<o;a++)if(Mn[a][1].exec(c[3])){M=(c[2]||" ")+Mn[a][0];break}if(M==null){t._isValid=!1;return}}if(!_&&M!=null){t._isValid=!1;return}if(c[4])if(mc.exec(c[4]))F="Z";else{t._isValid=!1;return}t._f=v+(M||"")+(F||""),Tn(t)}else t._isValid=!1}function fc(t,a,o,s,c,_){var v=[gc(t),Qr.indexOf(a),parseInt(o,10),parseInt(s,10),parseInt(c,10)];return _&&v.push(parseInt(_,10)),v}function gc(t){var a=parseInt(t,10);return a<=49?2e3+a:a<=999?1900+a:a}function vc(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function bc(t,a,o){if(t){var s=ao.indexOf(t),c=new Date(a[0],a[1],a[2]).getDay();if(s!==c)return V(o).weekdayMismatch=!0,o._isValid=!1,!1}return!0}function yc(t,a,o){if(t)return _c[t];if(a)return 0;var s=parseInt(o,10),c=s%100,_=(s-c)/100;return _*60+c}function co(t){var a=hc.exec(vc(t._i)),o;if(a){if(o=fc(a[4],a[3],a[2],a[5],a[6],a[7]),!bc(a[1],o,t))return;t._a=o,t._tzm=yc(a[8],a[9],a[10]),t._d=pi.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),V(t).rfc2822=!0}else t._isValid=!1}function Cc(t){var a=uc.exec(t._i);if(a!==null){t._d=new Date(+a[1]);return}if(lo(t),t._isValid===!1)delete t._isValid;else return;if(co(t),t._isValid===!1)delete t._isValid;else return;t._strict?t._isValid=!1:d.createFromInputFallback(t)}
vendor: 29,368 bytes, line 4
4d.createFromInputFallback=Me("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))});function Nt(t,a,o){return t??a??o}function Dc(t){var a=new Date(d.now());return t._useUTC?[a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()]:[a.getFullYear(),a.getMonth(),a.getDate()]}function Sn(t){var a,o,s=[],c,_,v;if(!t._d){for(c=Dc(t),t._w&&t._a[$e]==null&&t._a[Je]==null&&wc(t),t._dayOfYear!=null&&(v=Nt(t._a[ue],c[ue]),(t._dayOfYear>di(v)||t._dayOfYear===0)&&(V(t)._overflowDayOfYear=!0),o=pi(v,0,t._dayOfYear),t._a[Je]=o.getUTCMonth(),t._a[$e]=o.getUTCDate()),a=0;a<3&&t._a[a]==null;++a)t._a[a]=s[a]=c[a];for(;a<7;a++)t._a[a]=s[a]=t._a[a]==null?a===2?1:0:t._a[a];t._a[oe]===24&&t._a[Le]===0&&t._a[Xe]===0&&t._a[Mt]===0&&(t._nextDay=!0,t._a[oe]=0),t._d=(t._useUTC?pi:Pd).apply(null,s),_=t._useUTC?t._d.getUTCDay():t._d.getDay(),t._tzm!=null&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[oe]=24),t._w&&typeof t._w.d<"u"&&t._w.d!==_&&(V(t).weekdayMismatch=!0)}}function wc(t){var a,o,s,c,_,v,M,F,H;a=t._w,a.GG!=null||a.W!=null||a.E!=null?(_=1,v=4,o=Nt(a.GG,t._a[ue],mi(X(),1,4).year),s=Nt(a.W,1),c=Nt(a.E,1),(c<1||c>7)&&(F=!0)):(_=t._locale._week.dow,v=t._locale._week.doy,H=mi(X(),_,v),o=Nt(a.gg,t._a[ue],H.year),s=Nt(a.w,H.week),a.d!=null?(c=a.d,(c<0||c>6)&&(F=!0)):a.e!=null?(c=a.e+_,(a.e<0||a.e>6)&&(F=!0)):c=_),s<1||s>et(o,_,v)?V(t)._overflowWeeks=!0:F!=null?V(t)._overflowWeekday=!0:(M=io(o,s,c,_,v),t._a[ue]=M.year,t._dayOfYear=M.dayOfYear)}d.ISO_8601=function(){},d.RFC_2822=function(){};function Tn(t){if(t._f===d.ISO_8601){lo(t);return}if(t._f===d.RFC_2822){co(t);return}t._a=[],V(t).empty=!0;var a=""+t._i,o,s,c,_,v,M=a.length,F=0,H,ge;for(c=jr(t._f,t._locale).match(un)||[],ge=c.length,o=0;o<ge;o++)_=c[o],s=(a.match(cd(_,t))||[])[0],s&&(v=a.substr(0,a.indexOf(s)),v.length>0&&V(t).unusedInput.push(v),a=a.slice(a.indexOf(s)+s.length),F+=s.length),Vt[_]?(s?V(t).empty=!1:V(t).unusedTokens.push(_),md(_,s,t)):t._strict&&!s&&V(t).unusedTokens.push(_);V(t).charsLeftOver=M-F,a.length>0&&V(t).unusedInput.push(a),t._a[oe]<=12&&V(t).bigHour===!0&&t._a[oe]>0&&(V(t).bigHour=void 0),V(t).parsedDateParts=t._a.slice(0),V(t).meridiem=t._meridiem,t._a[oe]=kc(t._locale,t._a[oe],t._meridiem),H=V(t).era,H!==null&&(t._a[ue]=t._locale.erasConvertYear(H,t._a[ue])),Sn(t),xn(t)}function kc(t,a,o){var s;return o==null?a:t.meridiemHour!=null?t.meridiemHour(a,o):(t.isPM!=null&&(s=t.isPM(o),s&&a<12&&(a+=12),!s&&a===12&&(a=0)),a)}function xc(t){var a,o,s,c,_,v,M=!1,F=t._f.length;if(F===0){V(t).invalidFormat=!0,t._d=new Date(NaN);return}for(c=0;c<F;c++)_=0,v=!1,a=dn({},t),t._useUTC!=null&&(a._useUTC=t._useUTC),a._f=t._f[c],Tn(a),sn(a)&&(v=!0),_+=V(a).charsLeftOver,_+=V(a).unusedTokens.length*10,V(a).score=_,M?_<s&&(s=_,o=a):(s==null||_<s||v)&&(s=_,o=a,v&&(M=!0));q(t,o||a)}function Mc(t){if(!t._d){var a=_n(t._i),o=a.day===void 0?a.date:a.day;t._a=L([a.year,a.month,o,a.hour,a.minute,a.second,a.millisecond],function(s){return s&&parseInt(s,10)}),Sn(t)}}function Sc(t){var a=new oi(xn(po(t)));return a._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function po(t){var a=t._i,o=t._f;return t._locale=t._locale||tt(t._l),a===null||o===void 0&&a===""?Fi({nullInput:!0}):(typeof a=="string"&&(t._i=a=t._locale.preparse(a)),Ye(a)?new oi(xn(a)):(I(a)?t._d=a:i(o)?xc(t):o?Tn(t):Tc(t),sn(t)||(t._d=null),t))}function Tc(t){var a=t._i;f(a)?t._d=new Date(d.now()):I(a)?t._d=new Date(a.valueOf()):typeof a=="string"?Cc(t):i(a)?(t._a=L(a.slice(0),function(o){return parseInt(o,10)}),Sn(t)):n(a)?Mc(t):C(a)?t._d=new Date(a):d.createFromInputFallback(t)}function mo(t,a,o,s,c){var _={};return(a===!0||a===!1)&&(s=a,a=void 0),(o===!0||o===!1)&&(s=o,o=void 0),(n(t)&&p(t)||i(t)&&t.length===0)&&(t=void 0),_._isAMomentObject=!0,_._useUTC=_._isUTC=c,_._l=o,_._i=t,_._f=a,_._strict=s,Sc(_)}function X(t,a,o,s){return mo(t,a,o,s,!1)}var Pc=Me("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=X.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:Fi()}),Oc=Me("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=X.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:Fi()});function uo(t,a){var o,s;if(a.length===1&&i(a[0])&&(a=a[0]),!a.length)return X();for(o=a[0],s=1;s<a.length;++s)(!a[s].isValid()||a[s][t](o))&&(o=a[s]);return o}function Ac(){var t=[].slice.call(arguments,0);return uo("isBefore",t)}function Ec(){var t=[].slice.call(arguments,0);return uo("isAfter",t)}var Ic=function(){return Date.now?Date.now():+new Date},_i=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Fc(t){var a,o=!1,s,c=_i.length;for(a in t)if(l(t,a)&&!(ie.call(_i,a)!==-1&&(t[a]==null||!isNaN(t[a]))))return!1;for(s=0;s<c;++s)if(t[_i[s]]){if(o)return!1;parseFloat(t[_i[s]])!==N(t[_i[s]])&&(o=!0)}return!0}function Vc(){return this._isValid}function Rc(){return Ne(NaN)}function Gi(t){var a=_n(t),o=a.year||0,s=a.quarter||0,c=a.month||0,_=a.week||a.isoWeek||0,v=a.day||0,M=a.hour||0,F=a.minute||0,H=a.second||0,ge=a.millisecond||0;this._isValid=Fc(a),this._milliseconds=+ge+H*1e3+F*6e4+M*1e3*60*60,this._days=+v+_*7,this._months=+c+s*3+o*12,this._data={},this._locale=tt(),this._bubble()}function qi(t){return t instanceof Gi}function Pn(t){return t<0?Math.round(-1*t)*-1:Math.round(t)}function Yc(t,a,o){var s=Math.min(t.length,a.length),c=Math.abs(t.length-a.length),_=0,v;for(v=0;v<s;v++)(o&&t[v]!==a[v]||!o&&N(t[v])!==N(a[v]))&&_++;return _+c}function ho(t,a){E(t,0,0,function(){var o=this.utcOffset(),s="+";return o<0&&(o=-o,s="-"),s+Be(~~(o/60),2)+a+Be(~~o%60,2)})}ho("Z",":"),ho("ZZ",""),S("Z",Hi),S("ZZ",Hi),K(["Z","ZZ"],function(t,a,o){o._useUTC=!0,o._tzm=On(Hi,t)});var Lc=/([\+\-]|\d\d)/gi;function On(t,a){var o=(a||"").match(t),s,c,_;return o===null?null:(s=o[o.length-1]||[],c=(s+"").match(Lc)||["-",0,0],_=+(c[1]*60)+N(c[2]),_===0?0:c[0]==="+"?_:-_)}function An(t,a){var o,s;return a._isUTC?(o=a.clone(),s=(Ye(t)||I(t)?t.valueOf():X(t).valueOf())-o.valueOf(),o._d.setTime(o._d.valueOf()+s),d.updateOffset(o,!1),o):X(t).local()}function En(t){return-Math.round(t._d.getTimezoneOffset())}d.updateOffset=function(){};function Nc(t,a,o){var s=this._offset||0,c;if(!this.isValid())return t!=null?this:NaN;if(t!=null){if(typeof t=="string"){if(t=On(Hi,t),t===null)return this}else Math.abs(t)<16&&!o&&(t=t*60);return!this._isUTC&&a&&(c=En(this)),this._offset=t,this._isUTC=!0,c!=null&&this.add(c,"m"),s!==t&&(!a||this._changeInProgress?vo(this,Ne(t-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,d.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?s:En(this)}function zc(t,a){return t!=null?(typeof t!="string"&&(t=-t),this.utcOffset(t,a),this):-this.utcOffset()}function Hc(t){return this.utcOffset(0,t)}function Wc(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(En(this),"m")),this}function jc(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var t=On(ld,this._i);t!=null?this.utcOffset(t):this.utcOffset(0,!0)}return this}function Uc(t){return this.isValid()?(t=t?X(t).utcOffset():0,(this.utcOffset()-t)%60===0):!1}function Bc(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function $c(){if(!f(this._isDSTShifted))return this._isDSTShifted;var t={},a;return dn(t,this),t=po(t),t._a?(a=t._isUTC?fe(t._a):X(t._a),this._isDSTShifted=this.isValid()&&Yc(t._a,a.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Gc(){return this.isValid()?!this._isUTC:!1}function qc(){return this.isValid()?this._isUTC:!1}function _o(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Kc=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Zc=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ne(t,a){var o=t,s=null,c,_,v;return qi(t)?o={ms:t._milliseconds,d:t._days,M:t._months}:C(t)||!isNaN(+t)?(o={},a?o[a]=+t:o.milliseconds=+t):(s=Kc.exec(t))?(c=s[1]==="-"?-1:1,o={y:0,d:N(s[$e])*c,h:N(s[oe])*c,m:N(s[Le])*c,s:N(s[Xe])*c,ms:N(Pn(s[Mt]*1e3))*c}):(s=Zc.exec(t))?(c=s[1]==="-"?-1:1,o={y:St(s[2],c),M:St(s[3],c),w:St(s[4],c),d:St(s[5],c),h:St(s[6],c),m:St(s[7],c),s:St(s[8],c)}):o==null?o={}:typeof o=="object"&&("from"in o||"to"in o)&&(v=Qc(X(o.from),X(o.to)),o={},o.ms=v.milliseconds,o.M=v.months),_=new Gi(o),qi(t)&&l(t,"_locale")&&(_._locale=t._locale),qi(t)&&l(t,"_isValid")&&(_._isValid=t._isValid),_}Ne.fn=Gi.prototype,Ne.invalid=Rc;function St(t,a){var o=t&&parseFloat(t.replace(",","."));return(isNaN(o)?0:o)*a}function fo(t,a){var o={};return o.months=a.month()-t.month()+(a.year()-t.year())*12,t.clone().add(o.months,"M").isAfter(a)&&--o.months,o.milliseconds=+a-+t.clone().add(o.months,"M"),o}function Qc(t,a){var o;return t.isValid()&&a.isValid()?(a=An(a,t),t.isBefore(a)?o=fo(t,a):(o=fo(a,t),o.milliseconds=-o.milliseconds,o.months=-o.months),o):{milliseconds:0,months:0}}function go(t,a){return function(o,s){var c,_;return s!==null&&!isNaN(+s)&&(Wr(a,"moment()."+a+"(period, number) is deprecated. Please use moment()."+a+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),_=o,o=s,s=_),c=Ne(o,s),vo(this,c,t),this}}function vo(t,a,o,s){var c=a._milliseconds,_=Pn(a._days),v=Pn(a._months);t.isValid()&&(s=s??!0,v&&Xr(t,ci(t,"Month")+v*o),_&&Zr(t,"Date",ci(t,"Date")+_*o),c&&t._d.setTime(t._d.valueOf()+c*o),s&&d.updateOffset(t,_||v))}var Jc=go(1,"add"),Xc=go(-1,"subtract");function bo(t){return typeof t=="string"||t instanceof String}function ep(t){return Ye(t)||I(t)||bo(t)||C(t)||ip(t)||tp(t)||t===null||t===void 0}function tp(t){var a=n(t)&&!p(t),o=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],c,_,v=s.length;for(c=0;c<v;c+=1)_=s[c],o=o||l(t,_);return a&&o}function ip(t){var a=i(t),o=!1;return a&&(o=t.filter(function(s){return!C(s)&&bo(t)}).length===0),a&&o}function ap(t){var a=n(t)&&!p(t),o=!1,s=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],c,_;for(c=0;c<s.length;c+=1)_=s[c],o=o||l(t,_);return a&&o}function np(t,a){var o=t.diff(a,"days",!0);return o<-6?"sameElse":o<-1?"lastWeek":o<0?"lastDay":o<1?"sameDay":o<2?"nextDay":o<7?"nextWeek":"sameElse"}function rp(t,a){arguments.length===1&&(arguments[0]?ep(arguments[0])?(t=arguments[0],a=void 0):ap(arguments[0])&&(a=arguments[0],t=void 0):(t=void 0,a=void 0));var o=t||X(),s=An(o,this).startOf("day"),c=d.calendarFormat(this,s)||"sameElse",_=a&&(Ue(a[c])?a[c].call(this,o):a[c]);return this.format(_||this.localeData().calendar(c,this,X(o)))}function op(){return new oi(this)}function sp(t,a){var o=Ye(t)?t:X(t);return this.isValid()&&o.isValid()?(a=Se(a)||"millisecond",a==="millisecond"?this.valueOf()>o.valueOf():o.valueOf()<this.clone().startOf(a).valueOf()):!1}function lp(t,a){var o=Ye(t)?t:X(t);return this.isValid()&&o.isValid()?(a=Se(a)||"millisecond",a==="millisecond"?this.valueOf()<o.valueOf():this.clone().endOf(a).valueOf()<o.valueOf()):!1}function dp(t,a,o,s){var c=Ye(t)?t:X(t),_=Ye(a)?a:X(a);return this.isValid()&&c.isValid()&&_.isValid()?(s=s||"()",(s[0]==="("?this.isAfter(c,o):!this.isBefore(c,o))&&(s[1]===")"?this.isBefore(_,o):!this.isAfter(_,o))):!1}function cp(t,a){var o=Ye(t)?t:X(t),s;return this.isValid()&&o.isValid()?(a=Se(a)||"millisecond",a==="millisecond"?this.valueOf()===o.valueOf():(s=o.valueOf(),this.clone().startOf(a).valueOf()<=s&&s<=this.clone().endOf(a).valueOf())):!1}function pp(t,a){return this.isSame(t,a)||this.isAfter(t,a)}function mp(t,a){return this.isSame(t,a)||this.isBefore(t,a)}function up(t,a,o){var s,c,_;if(!this.isValid())return NaN;if(s=An(t,this),!s.isValid())return NaN;switch(c=(s.utcOffset()-this.utcOffset())*6e4,a=Se(a),a){case"year":_=Ki(this,s)/12;break;case"month":_=Ki(this,s);break;case"quarter":_=Ki(this,s)/3;break;case"second":_=(this-s)/1e3;break;case"minute":_=(this-s)/6e4;break;case"hour":_=(this-s)/36e5;break;case"day":_=(this-s-c)/864e5;break;case"week":_=(this-s-c)/6048e5;break;default:_=this-s}return o?_:Te(_)}function Ki(t,a){if(t.date()<a.date())return-Ki(a,t);var o=(a.year()-t.year())*12+(a.month()-t.month()),s=t.clone().add(o,"months"),c,_;return a-s<0?(c=t.clone().add(o-1,"months"),_=(a-s)/(s-c)):(c=t.clone().add(o+1,"months"),_=(a-s)/(c-s)),-(o+_)||0}d.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",d.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function hp(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function _p(t){if(!this.isValid())return null;var a=t!==!0,o=a?this.clone().utc():this;return o.year()<0||o.year()>9999?Ri(o,a?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Ue(Date.prototype.toISOString)?a?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Ri(o,"Z")):Ri(o,a?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function fp(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",a="",o,s,c,_;return this.isLocal()||(t=this.utcOffset()===0?"moment.utc":"moment.parseZone",a="Z"),o="["+t+'("]',s=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",c="-MM-DD[T]HH:mm:ss.SSS",_=a+'[")]',this.format(o+s+c+_)}function gp(t){t||(t=this.isUtc()?d.defaultFormatUtc:d.defaultFormat);var a=Ri(this,t);return this.localeData().postformat(a)}function vp(t,a){return this.isValid()&&(Ye(t)&&t.isValid()||X(t).isValid())?Ne({to:this,from:t}).locale(this.locale()).humanize(!a):this.localeData().invalidDate()}function bp(t){return this.from(X(),t)}function yp(t,a){return this.isValid()&&(Ye(t)&&t.isValid()||X(t).isValid())?Ne({from:this,to:t}).locale(this.locale()).humanize(!a):this.localeData().invalidDate()}function Cp(t){return this.to(X(),t)}function yo(t){var a;return t===void 0?this._locale._abbr:(a=tt(t),a!=null&&(this._locale=a),this)}var Co=Me("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return t===void 0?this.localeData():this.locale(t)});function Do(){return this._locale}var Zi=1e3,zt=60*Zi,Qi=60*zt,wo=(365*400+97)*24*Qi;function Ht(t,a){return(t%a+a)%a}function ko(t,a,o){return t<100&&t>=0?new Date(t+400,a,o)-wo:new Date(t,a,o).valueOf()}function xo(t,a,o){return t<100&&t>=0?Date.UTC(t+400,a,o)-wo:Date.UTC(t,a,o)}function Dp(t){var a,o;if(t=Se(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(o=this._isUTC?xo:ko,t){case"year":a=o(this.year(),0,1);break;case"quarter":a=o(this.year(),this.month()-this.month()%3,1);break;case"month":a=o(this.year(),this.month(),1);break;case"week":a=o(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":a=o(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":a=o(this.year(),this.month(),this.date());break;case"hour":a=this._d.valueOf(),a-=Ht(a+(this._isUTC?0:this.utcOffset()*zt),Qi);break;case"minute":a=this._d.valueOf(),a-=Ht(a,zt);break;case"second":a=this._d.valueOf(),a-=Ht(a,Zi);break}return this._d.setTime(a),d.updateOffset(this,!0),this}function wp(t){var a,o;if(t=Se(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(o=this._isUTC?xo:ko,t){case"year":a=o(this.year()+1,0,1)-1;break;case"quarter":a=o(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":a=o(this.year(),this.month()+1,1)-1;break;case"week":a=o(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":a=o(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":a=o(this.year(),this.month(),this.date()+1)-1;break;case"hour":a=this._d.valueOf(),a+=Qi-Ht(a+(this._isUTC?0:this.utcOffset()*zt),Qi)-1;break;case"minute":a=this._d.valueOf(),a+=zt-Ht(a,zt)-1;break;case"second":a=this._d.valueOf(),a+=Zi-Ht(a,Zi)-1;break}return this._d.setTime(a),d.updateOffset(this,!0),this}function kp(){return this._d.valueOf()-(this._offset||0)*6e4}function xp(){return Math.floor(this.valueOf()/1e3)}function Mp(){return new Date(this.valueOf())}function Sp(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function Tp(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function Pp(){return this.isValid()?this.toISOString():null}function Op(){return sn(this)}function Ap(){return q({},V(this))}function Ep(){return V(this).overflow}function Ip(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}E("N",0,0,"eraAbbr"),E("NN",0,0,"eraAbbr"),E("NNN",0,0,"eraAbbr"),E("NNNN",0,0,"eraName"),E("NNNNN",0,0,"eraNarrow"),E("y",["y",1],"yo","eraYear"),E("y",["yy",2],0,"eraYear"),E("y",["yyy",3],0,"eraYear"),E("y",["yyyy",4],0,"eraYear"),S("N",In),S("NN",In),S("NNN",In),S("NNNN",Up),S("NNNNN",Bp),K(["N","NN","NNN","NNNN","NNNNN"],function(t,a,o,s){var c=o._locale.erasParse(t,s,o._strict);c?V(o).era=c:V(o).invalidEra=t}),S("y",Rt),S("yy",Rt),S("yyy",Rt),S("yyyy",Rt),S("yo",$p),K(["y","yy","yyy","yyyy"],ue),K(["yo"],function(t,a,o,s){var c;o._locale._eraYearOrdinalRegex&&(c=t.match(o._locale._eraYearOrdinalRegex)),o._locale.eraYearOrdinalParse?a[ue]=o._locale.eraYearOrdinalParse(t,c):a[ue]=parseInt(t,10)});function Fp(t,a){var o,s,c,_=this._eras||tt("en")._eras;for(o=0,s=_.length;o<s;++o){switch(typeof _[o].since){case"string":c=d(_[o].since).startOf("day"),_[o].since=c.valueOf();break}switch(typeof _[o].until){case"undefined":_[o].until=1/0;break;case"string":c=d(_[o].until).startOf("day").valueOf(),_[o].until=c.valueOf();break}}return _}function Vp(t,a,o){var s,c,_=this.eras(),v,M,F;for(t=t.toUpperCase(),s=0,c=_.length;s<c;++s)if(v=_[s].name.toUpperCase(),M=_[s].abbr.toUpperCase(),F=_[s].narrow.toUpperCase(),o)switch(a){case"N":case"NN":case"NNN":if(M===t)return _[s];break;case"NNNN":if(v===t)return _[s];break;case"NNNNN":if(F===t)return _[s];break}else if([v,M,F].indexOf(t)>=0)return _[s]}function Rp(t,a){var o=t.since<=t.until?1:-1;return a===void 0?d(t.since).year():d(t.since).year()+(a-t.offset)*o}function Yp(){var t,a,o,s=this.localeData().eras();for(t=0,a=s.length;t<a;++t)if(o=this.clone().startOf("day").valueOf(),s[t].since<=o&&o<=s[t].until||s[t].until<=o&&o<=s[t].since)return s[t].name;return""}function Lp(){var t,a,o,s=this.localeData().eras();for(t=0,a=s.length;t<a;++t)if(o=this.clone().startOf("day").valueOf(),s[t].since<=o&&o<=s[t].until||s[t].until<=o&&o<=s[t].since)return s[t].narrow;return""}function Np(){var t,a,o,s=this.localeData().eras();for(t=0,a=s.length;t<a;++t)if(o=this.clone().startOf("day").valueOf(),s[t].since<=o&&o<=s[t].until||s[t].until<=o&&o<=s[t].since)return s[t].abbr;return""}function zp(){var t,a,o,s,c=this.localeData().eras();for(t=0,a=c.length;t<a;++t)if(o=c[t].since<=c[t].until?1:-1,s=this.clone().startOf("day").valueOf(),c[t].since<=s&&s<=c[t].until||c[t].until<=s&&s<=c[t].since)return(this.year()-d(c[t].since).year())*o+c[t].offset;return this.year()}function Hp(t){return l(this,"_erasNameRegex")||Fn.call(this),t?this._erasNameRegex:this._erasRegex}function Wp(t){return l(this,"_erasAbbrRegex")||Fn.call(this),t?this._erasAbbrRegex:this._erasRegex}function jp(t){return l(this,"_erasNarrowRegex")||Fn.call(this),t?this._erasNarrowRegex:this._erasRegex}function In(t,a){return a.erasAbbrRegex(t)}function Up(t,a){return a.erasNameRegex(t)}function Bp(t,a){return a.erasNarrowRegex(t)}function $p(t,a){return a._eraYearOrdinalRegex||Rt}function Fn(){var t=[],a=[],o=[],s=[],c,_,v,M,F,H=this.eras();for(c=0,_=H.length;c<_;++c)v=Qe(H[c].name),M=Qe(H[c].abbr),F=Qe(H[c].narrow),a.push(v),t.push(M),o.push(F),s.push(v),s.push(M),s.push(F);this._erasRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+a.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+t.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+o.join("|")+")","i")}E(0,["gg",2],0,function(){return this.weekYear()%100}),E(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Ji(t,a){E(0,[t,t.length],0,a)}Ji("gggg","weekYear"),Ji("ggggg","weekYear"),Ji("GGGG","isoWeekYear"),Ji("GGGGG","isoWeekYear"),S("G",zi),S("g",zi),S("GG",J,Ce),S("gg",J,Ce),S("GGGG",gn,fn),S("gggg",gn,fn),S("GGGGG",Ni,Yi),S("ggggg",Ni,Yi),li(["gggg","ggggg","GGGG","GGGGG"],function(t,a,o,s){a[s.substr(0,2)]=N(t)}),li(["gg","GG"],function(t,a,o,s){a[s]=d.parseTwoDigitYear(t)});function Gp(t){return Mo.call(this,t,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function qp(t){return Mo.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function Kp(){return et(this.year(),1,4)}function Zp(){return et(this.isoWeekYear(),1,4)}function Qp(){var t=this.localeData()._week;return et(this.year(),t.dow,t.doy)}function Jp(){var t=this.localeData()._week;return et(this.weekYear(),t.dow,t.doy)}function Mo(t,a,o,s,c){var _;return t==null?mi(this,s,c).year:(_=et(t,s,c),a>_&&(a=_),Xp.call(this,t,a,o,s,c))}function Xp(t,a,o,s,c){var _=io(t,a,o,s,c),v=pi(_.year,0,_.dayOfYear);return this.year(v.getUTCFullYear()),this.month(v.getUTCMonth()),this.date(v.getUTCDate()),this}E("Q",0,"Qo","quarter"),S("Q",Br),K("Q",function(t,a){a[Je]=(N(t)-1)*3});function em(t){return t==null?Math.ceil((this.month()+1)/3):this.month((t-1)*3+this.month()%3)}E("D",["DD",2],"Do","date"),S("D",J,Yt),S("DD",J,Ce),S("Do",function(t,a){return t?a._dayOfMonthOrdinalParse||a._ordinalParse:a._dayOfMonthOrdinalParseLenient}),K(["D","DD"],$e),K("Do",function(t,a){a[$e]=N(t.match(J)[0])});var So=Lt("Date",!0);E("DDD",["DDDD",3],"DDDo","dayOfYear"),S("DDD",Li),S("DDDD",$r),K(["DDD","DDDD"],function(t,a,o){o._dayOfYear=N(t)});function tm(t){var a=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return t==null?a:this.add(t-a,"d")}E("m",["mm",2],0,"minute"),S("m",J,vn),S("mm",J,Ce),K(["m","mm"],Le);var im=Lt("Minutes",!1);E("s",["ss",2],0,"second"),S("s",J,vn),S("ss",J,Ce),K(["s","ss"],Xe);var am=Lt("Seconds",!1);E("S",0,0,function(){return~~(this.millisecond()/100)}),E(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),E(0,["SSS",3],0,"millisecond"),E(0,["SSSS",4],0,function(){return this.millisecond()*10}),E(0,["SSSSS",5],0,function(){return this.millisecond()*100}),E(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),E(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),E(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),E(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),S("S",Li,Br),S("SS",Li,Ce),S("SSS",Li,$r);var ut,To;for(ut="SSSS";ut.length<=9;ut+="S")S(ut,Rt);function nm(t,a){a[Mt]=N(("0."+t)*1e3)}for(ut="S";ut.length<=9;ut+="S")K(ut,nm);To=Lt("Milliseconds",!1),E("z",0,0,"zoneAbbr"),E("zz",0,0,"zoneName");function rm(){return this._isUTC?"UTC":""}function om(){return this._isUTC?"Coordinated Universal Time":""}var k=oi.prototype;k.add=Jc,k.calendar=rp,k.clone=op,k.diff=up,k.endOf=wp,k.format=gp,k.from=vp,k.fromNow=bp,k.to=yp,k.toNow=Cp,k.get=fd,k.invalidAt=Ep,k.isAfter=sp,k.isBefore=lp,k.isBetween=dp,k.isSame=cp,k.isSameOrAfter=pp,k.isSameOrBefore=mp,k.isValid=Op,k.lang=Co,k.locale=yo,k.localeData=Do,k.max=Oc,k.min=Pc,k.parsingFlags=Ap,k.set=gd,k.startOf=Dp,k.subtract=Xc,k.toArray=Sp,k.toObject=Tp,k.toDate=Mp,k.toISOString=_p,k.inspect=fp,typeof Symbol<"u"&&Symbol.for!=null&&(k[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),k.toJSON=Pp,k.toString=hp,k.unix=xp,k.valueOf=kp,k.creationData=Ip,k.eraName=Yp,k.eraNarrow=Lp,k.eraAbbr=Np,k.eraYear=zp,k.year=Kr,k.isLeapYear=_d,k.weekYear=Gp,k.isoWeekYear=qp,k.quarter=k.quarters=em,k.month=eo,k.daysInMonth=Md,k.week=k.weeks=Fd,k.isoWeek=k.isoWeeks=Vd,k.weeksInYear=Qp,k.weeksInWeekYear=Jp,k.isoWeeksInYear=Kp,k.isoWeeksInISOWeekYear=Zp,k.date=So,k.day=k.days=qd,k.weekday=Kd,k.isoWeekday=Zd,k.dayOfYear=tm,k.hour=k.hours=ac,k.minute=k.minutes=im,k.second=k.seconds=am,k.millisecond=k.milliseconds=To,k.utcOffset=Nc,k.utc=Hc,k.local=Wc,k.parseZone=jc,k.hasAlignedHourOffset=Uc,k.isDST=Bc,k.isLocal=Gc,k.isUtcOffset=qc,k.isUtc=_o,k.isUTC=_o,k.zoneAbbr=rm,k.zoneName=om,k.dates=Me("dates accessor is deprecated. Use date instead.",So),k.months=Me("months accessor is deprecated. Use month instead",eo),k.years=Me("years accessor is deprecated. Use year instead",Kr),k.zone=Me("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",zc),k.isDSTShifted=Me("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",$c);function sm(t){return X(t*1e3)}function lm(){return X.apply(null,arguments).parseZone()}function Po(t){return t}var j=pn.prototype;j.calendar=Gl,j.longDateFormat=Ql,j.invalidDate=Xl,j.ordinal=id,j.preparse=Po,j.postformat=Po,j.relativeTime=nd,j.pastFuture=rd,j.set=Bl,j.eras=Fp,j.erasParse=Vp,j.erasConvertYear=Rp,j.erasAbbrRegex=Wp,j.erasNameRegex=Hp,j.erasNarrowRegex=jp,j.months=Dd,j.monthsShort=wd,j.monthsParse=xd,j.monthsRegex=Td,j.monthsShortRegex=Sd,j.week=Od,j.firstDayOfYear=Id,j.firstDayOfWeek=Ed,j.weekdays=jd,j.weekdaysMin=Bd,j.weekdaysShort=Ud,j.weekdaysParse=Gd,j.weekdaysRegex=Qd,j.weekdaysShortRegex=Jd,j.weekdaysMinRegex=Xd,j.isPM=tc,j.meridiem=nc;function Xi(t,a,o,s){var c=tt(),_=fe().set(s,a);return c[o](_,t)}function Oo(t,a,o){if(C(t)&&(a=t,t=void 0),t=t||"",a!=null)return Xi(t,a,o,"month");var s,c=[];for(s=0;s<12;s++)c[s]=Xi(t,s,o,"month");return c}function Vn(t,a,o,s){typeof t=="boolean"?(C(a)&&(o=a,a=void 0),a=a||""):(a=t,o=a,t=!1,C(a)&&(o=a,a=void 0),a=a||"");var c=tt(),_=t?c._week.dow:0,v,M=[];if(o!=null)return Xi(a,(o+_)%7,s,"day");for(v=0;v<7;v++)M[v]=Xi(a,(v+_)%7,s,"day");return M}function dm(t,a){return Oo(t,a,"months")}function cm(t,a){return Oo(t,a,"monthsShort")}function pm(t,a,o){return Vn(t,a,o,"weekdays")}function mm(t,a,o){return Vn(t,a,o,"weekdaysShort")}function um(t,a,o){return Vn(t,a,o,"weekdaysMin")}mt("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var a=t%10,o=N(t%100/10)===1?"th":a===1?"st":a===2?"nd":a===3?"rd":"th";return t+o}}),d.lang=Me("moment.lang is deprecated. Use moment.locale instead.",mt),d.langData=Me("moment.langData is deprecated. Use moment.localeData instead.",tt);var it=Math.abs;function hm(){var t=this._data;return this._milliseconds=it(this._milliseconds),this._days=it(this._days),this._months=it(this._months),t.milliseconds=it(t.milliseconds),t.seconds=it(t.seconds),t.minutes=it(t.minutes),t.hours=it(t.hours),t.months=it(t.months),t.years=it(t.years),this}function Ao(t,a,o,s){var c=Ne(a,o);return t._milliseconds+=s*c._milliseconds,t._days+=s*c._days,t._months+=s*c._months,t._bubble()}function _m(t,a){return Ao(this,t,a,1)}function fm(t,a){return Ao(this,t,a,-1)}function Eo(t){return t<0?Math.floor(t):Math.ceil(t)}function gm(){var t=this._milliseconds,a=this._days,o=this._months,s=this._data,c,_,v,M,F;return t>=0&&a>=0&&o>=0||t<=0&&a<=0&&o<=0||(t+=Eo(Rn(o)+a)*864e5,a=0,o=0),s.milliseconds=t%1e3,c=Te(t/1e3),s.seconds=c%60,_=Te(c/60),s.minutes=_%60,v=Te(_/60),s.hours=v%24,a+=Te(v/24),F=Te(Io(a)),o+=F,a-=Eo(Rn(F)),M=Te(o/12),o%=12,s.days=a,s.months=o,s.years=M,this}function Io(t){return t*4800/146097}function Rn(t){return t*146097/4800}function vm(t){if(!this.isValid())return NaN;var a,o,s=this._milliseconds;if(t=Se(t),t==="month"||t==="quarter"||t==="year")switch(a=this._days+s/864e5,o=this._months+Io(a),t){case"month":return o;case"quarter":return o/3;case"year":return o/12}else switch(a=this._days+Math.round(Rn(this._months)),t){case"week":return a/7+s/6048e5;case"day":return a+s/864e5;case"hour":return a*24+s/36e5;case"minute":return a*1440+s/6e4;case"second":return a*86400+s/1e3;case"millisecond":return Math.floor(a*864e5)+s;default:throw new Error("Unknown unit "+t)}}function at(t){return function(){return this.as(t)}}var Fo=at("ms"),bm=at("s"),ym=at("m"),Cm=at("h"),Dm=at("d"),wm=at("w"),km=at("M"),xm=at("Q"),Mm=at("y"),Sm=Fo;function Tm(){return Ne(this)}function Pm(t){return t=Se(t),this.isValid()?this[t+"s"]():NaN}function Tt(t){return function(){return this.isValid()?this._data[t]:NaN}}var Om=Tt("milliseconds"),Am=Tt("seconds"),Em=Tt("minutes"),Im=Tt("hours"),Fm=Tt("days"),Vm=Tt("months"),Rm=Tt("years");function Ym(){return Te(this.days()/7)}var nt=Math.round,Wt={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Lm(t,a,o,s,c){return c.relativeTime(a||1,!!o,t,s)}function Nm(t,a,o,s){var c=Ne(t).abs(),_=nt(c.as("s")),v=nt(c.as("m")),M=nt(c.as("h")),F=nt(c.as("d")),H=nt(c.as("M")),ge=nt(c.as("w")),rt=nt(c.as("y")),ht=_<=o.ss&&["s",_]||_<o.s&&["ss",_]||v<=1&&["m"]||v<o.m&&["mm",v]||M<=1&&["h"]||M<o.h&&["hh",M]||F<=1&&["d"]||F<o.d&&["dd",F];
4return o.w!=null&&(ht=ht||ge<=1&&["w"]||ge<o.w&&["ww",ge]),ht=ht||H<=1&&["M"]||H<o.M&&["MM",H]||rt<=1&&["y"]||["yy",rt],ht[2]=a,ht[3]=+t>0,ht[4]=s,Lm.apply(null,ht)}function zm(t){return t===void 0?nt:typeof t=="function"?(nt=t,!0):!1}function Hm(t,a){return Wt[t]===void 0?!1:a===void 0?Wt[t]:(Wt[t]=a,t==="s"&&(Wt.ss=a-1),!0)}function Wm(t,a){if(!this.isValid())return this.localeData().invalidDate();var o=!1,s=Wt,c,_;return typeof t=="object"&&(a=t,t=!1),typeof t=="boolean"&&(o=t),typeof a=="object"&&(s=Object.assign({},Wt,a),a.s!=null&&a.ss==null&&(s.ss=a.s-1)),c=this.localeData(),_=Nm(this,!o,s,c),o&&(_=c.pastFuture(+this,_)),c.postformat(_)}var Yn=Math.abs;function jt(t){return(t>0)-(t<0)||+t}function ea(){if(!this.isValid())return this.localeData().invalidDate();var t=Yn(this._milliseconds)/1e3,a=Yn(this._days),o=Yn(this._months),s,c,_,v,M=this.asSeconds(),F,H,ge,rt;return M?(s=Te(t/60),c=Te(s/60),t%=60,s%=60,_=Te(o/12),o%=12,v=t?t.toFixed(3).replace(/\.?0+$/,""):"",F=M<0?"-":"",H=jt(this._months)!==jt(M)?"-":"",ge=jt(this._days)!==jt(M)?"-":"",rt=jt(this._milliseconds)!==jt(M)?"-":"",F+"P"+(_?H+_+"Y":"")+(o?H+o+"M":"")+(a?ge+a+"D":"")+(c||s||t?"T":"")+(c?rt+c+"H":"")+(s?rt+s+"M":"")+(t?rt+v+"S":"")):"P0D"}var W=Gi.prototype;W.isValid=Vc,W.abs=hm,W.add=_m,W.subtract=fm,W.as=vm,W.asMilliseconds=Fo,W.asSeconds=bm,W.asMinutes=ym,W.asHours=Cm,W.asDays=Dm,W.asWeeks=wm,W.asMonths=km,W.asQuarters=xm,W.asYears=Mm,W.valueOf=Sm,W._bubble=gm,W.clone=Tm,W.get=Pm,W.milliseconds=Om,W.seconds=Am,W.minutes=Em,W.hours=Im,W.days=Fm,W.weeks=Ym,W.months=Vm,W.years=Rm,W.humanize=Wm,W.toISOString=ea,W.toString=ea,W.toJSON=ea,W.locale=yo,W.localeData=Do,W.toIsoString=Me("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ea),W.lang=Co,E("X",0,0,"unix"),E("x",0,0,"valueOf"),S("x",zi),S("X",dd),K("X",function(t,a,o){o._d=new Date(parseFloat(t)*1e3)}),K("x",function(t,a,o){o._d=new Date(N(t))});return d.version="2.30.1",e(X),d.fn=k,d.min=Ac,d.max=Ec,d.now=Ic,d.utc=fe,d.unix=sm,d.months=dm,d.isDate=I,d.locale=mt,d.invalid=Fi,d.duration=Ne,d.isMoment=Ye,d.weekdays=pm,d.parseZone=lm,d.localeData=tt,d.isDuration=qi,d.monthsShort=cm,d.weekdaysMin=um,d.defineLocale=kn,d.updateLocale=lc,d.locales=dc,d.weekdaysShort=mm,d.normalizeUnits=Se,d.relativeTimeRounding=zm,d.relativeTimeThreshold=Hm,d.calendarFormat=np,d.prototype=k,d.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},d})});var Hl=Vo((Lr,zl)=>{"use strict";(function(r,d){typeof Lr=="object"&&typeof zl<"u"&&typeof ta=="function"?d(ni()):typeof define=="function"&&define.amd?define(["../moment"],d):d(r.moment)})(Lr,function(r){"use strict";var d="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017Adziernik_listopad_grudzie\u0144".split("_"),e="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015Bnia_pa\u017Adziernika_listopada_grudnia".split("_"),i=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^paź/i,/^lis/i,/^gru/i];function n(f){return f%10<5&&f%10>1&&~~(f/10)%10!==1}function l(f,C,I){var L=f+" ";switch(I){case"ss":return L+(n(f)?"sekundy":"sekund");case"m":return C?"minuta":"minut\u0119";case"mm":return L+(n(f)?"minuty":"minut");case"h":return C?"godzina":"godzin\u0119";case"hh":return L+(n(f)?"godziny":"godzin");case"ww":return L+(n(f)?"tygodnie":"tygodni");case"MM":return L+(n(f)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return L+(n(f)?"lata":"lat")}}var p=r.defineLocale("pl",{months:function(f,C){return f?/D MMMM/.test(C)?e[f.month()]:d[f.month()]:d},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017A_lis_gru".split("_"),monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015Broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015Br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015Ar_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"}
4,calendar:{sameDay:"[Dzi\u015B o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedziel\u0119 o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W \u015Brod\u0119 o] LT";case 6:return"[W sobot\u0119 o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zesz\u0142\u0105 niedziel\u0119 o] LT";case 3:return"[W zesz\u0142\u0105 \u015Brod\u0119 o] LT";case 6:return"[W zesz\u0142\u0105 sobot\u0119 o] LT";default:return"[W zesz\u0142y] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:l,m:l,mm:l,h:l,hh:l,d:"1 dzie\u0144",dd:"%d dni",w:"tydzie\u0144",ww:l,M:"miesi\u0105c",MM:l,y:"rok",yy:l},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return p})});var gl=(r,d)=>d.id,Um=(r,d,e,i,n)=>({width:r,transform:d,transition:e,"padding-left":i,"padding-right":n}),Bm=(r,d,e,i)=>({width:r,"margin-left":d,"margin-right":e,left:i}),$m=(r,d)=>({$implicit:r,index:d});function Gm(r,d){}function qm(r,d){if(r&1&&A(0,Gm,0,0,"ng-template",3),r&2){let e=g(),i=e.$implicit,n=e.$index,l=g();D("ngTemplateOutlet",i.tplRef)("ngTemplateOutletContext",pa(2,$m,l.preparePublicSlide(i),n))}}function Km(r,d){if(r&1){let e=$();m(0,"div",2),O("animationend",function(){let n=T(e).$implicit,l=g();return P(l.clear(n.id))}),A(1,qm,1,5,null,3),u()}if(r&2){let e=d.$implicit;D("ngClass",e.classes)("ngStyle",Jo(4,Bm,e.width+"px",e.marginL?e.marginL+"px":"",e.marginR?e.marginR+"px":"",e.left))("@autoHeight",e.heightState),h(),x(e.load?1:-1)}}var Zm=(r,d,e,i,n)=>({"owl-rtl":r,"owl-loaded":d,"owl-responsive":e,"owl-drag":i,"owl-grab":n}),Qm=(r,d)=>({isMouseDragable:r,isTouchDragable:d}),Aa=r=>({disabled:r}),Jm=(r,d)=>({active:r,"owl-dot-text":d});function Xm(r,d){if(r&1&&(m(0,"div",2),y(1,"owl-stage",3),u()),r&2){let e=g();h(),D("owlDraggable",pa(3,Qm,e.owlDOMData==null?null:e.owlDOMData.isMouseDragable,e.owlDOMData==null?null:e.owlDOMData.isTouchDragable))("stageData",e.stageData)("slidesData",e.slidesData)}}function eu(r,d){if(r&1){let e=$();m(0,"div",9),O("click",function(){let n=T(e).$implicit,l=g(2);return P(l.moveByDot(n.id))}),y(1,"span",10),u()}if(r&2){let e=d.$implicit;D("ngClass",pa(2,Jm,e.active,e.showInnerContent)),h(),D("innerHTML",e.innerContent,Ke)}}function tu(r,d){if(r&1){let e=$();m(0,"div",4)(1,"div",5),O("click",function(){T(e);let n=g();return P(n.prev())}),u(),m(2,"div",6),O("click",function(){T(e);let n=g();return P(n.next())}),u()(),m(3,"div",7),U(4,eu,2,5,"div",8,gl),u()}if(r&2){let e=g();D("ngClass",Ee(6,Aa,e.navData==null?null:e.navData.disabled)),h(),D("ngClass",Ee(8,Aa,e.navData==null||e.navData.prev==null?null:e.navData.prev.disabled))("innerHTML",e.navData==null||e.navData.prev==null?null:e.navData.prev.htmlText,Ke),h(),D("ngClass",Ee(10,Aa,e.navData==null||e.navData.next==null?null:e.navData.next.disabled))("innerHTML",e.navData==null||e.navData.next==null?null:e.navData.next.htmlText,Ke),h(),D("ngClass",Ee(12,Aa,e.dotsData==null?null:e.dotsData.disabled)),h(),B(e.dotsData==null?null:e.dotsData.dots)}}var Cr=class{items=3;skip_validateItems=!1;loop=!1;center=!1;rewind=!1;mouseDrag=!0;touchDrag=!0;pullDrag=!0;freeDrag=!1;margin=0;stagePadding=0;merge=!1;mergeFit=!0;autoWidth=!1;startPosition=0;rtl=!1;smartSpeed=250;fluidSpeed=!1;dragEndSpeed=!1;responsive={};responsiveRefreshRate=200;nav=!1;navText=["prev","next"];navSpeed=!1;slideBy=1;dots=!0;dotsEach=!1;dotsData=!1;dotsSpeed=!1;autoplay=!1;autoplayTimeout=5e3;autoplayHoverPause=!1;autoplaySpeed=!1;autoplayMouseleaveTimeout=1;lazyLoad=!1;lazyLoadEager=0;slideTransition="";animateOut=!1;animateIn=!1;autoHeight=!1;URLhashListener=!1;constructor(){}},Dr=class{items="number";skip_validateItems="boolean";loop="boolean";center="boolean";rewind="boolean";mouseDrag="boolean";touchDrag="boolean";pullDrag="boolean";freeDrag="boolean";margin="number";stagePadding="number";merge="boolean";mergeFit="boolean";autoWidth="boolean";startPosition="number|string";rtl="boolean";smartSpeed="number";fluidSpeed="boolean";dragEndSpeed="number|boolean";responsive={};responsiveRefreshRate="number";nav="boolean";navText="string[]";navSpeed="number|boolean";slideBy="number|string";dots="boolean";dotsEach="number|boolean";dotsData="boolean";dotsSpeed="number|boolean";autoplay="boolean";autoplayTimeout="number";autoplayHoverPause="boolean";autoplaySpeed="number|boolean";autoplayMouseleaveTimeout="number";lazyLoad="boolean";lazyLoadEager="number";slideTransition="string";animateOut="string|boolean";
4animateIn="string|boolean";autoHeight="boolean";URLhashListener="boolean";constructor(){}},kr=(()=>{class r{errorHandler;constructor(e){this.errorHandler=e}log(e,...i){Xo()&&console.log(e,...i)}error(e){this.errorHandler.handleError(e)}warn(e,...i){console.warn(e,...i)}static \u0275fac=function(i){return new(i||r)(le($o))};static \u0275prov=ne({token:r,factory:r.\u0275fac})}return r})();var vl=function(r){return r.Event="event",r.State="state",r}(vl||{}),Ea=function(r){return r.Default="default",r.Inner="inner",r.Outer="outer",r}(Ea||{});var pt=(()=>{class r{logger;_viewSettingsShipper$=new te;_initializedCarousel$=new te;_changeSettingsCarousel$=new te;_changedSettingsCarousel$=new te;_translateCarousel$=new te;_translatedCarousel$=new te;_resizeCarousel$=new te;_resizedCarousel$=new te;_refreshCarousel$=new te;_refreshedCarousel$=new te;_dragCarousel$=new te;_draggedCarousel$=new te;settings={items:0};owlDOMData={rtl:!1,isResponsive:!1,isRefreshed:!1,isLoaded:!1,isLoading:!1,isMouseDragable:!1,isGrab:!1,isTouchDragable:!1};stageData={transform:"translate3d(0px,0px,0px)",transition:"0s",width:0,paddingL:0,paddingR:0};slidesData;navData;dotsData;_width;_items=[];_widths=[];_supress={};_plugins={};_current=null;_clones=[];_mergers=[];_speed=null;_coordinates=[];_breakpoint=null;clonedIdPrefix="cloned-";_options={};_invalidated={};get invalidated(){return this._invalidated}_states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}};get states(){return this._states}_pipe=[{filter:["width","items","settings"],run:e=>{e.current=this._items&&this._items[this.relative(this._current)]?.id}},{filter:["width","items","settings"],run:e=>{let i=this.settings.margin||"",n=!this.settings.autoWidth,l=this.settings.rtl,p={"margin-left":l?i:"","margin-right":l?"":i};n||this.slidesData.forEach(f=>{f.marginL=p["margin-left"],f.marginR=p["margin-right"]}),e.css=p}},{filter:["width","items","settings"],run:e=>{let i=+(this.width()/this.settings.items).toFixed(3)-this.settings.margin,n=!this.settings.autoWidth,l=[],p=null,f=this._items.length;for(e.items={merge:!1,width:i};f-- >0;)p=this._mergers[f],p=this.settings.mergeFit&&Math.min(p,this.settings.items)||p,e.items.merge=p>1||e.items.merge,l[f]=n?i*p:this._items[f].width?this._items[f].width:i;this._widths=l,this.slidesData.forEach((C,I)=>{C.width=this._widths[I],C.marginR=e.css["margin-right"],C.marginL=e.css["margin-left"]})}},{filter:["items","settings"],run:()=>{let e=[],i=this._items,n=this.settings,l=Math.max(n.items*2,4),p=Math.ceil(i.length/2)*2,f=[],C=[],I=n.loop&&i.length?n.rewind?l:Math.max(l,p):0;for(I/=2;I-- >0;)e.push(this.normalize(e.length/2,!0)),f.push(se({},this.slidesData[e[e.length-1]])),e.push(this.normalize(i.length-1-(e.length-1)/2,!0)),C.unshift(se({},this.slidesData[e[e.length-1]]));this._clones=e,f=f.map(L=>ze(se({},L),{id:`${this.clonedIdPrefix}${L.id}-append`,isActive:!1,isCloned:!0})),C=C.map(L=>ze(se({},L),{id:`${this.clonedIdPrefix}${L.id}`,isActive:!1,isCloned:!0})),this.slidesData=C.concat(this.slidesData).concat(f)}},{filter:["width","items","settings"],run:()=>{let e=this.settings.rtl?1:-1,i=this._clones.length+this._items.length,n=[],l=-1,p=0,f=0;for(;++l<i;)p=n[l-1]||0,f=this._widths[this.relative(l)]+this.settings.margin,n.push(p+f*e);this._coordinates=n}},{filter:["width","items","settings"],run:()=>{let e=this.settings.stagePadding,i=this._coordinates,n={width:Math.ceil(Math.abs(i[i.length-1]))+e*2,"padding-left":e||"","padding-right":e||""};this.stageData.width=n.width,this.stageData.paddingL=n["padding-left"],this.stageData.paddingR=n["padding-right"]}},{filter:["width","items","settings"],run:e=>{let i=e.current?this.slidesData.findIndex(n=>n.id===e.current):0;i=Math.max(this.minimum(),Math.min(this.maximum(),i)),this.reset(i)}},{filter:["position"],run:()=>{this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:()=>{let e=this.settings.rtl?1:-1,i=this.settings.stagePadding*2,n=[],l,p,f,C,I,L;if(l=this.coordinates(this.current()),typeof l=="number"?l+=i:l=0,p=l+this.width()*e,e===-1&&this.settings.center){let q=this._coordinates.filter(fe=>this.settings.items%2===1?fe>
4=l:fe>l);l=q.length?q[q.length-1]:l}for(I=0,L=this._coordinates.length;I<L;I++)f=Math.ceil(this._coordinates[I-1]||0),C=Math.ceil(Math.abs(this._coordinates[I])+i*e),(this._op(f,"<=",l)&&this._op(f,">",p)||this._op(C,"<",l)&&this._op(C,">",p))&&n.push(I);this.slidesData.forEach(q=>(q.isActive=!1,q)),n.forEach(q=>{this.slidesData[q].isActive=!0}),this.settings.center&&(this.slidesData.forEach(q=>(q.isCentered=!1,q)),this.slidesData[this.current()].isCentered=!0)}}];constructor(e){this.logger=e}getViewCurSettings(){return this._viewSettingsShipper$.asObservable()}getInitializedState(){return this._initializedCarousel$.asObservable()}getChangeState(){return this._changeSettingsCarousel$.asObservable()}getChangedState(){return this._changedSettingsCarousel$.asObservable()}getTranslateState(){return this._translateCarousel$.asObservable()}getTranslatedState(){return this._translatedCarousel$.asObservable()}getResizeState(){return this._resizeCarousel$.asObservable()}getResizedState(){return this._resizedCarousel$.asObservable()}getRefreshState(){return this._refreshCarousel$.asObservable()}getRefreshedState(){return this._refreshedCarousel$.asObservable()}getDragState(){return this._dragCarousel$.asObservable()}getDraggedState(){return this._draggedCarousel$.asObservable()}setOptions(e){let i=new Cr,n=this._validateOptions(e,i);this._options=se(se({},i),n)}_validateOptions(e,i){let n=se({},e),l=new Dr,p=(f,C)=>(this.logger.log(`options.${C} must be type of ${f}; ${C}=${e[C]} skipped to defaults: ${C}=${i[C]}`),i[C]);for(let f in n)if(n.hasOwnProperty(f)){if(l[f]==="number")this._isNumeric(n[f])?(n[f]=+n[f],n[f]=f==="items"?this._validateItems(n[f],n.skip_validateItems):n[f]):n[f]=p(l[f],f);else if(l[f]==="boolean"&&typeof n[f]!="boolean")n[f]=p(l[f],f);else if(l[f]==="number|boolean"&&!this._isNumberOrBoolean(n[f]))n[f]=p(l[f],f);else if(l[f]==="number|string"&&!this._isNumberOrString(n[f]))n[f]=p(l[f],f);else if(l[f]==="string|boolean"&&!this._isStringOrBoolean(n[f]))n[f]=p(l[f],f);else if(l[f]==="string[]")if(Array.isArray(n[f])){let C=!1;n[f].forEach(I=>{C=typeof I=="string"}),C||(n[f]=p(l[f],f))}else n[f]=p(l[f],f)}return n}_validateItems(e,i){let n=e;return e>this._items.length?i?this.logger.log("The option 'items' in your options is bigger than the number of slides. The navigation got disabled"):(n=this._items.length,this.logger.log("The option 'items' in your options is bigger than the number of slides. This option is updated to the current number of slides and the navigation got disabled")):e===this._items.length&&(this.settings.dots||this.settings.nav)&&this.logger.log("Option 'items' in your options is equal to the number of slides. So the navigation got disabled"),n}setCarouselWidth(e){this._width=e}setup(e,i,n){this.setCarouselWidth(e),this.setItems(i),this._defineSlidesData(),this.setOptions(n),this.settings=se({},this._options),this.setOptionsForViewport(),this._trigger("change",{property:{name:"settings",value:this.settings}}),this.invalidate("settings"),this._trigger("changed",{property:{name:"settings",value:this.settings}})}setOptionsForViewport(){let e=this._width,i=this._options.responsive,n=-1;if(!Object.keys(i).length)return;if(!e){this.settings.items=1;return}for(let p in i)i.hasOwnProperty(p)&&+p<=e&&+p>n&&(n=Number(p));this.settings=ze(se(se({},this._options),i[n]),{items:i[n]&&i[n].items?this._validateItems(i[n].items,this._options.skip_validateItems):this._options.items}),delete this.settings.responsive,this.owlDOMData.isResponsive=!0,this.owlDOMData.isMouseDragable=this.settings.mouseDrag,this.owlDOMData.isTouchDragable=this.settings.touchDrag;let l=[];this._items.forEach(p=>{let f=this.settings.merge?p.dataMerge:1;l.push(f)}),this._mergers=l,this._breakpoint=n,this.invalidate("settings")}initialize(e){this.enter("initializing"),this.owlDOMData.rtl=this.settings.rtl,this._mergers.length&&(this._mergers=[]),e.forEach(i=>{let n=this.settings.merge?i.dataMerge:1;this._mergers.push(n)}),this._clones=[],this.reset(this._isNumeric(this.settings.startPosition)?+this.settings.startPosition:0),this.invalidate("items"),this.refresh(),this.owlDOMData.isLoaded=!0,this.owlDOMData.isMouseDragable=this.settings.mouseDrag,this.owlDOMData.isTouchDragable=this.settings.touchDrag,this.sendChanges(),this.leave("initializing"),this._trigger("initialized")}sendChanges(){this._viewSettingsShipper$.next({owlDOMData:this.owlDOMData,stageData:this.stageData,slidesData:this.slidesData,navData:this.navData,dotsData:this.dotsData})}_optionsLogic(){this.settings.autoWidth&&(this.settings.stagePadding=0,this.settings.merge=!1)}update(){let e=0,i=this._pipe.length,n=p=>this._invalidated[p],l={};for(;e<i;){let p=this._pipe[e].filter.filter(n);(this._invalidated.all||p.length>0)&&this._pipe[e].run(l),e++}this.slidesData.forEach(p=>p.classes=this.setCurSlideClasses(p)),this.sendChanges(),this._invalidated={},this.is("valid")||this.enter("valid")}width(e){switch(e=e||Ea.Default,e){case Ea.Inner:case Ea.Outer:return this._width;default:return this._width-this.settings.stagePadding*2+this.settings.margin}}refresh(){this.enter("refreshing"),this._trigger("refresh"),this._defineSlidesData(),this.setOptionsForViewport(),this._optionsLogic(),this.update(),this.leave("refreshing"),this._trigger("refreshed")}onResize(e){if(!this._items.length)return!1;this.setCarouselWidth(e),this.enter("resizing"),this._trigger("resize"),this.invalidate("width"),this.refresh(),this.leave("resizing"),this._trigger("resized")}prepareDragging(e){let i=null,n;return n=this.stageData.transform.replace(/.*\(|\)| |[^,-\d]\w|\)/g,"").split(","),i={x:+n[0],y:+n[1]},this.is("animating")&&this.invalidate("position"),e.type==="mousedown"&&(this.owlDOMData.isGrab=!0),this.speed(0),i}enterDragging(){this.enter("dragging"),this._trigger("drag")}defineNewCoordsDrag(e,i){let n=null,l=null,p=null,f=this.difference(i.pointer,this.pointer(e)),C=this.difference(i.stage.start,f);return this.is("dragging")?(this.settings.loop?(n=this.coordinates(this.minimum()),l=+this.coordinates(this.maximum()+1)-n,C.x=((C.x-n)%l+l)%l+n):(n=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),l=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),p=this.settings.pullDrag?-1*f.x/5:0,C.x=Math.max(Math.min(C.x,n+p),l+p)),C):!1}finishDragging(e,i,n){let l=["right","left"],p=this.difference(i.pointer,this.pointer(e)),f=i.stage.current,C=l[+(this.settings.rtl?p.x<+this.settings.rtl:p.x>+this.settings.rtl)],I,L,q;(p.x!==0&&this.is("dragging")||!this.is("valid"))&&(this.speed(+this.settings.dragEndSpeed||this.settings.smartSpeed),I=this.closest(f.x,p.x!==0?C:i.direction),L=this.current(),q=this.current(I===-1?void 0:I),L!==q&&(this.invalidate("position"),this.update()),i.direction=C,(Math.abs(p.x)>3||new Date().getTime()-i.time>300)&&n()),this.is("dragging")&&(this.leave("dragging"),this._trigger("dragged"))}closest(e,i){let l=this.width(),p=this.coordinates(),f=-1;this.settings.center&&(p=p.map(C=>(C===0&&(C+=1e-6),C)));for(let C=0;C<p.length&&(i==="left"&&e>p[C]-30&&e<p[C]+30?f=C:i==="right"&&e>p[C]-l-30&&e<p[C]-l+30?f=C+1:this._op(e,"<",p[C])&&this._op(e,">",p[C+1]||p[C]-l)?f=i==="left"?C+1:C:i===null&&e>p[C]-30&&e<p[C]+30&&(f=C),f===-1);C++);return this.settings.loop||(this._op(e,">",p[this.minimum()])?f=e=this.minimum():this._op(e,"<",p[this.maximum()])&&(f=e=this.maximum())),f}animate(e){let i=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),i&&(this.enter("animating"),this._trigger("translate")),this.stageData.transform="translate3d("+e+"px,0px,0px)",this.stageData.transition=this.speed()/1e3+"s"+(this.settings.slideTransition?" "+this.settings.slideTransition:"")}is(e){return this._states.current[e]&&this._states.current[e]>0}current(e){if(e===void 0)return this._current;if(this._items.length!==0){if(e=this.normalize(e),this._current!==e){let i=this._trigger("change",{property:{name:"position",value:e}});this._current=e,this.invalidate("position"),this._trigger("changed",{property:{name:"position",value:this._current}})}return this._current}}invalidate(e){return typeof e=="string"&&(this._invalidated[e]=!0,this.is("valid")&&this.leave("valid")),Object.keys(this._invalidated)}reset(e){e=this.normalize(e),e!==void 0&&(this._speed=0,this._current=e,this._suppress(["translate","translated"]),this.animate(this.coordinates(e)),this._release(["translate","translated"]))}normalize(e,i){let n=this._items.length,l=i?0:this._clones.length;return!this._isNumeric(e)||n<1?e=void 0:(e<0||e>=n+l)&&(e=((e-l/2)%n+n)%n+l/2),e}relative(e){return e-=this._clones.length/2,this.normalize(e,!0)}maximum(e=!1){let i=this.settings,n=this._coordinates.length,l,p,f;if(i.loop)n=this._clones.length/2+this._items.length-1;else if(i.autoWidth||i.merge){for(l=this._items.length,p=this.slidesData[--l].width,f=this._width;l-- >0&&(p+=+this.slidesData[l].width+this.settings.margin,!(p>f)););n=l+1}else i.center?n=this._items.length-1:n=this._items.length-i.items;return e&&(n-=this._clones.length/2),Math.max(n,0)}minimum(e=!1){return e?0:this._clones.length/2}items(e){return e===void 0?this._items.slice():(e=this.normalize(e,!0),[this._items[e]])}mergers(e){return e===void 0?this._mergers.slice():(e=this.normalize(e,!0),this._mergers[e])}clones(e){let i=this._clones.length/2,n=i+this._items.length,l=p=>p%2===0?n+p/2:i-(p+1)/2;return e===void 0?this._clones.map((p,f)=>l(f)):this._clones.map((p,f)=>p===e?l(f):null).filter(p=>p)}speed(e){return e!==void 0&&(this._speed=e),this._speed}coordinates(e){let i=1,n=e-1,l,p;return e===void 0?(p=this._coordinates.map((f,C)=>this.coordinates(C)),p):(this.settings.center?(this.settings.rtl&&(i=-1,n=e+1),l=this._coordinates[e],l+=(this.width()-l+(this._coordinates[n]||0))/2*i):l=this._coordinates[n]||0,l=Math.ceil(l),l)}_duration(e,i,n){return n===0?0:Math.min(Math.max(Math.abs(i-e),1),6)*Math.abs(+n||this.settings.smartSpeed)}to(e,i){let n=this.current(),l=null,p=e-this.relative(n),f=this.maximum(),C=0,I=+(p>0)-+(p<0),L=this._items.length,q=this.minimum();this.settings.loop?(!this.settings.rewind&&Math.abs(p)>L/2&&(p+=I*-1*L),e=n+p,l=((e-q)%L+L)%L+q,l!==e&&l-p<=f&&l-p>0&&(n=l-p,e=l,C=30,this.reset(n),this.sendChanges())):this.settings.rewind?(f+=1,e=(e%f+f)%f):e=Math.max(q,Math.min(f,e)),setTimeout(()=>{this.speed(this._duration(n,e,i)),this.current(e),this.update()},C)}next(e){e=e||!1,this.to(this.relative(this.current())+1,e)}prev(e){e=e||!1,this.to(this.relative(this.current())-1,e)}onTransitionEnd(e){if(e!==void 0)return!1;this.leave("animating"),this._trigger("translated")}_viewport(){let e;return this._width?e=this._width:this.logger.log("Can not detect viewport width."),e}setItems(e){this._items=e}_defineSlidesData(){let e;this.slidesData&&this.slidesData.length&&(e=new Map,this.slidesData.forEach(i=>
4{i.load&&e.set(i.id,i.load)})),this.slidesData=this._items.map(i=>({id:`${i.id}`,isActive:!1,tplRef:i.tplRef,dataMerge:i.dataMerge,width:0,isCloned:!1,load:e?e.get(i.id):!1,hashFragment:i.dataHash}))}setCurSlideClasses(e){let i={active:e.isActive,center:e.isCentered,cloned:e.isCloned,animated:e.isAnimated,"owl-animated-in":e.isDefAnimatedIn,"owl-animated-out":e.isDefAnimatedOut};return this.settings.animateIn&&(i[this.settings.animateIn]=e.isCustomAnimatedIn),this.settings.animateOut&&(i[this.settings.animateOut]=e.isCustomAnimatedOut),i}_op(e,i,n){let l=this.settings.rtl;switch(i){case"<":return l?e>n:e<n;case">":return l?e<n:e>n;case">=":return l?e<=n:e>=n;case"<=":return l?e>=n:e<=n;default:break}}_trigger(e,i,n,l,p){switch(e){case"initialized":this._initializedCarousel$.next(e);break;case"change":this._changeSettingsCarousel$.next(i);break;case"changed":this._changedSettingsCarousel$.next(i);break;case"drag":this._dragCarousel$.next(e);break;case"dragged":this._draggedCarousel$.next(e);break;case"resize":this._resizeCarousel$.next(e);break;case"resized":this._resizedCarousel$.next(e);break;case"refresh":this._refreshCarousel$.next(e);break;case"refreshed":this._refreshedCarousel$.next(e);break;case"translate":this._translateCarousel$.next(e);break;case"translated":this._translatedCarousel$.next(e);break;default:break}}enter(e){[e].concat(this._states.tags[e]||[]).forEach(i=>{this._states.current[i]===void 0&&(this._states.current[i]=0),this._states.current[i]++})}leave(e){[e].concat(this._states.tags[e]||[]).forEach(i=>{(this._states.current[i]===0||this._states.current[i])&&this._states.current[i]--})}register(e){e.type===vl.State&&(this._states.tags[e.name]?this._states.tags[e.name]=this._states.tags[e.name].concat(e.tags):this._states.tags[e.name]=e.tags,this._states.tags[e.name]=this._states.tags[e.name].filter((i,n)=>this._states.tags[e.name].indexOf(i)===n))}_suppress(e){e.forEach(i=>{this._supress[i]=!0})}_release(e){e.forEach(i=>{delete this._supress[i]})}pointer(e){let i={x:null,y:null};return e=e.originalEvent||e||window.event,e=e.touches&&e.touches.length?e.touches[0]:e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,e.pageX?(i.x=e.pageX,i.y=e.pageY):(i.x=e.clientX,i.y=e.clientY),i}_isNumeric(e){return!isNaN(parseFloat(e))}_isNumberOrBoolean(e){return this._isNumeric(e)||typeof e=="boolean"}_isNumberOrString(e){return this._isNumeric(e)||typeof e=="string"}_isStringOrBoolean(e){return typeof e=="string"||typeof e=="boolean"}difference(e,i){return e===null||i===null?{x:0,y:0}:{x:e.x-i.x,y:e.y-i.y}}static \u0275fac=function(i){return new(i||r)(le(kr))};static \u0275prov=ne({token:r,factory:r.\u0275fac})}return r})(),ml=(()=>{class r{carouselService;navSubscription;_initialized=!1;_pages=[];_navData={disabled:!1,prev:{disabled:!1,htmlText:""},next:{disabled:!1,htmlText:""}};_dotsData={disabled:!1,dots:[]};constructor(e){this.carouselService=e,this.spyDataStreams()}ngOnDestroy(){this.navSubscription.unsubscribe()}spyDataStreams(){let e=this.carouselService.getInitializedState().pipe(G(p=>{this.initialize(),this._updateNavPages(),this.draw(),this.update(),this.carouselService.sendChanges()})),i=this.carouselService.getChangedState().pipe(_t(p=>p.property.name==="position"),G(p=>{this.update()})),n=this.carouselService.getRefreshedState().pipe(G(()=>{this._updateNavPages(),this.draw(),this.update(),this.carouselService.sendChanges()})),l=ye(e,i,n);this.navSubscription=l.subscribe(()=>{})}initialize(){this._navData.disabled=!0,this._navData.prev.htmlText=this.carouselService.settings.navText[0],this._navData.next.htmlText=this.carouselService.settings.navText[1],this._dotsData.disabled=!0,this.carouselService.navData=this._navData,this.carouselService.dotsData=this._dotsData}_updateNavPages(){let e,i,n,l=this.carouselService.clones().length/2,p=l+this.carouselService.items().length,f=this.carouselService.maximum(!0),C=[],I=this.carouselService.settings,L=I.center||I.autoWidth||I.dotsData?1:Math.floor(Number(I.dotsEach))||Math.floor(I.items);if(L=+L,I.slideBy!=="page"&&(I.slideBy=Math.min(+I.slideBy,I.items)),I.dots||I.slideBy==="page")for(e=l,i=0,n=0;e<p;e++){if(i>=L||i===0){if(C.push({start:Math.min(f,e-l),end:e-l+L-1}),Math.min(f,e-l)===f)break;
4i=0,++n}i+=this.carouselService.mergers(this.carouselService.relative(e))}this._pages=C}draw(){let e,i=this.carouselService.settings,n=this.carouselService.items(),l=n.length<=i.items;if(this._navData.disabled=!i.nav||l,this._dotsData.disabled=!i.dots||l,i.dots)if(e=this._pages.length-this._dotsData.dots.length,i.dotsData&&e!==0)this._dotsData.dots=[],n.forEach(p=>{this._dotsData.dots.push({active:!1,id:`dot-${p.id}`,innerContent:p.dotContent,showInnerContent:!0})});else if(e>0){let p=this._dotsData.dots.length>0?this._dotsData.dots.length:0;for(let f=0;f<e;f++)this._dotsData.dots.push({active:!1,id:`dot-${f+p}`,innerContent:"",showInnerContent:!1})}else e<0&&this._dotsData.dots.splice(e,Math.abs(e));this.carouselService.navData=this._navData,this.carouselService.dotsData=this._dotsData}update(){this._updateNavButtons(),this._updateDots()}_updateNavButtons(){let e=this.carouselService.settings,i=e.loop||e.rewind,n=this.carouselService.relative(this.carouselService.current());e.nav&&(this._navData.prev.disabled=!i&&n<=this.carouselService.minimum(!0),this._navData.next.disabled=!i&&n>=this.carouselService.maximum(!0)),this.carouselService.navData=this._navData}_updateDots(){let e;this.carouselService.settings.dots&&(this._dotsData.dots.forEach(i=>{i.active===!0&&(i.active=!1)}),e=this._current(),this._dotsData.dots.length&&(this._dotsData.dots[e].active=!0),this.carouselService.dotsData=this._dotsData)}_current(){let e=this.carouselService.relative(this.carouselService.current()),i,n=this._pages.filter((l,p)=>l.start<=e&&l.end>=e).pop();return i=this._pages.findIndex(l=>l.start===n.start&&l.end===n.end),i}_getPosition(e){let i,n,l=this.carouselService.settings;return l.slideBy==="page"?(i=this._current(),n=this._pages.length,e?++i:--i,i=this._pages[(i%n+n)%n].start):(i=this.carouselService.relative(this.carouselService.current()),n=this.carouselService.items().length,e?i+=+l.slideBy:i-=+l.slideBy),i}next(e){this.carouselService.to(this._getPosition(!0),e)}prev(e){this.carouselService.to(this._getPosition(!1),e)}to(e,i,n){let l;!n&&this._pages.length?(l=this._pages.length,this.carouselService.to(this._pages[(e%l+l)%l].start,i)):this.carouselService.to(e,i)}moveByDot(e){let i=this._dotsData.dots.findIndex(n=>e===n.id);this.to(i,this.carouselService.settings.dotsSpeed)}toSlideById(e){let i=this.carouselService.slidesData.findIndex(n=>n.id===e&&n.isCloned===!1);i===-1||i===this.carouselService.current()||this.carouselService.to(this.carouselService.relative(i),!1)}static \u0275fac=function(i){return new(i||r)(le(pt))};static \u0275prov=ne({token:r,factory:r.\u0275fac})}return r})(),xr=new ft("WindowToken"),xi=class{get nativeWindow(){throw new Error("Not implemented.")}},iu=(()=>{class r extends xi{constructor(){super()}get nativeWindow(){return window}static \u0275fac=function(i){return new(i||r)};static \u0275prov=ne({token:r,factory:r.\u0275fac})}return r})();function au(r,d){return Ze(d)?r.nativeWindow:{setTimeout:(i,n)=>{},clearTimeout:i=>{}}}var nu={provide:xi,useClass:iu},ru={provide:xr,useFactory:au,deps:[xi,vt]},ou=[nu,ru],Ia=new ft("DocumentToken"),Mi=class{get nativeDocument(){throw new Error("Not implemented.")}},su=(()=>{class r extends Mi{constructor(){super()}get nativeDocument(){return document}static \u0275fac=function(i){return new(i||r)};static \u0275prov=ne({token:r,factory:r.\u0275fac})}return r})();function lu(r,d){return Ze(d)?r.nativeDocument:{hidden:!1,visibilityState:"visible"}}var du={provide:Mi,useClass:su},cu={provide:Ia,useFactory:lu,deps:[Mi,vt]},pu=[du,cu],ul=(()=>{class r{carouselService;ngZone;autoplaySubscription;_timeout=null;_paused=!1;_isArtificialAutoplayTimeout;_isAutoplayStopped=!1;get isAutoplayStopped(){return this._isAutoplayStopped}set isAutoplayStopped(e){this._isAutoplayStopped=e}winRef;docRef;constructor(e,i,n,l){this.carouselService=e,this.ngZone=l,this.winRef=i,this.docRef=n,this.spyDataStreams()}ngOnDestroy(){this.autoplaySubscription.unsubscribe()}spyDataStreams(){let e=this.carouselService.getInitializedState().pipe(G(()=>{this.carouselService.settings.autoplay&&this.play()})),i=this.carouselService.getChangedState().pipe(G(p=>{this._handleChangeObservable(p)})),n=this.carouselService.getResizedState().pipe(G(()=>{this.carouselService.settings.autoplay&&!this._isAutoplayStopped?this.play():this.stop()})),l=ye(e,i,n);this.autoplaySubscription=l.subscribe(()=>{})}play(e,i){this._paused&&(this._paused=!1,this._setAutoPlayInterval(this.carouselService.settings.autoplayMouseleaveTimeout)),!this.carouselService.is("rotating")&&(this.carouselService.enter("rotating"),this._setAutoPlayInterval())}
4_getNextTimeout(e,i){return this._timeout&&this.winRef.clearTimeout(this._timeout),this._isArtificialAutoplayTimeout=!!e,this.ngZone.runOutsideAngular(()=>this.winRef.setTimeout(()=>{this.ngZone.run(()=>{this._paused||this.carouselService.is("busy")||this.carouselService.is("interacting")||this.docRef.hidden||this.carouselService.next(i||this.carouselService.settings.autoplaySpeed)})},e||this.carouselService.settings.autoplayTimeout))}_setAutoPlayInterval(e){this._timeout=this._getNextTimeout(e)}stop(){this.carouselService.is("rotating")&&(this._paused=!0,this.winRef.clearTimeout(this._timeout),this.carouselService.leave("rotating"))}pause(){this.carouselService.is("rotating")&&(this._paused=!0)}_handleChangeObservable(e){e.property.name==="settings"?this.carouselService.settings.autoplay?this.play():this.stop():e.property.name==="position"&&this.carouselService.settings.autoplay&&this._setAutoPlayInterval()}_playAfterTranslated(){ot("translated").pipe(st(e=>this.carouselService.getTranslatedState()),ia(),_t(()=>this._isArtificialAutoplayTimeout),G(()=>this._setAutoPlayInterval())).subscribe(()=>{})}startPausing(){this.carouselService.settings.autoplayHoverPause&&this.carouselService.is("rotating")&&this.pause()}startPlayingMouseLeave(){this.carouselService.settings.autoplayHoverPause&&this.carouselService.is("rotating")&&(this.play(),this._playAfterTranslated())}startPlayingTouchEnd(){this.carouselService.settings.autoplayHoverPause&&this.carouselService.is("rotating")&&(this.play(),this._playAfterTranslated())}static \u0275fac=function(i){return new(i||r)(le(pt),le(xr),le(Ia),le(Ut))};static \u0275prov=ne({token:r,factory:r.\u0275fac})}return r})(),hl=(()=>{class r{carouselService;lazyLoadSubscription;constructor(e){this.carouselService=e,this.spyDataStreams()}ngOnDestroy(){this.lazyLoadSubscription.unsubscribe()}spyDataStreams(){let e=this.carouselService.getInitializedState().pipe(G(()=>{let p=this.carouselService.settings&&!this.carouselService.settings.lazyLoad;this.carouselService.slidesData.forEach(f=>f.load=!!p)})),i=this.carouselService.getChangeState(),n=this.carouselService.getResizedState(),l=ye(e,i,n).pipe(G(p=>this._defineLazyLoadSlides(p)));this.lazyLoadSubscription=l.subscribe(()=>{})}_defineLazyLoadSlides(e){if(!(!this.carouselService.settings||!this.carouselService.settings.lazyLoad)&&(e.property&&e.property.name==="position"||e==="initialized"||e==="resized")){let i=this.carouselService.settings,n=this.carouselService.clones().length,l=i.center&&Math.ceil(i.items/2)||i.items,p=i.center&&l*-1||0,f=(e.property&&e.property.value!==void 0?e.property.value:this.carouselService.current())+p;for(i.lazyLoadEager>0&&(l+=i.lazyLoadEager,i.loop&&(f-=i.lazyLoadEager,l++));p++<l;)this._load(n/2+this.carouselService.relative(f)),n&&this.carouselService.clones(this.carouselService.relative(f)).forEach(C=>this._load(C)),f++}}_load(e){this.carouselService.slidesData[e].load||(this.carouselService.slidesData[e].load=!0)}static \u0275fac=function(i){return new(i||r)(le(pt))};static \u0275prov=ne({token:r,factory:r.\u0275fac})}return r})(),wr=(()=>{class r{carouselService;animateSubscription;swapping=!0;previous=void 0;next=void 0;constructor(e){this.carouselService=e,this.spyDataStreams()}ngOnDestroy(){this.animateSubscription.unsubscribe()}spyDataStreams(){let e=this.carouselService.getChangeState().pipe(G(I=>{I.property.name==="position"&&(this.previous=this.carouselService.current(),this.next=I.property.value)})),i=this.carouselService.getDragState(),n=this.carouselService.getDraggedState(),l=this.carouselService.getTranslatedState(),p=ye(i,n,l).pipe(G(I=>this.swapping=I==="translated")),f=this.carouselService.getTranslateState().pipe(G(I=>{this.swapping&&(this.carouselService._options.animateOut||this.carouselService._options.animateIn)&&this._swap()})),C=ye(e,f,p).pipe();this.animateSubscription=C.subscribe(()=>{})}_swap(){if(this.carouselService.settings.items!==1)return;this.carouselService.speed(0);let e,i=this.carouselService.slidesData[this.previous],n=this.carouselService.slidesData[this.next],l=this.carouselService.settings.animateIn,p=this.carouselService.settings.animateOut;this.carouselService.current()!==this.previous&&(p&&(e=+this.carouselService.coordinates(this.previous)-+this.carouselService.coordinates(this.next),this.carouselService.slidesData.forEach(f=>{f.id===i.id&&(f.left=`${e}px`,f.isAnimated=!0,f.isDefAnimatedOut=!0,f.isCustomAnimatedOut=!0)})),l&&this.carouselService.slidesData.forEach(f=>{f.id===n.id&&(f.isAnimated=!0,f.isDefAnimatedIn=!0,f.isCustomAnimatedIn=!0)}))}clear(e){this.carouselService.slidesData.forEach(i=>
4{i.id===e&&(i.left="",i.isAnimated=!1,i.isDefAnimatedOut=!1,i.isCustomAnimatedOut=!1,i.isDefAnimatedIn=!1,i.isCustomAnimatedIn=!1,i.classes=this.carouselService.setCurSlideClasses(i))}),this.carouselService.onTransitionEnd()}static \u0275fac=function(i){return new(i||r)(le(pt))};static \u0275prov=ne({token:r,factory:r.\u0275fac})}return r})(),_l=(()=>{class r{carouselService;autoHeightSubscription;constructor(e){this.carouselService=e,this.spyDataStreams()}ngOnDestroy(){this.autoHeightSubscription.unsubscribe()}spyDataStreams(){let e=this.carouselService.getInitializedState().pipe(G(p=>{this.carouselService.settings.autoHeight?this.update():this.carouselService.slidesData.forEach(f=>f.heightState="full")})),i=this.carouselService.getChangedState().pipe(G(p=>{this.carouselService.settings.autoHeight&&p.property.name==="position"&&this.update()})),n=this.carouselService.getRefreshedState().pipe(G(p=>{this.carouselService.settings.autoHeight&&this.update()})),l=ye(e,i,n);this.autoHeightSubscription=l.subscribe(()=>{})}update(){let e=this.carouselService.settings.items,i=this.carouselService.current(),n=i+e;this.carouselService.settings.center&&(i=e%2===1?i-(e-1)/2:i-e/2,n=e%2===1?i+e:i+e+1),this.carouselService.slidesData.forEach((l,p)=>{l.heightState=p>=i&&p<n?"full":"nulled"})}static \u0275fac=function(i){return new(i||r)(le(pt))};static \u0275prov=ne({token:r,factory:r.\u0275fac})}return r})(),fl=(()=>{class r{carouselService;route;router;hashSubscription;currentHashFragment;constructor(e,i,n){this.carouselService=e,this.route=i,this.router=n,this.spyDataStreams(),this.route||(this.route={fragment:ot("no route").pipe(gi(1))}),this.router||(this.router={navigate:(l,p)=>{}})}ngOnDestroy(){this.hashSubscription.unsubscribe()}spyDataStreams(){let e=this.carouselService.getInitializedState().pipe(G(()=>this.listenToRoute())),i=this.carouselService.getChangedState().pipe(G(l=>{if(this.carouselService.settings.URLhashListener&&l.property.name==="position"){let p=this.carouselService.current(),f=this.carouselService.slidesData[p].hashFragment;if(!f||f===this.currentHashFragment)return;this.router.navigate(["./"],{fragment:f,relativeTo:this.route})}})),n=ye(e,i);this.hashSubscription=n.subscribe(()=>{})}rewind(e){let i=this.carouselService.slidesData.findIndex(n=>n.hashFragment===e&&n.isCloned===!1);i===-1||i===this.carouselService.current()||this.carouselService.to(this.carouselService.relative(i),!1)}listenToRoute(){let e=this.carouselService.settings.startPosition==="URLHash"?0:2;this.route.fragment.pipe(Hn(e)).subscribe(i=>{this.currentHashFragment=i,this.rewind(i)})}static \u0275fac=function(i){return new(i||r)(le(pt),le(fa,8),le(ga,8))};static \u0275prov=ne({token:r,factory:r.\u0275fac})}return r})(),mu=0,Mr=(()=>{class r{tplRef;id=`owl-slide-${mu++}`;_dataMerge=1;set dataMerge(e){this._dataMerge=this.isNumeric(e)?e:1}get dataMerge(){return this._dataMerge}width=0;dotContent="";dataHash="";constructor(e){this.tplRef=e}isNumeric(e){return!isNaN(parseFloat(e))}static \u0275fac=function(i){return new(i||r)(Z(Bn))};static \u0275dir=Ot({type:r,selectors:[["ng-template","carouselSlide",""]],inputs:{id:"id",dataMerge:"dataMerge",width:"width",dotContent:"dotContent",dataHash:"dataHash"},standalone:!1})}return r})(),bl=(()=>{class r{resizeObservable$;docRef;get onResize$(){return this.resizeObservable$.pipe(_t(()=>!this.docRef?.fullscreenElement))}constructor(e,i,n){this.docRef=i,this.resizeObservable$=Ze(n)?Yo(e,"resize"):new te().asObservable()}static \u0275fac=function(i){return new(i||r)(le(xr),le(Ia),le(vt))};static \u0275prov=ne({token:r,factory:r.\u0275fac})}return r})(),uu=(()=>{class r{zone;el;renderer;carouselService;animateService;owlDraggable;stageData;slidesData;listenerMouseMove;listenerTouchMove;listenerOneMouseMove;listenerOneTouchMove;listenerMouseUp;listenerTouchEnd;listenerOneClick;listenerATag;_drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null,active:!1,moving:!1};_oneDragMove$=new te;_oneMoveSubsription;preparePublicSlide=e=>{let i=se({},e);return delete i.tplRef,i};constructor(e,i,n,l,p){this.zone=e,this.el=i,this.renderer=n,this.carouselService=l,this.animateService=p}onMouseDown(e){this.owlDraggable.isMouseDragable&&this._onDragStart(e)}onTouchStart(e){if(e.targetTouches.length>=2)return!1;this.owlDraggable.isTouchDragable&&this._onDragStart(e)}onTouchCancel(e){this._onDragEnd(e)}
4onDragStart(){if(this.owlDraggable.isMouseDragable)return!1}onSelectStart(){if(this.owlDraggable.isMouseDragable)return!1}ngOnInit(){this._oneMoveSubsription=this._oneDragMove$.pipe(ia()).subscribe(()=>{this._sendChanges()})}ngOnDestroy(){this._oneMoveSubsription.unsubscribe()}bindOneMouseTouchMove=e=>{this._oneMouseTouchMove(e)};bindOnDragMove=e=>{this._onDragMove(e)};bindOnDragEnd=e=>{this._onDragEnd(e)};_onDragStart(e){let i=null;e.which!==3&&(i=this._prepareDragging(e),this._drag.time=new Date().getTime(),this._drag.target=e.target,this._drag.stage.start=i,this._drag.stage.current=i,this._drag.pointer=this._pointer(e),this.listenerMouseUp=this.renderer.listen(document,"mouseup",this.bindOnDragEnd),this.listenerTouchEnd=this.renderer.listen(document,"touchend",this.bindOnDragEnd),this.zone.runOutsideAngular(()=>{this.listenerOneMouseMove=this.renderer.listen(document,"mousemove",this.bindOneMouseTouchMove),this.listenerOneTouchMove=this.renderer.listen(document,"touchmove",this.bindOneMouseTouchMove)}))}_oneMouseTouchMove(e){let i=this._difference(this._drag.pointer,this._pointer(e));this.listenerATag&&this.listenerATag(),!(Math.abs(i.x)<3&&Math.abs(i.y)<3&&this._is("valid"))&&(Math.abs(i.x)<3&&Math.abs(i.x)<Math.abs(i.y)&&this._is("valid")||(this.listenerOneMouseMove(),this.listenerOneTouchMove(),this._drag.moving=!0,this.blockClickAnchorInDragging(e),this.listenerMouseMove=this.renderer.listen(document,"mousemove",this.bindOnDragMove),this.listenerTouchMove=this.renderer.listen(document,"touchmove",this.bindOnDragMove),e.preventDefault(),this._enterDragging(),this._oneDragMove$.next(e)))}blockClickAnchorInDragging(e){let i=e.target;for(;i&&!(i instanceof HTMLAnchorElement);)i=i.parentElement;i instanceof HTMLAnchorElement&&(this.listenerATag=this.renderer.listen(i,"click",()=>!1))}_onDragMove(e){let i,n=this.carouselService.defineNewCoordsDrag(e,this._drag);n!==!1&&(i=n,e.preventDefault(),this._drag.stage.current=i,this._animate(i.x-this._drag.stage.start.x))}_animate(e){this.renderer.setStyle(this.el.nativeElement.children[0],"transform",`translate3d(${e}px,0px,0px`),this.renderer.setStyle(this.el.nativeElement.children[0],"transition","0s")}_onDragEnd(e){this.carouselService.owlDOMData.isGrab=!1,this.listenerOneMouseMove(),this.listenerOneTouchMove(),this._drag.moving&&(this.renderer.setStyle(this.el.nativeElement.children[0],"transform",""),this.renderer.setStyle(this.el.nativeElement.children[0],"transition",this.carouselService.speed(+this.carouselService.settings.dragEndSpeed||this.carouselService.settings.smartSpeed)/1e3+"s"),this._finishDragging(e),this.listenerMouseMove(),this.listenerTouchMove()),this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null,active:!1,moving:!1},this.listenerMouseUp(),this.listenerTouchEnd()}_prepareDragging(e){return this.carouselService.prepareDragging(e)}_oneClickHandler=()=>{this.listenerOneClick=this.renderer.listen(this._drag.target,"click",()=>!1),this.listenerOneClick()};_finishDragging(e){this.carouselService.finishDragging(e,this._drag,this._oneClickHandler)}_pointer(e){return this.carouselService.pointer(e)}_difference(e,i){return this.carouselService.difference(e,i)}_is(e){return this.carouselService.is(e)}_enter(e){this.carouselService.enter(e)}_sendChanges(){this.carouselService.sendChanges()}onTransitionEnd(){this.carouselService.onTransitionEnd()}_enterDragging(){this.carouselService.enterDragging()}clear(e){this.animateService.clear(e)}static \u0275fac=function(i){return new(i||r)(Z(Ut),Z(gt),Z(bi),Z(pt),Z(wr))};static \u0275cmp=Y({type:r,selectors:[["owl-stage"]],hostBindings:function(i,n){i&1&&O("mousedown",function(p){return n.onMouseDown(p)})("touchstart",function(p){return n.onTouchStart(p)})("touchcancel",function(p){return n.onTouchCancel(p)})("dragstart",function(){return n.onDragStart()})("selectstart",function(){return n.onSelectStart()})},inputs:{owlDraggable:"owlDraggable",stageData:"stageData",slidesData:"slidesData"},standalone:!1,decls:4,vars:7,consts:[[1,"owl-stage",3,"transitionend","ngStyle"],[1,"owl-item",3,"ngClass","ngStyle"],[1,"owl-item",3,"animationend","ngClass","ngStyle"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,n){i&1&&(m(0,"div")(1,"div",0),O("transitionend",function(){return n.onTransitionEnd()}),U(2,Km,2,9,"div",1,gl),u()()),i&2&&(h(),D("ngStyle",Qn(1,Um,n.stageData.width+"px",n.stageData.transform,n.stageData.transition,n.stageData.paddingL?n.stageData.paddingL+"px":"",n.stageData.paddingR?n.stageData.paddingR+"px":"")),h(),B(n.slidesData))},dependencies:[dt,is,ts],encapsulation:2,data:{animation:[ps("autoHeight",[ar("nulled",ir({height:0})),ar("full",ir({height:"*"})),nr("full => nulled",[tr("700ms 350ms")]),nr("nulled => full",[tr(350)])])]}})}return r})(),yl=(()=>{class r{el;resizeService;carouselService;navigationService;autoplayService;lazyLoadService;animateService;autoHeightService;hashService;logger;changeDetectorRef;slides;translated=new z;dragging=new z;change=new z;changed=new z;initialized=new z;carouselWindowWidth;resizeSubscription;_allObservSubscription;_slidesChangesSubscription;owlDOMData;stageData;slidesData=[];navData;dotsData;slidesOutputData;carouselLoaded=!1;options;prevOptions;_viewCurSettings$;_translatedCarousel$;_draggingCarousel$;_changeCarousel$;_changedCarousel$;_initializedCarousel$;_carouselMerge$;docRef;constructor(e,i,n,l,p,f,C,I,L,q,fe,rn){this.el=e,this.resizeService=i,this.carouselService=n,this.navigationService=l,this.autoplayService=p,this.lazyLoadService=f,this.animateService=C,this.autoHeightService=I,this.hashService=L,this.logger=q,this.changeDetectorRef=fe,this.docRef=rn}onVisibilityChange(e){if(this.carouselService.settings.autoplay)switch(this.docRef.visibilityState){case"visible":!this.autoplayService.isAutoplayStopped&&this.autoplayService.play();break;case"hidden":this.autoplayService.pause();break;default:break}}
4ngOnInit(){this.spyDataStreams(),this.carouselWindowWidth=this.el.nativeElement.querySelector(".owl-carousel").clientWidth}ngOnChanges(){this.prevOptions!==this.options&&(this.prevOptions&&this.slides?.toArray().length?(this.carouselService.setup(this.carouselWindowWidth,this.slides.toArray(),this.options),this.carouselService.initialize(this.slides.toArray())):this.prevOptions&&!this.slides?.toArray().length?(this.carouselLoaded=!1,this.logger.log("There are no slides to show. So the carousel won't be re-rendered")):this.carouselLoaded=!1,this.prevOptions=this.options)}ngAfterContentInit(){this.slides.toArray().length?(this.carouselService.setup(this.carouselWindowWidth,this.slides.toArray(),this.options),this.carouselService.initialize(this.slides.toArray()),this._winResizeWatcher()):this.logger.log("There are no slides to show. So the carousel won't be rendered"),this._slidesChangesSubscription=this.slides.changes.pipe(G(e=>{this.carouselService.setup(this.carouselWindowWidth,e.toArray(),this.options),this.carouselService.initialize(e.toArray()),e.toArray().length||(this.carouselLoaded=!1),e.toArray().length&&!this.resizeSubscription&&this._winResizeWatcher()})).subscribe(()=>{})}ngOnDestroy(){this.resizeSubscription&&this.resizeSubscription.unsubscribe(),this._slidesChangesSubscription&&this._slidesChangesSubscription.unsubscribe(),this._allObservSubscription&&this._allObservSubscription.unsubscribe()}spyDataStreams(){this._viewCurSettings$=this.carouselService.getViewCurSettings().pipe(G(e=>{this.owlDOMData=e.owlDOMData,this.stageData=e.stageData,this.slidesData=e.slidesData,this.carouselLoaded||(this.carouselLoaded=!0),this.navData=e.navData,this.dotsData=e.dotsData,this.changeDetectorRef.markForCheck()})),this._initializedCarousel$=this.carouselService.getInitializedState().pipe(G(()=>{this.gatherTranslatedData(),this.initialized.emit(this.slidesOutputData)})),this._translatedCarousel$=this.carouselService.getTranslatedState().pipe(G(()=>{this.gatherTranslatedData(),this.translated.emit(this.slidesOutputData)})),this._changeCarousel$=this.carouselService.getChangeState().pipe(G(()=>{this.gatherTranslatedData(),this.change.emit(this.slidesOutputData)})),this._changedCarousel$=this.carouselService.getChangeState().pipe(st(e=>{let i=ot(e).pipe(_t(()=>e.property.name==="position"),st(()=>Ro(this.slidesData)),Hn(e.property.value),gi(this.carouselService.settings.items),Pt(n=>{let l=this.carouselService.clonedIdPrefix,p=n.id.indexOf(l)>=0?n.id.slice(l.length):n.id;return ze(se({},n),{id:p,isActive:!0})}),Lo(),Pt(n=>({slides:n,startPosition:this.carouselService.relative(e.property.value)})));return ye(i)}),G(e=>{this.gatherTranslatedData(),this.changed.emit(e.slides.length?e:this.slidesOutputData)})),this._draggingCarousel$=this.carouselService.getDragState().pipe(G(()=>{this.gatherTranslatedData(),this.dragging.emit({dragging:!0,data:this.slidesOutputData})}),st(()=>this.carouselService.getDraggedState().pipe(Pt(()=>!!this.carouselService.is("animating")))),st(e=>e?this.carouselService.getTranslatedState().pipe(ia()):ot("not animating")),G(()=>{this.dragging.emit({dragging:!1,data:this.slidesOutputData})})),this._carouselMerge$=ye(this._viewCurSettings$,this._translatedCarousel$,this._draggingCarousel$,this._changeCarousel$,this._changedCarousel$,this._initializedCarousel$),this._allObservSubscription=this._carouselMerge$.subscribe(()=>{})}_winResizeWatcher(){Object.keys(this.carouselService._options.responsive).length&&(this.resizeSubscription=this.resizeService.onResize$.pipe(_t(()=>this.carouselWindowWidth!==this.el.nativeElement.querySelector(".owl-carousel").clientWidth),No(this.carouselService.settings.responsiveRefreshRate)).subscribe(()=>{this.carouselService.onResize(this.el.nativeElement.querySelector(".owl-carousel").clientWidth),this.carouselWindowWidth=this.el.nativeElement.querySelector(".owl-carousel").clientWidth}))}onTransitionEnd(){this.carouselService.onTransitionEnd()}next(){this.carouselLoaded&&this.navigationService.next(this.carouselService.settings.navSpeed)}prev(){this.carouselLoaded&&this.navigationService.prev(this.carouselService.settings.navSpeed)}moveByDot(e){this.carouselLoaded&&this.navigationService.moveByDot(e)}to(e){this.carouselLoaded&&this.navigationService.toSlideById(e)}gatherTranslatedData(){let e,i=this.carouselService.clonedIdPrefix,n=this.slidesData.filter(l=>
4l.isActive===!0).map(l=>({id:l.id.indexOf(i)>=0?l.id.slice(i.length):l.id,width:l.width,marginL:l.marginL,marginR:l.marginR,center:l.isCentered}));e=this.carouselService.relative(this.carouselService.current()),this.slidesOutputData={startPosition:e,slides:n}}startPausing(){this.autoplayService.startPausing()}startPlayML(){this.autoplayService.startPlayingMouseLeave()}startPlayTE(){this.autoplayService.startPlayingTouchEnd()}stopAutoplay(){this.autoplayService.isAutoplayStopped=!0,this.autoplayService.stop()}startAutoplay(){this.autoplayService.isAutoplayStopped=!1,this.autoplayService.play()}static \u0275fac=function(i){return new(i||r)(Z(gt),Z(bl),Z(pt),Z(ml),Z(ul),Z(hl),Z(wr),Z(_l),Z(fl),Z(kr),Z(He),Z(Ia))};static \u0275cmp=Y({type:r,selectors:[["owl-carousel-o"]],contentQueries:function(i,n,l){if(i&1&&oa(l,Mr,4),i&2){let p;ve(p=be())&&(n.slides=p)}},hostBindings:function(i,n){i&1&&O("visibilitychange",function(p){return n.onVisibilityChange(p)},!1,qo)},inputs:{options:"options"},outputs:{translated:"translated",dragging:"dragging",change:"change",changed:"changed",initialized:"initialized"},standalone:!1,features:[Ae([ml,ul,pt,hl,wr,_l,fl]),lt],decls:4,vars:9,consts:[["owlCarousel",""],[1,"owl-carousel","owl-theme",3,"mouseover","mouseleave","touchstart","touchend","ngClass"],[1,"owl-stage-outer"],[3,"owlDraggable","stageData","slidesData"],[1,"owl-nav",3,"ngClass"],[1,"owl-prev",3,"click","ngClass","innerHTML"],[1,"owl-next",3,"click","ngClass","innerHTML"],[1,"owl-dots",3,"ngClass"],[1,"owl-dot",3,"ngClass"],[1,"owl-dot",3,"click","ngClass"],[3,"innerHTML"]],template:function(i,n){if(i&1){let l=$();m(0,"div",1,0),O("mouseover",function(){return T(l),P(n.startPausing())})("mouseleave",function(){return T(l),P(n.startPlayML())})("touchstart",function(){return T(l),P(n.startPausing())})("touchend",function(){return T(l),P(n.startPlayTE())}),A(2,Xm,2,6,"div",2)(3,tu,6,14),u()}i&2&&(D("ngClass",Qn(3,Zm,n.owlDOMData==null?null:n.owlDOMData.rtl,n.owlDOMData==null?null:n.owlDOMData.isLoaded,n.owlDOMData==null?null:n.owlDOMData.isResponsive,n.owlDOMData==null?null:n.owlDOMData.isMouseDragable,n.owlDOMData==null?null:n.owlDOMData.isGrab)),h(2),x(n.carouselLoaded?2:-1),h(),x(n.slides.toArray().length?3:-1))},dependencies:[dt,uu],styles:[".owl-theme[_ngcontent-%COMP%]{display:block}"],changeDetection:0})}return r})();var Cl=(()=>{class r{static \u0275fac=function(i){return new(i||r)};static \u0275mod=yi({type:r});static \u0275inj=vi({providers:[ou,bl,pu,kr],imports:[ns]})}return r})();var fu=["mat-calendar-body",""];function gu(r,d){return this._trackRow(d)}var Pl=(r,d)=>d.id;function vu(r,d){if(r&1&&(m(0,"tr",0)(1,"td",3),b(2),u()()),r&2){let e=g();h(),ra("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),De("colspan",e.numCols),h(),ae(" ",e.label," ")}}function bu(r,d){if(r&1&&(m(0,"td",3),b(1),u()),r&2){let e=g(2);ra("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),De("colspan",e._firstRowOffset),h(),ae(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function yu(r,d){if(r&1){let e=$();m(0,"td",6)(1,"button",7),O("click",function(n){let l=T(e).$implicit,p=g(2);return P(p._cellClicked(l,n))})("focus",function(n){let l=T(e).$implicit,p=g(2);return P(p._emitActiveDateChange(l,n))}),m(2,"span",8),b(3),u(),y(4,"span",9),u()()}if(r&2){let e=d.$implicit,i=d.$index,n=g().$index,l=g();ra("width",l._cellWidth)("padding-top",l._cellPadding)("padding-bottom",l._cellPadding),De("data-mat-row",n)("data-mat-col",i),h(),de("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",l._isActiveCell(n,i))("mat-calendar-body-range-start",l._isRangeStart(e.compareValue))("mat-calendar-body-range-end",l._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",l._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",l._isComparisonBridgeStart(e.compareValue,n,i))("mat-calendar-body-comparison-bridge-end",l._isComparisonBridgeEnd(e.compareValue,n,i))("mat-calendar-body-comparison-start",l._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",l._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",l._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",l._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",l._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",l._isInPreview(e.compareValue)),D("ngClass",e.cssClasse
4s)("tabindex",l._isActiveCell(n,i)?0:-1),De("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",l._isSelected(e.compareValue))("aria-current",l.todayValue===e.compareValue?"date":null)("aria-describedby",l._getDescribedby(e.compareValue)),h(),de("mat-calendar-body-selected",l._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",l._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",l.todayValue===e.compareValue),h(),ae(" ",e.displayValue," ")}}function Cu(r,d){if(r&1&&(m(0,"tr",1),A(1,bu,2,6,"td",4),U(2,yu,5,48,"td",5,Pl),u()),r&2){let e=d.$implicit,i=d.$index,n=g();h(),x(i===0&&n._firstRowOffset?1:-1),h(),B(e)}}function Du(r,d){if(r&1&&(m(0,"th",2)(1,"span",6),b(2),u(),m(3,"span",3),b(4),u()()),r&2){let e=d.$implicit;h(2),R(e.long),h(2),R(e.narrow)}}var wu=["*"];function ku(r,d){}function xu(r,d){if(r&1){let e=$();m(0,"mat-month-view",4),ca("activeDateChange",function(n){T(e);let l=g();return da(l.activeDate,n)||(l.activeDate=n),P(n)}),O("_userSelection",function(n){T(e);let l=g();return P(l._dateSelected(n))})("dragStarted",function(n){T(e);let l=g();return P(l._dragStarted(n))})("dragEnded",function(n){T(e);let l=g();return P(l._dragEnded(n))}),u()}if(r&2){let e=g();la("activeDate",e.activeDate),D("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("startDateAccessibleName",e.startDateAccessibleName)("endDateAccessibleName",e.endDateAccessibleName)("activeDrag",e._activeDrag)}}function Mu(r,d){if(r&1){let e=$();m(0,"mat-year-view",5),ca("activeDateChange",function(n){T(e);let l=g();return da(l.activeDate,n)||(l.activeDate=n),P(n)}),O("monthSelected",function(n){T(e);let l=g();return P(l._monthSelectedInYearView(n))})("selectedChange",function(n){T(e);let l=g();return P(l._goToDateInView(n,"month"))}),u()}if(r&2){let e=g();la("activeDate",e.activeDate),D("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function Su(r,d){if(r&1){let e=$();m(0,"mat-multi-year-view",6),ca("activeDateChange",function(n){T(e);let l=g();return da(l.activeDate,n)||(l.activeDate=n),P(n)}),O("yearSelected",function(n){T(e);let l=g();return P(l._yearSelectedInMultiYearView(n))})("selectedChange",function(n){T(e);let l=g();return P(l._goToDateInView(n,"year"))}),u()}if(r&2){let e=g();la("activeDate",e.activeDate),D("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function Tu(r,d){}var Pu=["button"],Ou=[[["","matDatepickerToggleIcon",""]]],Au=["[matDatepickerToggleIcon]"];function Eu(r,d){r&1&&(pe(),m(0,"svg",2),y(1,"path",3),u())}var ti=(()=>{class r{changes=new te;calendarLabel="Calendar";openCalendarLabel="Open calendar";closeCalendarLabel="Close calendar";prevMonthLabel="Previous month";nextMonthLabel="Next month";prevYearLabel="Previous year";nextYearLabel="Next year";prevMultiYearLabel="Previous 24 years";nextMultiYearLabel="Next 24 years";switchToMonthViewLabel="Choose date";switchToMultiYearViewLabel="Choose month and year";startDateLabel="Start date";endDateLabel="End date";comparisonDateLabel="Comparison range";formatYearRange(e,i){return`${e} \u2013 ${i}`}formatYearRangeLabel(e,i){return`${e} to ${i}`}static \u0275fac=function(i){return new(i||r)};static \u0275prov=ne({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),Iu=0,Pi=class{value;displayValue;ariaLabel;enabled;cssClasses;compareValue;rawValue;id=Iu++;constructor(d,e,i,n,l={},p=d,f){this.value=d,this.displayValue=e,this.ariaLabel=i,this.enabled=n,this.cssClasses=l,this.compareValue=p,this.rawValue=f}},Fu={passive:!1,capture:!0},Fa={passive:!0,capture:!0},Dl={passive:!0},ei=(()=>{class r{_elementRef=w(gt);_ngZone=w(Ut);_platform=w(ms);_intl=w(ti);_eventCleanups;_skipNextFocus;_focusActiveCellAfterViewChecked=!1;label;rows;todayValue;startValue;endValue;labelMinRequiredCells;numCols=7;activeCell=0;ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}isRange=!1;cellAspectRatio=1;comparisonStart;comparisonEnd;previewStart=null;previewEnd=null;startDateAccessibleName;endDateAccessibleName;selectedValueChange=new z;previewChange=new z;activeDateChange=new z;dragStarted=new z;dragEnded=new z;_firstRowOffset;_cellPadding;_cellWidth;_startDateLabelId;_endDateLabelId;_comparisonStartDateLabelId;_comparisonEndDateLabelId;_didDragSinceMouseDown=!1;_injector=w(jn);comparisonDateAccessibleName=this._intl.comparisonDateLabel;_trackRow=e=>e;constructor(){let e=w(bi),i=w(ba);this._startDateLabelId=i.getId("mat-calendar-body-start-"),this._endDateLabelId=i.getId("mat-calendar-body-end-"),this._comparisonStartDateLabelId=i.getId("mat-calendar-body-comparison-start-"),this._comparisonEndDateLabelId=i.getId("mat-calendar-body-comparison-e
4nd-"),w(Di).load(vs),this._ngZone.runOutsideAngular(()=>{let n=this._elementRef.nativeElement,l=[Dt(e,n,"touchmove",this._touchmoveHandler,Fu),Dt(e,n,"mouseenter",this._enterHandler,Fa),Dt(e,n,"focus",this._enterHandler,Fa),Dt(e,n,"mouseleave",this._leaveHandler,Fa),Dt(e,n,"blur",this._leaveHandler,Fa),Dt(e,n,"mousedown",this._mousedownHandler,Dl),Dt(e,n,"touchstart",this._mousedownHandler,Dl)];this._platform.isBrowser&&l.push(e.listen("window","mouseup",this._mouseupHandler),e.listen("window","touchend",this._touchendHandler)),this._eventCleanups=l})}_cellClicked(e,i){this._didDragSinceMouseDown||e.enabled&&this.selectedValueChange.emit({value:e.value,event:i})}_emitActiveDateChange(e,i){e.enabled&&this.activeDateChange.emit({value:e.value,event:i})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){let i=e.numCols,{rows:n,numCols:l}=this;(e.rows||i)&&(this._firstRowOffset=n&&n.length&&n[0].length?l-n[0].length:0),(e.cellAspectRatio||i||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/l}%`),(i||!this._cellWidth)&&(this._cellWidth=`${100/l}%`)}ngOnDestroy(){this._eventCleanups.forEach(e=>e())}_isActiveCell(e,i){let n=e*this.numCols+i;return e&&(n-=this._firstRowOffset),n==this.activeCell}_focusActiveCell(e=!0){Un(()=>{setTimeout(()=>{let i=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");i&&(e||(this._skipNextFocus=!0),i.focus())})},{injector:this._injector})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return Pr(e,this.startValue,this.endValue)}_isRangeEnd(e){return Or(e,this.startValue,this.endValue)}_isInRange(e){return Ar(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return Pr(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,i,n){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let l=this.rows[i][n-1];if(!l){let p=this.rows[i-1];l=p&&p[p.length-1]}return l&&!this._isRangeEnd(l.compareValue)}_isComparisonBridgeEnd(e,i,n){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let l=this.rows[i][n+1];if(!l){let p=this.rows[i+1];l=p&&p[0]}return l&&!this._isRangeStart(l.compareValue)}_isComparisonEnd(e){return Or(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return Ar(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return Pr(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return Or(e,this.previewStart,this.previewEnd)}_isInPreview(e){return Ar(e,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(e){if(!this.isRange)return null;if(this.startValue===e&&this.endValue===e)return`${this._startDateLabelId} ${this._endDateLabelId}`;if(this.startValue===e)return this._startDateLabelId;if(this.endValue===e)return this._endDateLabelId;if(this.comparisonStart!==null&&this.comparisonEnd!==null){if(e===this.comparisonStart&&e===this.comparisonEnd)return`${this._comparisonStartDateLabelId} ${this._comparisonEndDateLabelId}`;if(e===this.comparisonStart)return this._comparisonStartDateLabelId;if(e===this.comparisonEnd)return this._comparisonEndDateLabelId}return null}_enterHandler=e=>{if(this._skipNextFocus&&e.type==="focus"){this._skipNextFocus=!1;return}if(e.target&&this.isRange){let i=this._getCellFromElement(e.target);i&&this._ngZone.run(()=>this.previewChange.emit({value:i.enabled?i:null,event:e}))}};_touchmoveHandler=e=>{if(!this.isRange)return;let i=wl(e),n=i?this._getCellFromElement(i):null;i!==e.target&&(this._didDragSinceMouseDown=!0),Tr(e.target)&&e.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:n?.enabled?n:null,event:e}))};_leaveHandler=e=>{this.previewEnd!==null&&this.isRange&&(e.type!=="blur"&&(this._didDragSinceMouseDown=!0),e.target&&this._getCellFromElement(e.target)&&!(e.relatedTarget&&this._getCellFromElement(e.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:e})))};_mousedownHandler=e=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;let i=e.target&&this._getCellFromElement(e.target);!i||!this._isInRange(i.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:i.rawValue,event:e})})};_mouseupHandler=e=>{if(!this.isRange)return;let i=Tr(e.target);if(!i){this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:e})});return}i.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{let n=this._getCellFromElement(i);this.dragEnded.emit({value:n?.rawValue??null,event:e})})};_touchendHandler=e=>{let i=wl(e);i&&this._mouseupHandler({target:i})};_getCellFromElement(e){let i=Tr(e);if(i){let n=i.getAttribute("data-mat-row"),l=i.getAttribute("data-mat-col");if(n&&l)return this.rows[parseInt(n)][parseInt(l)]}return null}static \u0275fac=function(i){return new(i||r)};static \u0275cmp=Y({type:r,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numC
4ols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],features:[lt],attrs:fu,decls:11,vars:11,consts:[["aria-hidden","true"],["role","row"],[1,"mat-calendar-body-hidden-label",3,"id"],[1,"mat-calendar-body-label"],[1,"mat-calendar-body-label",3,"paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"click","focus","ngClass","tabindex"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(i,n){i&1&&(A(0,vu,3,6,"tr",0),U(1,Cu,4,1,"tr",1,gu,!0),m(3,"span",2),b(4),u(),m(5,"span",2),b(6),u(),m(7,"span",2),b(8),u(),m(9,"span",2),b(10),u()),i&2&&(x(n._firstRowOffset<n.labelMinRequiredCells?0:-1),h(),B(n.rows),h(2),D("id",n._startDateLabelId),h(),ae(" ",n.startDateAccessibleName,`
5`),h(),D("id",n._endDateLabelId),h(),ae(" ",n.endDateAccessibleName,`
6`),h(),D("id",n._comparisonStartDateLabelId),h(),Ci(" ",n.comparisonDateAccessibleName," ",n.startDateAccessibleName,`
7`),h(),D("id",n._comparisonEndDateLabelId),h(),Ci(" ",n.comparisonDateAccessibleName," ",n.endDateAccessibleName,`
8`))},dependencies:[dt],styles:[`.mat-calendar-body{min-width:224px}.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-outline-color, var(--mat-sys-primary))}.mat-calendar-body-label{height:0;line-height:0;text-align:start;padding-left:4.7142857143%;padding-right:4.7142857143%;font-size:var(--mat-datepicker-calendar-body-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-datepicker-calendar-body-label-text-weight, var(--mat-sys-title-small-weight));color:var(--mat-datepicker-calendar-body-label-text-color, var(--mat-sys-on-surface))}.mat-calendar-body-hidden-label{display:none}.mat-calendar-body-cell-container{position:relative;height:0;line-height:0}.mat-calendar-body-cell{position:absolute;top:0;left:0;width:100%;height:100%;background:none;text-align:center;outline:none;font-family:inherit;margin:0;font-family:var(--mat-datepicker-calendar-text-font, var(--mat-sys-body-medium-font));font-size:var(--mat-datepicker-calendar-text-size, var(--mat-sys-body-medium-size));-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-calendar-body-cell::-moz-focus-inner{border:0}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-cell-preview{content:"";position:absolute;top:5%;left:0;z-index:0;box-sizing:border-box;display:block;height:90%;width:100%}.mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-start::after,.mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,.mat-calendar-body-comparison-start::after,.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:5%;width:95%;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,[dir=rtl] .mat-calendar-body-comparison-start::after,[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:0;border-radius:0;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-e
8nd:not(.mat-calendar-body-comparison-bridge-end)::before,.mat-calendar-body-comparison-end::after,.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}[dir=rtl] .mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,[dir=rtl] .mat-calendar-body-comparison-end::after,[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{left:5%;border-radius:0;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-comparison-bridge-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-bridge-end.mat-calendar-body-range-start::after{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end.mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-end.mat-calendar-body-range-start::after{width:90%}.mat-calendar-body-in-preview{color:var(--mat-datepicker-calendar-date-preview-state-outline-color, var(--mat-sys-primary))}.mat-calendar-body-in-preview .mat-calendar-body-cell-preview{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:0;border-right:dashed 1px}.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:0;border-left:dashed 1px}.mat-calendar-body-disabled{cursor:default}.mat-calendar-body-disabled>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){color:var(--mat-datepicker-calendar-date-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-disabled-state-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mat-calendar-body-disabled{opacity:.5}}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px;color:var(--mat-datepicker-calendar-date-text-color, var(--mat-sys-on-surface));border-color:var(--mat-datepicker-calendar-date-outline-color, transparent)}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}@media(forced-colors: active){.mat-calendar-body-cell-content{border:none}}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-focus-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}@media(hover: hover){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-hover-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}}.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-state-background-color, var(--mat-sys-primary));color:var(--mat-datepicker-calendar-date-selected-state-text-color, var(--mat-sys-on-primary))}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-disabled-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-calendar-body-selected.mat-calendar-body-today{box-shadow:inset 0 0 0 1px var(--mat-datepicker-calendar-date-today-selected-state-outline-color, var(--mat-sys-primary))}.mat-calendar-body-in-range::before{background:var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container))}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container))}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container))}.mat-calendar-body-comparison-bridge-start::before,[dir=rtl] .mat-calendar-body-comparison-bridge-end::before{background:linear-gradient(to right, var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container)) 50%)}.mat-calendar-body-comparison-bridge-end::before,[dir=rtl] .mat-calendar-body-comparison-bridge-start::before{background:linear-gradient(to left, var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container)) 50%)}.mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after{background:var(--mat-datepicker-calendar-date-in-overlap-range-state-background-color, var(--mat-sys-secondary-container))}.mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:var(--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color, var(--mat-sys-secondary))}@media(forced-colors: active){.mat-datepicker-popup:not(:empty),.mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.mat-calendar-body-today{outline:dotted 1px}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-selected{background:none}.mat-calendar-body-in-range::before,.mat-calendar-body-comparison-bridge-start::before,.mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}
8.mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}}
9`],encapsulation:2,changeDetection:0})}return r})();function Sr(r){return r?.nodeName==="TD"}function Tr(r){let d;return Sr(r)?d=r:Sr(r.parentNode)?d=r.parentNode:Sr(r.parentNode?.parentNode)&&(d=r.parentNode.parentNode),d?.getAttribute("data-mat-row")!=null?d:null}function Pr(r,d,e){return e!==null&&d!==e&&r<e&&r===d}function Or(r,d,e){return d!==null&&d!==e&&r>=d&&r===e}function Ar(r,d,e,i){return i&&d!==null&&e!==null&&d!==e&&r>=d&&r<=e}function wl(r){let d=r.changedTouches[0];return document.elementFromPoint(d.clientX,d.clientY)}var Ve=class{start;end;_disableStructuralEquivalency;constructor(d,e){this.start=d,this.end=e}},Oi=(()=>{class r{selection;_adapter;_selectionChanged=new te;selectionChanged=this._selectionChanged;constructor(e,i){this.selection=e,this._adapter=i,this.selection=e}updateSelection(e,i){let n=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:i,oldValue:n})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}static \u0275fac=function(i){Ko()};static \u0275prov=ne({token:r,factory:r.\u0275fac})}return r})(),Vu=(()=>{class r extends Oi{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return this.selection!=null&&this._isValidDateInstance(this.selection)}isComplete(){return this.selection!=null}clone(){let e=new r(this._adapter);return e.updateSelection(this.selection,this),e}static \u0275fac=function(i){return new(i||r)(le(me))};static \u0275prov=ne({token:r,factory:r.\u0275fac})}return r})();function Ru(r,d){return r||new Vu(d)}var Ol={provide:Oi,deps:[[new Ho,new Wo,Oi],me],useFactory:Ru};var Al=new ft("MAT_DATE_RANGE_SELECTION_STRATEGY");var Er=7,Yu=0,kl=(()=>{class r{_changeDetectorRef=w(He);_dateFormats=w(je,{optional:!0});_dateAdapter=w(me,{optional:!0});_dir=w(wi,{optional:!0});_rangeStrategy=w(Al,{optional:!0});_rerenderSubscription=Ge.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate,n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),this._hasSameMonthAndYear(i,this._activeDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof Ve?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;activeDrag=null;selectedChange=new z;_userSelection=new z;dragStarted=new z;dragEnded=new z;activeDateChange=new z;_matCalendarBody;_monthLabel;_weeks;_firstWeekOffset;_rangeStart;_rangeEnd;_comparisonRangeStart;_comparisonRangeEnd;_previewStart;_previewEnd;_isRange;_todayDate;_weekdays;constructor(){w(Di).load(va),this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(aa(null)).subscribe(()=>this._init())}ngOnChanges(e){let i=e.comparisonStart||e.comparisonEnd;i&&!i.firstChange&&this._setRanges(this.selected),e.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){let i=e.value,n=this._getDateFromDayOfMonth(i),l,p;this._selected instanceof Ve?(l=this._getDateInCurrentMonth(this._selected.start),p=this._getDateInCurrentMonth(this._selected.end)):l=p=this._getDateInCurrentMonth(this._selected),(l!==i||p!==i)&&this.selectedChange.emit(n),this._userSelection.emit({value:n,event:e.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(e){let i=e.value,n=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(i),this._dateAdapter.compareDate(n,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(e){let i=this._activeDate,n=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:this._selectionKeyPressed=!0,this._canSelect(this._activeDate)&&e.preventDefault();return;case 27:this._previewEnd!=null&&!It(e)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:e}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e})),e.preventDefault(),e.stopPropagation());return;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(Er+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%Er,this._initWeek
9days(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:e,value:i}){if(this._rangeStrategy){let n=i?i.rawValue:null,l=this._rangeStrategy.createPreview(n,this.selected,e);if(this._previewStart=this._getCellCompareValue(l.start),this._previewEnd=this._getCellCompareValue(l.end),this.activeDrag&&n){let p=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,n,e);p&&(this._previewStart=this._getCellCompareValue(p.start),this._previewEnd=this._getCellCompareValue(p.end))}this._changeDetectorRef.detectChanges()}}_dragEnded(e){if(this.activeDrag)if(e.value){let i=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,e.value,e.event);this.dragEnded.emit({value:i??null,event:e.event})}else this.dragEnded.emit({value:null,event:e.event})}_getDateFromDayOfMonth(e){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),e)}_initWeekdays(){let e=this._dateAdapter.getFirstDayOfWeek(),i=this._dateAdapter.getDayOfWeekNames("narrow"),l=this._dateAdapter.getDayOfWeekNames("long").map((p,f)=>({long:p,narrow:i[f],id:Yu++}));this._weekdays=l.slice(e).concat(l.slice(0,e))}_createWeekCells(){let e=this._dateAdapter.getNumDaysInMonth(this.activeDate),i=this._dateAdapter.getDateNames();this._weeks=[[]];for(let n=0,l=this._firstWeekOffset;n<e;n++,l++){l==Er&&(this._weeks.push([]),l=0);let p=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),n+1),f=this._shouldEnableDate(p),C=this._dateAdapter.format(p,this._dateFormats.display.dateA11yLabel),I=this.dateClass?this.dateClass(p,"month"):void 0;this._weeks[this._weeks.length-1].push(new Pi(n+1,i[n],C,f,I,this._getCellCompareValue(p),p))}}_shouldEnableDate(e){return!!e&&(!this.minDate||this._dateAdapter.compareDate(e,this.minDate)>=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,i){return!!(e&&i&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(i)&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i))}_getCellCompareValue(e){if(e){let i=this._dateAdapter.getYear(e),n=this._dateAdapter.getMonth(e),l=this._dateAdapter.getDate(e);return new Date(i,n,l).getTime()}return null}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setRanges(e){e instanceof Ve?(this._rangeStart=this._getCellCompareValue(e.start),this._rangeEnd=this._getCellCompareValue(e.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(e),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}_clearPreview(){this._previewStart=this._previewEnd=null}static \u0275fac=function(i){return new(i||r)};static \u0275cmp=Y({type:r,selectors:[["mat-month-view"]],viewQuery:function(i,n){if(i&1&&Oe(ei,5),i&2){let l;ve(l=be())&&(n._matCalendarBody=l.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[lt],decls:8,vars:14,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col"],["aria-hidden","true"],["colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown","label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName"],[1,"cdk-visually-hidden"]],template:function(i,n){i&1&&(m(0,"table",0)(1,"thead",1)(2,"tr"),U(3,Du,5,2,"th",2,Pl),u(),m(5,"tr",3),y(6,"th",4),u()(),m(7,"tbody",5),O("selectedValueChange",function(p){return n._dateSelected(p)})("activeDateChange",function(p){return n._updateActiveDate(p)})("previewChange",function(p){return n._previewChanged(p)})("dragStarted",function(p){return n.dragStarted.emit(p)})("dragEnded",function(p){return n._dragEnded(p)})("keyup",function(p){return n._handleCalendarBodyKeyup(p)})("keydown",function(p){return n._handleCalendarBodyKeydown(p)}),u()()),i&2&&(h(3),B(n._weekdays),h(4),D("label",n._monthLabel)("rows",n._weeks)("todayValue",n._todayDate)("startValue",n._rangeStart)("endValue",n._rangeEnd)("comparisonStart",n._comparisonRangeStart)("comparisonEnd",n._comparisonRangeEnd)("previewStart",n._previewStart)("previewEnd",n._previewEnd)("isRange",n._isRange)("labelMinRequiredCells",3)("activeCell",n._dateAdapter.getDate(n.activeDate)-1)("startDateAccessibleName",n.startDateAccessibleName)("endDateAccessibleName",n.endDateAccessibleName))},dependencies:[ei],encapsulation:2,changeDetection:0})}return r})(),xe=24,Ir=4,xl=(()=>{class r{_changeDetectorRef=w(He);_dateAdapter=w(me,{optional:!0});_dir=w(wi,{optional:!0});_rerenderSubscription=Ge.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate,n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),El(this._dateAdapter,i,this._activeDate,this.minDate,this.maxDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof Ve?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}_selected;
9get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;selectedChange=new z;yearSelected=new z;activeDateChange=new z;_matCalendarBody;_years;_todayYear;_selectedYear;constructor(){this._dateAdapter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(aa(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());let i=this._dateAdapter.getYear(this._activeDate)-Si(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let n=0,l=[];n<xe;n++)l.push(i+n),l.length==Ir&&(this._years.push(l.map(p=>this._createCellForYear(p))),l=[]);this._changeDetectorRef.markForCheck()}_yearSelected(e){let i=e.value,n=this._dateAdapter.createDate(i,0,1),l=this._getDateFromYear(i);this.yearSelected.emit(n),this.selectedChange.emit(l)}_updateActiveDate(e){let i=e.value,n=this._activeDate;this.activeDate=this._getDateFromYear(i),this._dateAdapter.compareDate(n,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let i=this._activeDate,n=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-Ir);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Ir);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-Si(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,xe-Si(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-xe*10:-xe);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?xe*10:xe);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return Si(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(e){let i=this._dateAdapter.getMonth(this.activeDate),n=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,i,1));return this._dateAdapter.createDate(e,i,Math.min(this._dateAdapter.getDate(this.activeDate),n))}_createCellForYear(e){let i=this._dateAdapter.createDate(e,0,1),n=this._dateAdapter.getYearName(i),l=this.dateClass?this.dateClass(i,"multi-year"):void 0;return new Pi(e,n,n,this._shouldEnableYear(e),l)}_shouldEnableYear(e){if(e==null||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e<this._dateAdapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;let i=this._dateAdapter.createDate(e,0,1);for(let n=i;this._dateAdapter.getYear(n)==e;n=this._dateAdapter.addCalendarDays(n,1))if(this.dateFilter(n))return!0;return!1}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setSelectedYear(e){if(this._selectedYear=null,e instanceof Ve){let i=e.start||e.end;i&&(this._selectedYear=this._dateAdapter.getYear(i))}else e&&(this._selectedYear=this._dateAdapter.getYear(e))}static \u0275fac=function(i){return new(i||r)};static \u0275cmp=Y({type:r,selectors:[["mat-multi-year-view"]],viewQuery:function(i,n){if(i&1&&Oe(ei,5),i&2){let l;
9ve(l=be())&&(n._matCalendarBody=l.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",activeDateChange:"activeDateChange"},exportAs:["matMultiYearView"],decls:5,vars:7,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","keyup","keydown","rows","todayValue","startValue","endValue","numCols","cellAspectRatio","activeCell"]],template:function(i,n){i&1&&(m(0,"table",0)(1,"thead",1)(2,"tr"),y(3,"th",2),u()(),m(4,"tbody",3),O("selectedValueChange",function(p){return n._yearSelected(p)})("activeDateChange",function(p){return n._updateActiveDate(p)})("keyup",function(p){return n._handleCalendarBodyKeyup(p)})("keydown",function(p){return n._handleCalendarBodyKeydown(p)}),u()()),i&2&&(h(4),D("rows",n._years)("todayValue",n._todayYear)("startValue",n._selectedYear)("endValue",n._selectedYear)("numCols",4)("cellAspectRatio",4/7)("activeCell",n._getActiveCell()))},dependencies:[ei],encapsulation:2,changeDetection:0})}return r})();function El(r,d,e,i,n){let l=r.getYear(d),p=r.getYear(e),f=Il(r,i,n);return Math.floor((l-f)/xe)===Math.floor((p-f)/xe)}function Si(r,d,e,i){let n=r.getYear(d);return Lu(n-Il(r,e,i),xe)}function Il(r,d,e){let i=0;return e?i=r.getYear(e)-xe+1:d&&(i=r.getYear(d)),i}function Lu(r,d){return(r%d+d)%d}var Ml=(()=>{class r{_changeDetectorRef=w(He);_dateFormats=w(je,{optional:!0});_dateAdapter=w(me,{optional:!0});_dir=w(wi,{optional:!0});_rerenderSubscription=Ge.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate,n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),this._dateAdapter.getYear(i)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof Ve?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;selectedChange=new z;monthSelected=new z;activeDateChange=new z;_matCalendarBody;_months;_yearLabel;_todayMonth;_selectedMonth;constructor(){this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(aa(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){let i=e.value,n=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),i,1);this.monthSelected.emit(n);let l=this._getDateFromMonth(i);this.selectedChange.emit(l)}_updateActiveDate(e){let i=e.value,n=this._activeDate;this.activeDate=this._getDateFromMonth(i),this._dateAdapter.compareDate(n,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let i=this._activeDate,n=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,n?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,n?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let e=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(i=>i.map(n=>this._createCellForMonth(n,e[n]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_getDateFromMonth(e){let i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),n=this._dateAdapter.getNumDaysInMonth(i);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),n))}_createCellForMonth(e,i){let n=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),l=this._dateAdapter.format(n,this._dateFormats.display.monthYearA11yLabel),p=this.dateClass?this.dateClass(n,"year"):void 0;return new Pi(e,i.toLocaleUpperCase(),l,this._shouldEnableMonth(e),p)}_shouldEnableMonth(e){let i=this._dateAdapter.getYear(this.activeDate);if(e==null||this._isYearAndMonthAfterMaxDate(i,e)||this._isYearAndMonthBeforeMinDate(i,e))return!1;if(!this.dateFilter)return!0;let n=this._dateAdapter.createDate(i,e,1);for(let l=n;this._dateAdapter.getMonth(l)==e;l=this._dateAdapter.addCalendarDays(l,1))if(this.dateFilter(l))return!0;return!1}_isYearAndMonthAfterMaxDate(e,i){if(this.maxDate){let n=this._dateAdapter.getYear(this.maxDate),l=this._dateAdapter.getMonth(this.maxDate);return e>n||e===n&&i>l}return!1}_isYearAndMonthBeforeMinDate(e,i){if(this.minDate){let n=this._dateAdapter.getYear(this.minDate),l=this._dateAdapter.getMonth(this.minDate);return e<n||e===n&&i<l}return!1}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setSelectedMonth(e){e instanceof Ve?this._selectedMonth=this._getMonthInCurrentYear(e.start)||this._getMonthInCurrentYear(e.end):this._selectedMonth=this._getMonthInCurrentYear(e)}static \u0275fac=function(i){return new(i||r)};static \u0275cmp=Y({type:r,selectors:[["mat-year-view"]],viewQuery:function(i,n){if(i&1&&Oe(ei,5),i&2){let l;
9ve(l=be())&&(n._matCalendarBody=l.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",monthSelected:"monthSelected",activeDateChange:"activeDateChange"},exportAs:["matYearView"],decls:5,vars:9,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","keyup","keydown","label","rows","todayValue","startValue","endValue","labelMinRequiredCells","numCols","cellAspectRatio","activeCell"]],template:function(i,n){i&1&&(m(0,"table",0)(1,"thead",1)(2,"tr"),y(3,"th",2),u()(),m(4,"tbody",3),O("selectedValueChange",function(p){return n._monthSelected(p)})("activeDateChange",function(p){return n._updateActiveDate(p)})("keyup",function(p){return n._handleCalendarBodyKeyup(p)})("keydown",function(p){return n._handleCalendarBodyKeydown(p)}),u()()),i&2&&(h(4),D("label",n._yearLabel)("rows",n._months)("todayValue",n._todayMonth)("startValue",n._selectedMonth)("endValue",n._selectedMonth)("labelMinRequiredCells",2)("numCols",4)("cellAspectRatio",4/7)("activeCell",n._dateAdapter.getMonth(n.activeDate)))},dependencies:[ei],encapsulation:2,changeDetection:0})}return r})(),Fl=(()=>{class r{_intl=w(ti);calendar=w(Fr);_dateAdapter=w(me,{optional:!0});_dateFormats=w(je,{optional:!0});constructor(){w(Di).load(va);let e=w(He);this.calendar.stateChanges.subscribe(()=>e.markForCheck())}get periodButtonText(){return this.calendar.currentView=="month"?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():this.calendar.currentView=="year"?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRange(...this._formatMinAndMaxYearLabels())}get periodButtonDescription(){return this.calendar.currentView=="month"?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():this.calendar.currentView=="year"?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRangeLabel(...this._formatMinAndMaxYearLabels())}get periodButtonLabel(){return this.calendar.currentView=="month"?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=this.calendar.currentView=="month"?"multi-year":"month"}previousClicked(){this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?-1:-xe)}nextClicked(){this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?1:xe)}previousEnabled(){return this.calendar.minDate?!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate):!0}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(e,i){return this.calendar.currentView=="month"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(i):this.calendar.currentView=="year"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i):El(this._dateAdapter,e,i,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){let i=this._dateAdapter.getYear(this.calendar.activeDate)-Si(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),n=i+xe-1,l=this._dateAdapter.getYearName(this._dateAdapter.createDate(i,0,1)),p=this._dateAdapter.getYearName(this._dateAdapter.createDate(n,0,1));return[l,p]}_periodButtonLabelId=w(ba).getId("mat-calendar-period-label-");static \u0275fac=function(i){return new(i||r)};static \u0275cmp=Y({type:r,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:wu,decls:17,vars:11,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-control
9s"],["aria-live","polite",1,"cdk-visually-hidden",3,"id"],["mat-button","","type","button",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"click","disabled"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"click","disabled"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"]],template:function(i,n){i&1&&(Kn(),m(0,"div",0)(1,"div",1)(2,"span",2),b(3),u(),m(4,"button",3),O("click",function(){return n.currentPeriodClicked()}),m(5,"span",4),b(6),u(),pe(),m(7,"svg",5),y(8,"polygon",6),u()(),Pe(),y(9,"div",7),Zn(10),m(11,"button",8),O("click",function(){return n.previousClicked()}),pe(),m(12,"svg",9),y(13,"path",10),u()(),Pe(),m(14,"button",11),O("click",function(){return n.nextClicked()}),pe(),m(15,"svg",9),y(16,"path",12),u()()()()),i&2&&(h(2),D("id",n._periodButtonLabelId),h(),R(n.periodButtonDescription),h(),De("aria-label",n.periodButtonLabel)("aria-describedby",n._periodButtonLabelId),h(2),R(n.periodButtonText),h(),de("mat-calendar-invert",n.calendar.currentView!=="month"),h(4),D("disabled",!n.previousEnabled()),De("aria-label",n.prevButtonLabel),h(3),D("disabled",!n.nextEnabled()),De("aria-label",n.nextButtonLabel))},dependencies:[We,or],encapsulation:2,changeDetection:0})}return r})(),Fr=(()=>{class r{_dateAdapter=w(me,{optional:!0});_dateFormats=w(je,{optional:!0});_changeDetectorRef=w(He);_elementRef=w(gt);headerComponent;_calendarHeaderPortal;_intlChanges;_moveFocusOnNextTick=!1;get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt;startView="month";get selected(){return this._selected}set selected(e){e instanceof Ve?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;selectedChange=new z;yearSelected=new z;monthSelected=new z;viewChanged=new z(!0);_userSelection=new z;_userDragDrop=new z;monthView;yearView;multiYearView;get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}_clampedActiveDate;get currentView(){return this._currentView}set currentView(e){let i=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),i&&this.viewChanged.emit(i)}_currentView;_activeDrag=null;stateChanges=new te;constructor(){this._intlChanges=w(ti).changes.subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new sr(this.headerComponent||Fl),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(e){let i=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,n=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,l=i||n||e.dateFilter;if(l&&!l.firstChange){let p=this._getCurrentViewComponent();p&&(this._elementRef.nativeElement.contains(rr())&&(this._moveFocusOnNextTick=!0),this._changeDetectorRef.detectChanges(),p._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(e){let i=e.value;(this.selected instanceof Ve||i&&!this._dateAdapter.sameDate(i,this.selected))&&this.selectedChange.emit(i),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,i){this.activeDate=e,this.currentView=i}_dragStarted(e){this._activeDrag=e}_dragEnded(e){this._activeDrag&&(e.value&&this._userDragDrop.emit(e),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}static \u0275fac=function(i){return new(i||r)};static \u0275cmp=Y({type:r,selectors:[["mat-calendar"]],viewQuery:function(i,n){if(i&1&&(Oe(kl,5),Oe(Ml,5),Oe(xl,5)),i&2){let l;
9ve(l=be())&&(n.monthView=l.first),ve(l=be())&&(n.yearView=l.first),ve(l=be())&&(n.multiYearView=l.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],features:[Ae([Ol]),lt],decls:5,vars:2,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","_userSelection","dragStarted","dragEnded","activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDateChange","monthSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","yearSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"]],template:function(i,n){if(i&1&&(A(0,ku,0,0,"ng-template",0),m(1,"div",1),A(2,xu,1,11,"mat-month-view",2)(3,Mu,1,6,"mat-year-view",3)(4,Su,1,6,"mat-multi-year-view",3),u()),i&2){let l;D("cdkPortalOutlet",n._calendarHeaderPortal),h(2),x((l=n.currentView)==="month"?2:l==="year"?3:l==="multi-year"?4:-1)}},dependencies:[lr,us,kl,Ml,xl],styles:[`.mat-calendar{display:block;line-height:normal;font-family:var(--mat-datepicker-calendar-text-font, var(--mat-sys-body-medium-font));font-size:var(--mat-datepicker-calendar-text-size, var(--mat-sys-body-medium-size))}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px;font-size:var(--mat-datepicker-calendar-period-button-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-datepicker-calendar-period-button-text-weight, var(--mat-sys-title-small-weight));--mdc-text-button-label-text-color:var(--mat-datepicker-calendar-period-button-text-color, var(--mat-sys-on-surface-variant))}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle;fill:var(--mat-datepicker-calendar-period-button-icon-color, var(--mat-sys-on-surface-variant))}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}@media(forced-colors: active){.mat-calendar-arrow{fill:CanvasText}}.mat-datepicker-content .mat-calendar-previous-button:not(.mat-mdc-button-disabled),.mat-datepicker-content .mat-calendar-next-button:not(.mat-mdc-button-disabled){color:var(--mat-datepicker-calendar-navigation-button-icon-color, var(--mat-sys-on-surface-variant))}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0;color:var(--mat-datepicker-calendar-header-text-color, var(--mat-sys-on-surface-variant));font-size:var(--mat-datepicker-calendar-header-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-datepicker-calendar-header-text-weight, var(--mat-sys-title-small-weight))}.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;background:var(--mat-datepicker-calendar-header-divider-color, transparent)}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}
10`],encapsulation:2,changeDetection:0})}return r})(),Vl=new ft("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{let r=w(ya);return()=>r.scrollStrategies.reposition()}});function Nu(r){return()=>r.scrollStrategies.reposition()}var zu={provide:Vl,deps:[ya],useFactory:Nu},Rl=(()=>{class r{_elementRef=w(gt);_animationsDisabled=w(Go,{optional:!0})==="NoopAnimations";_changeDetectorRef=w(He);_globalModel=w(Oi);_dateAdapter=w(me);_ngZone=w(Ut);_rangeSelectionStrategy=w(Al,{optional:!0});_stateChanges;_model;_eventCleanups;_animationFallback;_calendar;color;datepicker;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;_isAbove;_animationDone=new te;_isAnimating=!1;_closeButtonText;
10_closeButtonFocused;_actionsPortal=null;_dialogLabelId;constructor(){if(w(Di).load(va),this._closeButtonText=w(ti).closeCalendarLabel,!this._animationsDisabled){let e=this._elementRef.nativeElement,i=w(bi);this._eventCleanups=this._ngZone.runOutsideAngular(()=>[i.listen(e,"animationstart",this._handleAnimationEvent),i.listen(e,"animationend",this._handleAnimationEvent),i.listen(e,"animationcancel",this._handleAnimationEvent)])}}ngAfterViewInit(){this._stateChanges=this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()}),this._calendar.focusActiveCell()}ngOnDestroy(){clearTimeout(this._animationFallback),this._eventCleanups?.forEach(e=>e()),this._stateChanges?.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){let i=this._model.selection,n=e.value,l=i instanceof Ve;if(l&&this._rangeSelectionStrategy){let p=this._rangeSelectionStrategy.selectionFinished(n,i,e.event);this._model.updateSelection(p,this)}else n&&(l||!this._dateAdapter.sameDate(n,i))&&this._model.add(n);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(e){this._model.updateSelection(e.value,this)}_startExitAnimation(){this._elementRef.nativeElement.classList.add("mat-datepicker-content-exit"),this._animationsDisabled?this._animationDone.next():(clearTimeout(this._animationFallback),this._animationFallback=setTimeout(()=>{this._isAnimating||this._animationDone.next()},200))}_handleAnimationEvent=e=>{let i=this._elementRef.nativeElement;e.target!==i||!e.animationName.startsWith("_mat-datepicker-content")||(clearTimeout(this._animationFallback),this._isAnimating=e.type==="animationstart",i.classList.toggle("mat-datepicker-content-animating",this._isAnimating),this._isAnimating||this._animationDone.next())};_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(e,i){this._model=e?this._globalModel.clone():this._globalModel,this._actionsPortal=e,i&&this._changeDetectorRef.detectChanges()}static \u0275fac=function(i){return new(i||r)};static \u0275cmp=Y({type:r,selectors:[["mat-datepicker-content"]],viewQuery:function(i,n){if(i&1&&Oe(Fr,5),i&2){let l;ve(l=be())&&(n._calendar=l.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:6,hostBindings:function(i,n){i&2&&(Gn(n.color?"mat-"+n.color:""),de("mat-datepicker-content-touch",n.datepicker.touchUi)("mat-datepicker-content-animations-enabled",!n._animationsDisabled))},inputs:{color:"color"},exportAs:["matDatepickerContent"],decls:5,vars:26,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop","id","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(i,n){if(i&1&&(m(0,"div",0)(1,"mat-calendar",1),O("yearSelected",function(p){return n.datepicker._selectYear(p)})("monthSelected",function(p){return n.datepicker._selectMonth(p)})("viewChanged",function(p){return n.datepicker._viewChanged(p)})("_userSelection",function(p){return n._handleUserSelection(p)})("_userDragDrop",function(p){return n._handleUserDragDrop(p)}),u(),A(2,Tu,0,0,"ng-template",2),m(3,"button",3),O("focus",function(){return n._closeButtonFocused=!0})("blur",function(){return n._closeButtonFocused=!1})("click",function(){return n.datepicker.close()}),b(4),u()()),i&2){let l;de("mat-datepicker-content-container-with-custom-header",n.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",n._actionsPortal),De("aria-modal",!0)("aria-labelledby",(l=n._dialogLabelId)!==null&&l!==void 0?l:void 0),h(),Gn(n.datepicker.panelClass),D("id",n.datepicker.id)("startAt",n.datepicker.startAt)("startView",n.datepicker.startView)("minDate",n.datepicker._getMinDate())("maxDate",n.datepicker._getMaxDate())("dateFilter",n.datepicker._getDateFilter())("headerComponent",n.datepicker.calendarHeaderComponent)("selected",n._getSelected())("dateClass",n.datepicker.dateClass)("comparisonStart",n.comparisonStart)("comparisonEnd",n.comparisonEnd)("startDateAccessibleName",n.startDateAccessibleName)("endDateAccessibleName",n.endDateAccessibleName),h(),D("cdkPortalOutlet",n._actionsPortal),h(),de("cdk-visually-hidden",!n._closeButtonF
10ocused),D("color",n.color||"primary"),h(),R(n._closeButtonText)}},dependencies:[_s,Fr,lr,We],styles:[`@keyframes _mat-datepicker-content-dropdown-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-datepicker-content-dialog-enter{from{opacity:0;transform:scale(0.8)}to{opacity:1;transform:none}}@keyframes _mat-datepicker-content-exit{from{opacity:1}to{opacity:0}}.mat-datepicker-content{display:block;border-radius:4px;background-color:var(--mat-datepicker-calendar-container-background-color, var(--mat-sys-surface-container-high));color:var(--mat-datepicker-calendar-container-text-color, var(--mat-sys-on-surface));box-shadow:var(--mat-datepicker-calendar-container-elevation-shadow, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12));border-radius:var(--mat-datepicker-calendar-container-shape, var(--mat-sys-corner-large))}.mat-datepicker-content.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-dropdown-enter 120ms cubic-bezier(0, 0, 0.2, 1)}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.mat-datepicker-content-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;box-shadow:var(--mat-datepicker-calendar-container-touch-elevation-shadow, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12));border-radius:var(--mat-datepicker-calendar-container-touch-shape, var(--mat-sys-corner-extra-large));position:relative;overflow:visible}.mat-datepicker-content-touch.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-dialog-enter 150ms cubic-bezier(0, 0, 0.2, 1)}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}.mat-datepicker-content-exit.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-exit 100ms linear}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}
11`],encapsulation:2,changeDetection:0})}return r})(),Sl=(()=>{class r{_overlay=w(ya);_viewContainerRef=w(Zo);_dateAdapter=w(me,{optional:!0});_dir=w(wi,{optional:!0});_model=w(Oi);_scrollStrategy=w(Vl);_inputStateChanges=Ge.EMPTY;_document=w(es);calendarHeaderComponent;get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt;startView="month";get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e}_color;touchUi=!1;get disabled(){return this._disabled===void 0&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){e!==this._disabled&&(this._disabled=e,this.stateChanges.next(void 0))}_disabled;xPosition="start";yPosition="below";restoreFocus=!0;yearSelected=new z;monthSelected=new z;viewChanged=new z(!0);dateClass;openedStream=new z;
11closedStream=new z;get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=gs(e)}_panelClass;get opened(){return this._opened}set opened(e){e?this.open():this.close()}_opened=!1;id=w(ba).getId("mat-datepicker-");_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}_overlayRef;_componentRef;_focusedElementBeforeOpen=null;_backdropHarnessClass=`${this.id}-backdrop`;_actionsPortal;datepickerInput;stateChanges=new te;_injector=w(jn);_changeDetectorRef=w(He);constructor(){this._dateAdapter,this._model.selectionChanged.subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnChanges(e){let i=e.xPosition||e.yPosition;if(i&&!i.firstChange&&this._overlayRef){let n=this._overlayRef.getConfig().positionStrategy;n instanceof ks&&(this._setConnectedPositions(n),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this.datepickerInput,this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){this._actionsPortal,this._actionsPortal=e,this._componentRef?.instance._assignActions(e,!0)}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this.datepickerInput,this._focusedElementBeforeOpen=rr(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;let e=this.restoreFocus&&this._focusedElementBeforeOpen&&typeof this._focusedElementBeforeOpen.focus=="function",i=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){let{instance:n,location:l}=this._componentRef;n._animationDone.pipe(gi(1)).subscribe(()=>{let p=this._document.activeElement;e&&(!p||p===this._document.activeElement||l.nativeElement.contains(p))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()}),n._startExitAnimation()}e?setTimeout(i):i()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._dialogLabelId=this.datepickerInput.getOverlayLabelId(),e._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();let e=this.touchUi,i=new sr(Rl,this._viewContainerRef),n=this._overlayRef=this._overlay.create(new ws({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir||"ltr",scrollStrategy:e?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:`mat-datepicker-${e?"dialog":"popup"}`}));this._getCloseStream(n).subscribe(l=>{l&&l.preventDefault(),this.close()}),n.keydownEvents().subscribe(l=>{let p=l.keyCode;(p===38||p===40||p===37||p===39||p===33||p===34)&&l.preventDefault()}),this._componentRef=n.attach(i),this._forwardContentValues(this._componentRef.instance),e||Un(()=>{n.updatePosition()},{injector:this._injector})}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){let e=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){let i=this.xPosition==="end"?"end":"start",n=i==="start"?"end":"start",l=this.yPosition==="above"?"bottom":"top",p=l==="top"?"bottom":"top";return e.withPositions([{originX:i,originY:p,overlayX:i,overlayY:l},{originX:i,originY:l,overlayX:i,overlayY:p},{originX:n,originY:p,overlayX:n,overlayY:l},{originX:n,originY:l,overlayX:n,overlayY:p}])}_getCloseStream(e){let i=["ctrlKey","shiftKey","metaKey"];return ye(e.backdropClick(),e.detachments(),e.keydownEvents().pipe(_t(n=>n.keyCode===27&&!It(n)||this.datepickerInput&&It(n,"altKey")&&n.keyCode===38&&i.every(l=>!It(n,l)))))}static \u0275fac=function(i){return new(i||r)};
11static \u0275dir=Ot({type:r,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[2,"touchUi","touchUi",Et],disabled:[2,"disabled","disabled",Et],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[2,"restoreFocus","restoreFocus",Et],dateClass:"dateClass",panelClass:"panelClass",opened:[2,"opened","opened",Et]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[na,lt]})}return r})(),Na=(()=>{class r extends Sl{static \u0275fac=(()=>{let e;return function(n){return(e||(e=jo(r)))(n||r)}})();static \u0275cmp=Y({type:r,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[Ae([Ol,{provide:Sl,useExisting:r}]),$n],decls:0,vars:0,template:function(i,n){},encapsulation:2,changeDetection:0})}return r})(),Qt=class{target;targetElement;value;constructor(d,e){this.target=d,this.targetElement=e,this.value=this.target.value}},Hu=(()=>{class r{_elementRef=w(gt);_dateAdapter=w(me,{optional:!0});_dateFormats=w(je,{optional:!0});_isInitialized;get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e)}_model;get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){let i=e,n=this._elementRef.nativeElement;this._disabled!==i&&(this._disabled=i,this.stateChanges.next(void 0)),i&&this._isInitialized&&n.blur&&n.blur()}_disabled;dateChange=new z;dateInput=new z;stateChanges=new te;_onTouched=()=>{};_validatorOnChange=()=>{};_cvaOnChange=()=>{};_valueChangesSubscription=Ge.EMPTY;_localeSubscription=Ge.EMPTY;_pendingValue;_parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}};_filterValidator=e=>{let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value));return!i||this._matchesFilter(i)?null:{matDatepickerFilter:!0}};_minValidator=e=>{let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),n=this._getMinDate();return!n||!i||this._dateAdapter.compareDate(n,i)<=0?null:{matDatepickerMin:{min:n,actual:i}}};_maxValidator=e=>{let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),n=this._getMaxDate();return!n||!i||this._dateAdapter.compareDate(n,i)>=0?null:{matDatepickerMax:{max:n,actual:i}}};_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(i=>{if(this._shouldHandleChangeEvent(i)){let n=this._getValueFromModel(i.selection);this._lastValueValid=this._isValidValue(n),this._cvaOnChange(n),this._onTouched(),this._formatValue(n),this.dateInput.emit(new Qt(this,this._elementRef.nativeElement)),this.dateChange.emit(new Qt(this,this._elementRef.nativeElement))}})}_lastValueValid=!1;constructor(){this._localeSubscription=this._dateAdapter.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){Wu(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){let i=["ctrlKey","shiftKey","metaKey"];It(e,"altKey")&&e.keyCode===40&&i.every(l=>!It(e,l))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){let i=this._lastValueValid,n=this._dateAdapter.parse(e,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(n),n=this._dateAdapter.getValidDateOrNull(n);let l=!this._dateAdapter.sameDate(n,this.value);!n||l?this._cvaOnChange(n):(e&&!this.value&&this._cvaOnChange(n),i!==this._lastValueValid&&this._val
11idatorOnChange()),l&&(this._assignValue(n),this.dateInput.emit(new Qt(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Qt(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=e!=null?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),this._formatValue(e)}_matchesFilter(e){let i=this._getDateFilter();return!i||i(e)}static \u0275fac=function(i){return new(i||r)};static \u0275dir=Ot({type:r,inputs:{value:"value",disabled:[2,"disabled","disabled",Et]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[na,lt]})}return r})();function Wu(r,d){let e=Object.keys(r);for(let i of e){let{previousValue:n,currentValue:l}=r[i];if(d.isDateInstance(n)&&d.isDateInstance(l)){if(!d.sameDate(n,l))return!0}else return!0}return!1}var ju={provide:Fs,useExisting:Wn(()=>ii),multi:!0},Uu={provide:Vs,useExisting:Wn(()=>ii),multi:!0},ii=(()=>{class r extends Hu{_formField=w(fr,{optional:!0});_closedSubscription=Ge.EMPTY;_openedSubscription=Ge.EMPTY;set matDatepicker(e){e&&(this._datepicker=e,this._ariaOwns.set(e.opened?e.id:null),this._closedSubscription=e.closedStream.subscribe(()=>{this._onTouched(),this._ariaOwns.set(null)}),this._openedSubscription=e.openedStream.subscribe(()=>{this._ariaOwns.set(e.id)}),this._registerModel(e.registerInput(this)))}_datepicker;_ariaOwns=re(null);get min(){return this._min}set min(e){let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(i,this._min)||(this._min=i,this._validatorOnChange())}_min;get max(){return this._max}set max(e){let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(i,this._max)||(this._max=i,this._validatorOnChange())}_max;get dateFilter(){return this._dateFilter}set dateFilter(e){let i=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==i&&this._validatorOnChange()}_dateFilter;_validator;constructor(){super(),this._validator=xt.compose(super._getValidators())}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe(),this._openedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}static \u0275fac=function(i){return new(i||r)};static \u0275dir=Ot({type:r,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(i,n){i&1&&O("input",function(p){return n._onInput(p.target.value)})("change",function(){return n._onChange()})("blur",function(){return n._onBlur()})("keydown",function(p){return n._onKeydown(p)}),i&2&&(qn("disabled",n.disabled),De("aria-haspopup",n._datepicker?"dialog":null)("aria-owns",n._ariaOwns())("min",n.min?n._dateAdapter.toIso8601(n.min):null)("max",n.max?n._dateAdapter.toIso8601(n.max):null)("data-mat-calendar",n._datepicker?n._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:[0,"matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[Ae([ju,Uu,{provide:$s,useExisting:r}]),$n]})}return r})(),Bu=(()=>{class r{static \u0275fac=function(i){return new(i||r)};static \u0275dir=Ot({type:r,selectors:[["","matDatepickerToggleIcon",""]]})}return r})(),Ei=(()=>{class r{_intl=w(ti);_changeDetectorRef=w(He);_stateChanges=Ge.EMPTY;datepicker;tabIndex;ariaLabel;get disabled(){return this._disabled===void 0&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=e}_disabled;disableRipple;_customIcon;_button;constructor(){let e=w(new Uo("tabindex"),{optional:!0}),i=Number(e);this.tabIndex=i||i===0?i:null}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){let e=this.datepicker?this.datepicker.stateChanges:ot(),i=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:ot(),n=this.datepicker?ye(this.datepicker.openedStream,this.datepicker.closedStream):ot();this._stateChanges.unsubscribe(),this._stateChanges=ye(this._intl.changes,e,i,n).subscribe(()=>this._changeDetectorRef.markForCheck())}static \u0275fac=function(i){return new(i||r)};static \u0275cmp=Y({type:r,selectors:[["mat-datepicker-toggle"]],c
11ontentQueries:function(i,n,l){if(i&1&&oa(l,Bu,5),i&2){let p;ve(p=be())&&(n._customIcon=p.first)}},viewQuery:function(i,n){if(i&1&&Oe(Pu,5),i&2){let l;ve(l=be())&&(n._button=l.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(i,n){i&1&&O("click",function(p){return n._open(p)}),i&2&&(De("tabindex",null)("data-mat-calendar",n.datepicker?n.datepicker.id:null),de("mat-datepicker-toggle-active",n.datepicker&&n.datepicker.opened)("mat-accent",n.datepicker&&n.datepicker.color==="accent")("mat-warn",n.datepicker&&n.datepicker.color==="warn"))},inputs:{datepicker:[0,"for","datepicker"],tabIndex:"tabIndex",ariaLabel:[0,"aria-label","ariaLabel"],disabled:[2,"disabled","disabled",Et],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[na,lt],ngContentSelectors:Au,decls:4,vars:7,consts:[["button",""],["mat-icon-button","","type","button",3,"disabled","disableRipple"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",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(i,n){i&1&&(Kn(Ou),m(0,"button",1,0),A(2,Eu,2,0,":svg:svg",2),Zn(3),u()),i&2&&(D("disabled",n.disabled)("disableRipple",n.disableRipple),De("aria-haspopup",n.datepicker?"dialog":null)("aria-label",n.ariaLabel||n._intl.openCalendarLabel)("tabindex",n.disabled?-1:n.tabIndex)("aria-expanded",n.datepicker?n.datepicker.opened:null),h(2),x(n._customIcon?-1:2))},dependencies:[or],styles:[`.mat-datepicker-toggle{pointer-events:auto;color:var(--mat-datepicker-toggle-icon-color, var(--mat-sys-on-surface-variant))}.mat-datepicker-toggle-active{color:var(--mat-datepicker-toggle-active-state-icon-color, var(--mat-sys-on-surface-variant))}@media(forced-colors: active){.mat-datepicker-toggle-default-icon{color:CanvasText}}
12`],encapsulation:2,changeDetection:0})}return r})();var za=(()=>{class r{static \u0275fac=function(i){return new(i||r)};static \u0275mod=yi({type:r});static \u0275inj=vi({providers:[ti,zu],imports:[ys,xs,fs,Cs,bs,Rl,Ei,Fl,Ds]})}return r})();var Wa=fi(ni());var $u=fi(ni(),1),Ll=fi(ni(),1),Ft=Ll.default||$u,Ii=new ft("MAT_MOMENT_DATE_ADAPTER_OPTIONS",{providedIn:"root",factory:Gu});function Gu(){return{useUtc:!1}}function qu(r,d){let e=Array(r);for(let i=0;i<r;i++)e[i]=d(i);return e}var Ha=(()=>{class r extends me{_options=w(Ii,{optional:!0});_localeData;constructor(){super();let e=w(Zt,{optional:!0});this.setLocale(e||Ft.locale())}setLocale(e){super.setLocale(e);let i=Ft.localeData(e);this._localeData={firstDayOfWeek:i.firstDayOfWeek(),longMonths:i.months(),shortMonths:i.monthsShort(),dates:qu(31,n=>this.createDate(2017,0,n+1).format("D")),longDaysOfWeek:i.weekdays(),shortDaysOfWeek:i.weekdaysShort(),narrowDaysOfWeek:i.weekdaysMin()}}getYear(e){return this.clone(e).year()}getMonth(e){return this.clone(e).month()}getDate(e){return this.clone(e).date()}getDayOfWeek(e){return this.clone(e).day()}getMonthNames(e){return e=="long"?this._localeData.longMonths:this._localeData.shortMonths}getDateNames(){return this._localeData.dates}getDayOfWeekNames(e){return e=="long"?this._localeData.longDaysOfWeek:e=="short"?this._localeData.shortDaysOfWeek:this._localeData.narrowDaysOfWeek}getYearName(e){return this.clone(e).format("YYYY")}getFirstDayOfWeek(){return this._localeData.firstDayOfWeek}getNumDaysInMonth(e){return this.clone(e).daysInMonth()}clone(e){return e.clone().locale(this.locale)}createDate(e,i,n){let l=this._createMoment({year:e,month:i,date:n}).locale(this.locale);return l.isValid(),l}today(){return this._createMoment().locale(this.locale)}parse(e,i){return e&&typeof e=="string"?this._createMoment(e,i,this.locale):e?this._createMoment(e).locale(this.locale):null}format(e,i){return e=this.clone(e),this.isValid(e),e.format(i)}addCalendarYears(e,i){return this.clone(e).add({years:i})}addCalendarMonths(e,i){return this.clone(e).add({months:i})}addCalendarDays(e,i){return this.clone(e).add({days:i})}toIso8601(e){return this.clone(e).format()}deserialize(e){let i;if(e instanceof Date)i=this._createMoment(e).locale(this.locale);else if(this.isDateInstance(e))return this.clone(e);if(typeof e=="string"){if(!e)return null;i=this._createMoment(e,Ft.ISO_8601).locale(this.locale)}return i&&this.isValid(i)?this._createMoment(i).locale(this.locale):super.deserialize(e)}
12isDateInstance(e){return Ft.isMoment(e)}isValid(e){return this.clone(e).isValid()}invalid(){return Ft.invalid()}setTime(e,i,n,l){return this.clone(e).set({hours:i,minutes:n,seconds:l,milliseconds:0})}getHours(e){return e.hours()}getMinutes(e){return e.minutes()}getSeconds(e){return e.seconds()}parseTime(e,i){return this.parse(e,i)}addSeconds(e,i){return this.clone(e).add({seconds:i})}_createMoment(e,i,n){let{strict:l,useUtc:p}=this._options||{};return p?Ft.utc(e,i,n,l):Ft(e,i,n,l)}static \u0275fac=function(i){return new(i||r)};static \u0275prov=ne({token:r,factory:r.\u0275fac})}return r})();function Ku(r,d){if(r&1&&(m(0,"strong"),b(1),u(),b(2," \u2014 ")),r&2){let e=g();h(),R(e.data.bankName)}}var ja=class r{data=w(Ss);_dialogRef=w(Ms);_analytics=w(Ct);signingDate=new Ys((0,Wa.default)(),{nonNullable:!0,validators:[xt.required]});minDate=(0,Wa.default)().subtract(1,"year");maxDate=(0,Wa.default)().add(1,"year");download(){if(this.signingDate.invalid){this.signingDate.markAsTouched();return}let d=this.signingDate.value.format("YYYY-MM-DD");this._analytics.trackEvent("promotion_calendar_download",{promotionId:this.data.promotionId}),window.location.href=`${os.apiUrl}/promotions/web/${this.data.promotionId}/calendar?signingDate=${d}`,this._dialogRef.close(!0)}cancel(){this._dialogRef.close(!1)}static \u0275fac=function(e){return new(e||r)};static \u0275cmp=Y({type:r,selectors:[["app-promotion-calendar-dialog"]],features:[Ae([{provide:je,useValue:_a},{provide:me,useClass:Ha,deps:[Zt,Ii]}])],decls:23,vars:7,consts:[["picker",""],["mat-dialog-title","",1,"promotion-calendar-dialog__title"],[1,"promotion-calendar-dialog__content"],[1,"promotion-calendar-dialog__description"],["appearance","outline",1,"promotion-calendar-dialog__field"],["matInput","",3,"matDatepicker","formControl","min","max"],["matIconSuffix","",3,"for"],["align","end",1,"promotion-calendar-dialog__actions"],["mat-stroked-button","","type","button",3,"click"],["mat-flat-button","","color","primary","type","button",3,"click"]],template:function(e,i){if(e&1){let n=$();m(0,"h2",1),b(1,"Dodaj terminy do kalendarza"),u(),m(2,"mat-dialog-content",2)(3,"p",3),b(4," Pobierzesz plik z terminami warunk\xF3w promocji "),A(5,Ku,3,1),m(6,"strong"),b(7),u(),b(8,". Otworzysz go w Kalendarzu Google, Apple lub Outlooku, a kalendarz przypomni Ci o ka\u017Cdym terminie na 3 dni i na dzie\u0144 przed. "),u(),m(9,"mat-form-field",4)(10,"mat-label"),b(11,"Kiedy podpisujesz umow\u0119?"),u(),y(12,"input",5)(13,"mat-datepicker-toggle",6)(14,"mat-datepicker",null,0),m(16,"mat-hint"),b(17,"Cz\u0119\u015B\u0107 warunk\xF3w ma termin liczony od dnia podpisania umowy."),u()()(),m(18,"mat-dialog-actions",7)(19,"button",8),O("click",function(){return T(n),P(i.cancel())}),b(20,"Anuluj"),u(),m(21,"button",9),O("click",function(){return T(n),P(i.download())}),b(22,"Pobierz plik .ics"),u()()}if(e&2){let n=sa(15);h(5),x(i.data.bankName?5:-1),h(2),R(i.data.promotionTitle),h(5),D("matDatepicker",n)("formControl",i.signingDate)("min",i.minDate)("max",i.maxDate),h(),D("for",n)}},dependencies:[Da,Gt,qt,zs,We,za,Na,ii,Ei,gr,ki,mr,ur,_r,Gs,wa,Ts,Ps,Os],styles:[".promotion-calendar-dialog__title[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:600;color:#141924}.promotion-calendar-dialog__content[_ngcontent-%COMP%]{padding-top:4px}.promotion-calendar-dialog__description[_ngcontent-%COMP%]{color:#3d4f71;font-size:.9rem;line-height:1.5;margin:0 0 20px}.promotion-calendar-dialog__field[_ngcontent-%COMP%]{width:100%}.promotion-calendar-dialog__actions[_ngcontent-%COMP%]{padding:8px 24px 20px;gap:8px}@media screen and (max-width: 959.98px){.promotion-calendar-dialog__actions[_ngcontent-%COMP%]{flex-direction:column;align-items:stretch}.promotion-calendar-dialog__actions[_ngcontent-%COMP%]   .mat-mdc-button-base[_ngcontent-%COMP%] + .mat-mdc-button-base[_ngcontent-%COMP%]{margin-left:0}}"],changeDetection:0})};var Wl=fi(ni()),Zg=fi(Hl());function Zu(r,d){r&1&&(m(0,"p",6),b(1,"Adres email jest wymagany"),u())}function Qu(r,d){r&1&&(m(0,"p",6),b(1,"Podaj poprawny adres e-mail"),u())}function Ju(r,d){r&1&&(m(0,"p",6),b(1,"Pole data jest wymagane"),u())}var Ua=class r{newsletterBannerForm;signup=qe();promotionId=Q(null);_fb=w(js).nonNullable;_analyticsService=w(Ct);constructor(){Wl.locale("pl"),this.newsletterBannerForm=this._fb.group({email:this._fb.control("",{validators:[xt.email,xt.required]}),date:this._fb.control(null,{validators:[xt.required]})})}get emailControlValue(){return this.newsletterBannerForm.controls.email}get dateControlValue(){return this.newsletterBannerForm.controls.date}submit(){let d=this.promotionId();d!==null&&this._analyticsService.trackEvent("sign_up_for_promotion_notifications",{promotionId:d});let e=this.dateControlValue.value,i=new Date(Date.UTC(e.year(),e.month(),e.date(),0,0,0,0));this.signup.emit({date:i.toISOString(),email:this.emailControlValue.value})}static \u0275fac=function(e){return new(e||r)};static \u0275cmp=Y({type:r,selectors:[["app-newsletter-form"]],inputs:{promotionId:[1,"promotionId"]},outputs:{signup:"signup"},features:[Ae([{provide:ma,useValue:"pl-PL"},{provide:je,useValue:_a},{provide:me,useClass:Ha,deps:[Zt,Ii]}])],decls:19,vars:7,consts:[["picker",""],[1,"newsletter-form",3,"ngSubmit","formGroup"],["appearance","outline",1,"form-field--with-border","form-field--with-icon","newsletter-form__form-field","newsletter-form__form-field--email"],[1,"newsletter-form__input-wrapper"],["ngSrc","/svg/mail.svg","height","14","
12width","17","alt","Ikona e-mail",1,"icon","newsletter-form__icon"],["matInput","","formControlName","email","type","email","placeholder","Twoj adres e-mail"],[1,"newsletter-form__error"],["appearance","outline",1,"form-field--with-border","form-field--with-icon","form-field--datepicker","custom-datepicker","newsletter-form__form-field","newsletter-form__form-field--date"],["matIconPrefix","",3,"for"],["matInput","","formControlName","date","placeholder","Data podpisania umowy",3,"matDatepicker"],[1,"newsletter-form__button-wrapper"],["mat-flat-button","","type","submit",1,"newsletter-form__button",3,"disabled"]],template:function(e,i){if(e&1){let n=$();m(0,"form",1),O("ngSubmit",function(){return T(n),P(i.submit())}),m(1,"div")(2,"mat-form-field",2)(3,"div",3),y(4,"img",4)(5,"input",5),u()(),A(6,Zu,2,0,"p",6)(7,Qu,2,0,"p",6),u(),m(8,"div")(9,"mat-form-field",7),y(10,"mat-datepicker-toggle",8),m(11,"div",3),y(12,"input",9)(13,"mat-datepicker",null,0),u()(),A(15,Ju,2,0,"p",6),u(),m(16,"div",10)(17,"button",11),b(18,"Zapisz si\u0119"),u()()()}if(e&2){let n=sa(14);D("formGroup",i.newsletterBannerForm),h(6),x(i.emailControlValue.touched&&i.emailControlValue.errors&&i.emailControlValue.errors.required?6:-1),h(),x(i.emailControlValue.touched&&i.emailControlValue.errors&&i.emailControlValue.errors.email?7:-1),h(3),D("for",n),h(2),D("matDatepicker",n),h(3),x(i.dateControlValue.touched&&i.dateControlValue.invalid?15:-1),h(2),D("disabled",i.newsletterBannerForm.invali
12d)}},dependencies:[ki,wa,Da,Ns,Gt,qt,Rs,pr,Hs,za,Na,ii,Ei,hr,We,ce],styles:[".newsletter-form[_ngcontent-%COMP%]{display:flex;gap:10px}.newsletter-form__form-field[_ngcontent-%COMP%]{background-color:#fff;border-radius:30px}.newsletter-form__form-field--email[_ngcontent-%COMP%]{width:330px}.newsletter-form__form-field--date[_ngcontent-%COMP%]{width:270px}.newsletter-form__input-wrapper[_ngcontent-%COMP%]{display:flex;gap:10px;align-items:center}.newsletter-form__icon[_ngcontent-%COMP%]{margin-top:-2px}.newsletter-form__error[_ngcontent-%COMP%]{color:#f04438;font-weight:500;margin-bottom:0}.newsletter-form__button-wrapper[_ngcontent-%COMP%]{width:115px}.newsletter-form__button[_ngcontent-%COMP%]{height:56px}.newsletter-form__button[_ngcontent-%COMP%]:disabled{background-color:#98a1b3}@media screen and (max-width: 1120px){.newsletter-form__button[_ngcontent-%COMP%]{height:48px}}@media screen and (max-width: 959.98px){.newsletter-form[_ngcontent-%COMP%]{flex-direction:column}.newsletter-form__form-field[_ngcontent-%COMP%], .newsletter-form__button-wrapper[_ngcontent-%COMP%], .newsletter-form__button[_ngcontent-%COMP%]{width:100%}}"],changeDetection:0})};var Ba=class r{promotionId=Q(null);_taskNotificationsApiService=w(tl);_dialog=w(Ca);signupUserToNewsletter(d){let e=this.promotionId();if(!e){console.error("Promotion ID is required for newsletter subscription"),this._showErrorDialog();return}let i={promotionId:e,email:d.email,contractSigningDate:d.date};this._taskNotificationsApiService.subscribe(i).subscribe({next:()=>{this._dialog.open(br,{data:{message:"\u2705 Zapisa\u0142e\u015B si\u0119 do powiadomie\u0144 o tej promocji",title:"Sukces!"}})},error:()=>{this._showErrorDialog()}})}_showErrorDialog(){this._dialog.open(br,{data:{message:"Co\u015B posz\u0142o nie tak i nie uda\u0142o si\u0119 zapisa\u0107 do powiadomie\u0144.",description:"Spr\xF3buj ponownie p\xF3\u017Aniej lub napisz do nas na [email protected]",title:"B\u0142\u0105d!"}})}static \u0275fac=function(e){return new(e||r)};static \u0275cmp=Y({type:r,selectors:[["app-newsletter-banner"]],inputs:{promotionId:[1,"promotionId"]},decls:20,vars:1,consts:[[1,"newsletter-banner"],[1,"newsletter-banner__picture"],["media","(max-width: 959.98px)","type","image/avif","srcset",`
13                /img/newsletter-banner/mobile/343/newsletter-mobile-343.avif 343w,
14                /img/newsletter-banner/mobile/515/newsletter-mobile-515.avif 515w,
15                /img/newsletter-banner/mobile/686/newsletter-mobile-686.avif 686w
16            `,"sizes","90vw"],["media","(max-width: 959.98px)","type","image/webp","srcset",`
17                /img/newsletter-banner/mobile/343/newsletter-mobile-343.webp 343w,
18                /img/newsletter-banner/mobile/515/newsletter-mobile-515.webp 515w,
19                /img/newsletter-banner/mobile/686/newsletter-mobile-686.webp 686w
20            `,"sizes","90vw"],["media","(max-width: 959.98px)","srcset",`
21                /img/newsletter-banner/mobile/343/newsletter-mobile-343.jpg 343w,
22                /img/newsletter-banner/mobile/515/newsletter-mobile-515.jpg 515w,
23                /img/newsletter-banner/mobile/686/newsletter-mobile-686.jpg 686w
24            `,"sizes","90vw"],["type","image/avif","srcset","/img/newsletter-banner/newsletter.avif"],["type","image/webp","srcset","/img/newsletter-banner/newsletter.webp"],["ngSrc","/img/newsletter-banner/newsletter.jpg","fetchpriority","auto","decoding","async","loading","eager","alt","T\u0142o banera 'Zapisz si\u0119 do powiadomie\u0144'","height","400","width","1432",1,"newsletter-banner__img"],[1,"newsletter-banner__content"],[1,"newsletter-banner__text-container"],[1,"newsletter-banner__title"],[1,"newsletter-banner__additional-text"],[3,"signup","promotionId"],[1,"newsletter-banner__text-container","newsletter-banner__text-container--padding"],[1,"newsletter-banner__terms-info"]],template:function(e,i){e&1&&(m(0,"div",0)(1,"picture",1),y(2,"source",2)(3,"source",3)(4,"source",4)(5,"source",5)(6,"source",6)(7,"img",7),u(),m(8,"div",8)(9,"div",9)(10,"h2",10),b(11,"Nie przegap \u017Cadnego zadania!"),u(),m(12,"p",11),b(13,"Zapisz si\u0119 na powiadomienia mailowe i zyskaj pe\u0142n\u0105 kontrol\u0119 nad swoimi zadaniami"),u()(),m(14,"app-newsletter-form",12),O("signup",function(l){return i.signupUserToNewsletter(l)}),u(),m(15,"div",13)(16,"p",14),b(17," \u{1F6E1}\uFE0F Zero spamu. Tylko wa\u017Cne informacje o Twoich zadaniach. "),y(18,"br"),b(19," Zapisuj\u0105c si\u0119 do powiadomie\u0144 o\u015Bwiadczasz, \u017Ce zapozna\u0142e\u015B si\u0119 z regulaminem. "),u()()()()),e&2&&(h(14),D("promotionId",i.promotionId()))},dependencies:[ce,Ua],styles:[".newsletter-banner[_ngcontent-%COMP%]{position:relative}.newsletter-banner__picture[_ngcontent-%COMP%], .newsletter-banner__img[_ngcontent-%COMP%]{width:100%;height:auto;display:block}.newsletter-banner__img[_ngcontent-%COMP%]{border-radius:25px}.newsletter-banner__content[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:#fff;display:flex;flex-direction:column;gap:1rem}.newsletter-banner__text-container[_ngcontent-%COMP%]{text-align:center}.newsletter-banner__text-container--padding[_ngcontent-%COMP%]{padding:1rem 20% 0}.newsletter-banner__title[_ngcontent-%COMP%]{font-size:3rem;margin-bottom:1rem}.newsletter-banner__additional-text[_ngcontent-%COMP%]{color:#bdc7d5}.newsletter-banner__terms-info[_ngcontent-%COMP%]{font-weight:lighter}
24@media screen and (max-width: 1550px){.newsletter-banner__title[_ngcontent-%COMP%]{font-size:2.7rem;margin-bottom:.9rem}.newsletter-banner__text-container--padding[_ngcontent-%COMP%]{padding-top:.9rem}}@media screen and (max-width: 1280px){.newsletter-banner__content[_ngcontent-%COMP%]{gap:.7rem}.newsletter-banner__title[_ngcontent-%COMP%]{font-size:2.5rem;margin-bottom:.7rem}.newsletter-banner__text-container--padding[_ngcontent-%COMP%]{padding-top:.7rem}.newsletter-banner__additional-text[_ngcontent-%COMP%], .newsletter-banner__terms-info[_ngcontent-%COMP%]{margin-bottom:.6rem}}@media screen and (max-width: 1120px){.newsletter-banner__content[_ngcontent-%COMP%]{gap:.5rem;font-size:.9rem}.newsletter-banner__title[_ngcontent-%COMP%]{font-size:1.9rem;margin-bottom:.5rem}.newsletter-banner__text-container--padding[_ngcontent-%COMP%]{padding-top:.5rem}.newsletter-banner__additional-text[_ngcontent-%COMP%], .newsletter-banner__terms-info[_ngcontent-%COMP%]{margin-bottom:.5rem}}@media screen and (max-width: 959.98px){.newsletter-banner[_ngcontent-%COMP%]{display:flex;justify-content:center}.newsletter-banner__picture[_ngcontent-%COMP%]{max-width:550px}.newsletter-banner__img[_ngcontent-%COMP%]{border-radius:31px}.newsletter-banner__picture[_ngcontent-%COMP%], .newsletter-banner__img[_ngcontent-%COMP%]{width:100%;height:550px;display:block}.newsletter-banner__content[_ngcontent-%COMP%]{width:80vw;max-width:500px}.newsletter-banner__text-container--padding[_ngcontent-%COMP%]{padding:.5rem 5% 0}}"],changeDetection:0})};var Xu=(r,d)=>d.code,eh=()=>[];function th(r,d){r&1&&(m(0,"div",2),b(1," Promocja ju\u017C zako\u0144czona "),u())}function ih(r,d){r&1&&y(0,"app-ui-hot-icon")}function ah(r,d){if(r&1&&y(0,"app-ui-chip",17),r&2){let e=d.$implicit;D("text",e.name)}}function nh(r,d){if(r&1&&(m(0,"div",13),U(1,ah,1,1,"app-ui-chip",17,Xu),u()),r&2){let e=g();h(),B(e.productTypes)}}function rh(r,d){if(r&1&&y(0,"app-ui-promotion-time-left",15),r&2){let e=g(),i=g();D("daysLeft",e.daysLeft)("endDate",e.endDateUtc)("forceFullDate",i.showUrgencyBadge())}}function oh(r,d){if(r&1&&(m(0,"span",16),b(1),u()),r&2){let e=g();h(),R(e.daysLeft===1?"Ostatnia szansa":"Ko\u0144czy si\u0119 wkr\xF3tce")}}function sh(r,d){if(r&1&&y(0,"app-ui-promotion-warning",17),r&2){let e=g();D("text",e.warning)}}function lh(r,d){r&1&&y(0,"app-ui-promoted-promotion",26)}function dh(r,d){if(r&1&&y(0,"img",27),r&2){let e=g();Qo("alt","Baner promocyjny banku ",e.bank.name,""),D("ngSrc",e.bannerUrl)}}function ch(r,d){if(r&1){let e=$();m(0,"mat-card",1),A(1,th,2,0,"div",2)(2,ih,1,0,"app-ui-hot-icon"),m(3,"div",3)(4,"section")(5,"mat-card-content")(6,"div",4)(7,"div",5),y(8,"img",6),u()()()(),m(9,"section",7)(10,"mat-card-content",8)(11,"div",9),b(12),u()(),m(13,"mat-card-header",10)(14,"mat-card-title")(15,"h1",11),b(16),u()()(),m(17,"mat-card-content",12),yt(18),A(19,nh,3,0,"div",13),m(20,"div",14),A(21,rh,1,3,"app-ui-promotion-time-left",15)(22,oh,2,1,"span",16)(23,sh,1,1,"app-ui-promotion-warning",17),u(),m(24,"div",18)(25,"button",19),O("click",function(){let n=T(e),l=g();return P(l.onGoToPromotion(n.id))}),m(26,"div",20),y(27,"img",21),m(28,"span"),b(29),u()()(),m(30,"button",22),O("click",function(){T(e);let n=g();return P(n.onScrollToNotifications())}),m(31,"div",20),y(32,"img",23),m(33,"span"),b(34,"Powiadom mnie o zadaniach"),u()()(),m(35,"button",22),O("click",function(){T(e);let n=g();return P(n.onAddToCalendar())}),m(36,"div",20),y(37,"img",24),m(38,"span"),b(39,"Dodaj terminy do kalendarza"),u()()()()()(),m(40,"section",25),A(41,lh,1,0,"app-ui-promoted-promotion",26)(42,dh,1,3,"img",27),u()()()}if(r&2){let e=d,i=g();de("promotion-header-desktop--expired",i.isExpired()),h(),x(i.isExpired()?1:-1),h(),x(e.isHot&&!i.isExpired()?2:-1),h(6),Bt("src",e.bank.logoUrl||"",bt),Bt("alt",e.bank.name+" logo"),h(4),R(e.bank.name),h(4),R(e.title);let n=e.productTypes||$t(18,eh);h(3),x(n.length>0?19:-1),h(2),x(i.isExpired()?-1:21),h(),x(i.showUrgencyBadge()?22:-1),h(),x(e.warning?23:-1),h(2),D("disabled",i.isExpired()),h(4),R(i.ctaText),h(),D("disabled",i.isExpired()),h(5),D("disabled",i.isExpired()),h(6),x(e.isPromoted?41:-1),h(),x(e.bannerUrl?42:-1)}}var $a=class r{promotion=Q.required();isExpired=he(()=>{let d=this.promotion();return d?.endDateUtc?new Date(d.endDateUtc)<new Date:!1});goToPromotion=qe();scrollToNotifications=qe();addToCalendar=qe();_analyticsService=w(Ct);_abTestService=w(ha);ctaText="Za\u0142\xF3\u017C konto";showUrgencyBadge=re(!1);_urgencyVariant=null;ngOnInit(){this.promotion()?.isLastCall&&!this.isExpired()&&(this._urgencyVariant=this._abTestService.registerExposure(ua.CARD_URGENCY_V1),this.showUrgencyBadge.set(this._urgencyVariant==="B"))}onGoToPromotion(d){if(this.isExpired())return;let e=this.promotion();
24e&&this._analyticsService.trackOutboundBankClick(e,this._urgencyVariant??void 0),this.goToPromotion.emit(d)}onScrollToNotifications(){this._analyticsService.trackEvent("scroll_to_notifications"),this.scrollToNotifications.emit()}onAddToCalendar(){this.isExpired()||this.addToCalendar.emit()}static \u0275fac=function(e){return new(e||r)};static \u0275cmp=Y({type:r,selectors:[["app-promotion-header-desktop"]],inputs:{promotion:[1,"promotion"]},outputs:{goToPromotion:"goToPromotion",scrollToNotifications:"scrollToNotifications",addToCalendar:"addToCalendar"},decls:1,vars:1,consts:[[1,"promotion-header-desktop",3,"promotion-header-desktop--expired"],[1,"promotion-header-desktop"],[1,"promotion-header-desktop__expired-banner"],[1,"promotion-header-desktop__container"],[1,"promotion-header-desktop__img-container"],[1,"promotion-header-desktop__img-wrapper"],["mat-card-sm-image","","width","40","height","40","loading","lazy","decoding","async",3,"src","alt"],[1,"promotion-header-desktop__description-section"],[1,"promotion-header-desktop__bank-wrapper"],[1,"promotion-header-desktop__bank-name"],[1,"promotion-header-desktop__header"],[1,"promotion-header-desktop__title"],[1,"promotion-header-desktop__chips-container"],[1,"promotion-header-desktop__chips"],[1,"promotion-header-desktop__warning-and-date"],[3,"daysLeft","endDate","forceFullDate"],[1,"promotion-header-desktop__urgency-badge"],[3,"text"],[1,"promotion-header-desktop__button-wrapper"],["mat-flat-button","","color","primary",3,"click","disabled"],[1,"promotion-header-desktop__primary-button"],["ngSrc","/svg/link-external.svg","height","16","width","16","alt","link-external-svg",1,"icon"],["mat-stroked-button","","color","primary",3,"click","disabled"],["ngSrc","/svg/bell-primary.svg","height","16","width","16","alt","",1,"icon"],["ngSrc","/svg/calendar-primary.svg","height","16","width","16","alt","",1,"icon"],[1,"promotion-header-desktop__banner-section"],[1,"promotion-header-desktop__flex"],["height","250","width","300",3,"ngSrc","alt"]],template:function(e,i){if(e&1&&A(0,ch,43,19,"mat-card",0),e&2){let n;x((n=i.promotion())?0:-1,n)}},dependencies:[Ie,We,Fe,kt,Is,wt,ce,Ma,Oa,Ta,Sa,Pa],styles:[".promotion-header-desktop--expired[_ngcontent-%COMP%]{filter:grayscale(100%);opacity:.7}.promotion-header-desktop--expired[_ngcontent-%COMP%]   .promotion-header-desktop__expired-banner[_ngcontent-%COMP%]{filter:grayscale(0%);opacity:1}.promotion-header-desktop__expired-banner[_ngcontent-%COMP%]{background-color:#3d4f71;color:#fff;text-align:center;padding:12px;font-weight:500;font-size:16px;border-radius:4px 4px 0 0}.promotion-header-desktop__container[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 6fr 3fr;position:relative;min-height:280px;padding:10px}@media screen and (max-width: 959.98px){.promotion-header-desktop__container[_ngcontent-%COMP%]{padding:0}}.promotion-header-desktop__img-container[_ngcontent-%COMP%]{border:1px solid #e4e7ec;border-radius:10px;padding:25px}.promotion-header-desktop__img-wrapper[_ngcontent-%COMP%]{display:flex}.promotion-header-desktop__description-section[_ngcontent-%COMP%]{display:flex;flex-direction:column}.promotion-header-desktop__bank-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.promotion-header-desktop__bank-name[_ngcontent-%COMP%]{color:#0065ff;font-weight:500}.promotion-header-desktop__header[_ngcontent-%COMP%]{padding-top:10px}.promotion-header-desktop__title[_ngcontent-%COMP%]{font-size:2rem;color:#141924}@media screen and (max-width: 959.98px){.promotion-header-desktop__title[_ngcontent-%COMP%]{font-size:1.5rem}}.promotion-header-desktop__chips-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:20px;height:100%;color:#3d4f71;margin-top:25px}.promotion-header-desktop__chips[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;row-gap:8px}.promotion-header-desktop__urgency-badge[_ngcontent-%COMP%]{display:inline-flex;align-items:center;padding:2px 10px;border-radius:20px;white-space:nowrap;border:1px solid #f04438;color:#f04438;background-color:#fef3f2}.promotion-header-desktop__warning-and-date[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;gap:16px}.promotion-header-desktop__button-wrapper[_ngcontent-%COMP%]{margin-top:auto;display:flex;gap:10px;flex-wrap:wrap}.promotion-header-desktop__primary-button[_ngcontent-%COMP%]{display:flex;gap:5px}.promotion-header-desktop__banner-section[_ngcontent-%COMP%]{padding:16px 16px 16px 0;display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between}"],changeDetection:0})};function ph(r,d){if(r&1&&(m(0,"div",10),y(1,"img",11),m(2,"span"),b(3),u()()),r&2){let e=d.$implicit;h(3),R(e)}}function mh(r,d){if(r&1&&U(0,ph,4,1,"div",10,we),r&2){let e=g();B(e.fees())}}function uh(r,d){r&1&&(m(0,"div"),b(1,"Brak Op\u0142at"),u())}var Ga=class r{feesDescription=Q.required();gracePeriod=Q.required();fees=he(()=>this.feesDescription()?.split(/\r\n\r\n|\r\n/));static \u0275fac=function(e){return new(e||r)};static \u0275cmp=Y({type:r,selectors:[["app-promotion-fees"]],inputs:{feesDescription:[1,"feesDescription"],gracePeriod:[1,"gracePeriod"]},decls:23,vars:2,consts:[[1,"promotion-fees"],[1,"promotion-fees__left-section"],[1,"promotion-fees__section-container"],[1,"promotion-fees__card-header"],[1,"promotion-fees__card-title"],["ngSrc","/svg/coins.svg","height","48","width","48","alt","ikona monet"],[1,"promotion-fees__title"],[1,"promotion-fees__content","promotion-fees__content--flex"],["ngSrc","/svg/clock-check.svg","height","48","width","48","alt","ikona zegarka"],[1,"promotion-fees__content"],[1,"promotion-fees__fee-wrapper"],["ngSrc","/svg/check.svg","height","22","width","16","alt","ikona potwierdzenia"]],template:function(e,i){e&1&&(m(0,"mat-card",0)(1,"section",1)(2,"div",2)(3,"mat-card-header",3)(4,"mat-card-title",4),y(5,"img",5),m(6,"h2",6),b(7,"Op\u0142aty"),u()()(),m(8,"div")(9,"mat-card-content",7),A(10,mh,2,0)(11,uh,2,0,"div"),u()()()(),m(12,"section")(13,"div",2)(14,"mat-card-header",3)(15,"mat-card-title",4),y(16,"img",8),m(17,"h2",6),b(18,"Okres karencji"),u()()(),m(19,"div")(20,"mat-card-content",9)(21,"div"),b(22),u()()()()()()),e&2&&(h(10),x(i.fees()?10:11),h(12),R(i.gracePeriod()||"Brak okresu karencji"))},dependencies:[Ie,ce,kt,wt,Fe],styles:[".promotion-fees[_ngcontent-%COMP%]{display:flex;flex-direction:column;min-height:550px}.promotion-fees__left-section[_ngcontent-%COMP%]{border-bottom:1px solid #bdc7d5}.promotion-fees__section-container[_ngcontent-%COMP%]{padding:10px}@media screen and (max-width: 959.98px){.promotion-fees__section-container[_ngcontent-%COMP%]{padding:0}}.promotion-fees__card-title[_ngcontent-%COMP%]{display:flex;gap:15px}.promotion-fees__title[_ngcontent-%COMP%]{margin-top:10px;font-size:1.6rem;color:#141924}@media screen and (max-width: 959.98px){.promotion-fees__title[_ngcontent-%COMP%]{font-size:1.3rem}}.promotion-fees__content[_ngcontent-%COMP%]{color:#5e6e8d;margin-left:64px}.promotion-fees__content--flex[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:5px}.promotion-fees__fee-wrapper[_ngcontent-%COMP%]{display:flex;gap:5px}@media screen and (max-width: 959.98px){.promotion-fees[_ngcontent-%COMP%]{min-height:auto}.promotion-fees__left-section[_ngcontent-%COMP%]{border-bottom:1px solid #bdc7d5}.promotion-fees__section-container[_ngcontent-%COMP%]{padding:16px}.promotion-fees__card-header[_ngcontent-%COMP%], .promotion-fees__content[_ngcontent-%COMP%]{padding:0}.promotion-fees__content[_ngcontent-%COMP%]{margin-left:0}.promotion-fees__content[_ngcontent-%COMP%]:last-child{padding-bottom:0}}"],changeDetection:0})};var hh=(r,d)=>d.uri;function _h(r,d){if(r&1&&(m(0,"div"),b(1),u()),r&2){let e=g();h(),R(e.promotionDescription())}}function fh(r,d){if(r&1&&(m(0,"section",12)(1,"p",13),b(2),u()()),r&2){let e=g(2);h(2),R(e.summary)}}function gh(r,d){if(r&1&&(m(0,"li",16),b(1),u()),r&2){let e=d.$implicit;h(),R(e)}}function vh(r,d){if(r&1&&(m(0,"section",12)(1,"h3",14),b(2,"Warunki udzia\u0142u"),u(),m(3,"ul",15),U(4,gh,2,1,"li",16,we),u()()),r&2){g(2);let e=ke(0);h(4),B(e)}}function bh(r,d){if(r&1&&(m(0,"li",16),b(1),u()),r&2){let e=d.$implicit;h(),R(e)}}function yh(r,d){if(r&1&&(m(0,"section",12)(1,"h3",14),b(2,"Ukryte op\u0142aty"),u(),m(3,"ul",15),U(4,bh,2,1,"li",16,we),u()()),r&2){g(2);let e=ke(1);h(4),B(e)}}function Ch(r,d){if(r&1&&(m(0,"li",16),b(1),u()),r&2){let e=d.$implicit;h(),R(e)}}function Dh(r,d){if(r&1&&(m(0,"section",12)(1,"h3",14),b(2,"Na co uwa\u017Ca\u0107"),u(),m(3,"ul",15),U(4,Ch,2,1,"li",16,we),u()()),r&2){g(2);let e=ke(2);h(4),B(e)}}function wh(r,d){if(r&1&&(m(0,"li",16),b(1),u()),r&2){let e=d.$implicit;h(),R(e)}}function kh(r,d){if(r&1&&(m(0,"section",12)(1,"h3",14),b(2,"Najtrudniejsze elementy"),u(),m(3,"ul",15),U(4,wh,2,1,"li",16,we),u()()),r&2){g(2);let e=ke(3);h(4),B(e)}}function xh(r,d){if(r&1&&(m(0,"div",17)(1,"span",18),b(2,"Poziom trudno\u015Bci:"),u(),m(3,"span",19),b(4),u()()),r&2){g(2);let e=ke(6);h(4),R(e==null?null:e.difficulty)}}function Mh(r,d){if(r&1&&(m(0,"p",13),b(1),u()),r&2){g(2);let e=ke(6);h(),R(e==null?null:e.explanation)}}function Sh(r,d){if(r&1&&(m(0,"section",12)(1,"h3",14),b(2,"Rekomendacja"),u(),A(3,xh,5,1,"div",17)(4,Mh,2,1,"p",13),u()),r&2){g();let e=ke(6),i=g(2);h(3),x(i.hasText(e==null?null:e.difficulty)?3:-1),h(),x(i.hasText(e==null?null:e.explanation)?4:-1)}}function Th(r,d){if(r&1&&(m(0,"div",11),A(1,fh,3,1,"section",12)(2,vh,6,0,"section",12)(3,yh,6,0,"section",12)(4,Dh,6,0,"section",12)(5,kh,6,0,"section",12),yt(6),A(7,Sh,5,2,"section",12),u()),r&2){let e=g(),i=ke(0),n=ke(1),l=ke(2),p=ke(3),f=ke(4),C=g();h(),x(C.hasText(e.summary)?1:-1),h(),x(i.length?2:-1),h(),x(n.length?3:-1),h(),x(l.length?4:-1),h(),x(p.length?5:-1),h(),At(e.recommendation),h(),x(f?7:-1)}}function Ph(r,d){if(r&1&&(yt(0)(1)(2)(3)(4),A(5,Th,8,7,"div",11)),r&2){let e=d,i=g(
24),n=At(i.filterNotEmpty(e.mustHave));h();let l=At(i.filterNotEmpty(e.hiddenFees));h();let p=At(i.filterNotEmpty(e.traps));h();let f=At(i.filterNotEmpty(e.hardest));h();let C=At(i.hasRecommendation(e.recommendation));h(),x(i.hasText(e.summary)||n.length||l.length||p.length||f.length||C?5:-1)}}function Oh(r,d){if(r&1&&(m(0,"div",7)(1,"a",8),y(2,"img",20),m(3,"span",10),b(4),u()()()),r&2){let e=d.$implicit;h(),D("href",e.uri,bt),h(3),R(e.name)}}var qa=class r{promotionDescription=Q.required();promotionRegulations=Q.required();promotionFeeUrl=Q.required();promotionWideDescription=Q(null);hasText(d){return d?d.trim().length>0:!1}filterNotEmpty(d){return(d??[]).filter(e=>!!e&&e.trim().length>0)}hasRecommendation(d){return!!(d&&(this.hasText(d.difficulty)||this.hasText(d.explanation)))}static \u0275fac=function(e){return new(e||r)};static \u0275cmp=Y({type:r,selectors:[["app-promotion-description"]],inputs:{promotionDescription:[1,"promotionDescription"],promotionRegulations:[1,"promotionRegulations"],promotionFeeUrl:[1,"promotionFeeUrl"],promotionWideDescription:[1,"promotionWideDescription"]},decls:19,vars:3,consts:[[1,"promotion-description"],[1,"promotion-description__card","promotion-description__card--description"],[1,"promotion-description__card-header"],[1,"promotion-description__title"],[1,"promotion-description__card-content"],[1,"promotion-description__card","promotion-description__card--with-links"],[1,"promotion-description__links-content"],[1,"promotion-description__link-wrapper"],["target","_blank",1,"promotion-description__link",3,"href"],["ngSrc","/svg/info-circle.svg","height","20","width","20","alt","Ikona informacji"],[1,"promotion-description__link-label"],[1,"promotion-description__wide"],[1,"promotion-description__wide-section"],[1,"promotion-description__wide-text"],[1,"promotion-description__wide-title"],[1,"promotion-description__wide-list"],[1,"promotion-description__wide-list-item"],[1,"promotion-description__wide-recommendation"],[1,"promotion-description__wide-recommendation-label"],[1,"promotion-description__wide-recommendation-value"],["ngSrc","/svg/file-text.svg","height","20","width","20","alt","Ikona pliku tekstowego"]],template:function(e,i){if(e&1&&(m(0,"div",0)(1,"mat-card",1)(2,"mat-card-header",2)(3,"mat-card-title")(4,"h2",3),b(5,"Pe\u0142en opis promocji"),u()()(),m(6,"mat-card-content",4),yt(7),A(8,_h,2,1,"div")(9,Ph,6,6),u()(),m(10,"mat-card",5)(11,"mat-card-content",6),U(12,Oh,5,2,"div",7,hh),m(14,"div",7)(15,"a",8),y(16,"img",9),m(17,"span",10),b(18,"Tabela op\u0142at i prowizji"),u()()()()()()),e&2){let n,l=i.promotionWideDescription();h(8),x(l?-1:8),h(),x((n=l)?9:-1,n),h(3),B(i.promotionRegulations()),h(3),D("href",i.promotionFeeUrl(),bt)}},dependencies:[Ie,kt,wt,Fe,ce],styles:[".promotion-description__title[_ngcontent-%COMP%]{font-size:1.6rem;color:#141924}@media screen and (max-width: 959.98px){.promotion-description__title[_ngcontent-%COMP%]{font-size:1.3rem}}.promotion-description__card-content[_ngcontent-%COMP%]{color:#253045}.promotion-description__card[_ngcontent-%COMP%]{color:#141924;padding:10px}@media screen and (max-width: 959.98px){.promotion-description__card[_ngcontent-%COMP%]{padding:0}}.promotion-description__card--description[_ngcontent-%COMP%]{z-index:1}.promotion-description__card--with-links[_ngcontent-%COMP%]{margin-top:-15px;background-color:#e3e6eb}.promotion-description__links-content[_ngcontent-%COMP%]{display:flex;margin-top:15px;gap:30px}.promotion-description__link-wrapper[_ngcontent-%COMP%]{display:flex}.promotion-description__link[_ngcontent-%COMP%]{cursor:pointer}.promotion-description__link-label[_ngcontent-%COMP%]{margin-left:5px;text-decoration-line:underline;color:#151c29}.promotion-description__wide[_ngcontent-%COMP%]{margin-top:24px;display:flex;flex-direction:column;gap:24px}.promotion-description__wide-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px}.promotion-description__wide-title[_ngcontent-%COMP%]{margin:0;font-size:18px;font-weight:600;line-height:24px;color:#141924}.promotion-description__wide-text[_ngcontent-%COMP%]{margin:0;line-height:1.6}.promotion-description__wide-list[_ngcontent-%COMP%]{margin:0;padding-left:20px;
24display:flex;flex-direction:column;gap:8px;line-height:1.6}.promotion-description__wide-list-item[_ngcontent-%COMP%]{color:#253045}.promotion-description__wide-recommendation[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:6px;font-weight:500;color:#141924}.promotion-description__wide-recommendation-label[_ngcontent-%COMP%]{font-weight:600}@media screen and (max-width: 959.98px){.promotion-description__card[_ngcontent-%COMP%]{padding:16px}.promotion-description__card-header[_ngcontent-%COMP%], .promotion-description__card-content[_ngcontent-%COMP%], .promotion-description__links-content[_ngcontent-%COMP%]{padding:0}.promotion-description__card-content[_ngcontent-%COMP%]:last-child{padding-bottom:0}.promotion-description__links-content[_ngcontent-%COMP%]{margin-top:0;flex-direction:column;gap:10px}.promotion-description__links-content[_ngcontent-%COMP%]:last-child{padding-bottom:0}.promotion-description__wide[_ngcontent-%COMP%]{margin-top:20px;gap:20px}.promotion-description__wide-title[_ngcontent-%COMP%]{font-size:16px;line-height:22px}}"],changeDetection:0})};var Ah=(r,d)=>d.code,Eh=()=>[];function Ih(r,d){r&1&&(m(0,"div",1),b(1," Promocja ju\u017C zako\u0144czona "),u())}function Fh(r,d){r&1&&y(0,"app-ui-hot-icon")}function Vh(r,d){r&1&&(m(0,"div",10),y(1,"app-ui-promoted-promotion"),u())}function Rh(r,d){if(r&1&&y(0,"app-ui-chip",15),r&2){let e=d.$implicit;D("text",e.name)}}function Yh(r,d){if(r&1&&(m(0,"div",11),U(1,Rh,1,1,"app-ui-chip",15,Ah),u()),r&2){let e=g();h(),B(e.promotion().productTypes)}}function Lh(r,d){if(r&1&&y(0,"app-ui-promotion-time-left",13),r&2){let e=g();D("daysLeft",e.promotion().daysLeft)("endDate",e.promotion().endDateUtc)("forceFullDate",e.showUrgencyBadge())}}function Nh(r,d){if(r&1&&(m(0,"span",14),b(1),u()),r&2){let e=g();h(),R(e.promotion().daysLeft===1?"Ostatnia szansa":"Ko\u0144czy si\u0119 wkr\xF3tce")}}function zh(r,d){if(r&1&&y(0,"app-ui-promotion-warning",15),r&2){let e=g();D("text",e.promotion().warning)}}var Ka=class r{promotion=Q.required();isExpired=he(()=>{let d=this.promotion();return d?.endDateUtc?new Date(d.endDateUtc)<new Date:!1});goToPromotion=qe();scrollToNotifications=qe();addToCalendar=qe();_analyticsService=w(Ct);_abTestService=w(ha);ctaText="Za\u0142\xF3\u017C konto";showUrgencyBadge=re(!1);_urgencyVariant=null;ngOnInit(){this.promotion().isLastCall&&!this.isExpired()&&(this._urgencyVariant=this._abTestService.registerExposure(ua.CARD_URGENCY_V1),this.showUrgencyBadge.set(this._urgencyVariant==="B"))}onGoToPromotion(d){this.isExpired()||(this._analyticsService.trackOutboundBankClick(this.promotion(),this._urgencyVariant??void 0),this.goToPromotion.emit(d))}onScrollToNotifications(){this._analyticsService.trackEvent("scroll_to_notifications"),this.scrollToNotifications.emit()}onAddToCalendar(){this.isExpired()||this.addToCalendar.emit()}static \u0275fac=function(e){return new(e||r)};static \u0275cmp=Y({type:r,selectors:[["app-promotion-header-mobile"]],inputs:{promotion:[1,"promotion"]},outputs:{goToPromotion:"goToPromotion",scrollToNotifications:"scrollToNotifications",addToCalendar:"addToCalendar"},decls:36,vars:18,consts:[[1,"promotion-header-mobile"],[1,"promotion-header-mobile__expired-banner"],[1,"promotion-header-mobile__content"],[1,"promotion-header-mobile__header"],[1,"promotion-header-mobile__img-container"],[1,"promotion-header-mobile__img-wrapper"],["height","40","width","40",3,"ngSrc","alt"],[1,"promotion-header-mobile__bank-name"],[1,"promotion-header-mobile__title-wrapper"],[1,"promotion-header-mobile__title"],[1,"promotion-header-mobile__promoted-wrapper"],[1,"promotion-header-mobile__chips"],[1,"promotion-header-mobile__info-container"],[3,"daysLeft","endDate","forceFullDate"],[1,"promotion-header-mobile__urgency-badge"],[3,"text"],["mat-flat-button","","color","primary",3,"click","disabled"],[1,"promotion-header-mobile__primary-button"],["ngSrc","/svg/link-external.svg","height","16","width","16","alt","link-external-svg",1,"icon"],["mat-stroked-button","","color","primary",3,"click","disabled"],["ngSrc","/svg/bell-primary.svg","height","16","width","16","alt","",1,"icon"],["ngSrc","/svg/calendar-primary.svg","height","16","width","16","alt","",1,"icon"]],template:function(e,i){if(e&1){let n=$();m(0,"mat-card",0),A(1,Ih,2,0,"div",1)(2,Fh,1,0,"app-ui-hot-icon"),m(3,"mat-card-content",2)(4,"section",3)(5,"div",4)(6,"div",5),y(7,"img",6),u()(),m(8,"div")(9,"div",7),b(10),u(),m(11,"div",8)(12,"h1",9),b(13),u()()()(),A(14,Vh,2,0,"div",10),yt(15),A(16,Yh,3,0,"div",11),m(1
247,"section",12),A(18,Lh,1,3,"app-ui-promotion-time-left",13)(19,Nh,2,1,"span",14)(20,zh,1,1,"app-ui-promotion-warning",15),u(),m(21,"button",16),O("click",function(){return T(n),P(i.onGoToPromotion(i.promotion().id))}),m(22,"div",17),y(23,"img",18),m(24,"span"),b(25),u()()(),m(26,"button",19),O("click",function(){return T(n),P(i.onScrollToNotifications())}),m(27,"div",17),y(28,"img",20),m(29,"span"),b(30,"Powiadom mnie o zadaniach"),u()()(),m(31,"button",19),O("click",function(){return T(n),P(i.onAddToCalendar())}),m(32,"div",17),y(33,"img",21),m(34,"span"),b(35,"Dodaj terminy do kalendarza"),u()()()()()}if(e&2){de("promotion-header-mobile--expired",i.isExpired()),h(),x(i.isExpired()?1:-1),h(),x(i.promotion().isHot&&!i.isExpired()?2:-1),h(5),Bt("ngSrc",i.promotion().bank.logoUrl),Bt("alt",i.promotion().bank.name+" logo"),h(3),R(i.promotion().bank.name),h(3),R(i.promotion().title),h(),x(i.promotion().isPromoted?14:-1);let n=i.promotion().productTypes||$t(17,Eh);h(2),x(n.length>0?16:-1),h(2),x(i.isExpired()?-1:18),h(),x(i.showUrgencyBadge()?19:-1),h(),x(i.promotion().warning?20:-1),h(),D("disabled",i.isExpired()),h(4),R(i.ctaText),h(),D("disabled",i.isExpired()),h(5),D("disabled",i.isExpired())}},dependencies:[We,Ie,Fe,ce,Oa,Ma,Sa,Ta,Pa],styles:[".promotion-header-mobile--expired[_ngcontent-%COMP%]{filter:grayscale(100%);opacity:.7}.promotion-header-mobile--expired[_ngcontent-%COMP%]   .promotion-header-mobile__expired-banner[_ngcontent-%COMP%]{filter:grayscale(0%);opacity:1}.promotion-header-mobile__expired-banner[_ngcontent-%COMP%]{background-color:#3d4f71;color:#fff;text-align:center;padding:12px;font-weight:500;font-size:16px;border-radius:4px 4px 0 0}.promotion-header-mobile__content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:20px;position:relative;padding-top:16px}.promotion-header-mobile__hot-icon[_ngcontent-%COMP%]{position:absolute;top:0;left:0;z-index:1}.promotion-header-mobile__header[_ngcontent-%COMP%]{display:flex;gap:10px}.promotion-header-mobile__img-wrapper[_ngcontent-%COMP%]{display:flex;border:1px solid #e4e7ec;border-radius:10px;padding:20px}.promotion-header-mobile__title-wrapper[_ngcontent-%COMP%]{font-weight:500;margin-top:5px}.promotion-header-mobile__title[_ngcontent-%COMP%]{font-size:2rem;color:#141924}@media screen and (max-width: 959.98px){.promotion-header-mobile__title[_ngcontent-%COMP%]{font-size:1.5rem}}.promotion-header-mobile__bank-name[_ngcontent-%COMP%]{color:#0065ff;font-weight:500}.promotion-header-mobile__promoted-wrapper[_ngcontent-%COMP%]{display:flex}.promotion-header-mobile__chips[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;row-gap:8px}.promotion-header-mobile__info-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;column-gap:10px;row-gap:5px;color:#3d4f71}.promotion-header-mobile__urgency-badge[_ngcontent-%COMP%]{display:inline-flex;align-items:center;padding:2px 10px;border-radius:20px;font-size:14px;white-space:nowrap;border:1px solid #f04438;color:#f04438;background-color:#fef3f2}.promotion-header-mobile__primary-button[_ngcontent-%COMP%]{display:flex;gap:5px}"],changeDetection:0})};function Hh(r,d){if(r&1&&(m(0,"span",1)(1,"span"),b(2),Jn(3,"date"),u(),y(4,"img",2),b(5," Do "),m(6,"span"),b(7),Jn(8,"date"),u()()),r&2){let e=g();h(2),ae("Od ",Xn(3,2,e.startTaskDate().timeUtc,"dd.MM.yyyy"),""),h(5),R(Xn(8,5,e.endTaskDate().timeUtc,"dd.MM.yyyy"))}}function Wh(r,d){if(r&1&&(m(0,"span"),b(1),u()),r&2){let e=g();h(),ae("Do ",e.endTaskDate().daysAfterSigning," dni po podpisaniu umowy")}}function jh(r,d){if(r&1&&(m(0,"span"),b(1),u()),r&2){let e=g();h(),Ci("Od ",e.startTaskDate().daysAfterSigning," do ",e.endTaskDate().daysAfterSigning," dni po podpisaniu umowy")}}function Uh(r,d){r&1&&(m(0,"span"),b(1,"W miesi\u0105cu podpisania umowy"),u())}function Bh(r,d){if(r&1&&(m(0,"span"),b(1),u()),r&2){let e=g(2);h(),ae("W ",e.startTaskDate().monthAfterSigning," miesi\u0105cu")}}function $h(r,d){if(r&1&&(m(0,"span"),b(1),u()),r&2){let e=g(2);h(),ae("W ci\u0105gu ",e.endTaskDate().monthAfterSigning," miesi\u0119cy")}}function Gh(r,d){if(r&1&&(m(0,"span",1)(1,"span"),b(2),u(),y(3,"img",2),m(4,"span"),b(5),u()()),r&2){let e=g(2);h(2),ae("Od pocz\u0105tku ",e.startTaskDate().monthAfterSigning," miesi\u0105ca"),h(3),ae("Do ko\u0144ca ",e.endTaskDate().monthAfterSigning," miesi\u0105ca")}}function qh(r,d){if(r&1&&A(0,Uh,2,0,"span")(1,Bh,2,1,"span")(2,$h,2,1,"span")(3,Gh,6,2,"span",1),r&2){let e=g();x(e.startTaskDate().monthAfterSigning===0&&e.endTaskDate().monthAfterSigning===0?0:e.startTaskDate().monthAfterSigning===e.endTaskDate().monthAfterSigning?1:e.startTaskDate().monthAfterSigning===0&&e.endTaskDate().monthAfterSigning>e.startTaskDate().monthAfterSigning?2:3)}}var Za=class r{startTaskDate=Q.required();endTaskDate=Q.required();static \u0275fac=function(e){return new(e||r)};static \u0275cmp=Y({type:r,selectors:[["app-ui-task-date"]],inputs:{startTaskDate:[1,"startTaskDate"],endTaskDate:[1,"endTaskDate"]},decls:5,vars:1,consts:[[1,"ui-task-date"],[1,"ui-task-date__flex"],["ngSrc","/svg/arrow-right.svg","height","20","width","20","alt","strza\u0142ka w prawo",1,"icon--gray"]],template:function(e,i){e&1&&(m(0,"div",0),A(1,Hh,9,8,"span",1)(2,Wh,2,1,"span")(3,jh,2,2,"span")(4,qh,4,1),u()),e&2&&(h(),x(i.startTaskDate().timeUtc!==null?1:i.startTaskDate().daysAfterSigning!==null&&i.startTaskDate().daysAfterSigning===0?2:i.startTaskDate().daysAfterSigning!==null&&i.startTaskDate().daysAfterSigning!==0?3:4))},dependencies:[as,ce],styles:[".ui-task-date[_ngcontent-%COMP%]{color:#5e6e8d}.ui-task-date__flex[_ngcontent-%COMP%]{display:flex;align-items:center;gap:5px;flex-wrap:wrap}"],changeDetection:0})};var Kh=r=>({"promotion-task-card__card-header--no-description":r});function Zh(r,d){if(r&1&&(m(0,"div",7),b(1),u()),r&2){let e=g(2);h(),ae(" ",e.task().description," ")}}function Qh(r,d){r&1&&y(0,"div",8),r&2&&D("innerHtml",d,Ke)}
24function Jh(r,d){r&1&&(m(0,"div",9),y(1,"img",11)(2,"span",12),u()),r&2&&(h(2),D("innerHtml",d,Ke))}function Xh(r,d){if(r&1&&(m(0,"div",10)(1,"a",13),b(2),u()()),r&2){let e=g(2);h(),D("href",e.task().buttonUrl,bt),h(),R(e.task().buttonText)}}function e_(r,d){if(r&1&&(m(0,"mat-card-content")(1,"div",6),A(2,Zh,2,1,"div",7)(3,Qh,1,1,"div",8)(4,Jh,3,1,"div",9)(5,Xh,3,2,"div",10),u()()),r&2){let e,i,n=g();h(2),x(n.task().description?2:-1),h(),x((e=n.infoFormated())?3:-1,e),h(),x((i=n.noteFormated())?4:-1,i),h(),x(n.task().taskType===n.TASK_TYPE.withLink&&n.task().buttonText&&n.task().buttonUrl?5:-1)}}function t_(r,d){r&1&&(m(0,"mat-card",5)(1,"div",14),y(2,"img",15),m(3,"span"),b(4,"Zadanie jest wymagane do zebrania punkt\xF3w"),u(),y(5,"img",16),u()())}var Qa=class r{task=Q.required();noteFormated=he(()=>this.task().note?.replace(/\r\n/g,"<br>"));infoFormated=he(()=>this.task().info?.replace(/\r\n/g,"<br>"));TASK_TYPE=ka;static \u0275fac=function(e){return new(e||r)};static \u0275cmp=Y({type:r,selectors:[["app-promotion-task-card"]],inputs:{task:[1,"task"]},decls:9,vars:8,consts:[[1,"promotion-task-card"],[1,"promotion-task-card__card-task"],[1,"promotion-task-card__card-header",3,"ngClass"],[1,"promotion-task-card__title"],[3,"startTaskDate","endTaskDate"],[1,"promotion-task-card__card-task-for-points"],[1,"promotion-task-card__content-container"],[1,"promotion-task-card__description"],[1,"promotion-task-card__info",3,"innerHtml"],[1,"promotion-task-card__note-wrapper"],[1,"promotion-task-card__link-wrapper"],["ngSrc","/svg/alert-triangle.svg","height","16","width","16","alt","ikona ostrze\u017Cenia",1,"promotion-task-card__alert-icon"],[3,"innerHtml"],["rel","external","target","_blank",1,"promotion-task-card__link",3,"href"],[1,"promotion-task-card__content-task-for-points"],["ngSrc","/svg/coins-no-bg-orange.svg","height","16","width","16","alt","ikona monet"],["ngSrc","/svg/help.svg","height","20","width","20","alt","ikona pomocy","matTooltip","Wykonanie tego zadania jest obowizkowe je\u017Celi chcesz otrzyma\u0107 punkty w aplikacji Rozbij Bank. Pobierz aplikacj\u0119, by otrzymywa\u0107 przypomnienia o zadaniach oraz otrzyma\u0107 punkty za wzi\u0119cie udzia\u0142u w tej promocji!",1,"promotion-task-card__help-icon"]],template:function(e,i){e&1&&(m(0,"div",0)(1,"mat-card",1)(2,"mat-card-header",2)(3,"mat-card-title")(4,"h3",3),b(5),u()(),y(6,"app-ui-task-date",4),u(),A(7,e_,6,4,"mat-card-content"),u(),A(8,t_,6,0,"mat-card",5),u()),e&2&&(h(2),D("ngClass",Ee(6,Kh,!i.task().description&&!i.task().info)),h(3),R(i.task().title),h(),D("startTaskDate",i.task().start)("endTaskDate",i.task().end),h(),x(i.task().description||i.infoFormated()?7:-1),h(),x(i.task().taskForPoints?8:-1))},dependencies:[Ie,kt,wt,Fe,Za,ce,Bs,dt],styles:[".promotion-task-card__card-task[_ngcontent-%COMP%]{z-index:1;padding:10px}@media screen and (max-width: 959.98px){.promotion-task-card__card-task[_ngcontent-%COMP%]{padding:0}}.promotion-task-card__card-header[_ngcontent-%COMP%]{justify-content:space-between;padding-bottom:6px}.promotion-task-card__title[_ngcontent-%COMP%]{font-size:1.3rem;color:#141924}@media screen and (max-width: 959.98px){.promotion-task-card__title[_ngcontent-%COMP%]{font-size:1.2rem}}.promotion-task-card__content-container[_ngcontent-%COMP%]{padding-bottom:0;color:#253045;display:flex;flex-direction:column;gap:16px}.promotion-task-card__description[_ngcontent-%COMP%]{width:70%}.promotion-task-card__info[_ngcontent-%COMP%]{width:70%;margin-top:-8px}.promotion-task-card__note-wrapper[_ngcontent-%COMP%]{display:flex;gap:10px;width:fit-content;border-radius:20px;padding:5px 10px;background-color:#f2f4f7}.promotion-task-card__alert-icon[_ngcontent-%COMP%]{margin-top:3px}.promotion-task-card__link-wrapper[_ngcontent-%COMP%]{padding-top:6px;padding-bottom:10px}.promotion-task-card__link[_ngcontent-%COMP%]{text-decoration:none;border:1px solid #98a1b3;border-radius:20px;display:inline;cursor:pointer;color:#3d4f71;padding:10px}@media screen and (max-width: 959.98px){.promotion-task-card__link[_ngcontent-%COMP%]{padding:0}}.promotion-task-card__link[_ngcontent-%COMP%]:hover{background-color:#f9fafb}.promotion-task-card__card-task-for-points[_ngcontent-%COMP%]{background-color:#fffaeb;margin-top:-15px;padding:0 10px}.promotion-task-card__content-task-for-points[_ngcontent-%COMP%]{padding:20px 16px 5px;color:#dc6803;display:flex;align-items:center;gap:5px}.promotion-task-card__help-icon[_ngcontent-%COMP%]{cursor:pointer}@media screen and (max-width: 959.98px){.promotion-task-card__card-header[_ngcontent-%COMP%]{flex-direction:column}.promotion-task-card__card-header--no-description[_ngcontent-%COMP%]{padding-bottom:16px}.promotion-task-card__card-task-for-points[_ngcontent-%COMP%]{padding:0}}"],changeDetection:0})};var jl=(r,d)=>d.id,Xa=r=>({"promotion-tasks-list__step--with-margin":r});function i_(r,d){r&1&&y(0,"div",4)}
24function a_(r,d){if(r&1&&(m(0,"div",5),y(1,"img",10),u()),r&2){let e=g().$index;D("ngClass",Ee(1,Xa,e===0))}}function n_(r,d){if(r&1&&(m(0,"div",6),b(1),u()),r&2){let e=g().$index;D("ngClass",Ee(2,Xa,e===0)),h(),ae(" ",e+1," ")}}function r_(r,d){r&1&&y(0,"div",7)}function o_(r,d){if(r&1&&(m(0,"div",2)(1,"section",3),A(2,i_,1,0,"div",4)(3,a_,2,3,"div",5)(4,n_,2,4,"div",6)(5,r_,1,0,"div",7),u(),m(6,"section",8),y(7,"app-promotion-task-card",9),u()()),r&2){let e=d.$implicit,i=d.$index,n=g(2);h(2),x(i>0?2:-1),h(),x(e.taskType===n.TASK_TYPE.reward?3:4),h(2),x(i<n.tasksWithTimeUtc().length-1?5:-1),h(2),D("task",e)}}function s_(r,d){if(r&1&&U(0,o_,8,4,"div",2,jl),r&2){let e=g();B(e.tasksWithTimeUtc())}}function l_(r,d){r&1&&y(0,"div",4)}function d_(r,d){if(r&1&&(m(0,"div",5),y(1,"img",10),u()),r&2){let e=g().$index;D("ngClass",Ee(1,Xa,e===0))}}function c_(r,d){if(r&1&&(m(0,"div",6),b(1),u()),r&2){let e=g().$index,i=g(2);D("ngClass",Ee(2,Xa,e===0)),h(),ae(" ",e+1+i.tasksWithTimeUtc().length," ")}}function p_(r,d){r&1&&y(0,"div",7)}function m_(r,d){if(r&1&&(m(0,"div",2)(1,"section",3),A(2,l_,1,0,"div",4)(3,d_,2,3,"div",5)(4,c_,2,4,"div",6)(5,p_,1,0,"div",7),u(),m(6,"section",8),y(7,"app-promotion-task-card",9),u()()),r&2){let e=d.$implicit,i=d.$index,n=g(2);h(2),x(i>0?2:-1),h(),x(e.taskType===n.TASK_TYPE.reward?3:4),h(2),x(i<n.tasksWithAfterSigning().length-1?5:-1),h(2),D("task",e)}}function u_(r,d){if(r&1&&(m(0,"div",11),y(1,"div",12),m(2,"span"),b(3,"Dost\u0119pne po podpisaniu umowy"),u(),y(4,"div",12),u(),U(5,m_,8,4,"div",2,jl)),r&2){let e=g();h(5),B(e.tasksWithAfterSigning())}}var Ja=class r{promotionTasks=Q.required();tasksWithTimeUtc=he(()=>this.promotionTasks().filter(d=>d.start.timeUtc!==null));tasksWithAfterSigning=he(()=>this.promotionTasks().filter(d=>d.end.timeUtc===null));TASK_TYPE=ka;static \u0275fac=function(e){return new(e||r)};static \u0275cmp=Y({type:r,selectors:[["app-promotion-tasks-list"]],inputs:{promotionTasks:[1,"promotionTasks"]},decls:4,vars:2,consts:[[1,"promotion-tasks-list"],[1,"promotion-tasks-list__tasks-wrapper"],[1,"promotion-tasks-list__task-container"],[1,"promotion-tasks-list__step-section"],[1,"promotion-tasks-list__line","promotion-tasks-list__line--vertical","promotion-tasks-list__line--top"],[1,"promotion-tasks-list__step","promotion-tasks-list__step--reward",3,"ngClass"],[1,"promotion-tasks-list__step",3,"ngClass"],[1,"promotion-tasks-list__line","promotion-tasks-list__line--vertical"],[1,"promotion-tasks-list__task-section"],[3,"task"],["ngSrc","/svg/trophy.svg","height","24","width","24","alt","ikona pucharu"],[1,"promotion-tasks-list__after-signing-container"],[1,"promotion-tasks-list__line","promotion-tasks-list__line--horizontal"]],template:function(e,i){e&1&&(m(0,"div",0)(1,"div",1),A(2,s_,2,0)(3,u_,7,0),u()()),e&2&&(h(2),x(i.tasksWithTimeUtc().length>0?2:-1),h(),x(i.tasksWithAfterSigning().length>0?3:-1))},dependencies:[dt,Qa,ce],styles:[".promotion-tasks-list__tasks-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:20px}.promotion-tasks-list__task-container[_ngcontent-%COMP%]{display:flex;gap:16px;width:100%}.promotion-tasks-list__step-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;flex:1}.promotion-tasks-list__step[_ngcontent-%COMP%]{height:40px;width:40px;display:flex;align-items:center;justify-content:center;border-radius:50%;background-color:#f2f4f7;z-index:1}.promotion-tasks-list__step--with-margin[_ngcontent-%COMP%]{margin-top:20px}.promotion-tasks-list__step--reward[_ngcontent-%COMP%]{background-color:#17b26a}.promotion-tasks-list__line[_ngcontent-%COMP%]{flex:1;background:#bdc7d5;margin-bottom:0;z-index:0}.promotion-tasks-list__line--top[_ngcontent-%COMP%]{max-height:40px;margin-top:-20px}.promotion-tasks-list__line--vertical[_ngcontent-%COMP%]{width:2px}.promotion-tasks-list__line--horizontal[_ngcontent-%COMP%]{height:2px}.promotion-tasks-list__task-section[_ngcontent-%COMP%]{width:100%}.promotion-tasks-list__after-signing-container[_ngcontent-%COMP%]{display:flex;align-items:center;flex:1;gap:16px;margin:20px 0 20px 56px}@media screen and (max-width: 959.98px){.promotion-tasks-list__task-container[_ngcontent-%COMP%]{gap:10px}.promotion-tasks-list__after-signing-container[_ngcontent-%COMP%]{margin:20px 0}}"],changeDetection:0})};var h_=()=>({"border-radius":"5px",height:"80px",width:"80px",margin:"0px"});function __(r,d){r&1&&(m(0,"mat-card")(1,"mat-card-content")(2,"div",24),y(3,"ngx-skeleton-loader",21)(4,"ngx-skeleton-loader",9),u()()())}var en=class r{tasks=re([1,2,3]);static \u0275fac=function(e){return new(e||r)};static \u0275cmp=Y({type:r,selectors:[["app-promotion-skeleton-loader"]],decls:43,vars:2,consts:[[1,"promotion-skeleton-loader"],[1,"promotion-skeleton-loader__container"],[1,"promotion-skeleton-loader__logo-container"],[1,"promotion-skeleton-loader__img-container"],[1,"promotion-skeleton-loader__img-wrapper"],["count","1","appearance","circle",3,"theme"],[1,"promotion-skeleton-loader__content"],[1,"promotion-skeleton-loader__bank-and-promoted-container"],[1,"promotion-skeleton-loader__bank-name"],["count","1","appearance","line"],[1,"promotion-skeleton-loader__title"],[1,"promotion-skeleton-loader__description-container"],["count","3","appearance","line"],[1,"promotion-skeleton-loader__fees-card"],[1,"promotion-skeleton-loader__fee-left-section"],[1,"promotion-skeleton-loader__fees-content"],[1,"promotion-skeleton-loader__fee-section"],["count","1","appearance","circle"],[1,"promotion-skeleton-loader__fee-description"],[1,"promotion-skeleton-loader__description-wrapper"],[1,"promotion-skeleton-loader__description-title"],["count","2","appearance","line"],[1,"promotion-skeleton-loader__tasks-section"],[1,"promotion-skeleton-loader__tasks-container"],[1,"promotion-skeleton-loader__task-wrapper"]],template:function(e,i){e&1&&(m(0,"div",0)(1,"mat-card")(2,"div",1)(3,"div",2)(4,"mat-card-content")(5,"div",3)(6,"div",4),y(7,"ngx-skeleton-loader",5),u()()()(),m(8,"div",6)(9,"mat-card-content",7)(10,"div",8),y(11,"ngx-skeleton-loader",9),u(),m(12,"div",10),y(13,"ngx-skeleton-loader",9),u(),m(14,"div",11),y(15,"ngx-skeleton-loader",12),u()()()()(),m(16,"mat-card",13)(17,"div",14)(18,"mat-card-content",15)(19,"div",16)(20,"div"),y(21,"ngx-skeleton-loader",17),u(
24),m(22,"div",18),y(23,"ngx-skeleton-loader",12),u()()()(),m(24,"div")(25,"mat-card-content",15)(26,"div",16)(27,"div"),y(28,"ngx-skeleton-loader",17),u(),m(29,"div",18),y(30,"ngx-skeleton-loader",12),u()()()()(),m(31,"mat-card")(32,"mat-card-content")(33,"div",19)(34,"div",20),y(35,"ngx-skeleton-loader",9),u(),y(36,"ngx-skeleton-loader",21),u()()(),m(37,"div",22)(38,"h3"),b(39,"Lista zada\u0144"),u(),m(40,"div",23),U(41,__,5,0,"mat-card",null,we),u()()()),e&2&&(h(7),D("theme",$t(1,h_)),h(34),B(i.tasks()))},dependencies:[Ie,Fe,qs],styles:[".promotion-skeleton-loader[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px}.promotion-skeleton-loader__container[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 9fr;padding:10px}@media screen and (max-width: 959.98px){.promotion-skeleton-loader__container[_ngcontent-%COMP%]{padding:0}}.promotion-skeleton-loader__img-container[_ngcontent-%COMP%]{border:1px solid #e4e7ec;border-radius:10px;padding:25px}.promotion-skeleton-loader__img-wrapper[_ngcontent-%COMP%]{display:flex}.promotion-skeleton-loader__bank-name[_ngcontent-%COMP%]{width:15%}.promotion-skeleton-loader__title[_ngcontent-%COMP%]{width:40%}.promotion-skeleton-loader__info-container[_ngcontent-%COMP%]{width:100%}.promotion-skeleton-loader__fees-card[_ngcontent-%COMP%]{display:grid;grid-template-columns:50% 50%}.promotion-skeleton-loader__fee-left-section[_ngcontent-%COMP%]{border-right:1px solid #bdc7d5}.promotion-skeleton-loader__fee-section[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 8fr;padding:10px}@media screen and (max-width: 959.98px){.promotion-skeleton-loader__fee-section[_ngcontent-%COMP%]{padding:0}}.promotion-skeleton-loader__fee-description[_ngcontent-%COMP%]{padding-top:15px}.promotion-skeleton-loader__description-wrapper[_ngcontent-%COMP%]{padding:10px}@media screen and (max-width: 959.98px){.promotion-skeleton-loader__description-wrapper[_ngcontent-%COMP%]{padding:0}}.promotion-skeleton-loader__description-title[_ngcontent-%COMP%]{width:25%}.promotion-skeleton-loader__tasks-section[_ngcontent-%COMP%]{margin-top:4rem}.promotion-skeleton-loader__tasks-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px}.promotion-skeleton-loader__task-wrapper[_ngcontent-%COMP%]{padding:1rem 1rem 0;display:grid;grid-template-columns:50% 10%;justify-content:space-between}@media screen and (max-width: 959.98px){.promotion-skeleton-loader__fees-card[_ngcontent-%COMP%]{grid-template-columns:none;grid-template-rows:50% 50%}.promotion-skeleton-loader__fee-left-section[_ngcontent-%COMP%]{border-right:none;border-bottom:1px solid #bdc7d5}}"],changeDetection:0})};var f_=["widgetMessages"],g_=["mobileMessages"],v_=(r,d)=>d.promoId;function b_(r,d){if(r&1){let e=$();m(0,"div",12)(1,"button",27),O("click",function(){T(e);let n=g();return P(n.sendMessage("Jakie s\u0105 pu\u0142apki?"))}),pe(),m(2,"svg",28),y(3,"path",29)(4,"line",30)(5,"line",31),u(),b(6," Jakie s\u0105 pu\u0142apki? "),u(),Pe(),m(7,"button",27),O("click",function(){T(e);let n=g();return P(n.sendMessage("Czy ta promocja si\u0119 op\u0142aca?"))}),pe(),m(8,"svg",28),y(9,"line",32)(10,"path",33),u(),b(11," Czy ta promocja si\u0119 op\u0142aca? "),u(),Pe(),m(12,"button",27),O("click",function(){T(e);let n=g();return P(n.sendMessage("Jakie warunki musz\u0119 spe\u0142ni\u0107?"))}),pe(),m(13,"svg",28),y(14,"path",34)(15,"polyline",35)(16,"line",36)(17,"line",37),u(),b(18," Jakie warunki musz\u0119 spe\u0142ni\u0107? "),u(),Pe(),m(19,"button",27),O("click",function(){T(e);let n=g();return P(n.sendMessage("Jakie s\u0105 ukryte koszty?"))}),pe(),m(20,"svg",28),y(21,"circle",38)(22,"line",39),u(),b(23," Jakie s\u0105 ukryte koszty? "),u()()}}function y_(r,d){r&1&&(m(0,"span"),b(1,"\u{1F464}"),u())}function C_(r,d){r&1&&y(0,"img",42)}function D_(r,d){if(r&1&&b(0),r&2){let e=g().$implicit;ae(" ",e.content," ")}}function w_(r,d){r&1&&(m(0,"span",44),y(1,"span",48)(2,"span",48)(3,"span",48),u())}function k_(r,d){if(r&1&&y(0,"div",45),r&2){let e=g().$implicit,i=g();D("innerHTML",i.renderMarkdown(e.content),Ke)}}function x_(r,d){if(r&1&&y(0,"app-promo-card",49),r&2){let e=d.$implicit;D("card",e)}}
24function M_(r,d){if(r&1&&(m(0,"div",46),U(1,x_,1,1,"app-promo-card",49,v_),u()),r&2){let e=g().$implicit;h(),B(e.cards)}}function S_(r,d){if(r&1){let e=$();m(0,"button",51),O("click",function(){let n=T(e).$implicit,l=g(3);return P(l.useSuggestion(n))}),b(1),u()}if(r&2){let e=d.$implicit,i=g(3);D("disabled",i.isStreaming()),h(),R(e)}}function T_(r,d){if(r&1&&(m(0,"div",47),U(1,S_,2,2,"button",50,we),u()),r&2){let e=g().$implicit;h(),B(e.suggestions)}}function P_(r,d){if(r&1&&(m(0,"div",40)(1,"div",41),A(2,y_,2,0,"span")(3,C_,1,0,"img",42),u(),m(4,"div",43),A(5,D_,1,1)(6,w_,4,0,"span",44)(7,k_,1,1,"div",45)(8,M_,3,0,"div",46)(9,T_,3,0,"div",47),u()()),r&2){let e=d.$implicit,i=g();de("alfred-widget__msg--user",e.role==="user")("alfred-widget__msg--bot",e.role==="assistant"),h(2),x(e.role==="user"?2:3),h(3),x(e.role==="user"?5:i.isStreaming()&&!e.content?6:7),h(3),x(e.cards&&e.cards.length>0?8:-1),h(),x(e.suggestions&&e.suggestions.length>0?9:-1)}}function O_(r,d){if(r&1){let e=$();m(0,"div",16)(1,"span",52),b(2,"Pomocne?"),u(),m(3,"button",53),O("click",function(){T(e);let n=g();return P(n.toggleFeedback(1))}),pe(),m(4,"svg",54),y(5,"path",55)(6,"path",56),u()(),Pe(),m(7,"button",53),O("click",function(){T(e);let n=g();return P(n.toggleFeedback(-1))}),pe(),m(8,"svg",54),y(9,"path",57)(10,"path",58),u()()()}if(r&2){let e=g();h(3),de("alfred-widget__feedback-btn--like",e.feedback()===1),h(4),de("alfred-widget__feedback-btn--dislike",e.feedback()===-1)}}function A_(r,d){if(r&1&&(m(0,"div",17),b(1),u()),r&2){let e=g();h(),R(e.error())}}function E_(r,d){if(r&1){let e=$();m(0,"button",59),O("click",function(){T(e);let n=g();return P(n.openMobileChat())}
24),y(1,"img",60)(2,"span",61),u()}}function I_(r,d){if(r&1){let e=$();m(0,"div",73)(1,"p",75),b(2,"Cze\u015B\u0107! Zapytaj mnie o t\u0119 promocj\u0119."),u(),m(3,"div",76)(4,"button",77),O("click",function(){T(e);let n=g(2);return P(n.sendFromMobile("Jakie s\u0105 pu\u0142apki?"))}),b(5,"Jakie s\u0105 pu\u0142apki?"),u(),m(6,"button",77),O("click",function(){T(e);let n=g(2);return P(n.sendFromMobile("Czy ta promocja si\u0119 op\u0142aca?"))}),b(7,"Czy si\u0119 op\u0142aca?"),u(),m(8,"button",77),O("click",function(){T(e);let n=g(2);return P(n.sendFromMobile("Jakie warunki musz\u0119 spe\u0142ni\u0107?"))}),b(9,"Jakie warunki?"),u(),m(10,"button",77),O("click",function(){T(e);let n=g(2);return P(n.sendFromMobile("Jakie s\u0105 ukryte koszty?"))}),b(11,"Ukryte koszty?"),u()()()}}function F_(r,d){r&1&&(m(0,"span"),b(1,"\u{1F464}"),u())}function V_(r,d){r&1&&y(0,"img",42)}function R_(r,d){if(r&1&&b(0),r&2){let e=g().$implicit;ae(" ",e.content," ")}}function Y_(r,d){r&1&&(m(0,"span",44),y(1,"span",48)(2,"span",48)(3,"span",48),u())}function L_(r,d){if(r&1&&y(0,"div",45),r&2){let e=g().$implicit,i=g(2);D("innerHTML",i.renderMarkdown(e.content),Ke)}}function N_(r,d){if(r&1&&(m(0,"div",40)(1,"div",41),A(2,F_,2,0,"span")(3,V_,1,0,"img",42),u(),m(4,"div",43),A(5,R_,1,1)(6,Y_,4,0,"span",44)(7,L_,1,1,"div",45),u()()),r&2){let e=d.$implicit,i=g(2);de("alfred-widget__msg--user",e.role==="user")("alfred-widget__msg--bot",e.role==="assistant"),h(2),x(e.role==="user"?2:3),h(3),x(e.role==="user"?5:i.isStreaming()&&!e.content?6:7)}}function z_(r,d){if(r&1){let e=$();m(0,"div",16)(1,"span",52),b(2,"Pomocne?"),u(),m(3,"button",53),O("click",function(){T(e);let n=g(2);return P(n.toggleFeedback(1))}),pe(),m(4,"svg",54),y(5,"path",55)(6,"path",56),u()(),Pe(),m(7,"button",53),O("click",function(){T(e);let n=g(2);return P(n.toggleFeedback(-1))}),pe(),m(8,"svg",54),y(9,"path",57)(10,"path",58),u()()()}if(r&2){let e=g(2);h(3),de("alfred-widget__feedback-btn--like",e.feedback()===1),h(4),de("alfred-widget__feedback-btn--dislike",e.feedback()===-1)}}function H_(r,d){if(r&1&&(m(0,"div",17),b(1),u()),r&2){let e=g(2);h(),R(e.error())}}function W_(r,d){if(r&1){let e=$();m(0,"div",26)(1,"div",62),O("click",function(){T(e);let n=g();return P(n.closeMobileChat())}),u(),m(2,"div",63)(3,"div",64)(4,"div",65),y(5,"img",66),m(6,"div")(7,"div",67),b(8,"AIfred"),u(),m(9,"div",68),b(10,"Asystent AI do tej promocji"),u()()(),m(11,"button",69),O("click",function(){T(e);let n=g();return P(n.closeMobileChat())}),pe(),m(12,"svg",70),y(13,"line",71)(14,"line",72),u()()(),A(15,I_,12,0,"div",73),Pe(),m(16,"div",74,1),U(18,N_,8,6,"div",15,we),u(),A(20,z_,11,4,"div",16)(21,H_,2,1,"div",17),m(22,"div",18)(23,"textarea",19),O("ngModelChange",function(n){T(e);let l=g();return P(l.inputMessage.set(n))})("keydown",function(n){T(e);let l=g();return P(l.onKeydown(n))}),u(),m(24,"button",20),O("click",function(){T(e);let n=g();return P(n.sendMessage())}),pe(),m(25,"svg",21),y(26,"line",22)(27,"polygon",23),u()()(),Pe(),m(28,"div",24),b(29,"AIfred korzysta z AI i mo\u017Ce pope\u0142nia\u0107 b\u0142\u0119dy. Weryfikuj informacje."),u()()()}if(r&2){let e=g();h(15),x(e.messages().length===0?15:-1),h(3),B(e.messages()),h(2),x(e.messages().length>0&&!e.isStreaming()?20:-1),h(),x(e.error()?21:-1),h(2),D("ngModel",e.inputMessage())("disabled",e.isStreaming()),h(),D("disabled",e.isStreaming()||!e.inputMessage().trim())}}var tn=class r{widgetMessages;mobileMessages;promotionId=Q();promotionTitle=Q();messages=re([]);inputMessage=re("");isStreaming=re(!1);error=re(null);feedback=re(null);isMobileChatOpen=re(!1);_platformId=w(vt);_alfredApi=w(el);_sanitizer=w(rs);_sessionId="";_streamSub=null;_shouldScroll=!1;constructor(){yr.setOptions({breaks:!0,gfm:!0})}ngOnInit(){Ze(this._platformId)&&(this._sessionId=crypto.randomUUID())}ngAfterViewChecked(){this._shouldScroll&&(this._scrollToBottom(),this._shouldScroll=!1)}ngOnDestroy(){this._streamSub?.unsubscribe()}sendMessage(d){let e=(d||this.inputMessage()).trim();!e||this.isStreaming()||(this.error.set(null),this.inputMessage.set(""),this.messages.update(i=>[...i,{role:"user",content:e,timestamp:new Date}]),this._shouldScroll=!0,this.messages.update(i=>[...i,{role:"assistant",content:"",timestamp:new Date}]),this.isStreaming.set(!0),this._streamSub=this._alfredApi.chatStream({sessionId:this._sessionId,message:e,mode:1,promotionId:this.promotionId()}).subscribe({next:i=>{this._applyStreamEvent(i),this._shouldScroll=!0},error:i=>{this.isStreaming.set(!1),i.message==="RATE_LIMIT"?this.error.set("Zbyt wiele wiadomo\u015Bci. Odczekaj chwil\u0119 i spr\xF3buj ponownie."):this.error.set("Wyst\u0105pi\u0142 b\u0142\u0105d. Spr\xF3buj ponownie."),this.messages.update(n=>{let l=[...n];return l.length>0&&l[l.length-1].role==="assistant"&&!l[l.length-1].content&&l.pop(),l})},complete:()=>{this.isStreaming.set(!1)}}))}openMobileChat(){this.isMobileChatOpen.set(!0)}closeMobileChat(){this.isMobileChatOpen.set(!1)}sendFromMobile(d){this.isMobileChatOpen()||this.isMobileChatOpen.set(!0),this.sendMessage(d)}useSuggestion(d){this.isStreaming()||this.sendMessage(d)}_applyStreamEvent(d){this.messages.update(e=>{let i=[...e],n=i[i.length-1];return!n||n.role!=="assistant"||(d.type==="text"?i[i.length-1]=ze(se({},n),{content:n.content+d.value}):d.type==="cards"?i[i.length-1]=ze(se({},n),{cards:d.value}):d.type==="suggestions"&&(i[i.length-1]=ze(se({},n),{suggestions:d.value}))),i})}toggleFeedback(d){let i=this.feedback()===d?0:d;this.feedback.set(i===0?null:i),this._alfredApi.saveFeedback({sessionId:this._sessionId,feedback:i}).subscribe()}
24onKeydown(d){d.key==="Enter"&&!d.shiftKey&&(d.preventDefault(),this.sendMessage())}renderMarkdown(d){if(!d)return"";let e=yr.parse(d);return this._sanitizer.bypassSecurityTrustHtml(e)}_scrollToBottom(){let d=this.widgetMessages?.nativeElement||this.mobileMessages?.nativeElement;d&&(d.scrollTop=d.scrollHeight)}static \u0275fac=function(e){return new(e||r)};static \u0275cmp=Y({type:r,selectors:[["app-alfred-chat-widget"]],viewQuery:function(e,i){if(e&1&&(Oe(f_,5),Oe(g_,5)),e&2){let n;ve(n=be())&&(i.widgetMessages=n.first),ve(n=be())&&(i.mobileMessages=n.first)}},inputs:{promotionId:[1,"promotionId"],promotionTitle:[1,"promotionTitle"]},decls:31,vars:8,consts:[["widgetMessages",""],["mobileMessages",""],[1,"alfred-widget","alfred-widget--desktop"],[1,"alfred-widget__header"],[1,"alfred-widget__header-left"],[1,"alfred-widget__header-avatar"],["src","/svg/alfred-logo.svg","alt","AIfred","width","32","height","32"],[1,"alfred-widget__header-text"],[1,"alfred-widget__header-title"],[1,"alfred-widget__header-subtitle"],[1,"alfred-widget__header-right"],[1,"alfred-widget__badge"],[1,"alfred-widget__suggestions","alfred-widget__suggestions--grid"],[1,"alfred-widget__body"],[1,"alfred-widget__messages"],[1,"alfred-widget__msg",3,"alfred-widget__msg--user","alfred-widget__msg--bot"],[1,"alfred-widget__feedback"],[1,"alfred-widget__error"],[1,"alfred-widget__input-area"],["placeholder","Napisz wiadomo\u015B\u0107...","rows","1","maxlength","500",1,"alfred-widget__input",3,"ngModelChange","keydown","ngModel","disabled"],[1,"alfred-widget__send-btn",3,"click","disabled"],["xmlns","http://www.w3.org/2000/svg","width","18","height","18","viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2"],["x1","22","y1","2","x2","11","y2","13"],["points","22 2 15 22 11 13 2 9 22 2"],[1,"alfred-widget__disclaimer"],["aria-label","Otw\xF3rz czat z AIfredem",1,"alfred-fab"],[1,"alfred-mobile"],[1,"alfred-widget__suggestion",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","14","height","14","viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2",1,"alfred-widget__suggestion-icon"],["d","M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"],["x1","12","y1","9","x2","12","y2","13"],["x1","12","y1","17","x2","12.01","y2","17"],["x1","12","y1","1","x2","12","y2","23"],["d","M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"],["d","M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"],["points","14 2 14 8 20 8"],["x1","16","y1","13","x2","8","y2","13"],["x1","16","y1","17","x2","8","y2","17"],["cx","11","cy","11","r","8"],["x1","21","y1","21","x2","16.65","y2","16.65"],[1,"alfred-widget__msg"],[1,"alfred-widget__msg-avatar"],["src","/svg/alfred-logo.svg","alt","AIfred","width","20","height","20"],[1,"alfred-widget__msg-bubble"],[1,"alfred-widget__dots"],[1,"alfred-widget__md",3,"innerHTML"],[2,"display","flex","flex-direction","column","gap","8px","margin-top","8px"],[1,"alfred-widget__suggestions","alfred-widget__suggestions--wrap",2,"margin-top","10px"],[1,"alfred-widget__dot"],[3,"card"],[1,"alfred-widget__suggestion","alfred-widget__suggestion--pill",3,"disabled"],[1,"alfred-widget__suggestion","alfred-widget__suggestion--pill",3,"click","disabled"],[1,"alfred-widget__feedback-label"],[1,"alfred-widget__feedback-btn",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2"],["d","M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3H14z"],["d","M7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3"],["d","M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3H10z"],["d","M17 2h3a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2h-3"],["aria-label","Otw\xF3rz czat z AIfredem",1,"alfred-fab",3,"click"],["src","/svg/alfred-logo.svg","alt","AIfred","width","32","height","32",1,"alfred-fab__icon"],[1,"alfred-fab__pulse"],[1,"alfred-mobile__backdrop",3,"click"],[1,"alfred-mobile__panel"],[1,"alfred-mobile__header"],[1,"alfred-mobile__header-left"],["src","/svg/alfred-logo.svg","alt","AIfred","width","28","height","28"],[1,"alfred-mobile__header-title"],[1,"alfred-mobile__header-subtitle"],[1,"alfred-mobile__close",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","22","height","22","viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2"],["x1","18","y1","6","x2","6","y2","18"],["x1","6","y1","6","x2","18","y2","18"],[1,"alfred-mobile__welcome"],[1,"alfred-widget__messages","alfred-widget__messages--mobile"],[1,"alfred-mobile__welcome-text"],[1,"alfred-widget__suggestions","alfred-widget__suggestions--wrap"],[1,"alfred-widget__suggestion","alfred-widget__suggestion--pill",3,"click"]],template:function(e,i){if(e&1){let n=$();m(0,"div",2)(1,"div",3)(2,"div",4)(3,"div",5),y(4,"img",6),u(),m(5,"div",7)(6,"span",8),b(7,"Zapytaj AIfreda o t\u0119 promocj\u0119"),u(),m(8,"span",9),b(9,"Dowiedz si\u0119 o pu\u0142apkach, warunkach i ukrytych kosztach"),u()()(),m(10,"div",10)(11,"span",11),b(12,"AI"),u()()(),A(13,b_,24,0,"div",12),m(14,"div",13)(15,"div",14,0),U(17,P_,10,8,"div",15,we),u(),A(19,O_,11,4,"div",16)(20,A_,2,1,"div",17),m(21,"div",18)(22,"textarea",19),O("ngModelChange",function(p){return T(n),P(i.inputMessage.set(p))})("keydown",function(p){return T(n),P(i.onKeydown(p))}),u(),m(23,"button",20),O("click",function(){return T(n),P(i.sendMessage())}),pe(),m(24,"svg",21),y(25,"line",22)(26,"polygon",23),u()()(),Pe(),m(27,"div",24),b(28,"AIfred korzysta z AI i mo\u017Ce pope\u0142nia\u0107 b\u0142\u0119dy. Weryfikuj informacje."),u()()(),A(29,E_,3,0,"button",25)(30,W_,30,6,"div",26)}e&2&&(h(13),x(i.messages().length===0?13:-1),h(4),B(i.messages()),h(2),x(i.messages().length>0&&!i.isStreaming()?19:-1),h(),x(i.error()?20:-1),h(2),D("ngModel",i.inputMessage())("disabled",i.isStreaming()),h(),D("disabled",i.isStreaming()||!i.inputMessage().trim()),h(6),x(i.isMobileChatOpen()?-1:29),h(),x(i.isMobileChatOpen()?30:-1))},dependencies:[Us,Gt,qt,Ws,Ls,pl],styles:[".alfred-widget--desktop[_ngcontent-%COMP%]{border:2px solid #d0dfff;border-radius:16px;overflow:hidden;background:#f7f9ff;box-shadow:0 2px 12px #0065ff14;display:flex;flex-direction:column;min-height:550px;max-height:550px}.alfred-widget__header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;background:linear-gradient(135deg,#0052cc,#2979ff,#448aff);flex-shrink:0}.alfred-widget__header-left[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}
24.alfred-widget__header-avatar[_ngcontent-%COMP%]{width:40px;height:40px;border-radius:50%;background:#fff3;display:flex;align-items:center;justify-content:center;font-size:1.3rem;flex-shrink:0}.alfred-widget__header-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px}.alfred-widget__header-title[_ngcontent-%COMP%]{font-size:.95rem;font-weight:700;color:#fff}.alfred-widget__header-subtitle[_ngcontent-%COMP%]{font-size:.76rem;color:#fffc}.alfred-widget__header-right[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px}.alfred-widget__badge[_ngcontent-%COMP%]{background:#fff3;color:#fff;font-size:.65rem;font-weight:700;padding:3px 8px;border-radius:10px;letter-spacing:.5px;border:1px solid rgba(255,255,255,.3)}.alfred-widget__suggestions[_ngcontent-%COMP%]{flex-shrink:0}.alfred-widget__suggestions--grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:16px 20px}.alfred-widget__suggestions--wrap[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}.alfred-widget__suggestion[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #d0dfff;border-radius:12px;padding:10px 14px;font-size:.8rem;font-weight:500;color:#253045;cursor:pointer;text-align:left;transition:all .15s ease}.alfred-widget__suggestion[_ngcontent-%COMP%]:hover{background:#0065ff;color:#fff;border-color:#0065ff;box-shadow:0 2px 8px #0065ff40}.alfred-widget__suggestion[_ngcontent-%COMP%]:hover   .alfred-widget__suggestion-icon[_ngcontent-%COMP%]{color:#fff}.alfred-widget__suggestion--pill[_ngcontent-%COMP%]{border-radius:20px;padding:8px 14px;background:#f0f5ff;color:#0065ff}.alfred-widget__suggestion--pill[_ngcontent-%COMP%]:hover{background:#0065ff;color:#fff}.alfred-widget__suggestion-icon[_ngcontent-%COMP%]{flex-shrink:0;color:#0065ff;transition:color .15s ease}.alfred-widget__body[_ngcontent-%COMP%]{border-top:1px solid #d0dfff;display:flex;flex-direction:column;flex:1;min-height:0}.alfred-widget__body--mobile[_ngcontent-%COMP%]{flex:1;overflow-y:auto}.alfred-widget__messages[_ngcontent-%COMP%]{flex:1;overflow-y:auto;padding:14px 16px;display:flex;flex-direction:column;gap:10px;background:#fff;min-height:0}.alfred-widget__messages--mobile[_ngcontent-%COMP%]{max-height:50vh;flex:none}.alfred-widget__msg[_ngcontent-%COMP%]{display:flex;gap:8px;max-width:88%}.alfred-widget__msg--user[_ngcontent-%COMP%]{align-self:flex-end;flex-direction:row-reverse}.alfred-widget__msg--bot[_ngcontent-%COMP%]{align-self:flex-start}.alfred-widget__msg-avatar[_ngcontent-%COMP%]{flex-shrink:0;width:26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.8rem;background:#f2f4f7}.alfred-widget__msg-avatar[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{border-radius:5px}.alfred-widget__msg-bubble[_ngcontent-%COMP%]{padding:8px 12px;border-radius:14px;font-size:.82rem;line-height:1.55;word-break:break-word}.alfred-widget__msg--user[_ngcontent-%COMP%]   .alfred-widget__msg-bubble[_ngcontent-%COMP%]{background:#0065ff;color:#fff;border-bottom-right-radius:4px}.alfred-widget__msg--bot[_ngcontent-%COMP%]   .alfred-widget__msg-bubble[_ngcontent-%COMP%]{background:#f7f9ff;color:#141924;border:1px solid #d0dfff;border-bottom-left-radius:4px}.alfred-widget__md[_ngcontent-%COMP%]     h1, .alfred-widget__md[_ngcontent-%COMP%]     h2, .alfred-widget__md[_ngcontent-%COMP%]     h3{font-size:.85rem;font-weight:600;margin:6px 0 3px}.alfred-widget__md[_ngcontent-%COMP%]     h1:first-child, .alfred-widget__md[_ngcontent-%COMP%]     h2:first-child, .alfred-widget__md[_ngcontent-%COMP%]     h3:first-child{margin-top:0}.alfred-widget__md[_ngcontent-%COMP%]     p{margin:0 0 5px}.alfred-widget__md[_ngcontent-%COMP%]     p:last-child{margin-bottom:0}.alfred-widget__md[_ngcontent-%COMP%]     ul, .alfred-widget__md[_ngcontent-%COMP%]     ol{margin:2px 0 5px;padding-left:18px}.alfred-widget__md[_ngcontent-%COMP%]     li{margin-bottom:2px}.alfred-widget__md[_ngcontent-%COMP%]     strong{font-weight:600}.alfred-widget__md[_ngcontent-%COMP%]     a{color:#0065ff;text-decoration:underline}.alfred-widget__dots[_ngcontent-%COMP%]{display:flex;gap:4px;align-items:center;min-height:18px}.alfred-widget__dot[_ngcontent-%COMP%]{width:5px;height:5px;background:#98a1b3;border-radius:50%;animation:_ngcontent-%COMP%_widget-typing 1.4s infinite ease-in-out both}.alfred-widget__dot[_ngcontent-%COMP%]:nth-child(1){animation-delay:0s}.alfred-widget__dot[_ngcontent-%COMP%]:nth-child(2){animation-delay:.2s}.alfred-widget__dot[_ngcontent-%COMP%]:nth-child(3){animation-delay:.4s}.alfred-widget__feedback[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:6px;padding:6px 14px;border-top:1px solid #f2f4f7;background:#fff}.alfred-widget__feedback-label[_ngcontent-%COMP%]{font-size:.72rem;color:#98a1b3}.alfred-widget__feedback-btn[_ngcontent-%COMP%]{background:none;border:1px solid #e4e7ec;border-radius:6px;width:28px;height:28px;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#98a1b3;transition:all .15s ease}.alfred-widget__feedback-btn[_ngcontent-%COMP%]:hover{border-color:#bdc7d5;color:#3d4f71}.alfred-widget__feedback-btn--like[_ngcontent-%COMP%]{color:#2e7d32;border-color:#2e7d32;background:#e8f5e9}.alfred-widget__feedback-btn--dislike[_ngcontent-%COMP%]{color:#c62828;border-color:#c62828;background:#ffebee}.alfred-widget__error[_ngcontent-%COMP%]{margin:0 14px 8px;padding:8px 12px;background:#fff3f3;color:#c62828;border-radius:8px;font-size:.78rem;border:1px solid #ffcdd2}.alfred-widget__input-area[_ngcontent-%COMP%]{display:flex;align-items:flex-end;
24gap:8px;padding:10px 14px;background:#fff;border-top:1px solid #d0dfff}.alfred-widget__input[_ngcontent-%COMP%]{flex:1;border:1px solid #d0dfff;border-radius:12px;padding:8px 12px;font-size:.82rem;font-family:inherit;resize:none;outline:none;line-height:1.4;max-height:80px}.alfred-widget__input[_ngcontent-%COMP%]:focus{border-color:#0065ff;box-shadow:0 0 0 2px #0065ff1a}.alfred-widget__input[_ngcontent-%COMP%]:disabled{background:#f9fafb;cursor:not-allowed}.alfred-widget__send-btn[_ngcontent-%COMP%]{flex-shrink:0;width:34px;height:34px;border:none;border-radius:50%;background:#0065ff;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center}.alfred-widget__send-btn[_ngcontent-%COMP%]:hover:not(:disabled){background:#0051cc;box-shadow:0 2px 8px #0065ff4d}.alfred-widget__send-btn[_ngcontent-%COMP%]:disabled{background:#bdc7d5;cursor:not-allowed}.alfred-widget__disclaimer[_ngcontent-%COMP%]{text-align:center;padding:6px 14px 10px;font-size:.7rem;color:#98a1b3;background:#fff}.alfred-fab[_ngcontent-%COMP%]{display:none;position:fixed;bottom:20px;right:20px;z-index:1000;width:56px;height:56px;border-radius:50%;border:none;background:linear-gradient(135deg,#0052cc,#2979ff);box-shadow:0 4px 16px #0065ff66;cursor:pointer;align-items:center;justify-content:center;transition:transform .2s ease,box-shadow .2s ease}.alfred-fab[_ngcontent-%COMP%]:hover{transform:scale(1.08);box-shadow:0 6px 24px #0065ff80}.alfred-fab[_ngcontent-%COMP%]:active{transform:scale(.95)}.alfred-fab__icon[_ngcontent-%COMP%]{width:32px;height:32px;border-radius:8px}.alfred-fab__pulse[_ngcontent-%COMP%]{position:absolute;inset:0;border-radius:50%;border:2px solid #0065ff;animation:_ngcontent-%COMP%_fab-pulse 2s ease-out infinite;pointer-events:none}.alfred-mobile[_ngcontent-%COMP%]{display:none;position:fixed;inset:0;z-index:1001}.alfred-mobile__backdrop[_ngcontent-%COMP%]{position:absolute;inset:0;background:#0006}.alfred-mobile__panel[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;right:0;max-height:85vh;background:#fff;border-radius:20px 20px 0 0;display:flex;flex-direction:column;animation:_ngcontent-%COMP%_overlay-slide-up .25s ease-out;box-shadow:0 -4px 24px #00000026}.alfred-mobile__header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:16px 18px;background:linear-gradient(135deg,#0052cc,#2979ff);border-radius:20px 20px 0 0;flex-shrink:0}.alfred-mobile__header-left[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;font-size:1.3rem;color:#fff}.alfred-mobile__header-title[_ngcontent-%COMP%]{font-size:.95rem;font-weight:700;color:#fff}.alfred-mobile__header-subtitle[_ngcontent-%COMP%]{font-size:.72rem;color:#fffc}.alfred-mobile__close[_ngcontent-%COMP%]{background:#ffffff26;border:none;border-radius:50%;width:36px;height:36px;display:flex;align-items:center;justify-content:center;color:#fff;cursor:pointer}.alfred-mobile__close[_ngcontent-%COMP%]:hover{background:#ffffff40}.alfred-mobile__welcome[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;padding:20px 16px 12px}.alfred-mobile__welcome-text[_ngcontent-%COMP%]{font-size:.85rem;color:#3d4f71;margin:0 0 12px}@keyframes _ngcontent-%COMP%_widget-typing{0%,80%,to{transform:scale(.6);opacity:.4}40%{transform:scale(1);opacity:1}}@keyframes _ngcontent-%COMP%_fab-pulse{0%{transform:scale(1);opacity:.6}to{transform:scale(1.6);opacity:0}}@keyframes _ngcontent-%COMP%_overlay-slide-up{0%{transform:translateY(100%)}to{transform:translateY(0)}}@media (max-width: 959.98px){.alfred-widget--desktop[_ngcontent-%COMP%]{display:none}.alfred-fab[_ngcontent-%COMP%], .alfred-mobile[_ngcontent-%COMP%]{display:flex}}"],changeDetection:0})};var Ul={promotion:ct.Empty(),similarOffers:ct.Empty()};var an=nl(sl(Ul),rl(({promotion:r,similarOffers:d})=>({isPromotionLoading:he(()=>r().isLoading),promotion:he(()=>r().data),similarOffers:he(()=>d().data.results)})),ol((r,d=w(xa))=>({fetchPromotion:vr(Ln(G(()=>Kt(r,{promotion:ct.Loading(null)})),st(e=>d.getPromotion(e).pipe(G(i=>Kt(r,{promotion:ct.Loaded(i)})),zn(()=>(Kt(r,i=>({promotion:ct.Error(i.promotion.data,"Nie udalo sie pobrac promocji")})),Nn)))))),fetchRelatedPromotions:vr(Ln(st(e=>d.getAllPromotions(e).pipe(G(i=>Kt(r,{similarOffers:ct.Loaded(i)})),zn(()=>(Kt(r,i=>({similarOffers:ct.Error(i.similarOffers.data,"Nie udalo sie pobrac podobnych ofert")})),Nn))))))})));var ri=class r{isPromotionLoading;promotion;similarOffers;_promotionStore=w(an);constructor(){this.isPromotionLoading=this._promotionStore.isPromotionLoading,this.promotion=this._promotionStore.promotion,this.similarOffers=this._promotionStore.similarOffers}fetchPromotion(d){this._promotionStore.fetchPromotion(d)}fetchRelatedPromotions(d){this._promotionStore.fetchRelatedPromotions(d)}static \u0275fac=function(e){return new(e||r)};static \u0275prov=ne({token:r,factory:r.\u0275fac,providedIn:"root"})};var U_=(r,d)=>d.id;function B_(r,d){r&1&&y(0,"app-promotion-skeleton-loader",3)}function $_(r,d){if(r&1){let e=$();m(0,"app-promotion-header-mobile",17),O("goToPromotion",function(n){T(e);let l=g(2);return P(l.redirectToPromotion(n))})("scrollToNotifications",function(){T(e);let n=g(2);return P(n.scrollToNewsletter())})("addToCalendar",function(){T(e);let n=g(2);return P(n.openCalendarDialog())}),u()}if(r&2){let e=g();D("promotion",e)}}function G_(r,d){if(r&1){let e=$();m(0,"app-promotion-header-desktop",17),O("goToPromotion",function(n){T(e);let l=g(2);return P(l.redirectToPromotion(n))})("scrollToNotifications",function(){T(e);let n=g(2);return P(n.scrollToNewsletter())})("addToCalendar",function(){T(e);let n=g(2);return P(n.openCalendarDialog())}),u()}if(r&2){let e=g();D("promotion",e)}}function q_(r,d){if(r&1){let e=$();m(0,"div",22)(1,"app-promotion-card-mobile",23),O("goToPromotion",function(n){T(e);let l=g(4);return P(l.redirectToPromotion(n))}
24),u()()}if(r&2){let e=g().$implicit;h(),D("promotion",e)("isPromotionDetails",!0)("isEntireCardClickable",!1)}}function K_(r,d){r&1&&A(0,q_,2,3,"ng-template",21)}function Z_(r,d){if(r&1&&(m(0,"div",16)(1,"section",18)(2,"h2",19),b(3,"Podobne oferty"),u(),m(4,"owl-carousel-o",20),U(5,K_,1,0,null,21,U_),u()()()),r&2){let e=g(2);h(4),D("options",e.carouselOptions()),h(),B(e.similarOffers())}}function Q_(r,d){if(r&1&&(m(0,"section",3),A(1,$_,1,1,"app-promotion-header-mobile",6)(2,G_,1,1,"app-promotion-header-desktop",6),m(3,"div",7),y(4,"app-promotion-fees",8)(5,"app-alfred-chat-widget",9),u(),y(6,"app-promotion-description",10),u(),m(7,"section",11)(8,"h2",12),b(9,"Lista zada\u0144"),u(),y(10,"app-promotion-tasks-list",13),u(),m(11,"section",14),y(12,"app-newsletter-banner",15),u(),A(13,Z_,7,1,"div",16)),r&2){let e=d,i=g();h(),x(i.isMobileVersion()?1:2),h(3),D("feesDescription",e.feesDescription)("gracePeriod",e.gracePeriod),h(),D("promotionId",e.id)("promotionTitle",e.title),h(),D("promotionDescription",e.description)("promotionRegulations",e.regulations)("promotionFeeUrl",e.feesUri)("promotionWideDescription",e.wideDescription),h(4),D("promotionTasks",e.tasks),h(2),D("promotionId",e.id),h(),x(i.similarOffers().length>0?13:-1)}}var nn=class r{constructor(d,e,i,n,l,p,f){this._promotionFacade=d;this._mainPageFacade=e;this._activatedRoute=i;this._navigationService=n;this._dialog=l;this._router=p;this._seoService=f;Ze(this._platformId)&&window.scroll({top:0,behavior:"instant"}),this.isPromotionLoading=this._promotionFacade.isPromotionLoading,this.promotion=this._promotionFacade.promotion,this.similarOffers=this._promotionFacade.similarOffers,this._promotionId=Es(this._activatedRoute.paramMap.pipe(Pt(C=>{let I=C.get("promoSlug");return I&&il(`/promocje/${I}`)||0})),{initialValue:0}),Ze(this._platformId)&&w(hs).observe([dr.XSmall,dr.Small]).pipe(Pt(C=>C.matches),zo(),cr(this._destroyRef)).subscribe(C=>{this.isMobileVersion.set(C)}),er(()=>{Ze(this._platformId)&&window.scroll({top:0,behavior:"instant"});let C=this._promotionId();this._promotionFacade.fetchPromotion(C)}),er(()=>{let C=this.promotion(),I=C?.productTypes.map(L=>L.code)||[];C&&this._updateSeoMetaTags(C),this._promotionFacade.fetchRelatedPromotions({excludeOfferIds:[C?.id||-1],sort:"popularity",productTypes:I})})}isPromotionLoading;promotion;similarOffers;carouselOptions=re(cs);fragmentValue=re(null);isResetDefaultTab=re(!1);isMobileVersion=re(w(ss).initialIsMobile);URL_FRAGMENT=As;_promotionId;_platformId=w(vt);_destroyRef=w(Bo);_recaptchaLoader=w(ds);ngOnInit(){this._activatedRoute.fragment.pipe(cr(this._destroyRef)).subscribe(d=>{this.fragmentValue.set(d),this.isResetDefaultTab.set(d!=="getMobileApp")})}navigateToMainPage(d){this._navigationService.navigateToMainPage(d)}navigateToBlog(){this._router.navigate(["/blog"])}scrollToFragment(d,e){this._navigationService.scrollToFragment(d),this.isResetDefaultTab.set(e||!1)}openCalendarDialog(){let d=this.promotion();if(!d)return;let e={promotionId:Number(d.id),promotionTitle:d.title,bankName:d.bank?.name};this._dialog.open(ja,{data:e,autoFocus:!1})}openContactDialog(){this._dialog.open(Xs,{minWidth:"50vw"}).afterClosed().subscribe(d=>{d&&this._recaptchaLoader.execute("contact").then(e=>{let i=ze(se({},d),{recaptchaToken:e});this._mainPageFacade.sendContactMessage(i)})})}scrollToNewsletter(){document.getElementById("newsletter")?.scrollIntoView({behavior:"smooth",block:"center"})}_gclidService=w(ls);redirectToPromotion(d){let e={context:"details",platform:"web"},i=this._gclidService.getGclid();i&&(e.gclid=i);let n=this._router.createUrlTree(["/promocja",d],{queryParams:e}),l=this._router.serializeUrl(n);window.open(l,"_blank")}ngOnDestroy(){this._seoService.resetToDefaults()}_updateSeoMetaTags(d){let i=`https://rozbijbank.pl/promocje/${this._activatedRoute.snapshot.paramMap.get("promoSlug")}`,n=d.wideDescription?.summary||d.description||d.title,l=n.length>160?n.substring(0,157)+"...":n;this._seoService.updateMetaTags({title:d.title,description:l,url:i,image:d.bannerUrl||d.bank.logoUrl}),this._seoService.setCanonicalUrl(i),this._seoService.addOfferStructuredData({name:d.title,de
24scription:l,url:i,bankName:d.bank.name,validThrough:d.endDateUtc,image:d.bannerUrl||d.bank.logoUrl}),this._seoService.addBreadcrumbStructuredData([{name:"Strona g\u0142\xF3wna",url:"https://rozbijbank.pl"},{name:"Promocje",url:"https://rozbijbank.pl/promocje"},{name:d.title,url:i}])}static \u0275fac=function(e){return new(e||r)(Z(ri),Z(ll),Z(fa),Z(Zs),Z(Ca),Z(ga),Z(Qs))};static \u0275cmp=Y({type:r,selectors:[["app-promotion-details-page"]],features:[Ae([an,ri,xa,{provide:ma,useValue:"pl"}])],decls:7,vars:9,consts:[[1,"promotion-details"],[1,"promotion-details__navbar",3,"promotionsTabClicked","howItWorksTabClicked","mobileAppClicked","contactButtonClicked","blogTabClicked","defaultTab","isDetailsPage","isResetDefaultTab"],[1,"promotion-details__content"],[1,"promotion-details__section","promotion-details__section--details"],["appScrollToFragment","","appSyncFragmentOnVisible","",3,"id","block"],[3,"contactClicked","isMainPageIsLink","isPrivacyPolicyLink"],[3,"promotion"],[1,"promotion-details__fees-alfred"],[3,"feesDescription","gracePeriod"],[3,"promotionId","promotionTitle"],[3,"promotionDescription","promotionRegulations","promotionFeeUrl","promotionWideDescription"],[1,"promotion-details__section"],[1,"promotion-details__title"],[3,"promotionTasks"],["id","newsletter",1,"promotion-details__section","promotion-details__section--wider"],[3,"promotionId"],[1,"promotion-details__similar-offers-container"],[3,"goToPromotion","scrollToNotifications","addToCalendar","promotion"],[1,"promotion-details__section","promotion-details__section--wider"],[1,"promotion-details__title","promotion-details__title--similar-offers"],[3,"options"],["carouselSlide",""],[1,"promotion-details__similar-offers-wrapper"],[1,"promotion-details__similar-offers-card",3,"goToPromotion","promotion","isPromotionDetails","isEntireCardClickable"]],template:function(e,i){if(e&1&&(m(0,"div",0)(1,"app-navbar",1),O("promotionsTabClicked",function(){return i.navigateToMainPage(i.URL_FRAGMENT.promotions)})("howItWorksTabClicked",function(){return i.navigateToMainPage(i.URL_FRAGMENT.instruction)})("mobileAppClicked",function(){return i.scrollToFragment(i.URL_FRAGMENT.getMobileApp)})("contactButtonClicked",function(){return i.openContactDialog()})("blogTabClicked",function(){return i.navigateToBlog()}),u(),m(2,"div",2),A(3,B_,1,0,"app-promotion-skeleton-loader",3)(4,Q_,14,12),u(),m(5,"section",4)(6,"app-footer-with-mobile-app",5),O("contactClicked",function(){return i.openContactDialog()}),u()()()),e&2){let n;h(),D("defaultTab",i.fragmentValue())("isDetailsPage",!0)("isResetDefaultTab",i.isResetDefaultTab()),h(2),x(i.isPromotionLoading()?3:-1),h(),x((n=i.promotion())?4:-1,n),h(),D("id",i.URL_FRAGMENT.getMobileApp)("block","center"),h(),D("isMainPageIsLink",!0)("isPrivacyPolicyLink",!0)}},dependencies:[dl,$a,Ga,qa,Ka,Ja,al,Cl,yl,Mr,cl,Ks,Js,en,Ba,tn],styles:[".promotion-details[_ngcontent-%COMP%]{background-color:#e3e6eb}.promotion-details__navbar[_ngcontent-%COMP%]{position:fixed;top:0;z-index:100;width:100%}.promotion-details__content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4rem;padding-top:100px;padding-bottom:50px}.promotion-details__section[_ngcontent-%COMP%]{margin:auto;width:70vw;max-width:1500px}@media screen and (max-width: 1550px){.promotion-details__section[_ngcontent-%COMP%]{width:80vw}}@media screen and (max-width: 1280px){.promotion-details__section[_ngcontent-%COMP%]{width:90vw}}@media screen and (max-width: 400px){.promotion-details__section[_ngcontent-%COMP%]{width:95vw}}.promotion-details__section--details[_ngcontent-%COMP%]{padding-top:50px;display:flex;flex-direction:column;gap:10px}.promotion-details__section--wider[_ngcontent-%COMP%]{width:80vw;max-width:1500px}@media screen and (max-width: 1550px){.promotion-details__section--wider[_ngcontent-%COMP%]{width:85vw}}@media screen and (max-width: 1280px){.promotion-details__section--wider[_ngcontent-%COMP%]{width:95vw}}.promotion-details__title[_ngcontent-%COMP%]{font-size:1.6rem;color:#141924}@media screen and (max-width: 959.98px){.promotion-details__title[_ngcontent-%COMP%]{font-size:1.3rem}}
24.promotion-details__title--similar-offers[_ngcontent-%COMP%]{text-align:center;margin-bottom:3rem}.promotion-details__fees-alfred[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:minmax(550px,auto);gap:10px}.promotion-details__similar-offers-container[_ngcontent-%COMP%]{border-top:1px solid #bdc7d5;padding-top:3rem}.promotion-details__similar-offers-wrapper[_ngcontent-%COMP%]{height:405px;margin:auto;min-width:340px}.promotion-details__similar-offers-card[_ngcontent-%COMP%]{display:flex;height:100%}@media screen and (max-width: 959.98px){.promotion-details__fees-alfred[_ngcontent-%COMP%]{grid-template-columns:1fr;grid-template-rows:auto}}"],changeDetection:0})};var xy=[{path:"",component:nn}];export{xy as routes};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.